What is E2B?
E2B is a cloud platform of secure sandboxes where AI agents run code, use a filesystem and operate tools in isolation, built for developers. E2B says more than 100,000 teams use it and that 94 of the Fortune 100 have signed up, and its open-source runtime has over 14,000 GitHub stars.
Each agent session gets its own Firecracker microVM with a shell, filesystem, browser and network, so code generated by an LLM can run without touching your servers. Sandboxes boot from snapshots, can pause and resume, and run in E2B's cloud or inside your own AWS, GCP or Azure account. Teams use E2B for coding agents, data analysis agents, computer-use agents, background jobs and reinforcement learning rollouts.
Main Features
- Starts an isolated microVM sandbox per agent session.
- Runs AI-generated code with a shell, filesystem and browser.
- Pauses and resumes sandboxes from snapshots.
- Exposes ports so agents can serve live apps from a sandbox.
- Controls network egress with policies and scoped secrets.
- Provides Python and JavaScript SDKs and a CLI.
- Deploys in E2B Cloud or in your own cloud account.
How to Get Started with E2B
- Sign up at e2b.dev and copy your API key.
- Install the E2B SDK for Python or JavaScript.
- Create a sandbox in code and run a command or script.
- Connect the sandbox to your agent as a code execution tool.
E2B Pricing
The Hobby plan is free with a one-time $100 usage credit and up to 20 concurrent sandboxes. Pro costs $150 per month plus usage, with 100 concurrent sandboxes and longer sessions. Compute is billed per second, for example $0.000028 per second for the default 2 vCPUs, and Enterprise is custom.
Who Should Use It?
- Developers building coding or data analysis agents.
- AI startups that need to run untrusted code safely.
- AI labs running reinforcement learning rollouts.
- Enterprises that need sandboxes in their own cloud.
- Teams building computer-use agents.
E2B Alternatives
- Browserbase: focused on headless browsers for agents
- Replit AI: full cloud IDE with an AI agent
- Supabase: backend platform for agent apps that need a database
Frequently Asked Questions
Is E2B free?
Yes, to start. The Hobby plan is free with a one-time $100 usage credit, and Pro costs $150 per month plus usage.
What is E2B used for?
E2B is used to give AI agents secure sandboxes to run code, use files and operate tools. It is common in coding and data analysis agents.
Is E2B open source?
Yes. The E2B sandbox runtime is open source under the Apache-2.0 license, and the managed cloud is paid.
Can E2B run in my own cloud?
Yes. E2B can run inside your AWS, GCP or Azure account as well as in E2B Cloud.
