E2B cloud sandbox integration for pi. Redirects all tool execution (bash, read, write, edit, ls, find, grep) to an E2B cloud sandbox, giving the agent a full Linux environment with internet access — completely isolated from your local machine.
pi install npm:pi-extension-e2bSet your E2B API key:
export E2B_API_KEY=your_key_herepi --e2b # Create new sandbox (no file sync)
pi --e2b --e2b-sync # Create new sandbox and sync local files
pi --e2b --e2b-template custom # Use a custom E2B template
pi --e2b --e2b-sandbox <id> # Reconnect to an existing sandbox| Command | Description |
|---|---|
/e2b |
Show sandbox status & info |
/e2b-upload |
Upload local file(s) to the sandbox |
/e2b-download |
Download file(s) from the sandbox |
/e2b-reconnect |
Connect to an existing sandbox by ID |
Ctrl+Shift+E — Toggle E2B sandbox on/off mid-session.
| Tool | Description |
|---|---|
e2b_port_url |
Get the public URL for a port running in the sandbox |
When enabled, the extension replaces all 7 built-in pi tools (bash, read, write, edit, ls, find, grep) with E2B-backed implementations that execute in the remote sandbox. File sync uses git archive (or tar fallback) to upload your project. A keepalive timer extends the sandbox timeout automatically.
MIT