What is E2B?
E2B provides isolated microVM sandboxes where AI agents execute code, run tools, and perform background tasks. Developers supply the agent logic while E2B manages the underlying infrastructure via SDK or API. Sandboxes can run in E2B's managed cloud or within a customer's own AWS, GCP, or Azure account.
What are the features of E2B?
- Isolated sandbox environmentEach agent session runs in a dedicated Linux microVM built on Firecracker, booting from a snapshot with its own kernel, shell, filesystem, and browser.
- Code execution and interpretationThe
runCode()method executes Python or JavaScript inside the sandbox, returning charts, tables, and images via the@e2b/code-interpreterpackage. - Desktop streaming for computer useProvides a full desktop with screen, mouse, and keyboard controls streamed live, accessed through the
@e2b/desktoppackage. - Network and secrets managementControls ingress and egress traffic under user-defined policies, while exposing secrets to the agent via environment variables that never enter the sandbox directly.
- Sandbox lifecycle controlAllows sessions to be paused, resumed, snapshotted, or forked using SDK methods like
sandbox.pause(). - Multi-cloud deploymentRuns identically across E2B Cloud regions (US, EU, APAC) or inside customer VPCs on AWS, GCP, and Azure using the same API.
What are the use cases of E2B?
- Prompt-to-app generationA prompt spins up coding sub-agents that build an application and serve it live from an E2B sandbox URL.
- Reinforcement learning rolloutsThousands of machines spin up in parallel to grade and clear training runs quickly.
- Secure data analysisSensitive inputs like genomes or clinical data flow into isolated compute environments, producing reports without data leaving the boundary.
E2B Pricing Information:
- HobbyFree; includes a $100 one-time usage credit. Sessions are limited to 1 hour, with up to 20 concurrent sandboxes and default CPU/RAM. No credit card required.
- Pro$150 per month plus usage costs billed by the second. Sessions last up to 24 hours, with 100 concurrent sandboxes expandable to 1,100, and custom CPU/RAM configurations. Billed through Stripe.
- EnterpriseCustom pricing with committed usage and custom billing. Supports multi-day and persistent sessions, tens of thousands of concurrent sandboxes, custom sizes, and bring-your-own-cloud deployment.









