An isolated cloud machine for every AI agent
Last verified: 2026-12-06
In short: E2B is an agent cloud from FoundryLabs, inc. (dba E2B) that runs an isolated microVM for each AI agent session, built for developers and teams building agents that run code. It has a free Hobby tier, and the Pro plan starts at $150 per month plus usage costs.
What is E2B?
E2B is an agent cloud from FoundryLabs, inc. (dba E2B) that gives each AI agent its own isolated machine. According to the vendor, E2B runs the isolated machine an agent works on, while the customer builds and ships the agent itself. Each session runs as a full Linux microVM with a shell, filesystem, browser and network access. E2B is aimed at developers and teams building agents that write and run code, use a computer, run background jobs, or run evaluations and reinforcement learning rollouts.
The product is controlled through an API and SDKs, with npm and PyPI packages for the core sandbox, a Code Interpreter SDK and a Desktop SDK. A sandbox can be paused, resumed, snapshotted and forked. The vendor says every sandbox runs on its own MicroVM runtime built on Firecracker, with dedicated kernels and a custom memory and snapshot layer. Model calls, MCP tools and secrets are handled through the sandbox boundary. The vendor states that the sandbox reaches out under your egress policy, and that secret values are kept in a vault so they never enter the sandbox. E2B also publishes its runtime under the Apache-2.0 license and offers E2B Embed for running the full stack on one node.
Deployment has two main options. E2B Cloud is managed by E2B and offered in US, EU and APAC regions. The other option runs sandboxes inside a customer's AWS, GCP or Azure account, which the home page describes as BYOC. On compliance, the vendor states that E2B is SOC 2 Type II and HIPAA compliant. Pricing is usage-based and billed per second of a running sandbox. The Hobby tier is free with a $100 one-time usage credit, the Pro plan is $150 per month plus usage costs, and Enterprise is custom priced on committed usage.
The free Hobby tier allows sessions up to 1 hour, 10 concurrent sandboxes, and up to 8 vCPUs and 8 GiB RAM per sandbox. Pro allows sessions up to 24 hours and 100 concurrent sandboxes, expandable to 1,100. E2B suits teams that need many isolated agent sessions, and enterprises that want the runtime inside their own cloud. It is less suited to buyers who want a no-code end-user app or flat per-seat pricing, because the product is infrastructure for developers and costs depend on compute size, runtime and concurrency.
E2B key facts
| Product | E2B |
|---|---|
| Made by | FoundryLabs, inc. (dba E2B) |
| Category | MLOps & AI Infrastructure |
| Pricing model | Freemium |
| Starting price | Free Hobby tier; Pro $150/month (+usage costs) |
| Platforms | Web, API, Self-hosted |
| Best for | Small business, Mid-market, Enterprise |
| Website | e2b.dev |
E2B key features
Isolated microVM per session
Every agent session runs in its own Linux microVM with dedicated kernels, according to the vendor. The vendor says sandboxes boot from a snapshot so each session starts quickly. The isolation is intended to safely run untrusted agentic workloads.
Code execution with Code Interpreter
The Code Interpreter SDK adds runCode(), which executes Python or JavaScript inside the sandbox. Charts, tables and images are returned to the calling application. The package is available on npm as @e2b/code-interpreter and on PyPI as e2b-code-interpreter.
Desktop for computer-use agents
The Desktop SDK gives an agent a full graphical Linux environment with a screen, mouse and keyboard. The desktop can be streamed live, and the page shows an XFCE desktop at 1024×768. Packages are available as @e2b/desktop on npm and e2b-desktop on PyPI.
Lifecycle controls
Sandboxes can be paused, resumed, snapshotted and forked. The home page states that paused sandboxes are not billed. Fork is available through the SDK and through a CLI command added in September 2026.
Network policy
Ingress and egress are controlled under your policy, with allow and deny rules for outbound traffic. Sandboxes can expose ports through generated hostnames. DNS server allowlists were added in an October 2026 release.
Secrets handling
The secrets vault keeps keys that an agent can use but never read. E2B Secrets, announced in October 2026, keeps credentials outside the sandbox and injects them into the HTTPS request headers you configure. This lets agents call external services without exposing the key value.
Persistent storage and buckets
Each sandbox has a filesystem that persists, and the home page shows mounted cloud buckets such as s3://acme-data. Files can be written and read through the SDK. This supports agents that need to keep working data between sessions.
Observability and webhooks
E2B provides metrics, logs and signed webhooks for sandboxes. Metrics can be read through sandbox.getMetrics(). Embedded deployments can export OpenTelemetry data, according to the September 2026 release notes.
Cloud or your own cloud
The same SDK and API run on E2B Cloud or inside a customer's AWS, GCP or Azure account. Moving between them is described as a configuration change. E2B Cloud regions are US, EU and APAC.
E2B pricing
| Plan | Price | Billing | Includes |
|---|---|---|---|
| Hobby | Free | Usage costs are separate; no credit card required per vendor | $100 one-time usage credit; sessions up to 1 hour; 10 concurrent sandboxes; up to 8 vCPUs and 8 GiB RAM per sandbox |
| Pro | $150/month | Plus usage costs, billed through Stripe | Sessions up to 24 hours; 100 concurrent sandboxes, expandable to 1,100; custom sandbox CPU and RAM; optional SSO add-on at $300/month |
| Enterprise | Custom | Committed usage with custom billing, plus usage costs; starts at a $2,000/month commit | Multi-day and persistent sessions; tens of thousands of concurrent sandboxes; custom sizes; BYOC deployment; SSO and SCIM included; 500 concurrent sandboxes included at the starting commit |
Pricing model: Freemium · Starting at Free Hobby tier; Pro $150/month (+usage costs) · Free trial: unknown. Check the official pricing page for current prices.
E2B pros and cons
Pros
- Free Hobby tier with a $100 one-time usage credit, though some accounts must verify with a one-time $5 card payment
- Each agent session runs in its own microVM, with snapshot-based fast boot according to the vendor
- Runtime is published under the Apache-2.0 license, and E2B Embed can run the stack on one node
- Vendor states SOC 2 Type II and HIPAA compliance for E2B Cloud
- Billing is per second of a running sandbox, so idle time can cost less than always-on servers
Cons
- Hobby sessions are limited to 1 hour and 10 concurrent sandboxes
- The SSO add-on costs $300 per month on Pro, on top of the $150 base price
- Costs vary with vCPUs, RAM, run hours and concurrency, so an estimate needs the vendor's calculator
- Availability of BYOC is shown inconsistently on the home page
- It is a developer platform that needs SDK integration, so it is not a ready-made end-user app
Who should use E2B?
- Teams building AI agents that write and run code
- Developers prototyping coding or data-analysis agents
- Teams running agent evaluations or reinforcement learning rollouts
- Companies that want agent workloads inside their own AWS, GCP or Azure account
Who might want an alternative
- Buyers looking for a no-code end-user application
- Teams that need sessions longer than 24 hours without moving to Enterprise
- Buyers who want flat per-seat pricing
- Teams that cannot use SDKs and APIs in their stack
E2B use cases
- Turn a prompt into a running app that is served live from E2B
- Run a data analysis agent that ingests many sources and returns a report
- Drive desktop applications with a computer-use agent that streams its screen
- Run agent benchmarks where every agent gets the same machine and is graded side by side
- Run each customer's agent in its own microVM inside your cloud via BYOC
Integrations and platforms
Platforms: Web, API, Self-hosted
Integrations: OpenAI Agents SDK, Claude Code, Codex, Anthropic models, OpenAI models, Open-weight models, MCP servers (200+ available from inside the sandbox), AWS, Google Cloud (GCP), Microsoft Azure, npm SDK, PyPI SDK
E2B FAQs
What is E2B?
E2B is an agent cloud from FoundryLabs, inc. (dba E2B) that runs an isolated Linux machine for each AI agent session. Developers use its API and SDKs to run code, use a desktop, and keep files for agents. The vendor says it can run in E2B Cloud or in your own AWS, GCP or Azure account.
Is E2B free?
E2B has a free Hobby tier with a $100 one-time usage credit, according to the pricing page. Usage costs are separate from the plan price, and the vendor says no credit card is required for Hobby. Some accounts are asked to verify with a one-time $5 card payment, which is added as non-refundable usage credit.
How much does E2B cost?
The Pro plan is $150 per month plus usage costs, billed through Stripe. Usage is charged per second of a running sandbox based on vCPUs and RAM. Enterprise pricing is custom and starts at a $2,000 per month commit, according to the pricing page.
Who is E2B for?
E2B is aimed at developers and teams building AI agents that write code, analyze data, use computers, or run evaluations. The home page names AI labs and startups among its customers and says 94 of the Fortune 100 have signed up. It is an infrastructure product rather than an end-user app.
What integrations does E2B support?
The vendor lists support for the OpenAI Agents SDK, Claude Code and Codex as agent harnesses. Models from Anthropic, OpenAI and open-weight models can be used, and more than 200 MCP servers can be called from inside the sandbox. The runtime works in AWS, GCP and Azure accounts.
Is E2B secure and compliant?
The vendor states that every sandbox runs in its own microVM built on Firecracker with dedicated kernels. E2B says it is SOC 2 Type II and HIPAA compliant, and it publishes a trust center. Secret values are kept in a vault outside the sandbox.
Can E2B run in my own cloud?
Yes, according to the vendor. Enterprise customers can use BYOC to run each agent's sandbox inside their AWS, GCP or Azure account. E2B Embed is also listed as available for running the full stack on one node.
About FoundryLabs, inc. (dba E2B)
Vendor: FoundryLabs, inc. (dba E2B) · Website: e2b.dev