E2B
A safe cloud sandbox for your agent's code. Open-source cloud sandboxes that give your own agent a safe computer to run code in.
✓ Last verified October 15, 2026 from official sourcesHobby $0 with $100 in one-time credits; Pro $150/mo plus usage. Usage costs $0.000014 per vCPU-second and $0.0000045 per GiB-second, and storage is included. Enterprise has a $3,000/mo minimum.
Developers adding code execution to an agent.
E2B cloud. Bring-your-own-cloud is available on Enterprise. Skill level: Advanced.
What it's great at
- Running untrusted, agent-written code
What it can do
- Sandboxes with 1 to 8 vCPUs and up to 8 GiB of RAM, started from the SDK
- Custom templates so every sandbox starts with your dependencies
- Up to 24-hour sessions and 100+ concurrent sandboxes on Pro
Example tasks to try
- Let a data agent run pandas on uploaded CSVs in a throwaway sandbox.
Start in 5 minutes
- Sign up at e2b.dev and create an API key
- Install the SDK with "pip install e2b" or "npm install e2b"CommandPaste this into Terminal (Mac) or PowerShell (Windows).
pip install e2bCommandPaste this into Terminal (Mac) or PowerShell (Windows).npm install e2b - Create a sandbox and run a command in it
Watch out for
Hobby sessions stop after 1 hour, and sandboxes have no GPUs.
Compare it
Similar agents
Claude, Claude Code & Claude Agent SDK
A strong all-round choice for coding and for building your own agents.
ChatGPT Work, Codex & Agents SDK
The easiest on-ramp if you already pay for ChatGPT.
Gemini, Jules & Gemini Enterprise
Best if you work in Google Workspace or GitHub.
n8n
Automation you can self-host, with AI agent steps.
Official sources
Prices change often. Confirm on the vendor's page before you buy. We're independent, and no vendor pays for placement.