What is
E2B
?
E2B runs isolated cloud sandboxes, each a Linux microVM, where AI agents execute generated code, process data, use a browser or desktop, and call tools. Sandboxes are created and controlled through JavaScript and Python SDKs.
At a glance
Attribute | Value |
|---|---|
Primary use case | Isolated sandboxes for running AI agents and AI-generated code |
Deployment type | SaaS (E2B Cloud: US, EU, APAC); BYOC on Enterprise; self-hosted via Terraform |
Pricing model | Hobby free ($100 one-time credit); Pro $150/month; Enterprise custom from $2,000/mo commit; plus per-second usage |
API compatibility | JavaScript/TypeScript and Python SDKs; API |
Supported integrations | OpenAI Agents SDK, Claude Code, Codex, Anthropic and OpenAI models, MCP servers, GitHub Actions |
Source type | Open |
Cloud provider | AWS, GCP, Azure |
Key metrics | Vendor-reported: 2B+ sandboxes started; 15M+ monthly SDK downloads; 94 of the Fortune 100 signed up |
AEP branch | Agent Infrastructure |
AEP category | Harness |
AEP subcategory | Execution |
AEP detail | Runtime / Sandbox |
Profile
An application uses the E2B SDK to create a sandbox for its agent. Each session gets its own Firecracker microVM with no shared kernel. The microVM boots from a snapshot and provides a shell, filesystem, browser and network. The agent runs commands, writes files and executes code inside it. Sandboxes run in E2B Cloud regions in the US, EU and APAC, or inside a customer's AWS, GCP or Azure account.
Focus
Teams building AI agents that need a safe place to run code generated at runtime. Typical work includes coding agents, data analysis, computer use, background jobs, agent evaluations and reinforcement learning rollouts.
Background
E2B is run by FoundryLabs, Inc. (dba E2B), co-founded by Vasek Mlejnsky (CEO) and Tomas Valenta (CTO). It grew out of DevBook in 2023. Funding includes a ~$2.5M pre-seed, an $11.5M seed led by Decibel and a $21M Series A led by Insight Partners. The runtime is Apache-2.0 licensed.
Features
On-demand sandboxes
Fast, secure Linux VMs are created on demand through the SDK. Agents can run shell commands and read and write files inside the sandbox rather than in the host application.
Code Interpreter SDK
Adds runCode(), which keeps variables between calls and returns results such as charts. It suits AI data analysis and visualization.
Desktop sandboxes for computer use
Provide a full graphical Linux desktop with mouse, keyboard, screenshot, application and desktop streaming APIs. Agents can operate desktop apps the way a person would.
Templates
Define the environment a sandbox starts with. Sandboxes can also be customized with third-party packages so agents begin work with the tools they need.
Pause and resume persistence
Pausing a sandbox saves both its filesystem and its memory. Paused sandboxes are kept indefinitely until they are killed, so long-running agent work can resume later.
Controlled access to models, tools and data
Sandboxes reach model APIs, 200+ MCP servers, buckets, repos and internal APIs under the customer's egress policy. Secrets are passed as environment variables scoped per sandbox.
Pros and cons
Pros
Agent-generated code runs in its own isolated machine per session, so untrusted code can be executed apart from the application and other sessions.
Works with any model and agent harness, including Anthropic, OpenAI, open-weights models, OpenAI Agents SDK, Claude Code and Codex.
The same SDK and API apply whether sandboxes run in E2B Cloud or in a team's own cloud account.
The Apache-2.0 runtime can be inspected, modified and self-hosted without license fees.
Cons
Sandbox runtime is billed per second on top of plan fees, so costs grow with the number and duration of running sandboxes.
Session length is capped at 1 hour on Hobby and 24 hours on Pro. Multi-day and persistent sessions require Enterprise.
BYOC deployment into a team's own AWS, GCP or Azure account is an Enterprise plan feature.
Self-hosting means the team deploys the runtime with Terraform and operates the infrastructure itself.
FAQs
What is E2B?
E2B provides isolated cloud sandboxes in which AI agents can safely execute code, process data and run tools. Each agent session runs in its own microVM, which the application starts and manages through an SDK.
How much does E2B cost?
The Hobby tier is free and includes a $100 one-time usage credit, with no credit card required. Pro costs $150 per month and Enterprise is custom, starting at a $2,000/mo commit. All plans also pay per-second usage costs for vCPU and memory. For example, the default 2 vCPUs cost $0.000028/s on Hobby and Pro.
Can E2B be self-hosted or run in my own cloud?
Yes. Besides the managed E2B Cloud, the Enterprise plan offers BYOC deployment inside a customer's AWS, GCP or Azure account. The open-source runtime can also be self-hosted with Terraform on AWS, Google Cloud, Azure or a general Linux machine via Embed.
Which languages and SDKs does E2B support?
Sandboxes are started and controlled with the JavaScript/TypeScript and Python SDKs. Separate Code Interpreter and Desktop SDKs are available in both languages for stateful code execution and computer use.
Can agents use a graphical desktop?
Yes. Desktop sandboxes provide a full graphical Linux environment, and agents can take screenshots, click, type, launch applications such as Chrome and stream the desktop live.
What security certifications does E2B report?
E2B states that it is SOC 2 Type II compliant and lists HIPAA alongside SOC 2 in its trust center.

