You can create a sandbox and connect an interactive terminal to it.
Copy
Ask AI
e2b sandbox create <template>
For example, to create a sandbox from the base template:
Copy
Ask AI
e2b sandbox create base
This will:
Create a new sandbox from the specified template
Connect your terminal to the sandbox
Keep the sandbox alive while you’re connected
Automatically kill the sandbox when you exit the terminal
Once connected, you can inspect the sandbox filesystem and processes to debug or experiment, or use it as a disposable environment for running agents instead of your local computer.