Create E2B account
Every new E2B account get $100 in credits. You can sign up here.
Set your environment variables
- Navigate to the E2B Dashboard.
- Copy your API key.
- Paste your E2B API key into your .env file.
.env
Install E2B SDK
Install the E2B SDK to your project by running the following command in your terminal.
Write code for starting Sandbox
We’ll write the minimal code for starting Sandbox, executing Python inside it and listing all files inside the root directory.