E2B

Isolated microVM sandboxes for AI agents, in E2B's cloud or yours

Advanced API
Screenshot of E2B, Isolated microVM sandboxes for AI agents, in E2B's cloud or yours

What is E2B?

E2B is an AI agent builder tool. E2B provides isolated microVM sandboxes where AI agents can run code, browse, use tools and keep files. It runs in E2B's cloud or inside a customer's AWS, GCP or Azure account, through one SDK and API, aimed at teams building coding, data and computer-use agents.

E2B is infrastructure for teams that build AI agents and need somewhere safe for those agents to work. Each agent session gets its own isolated microVM, a full machine where it can run code, use a shell and filesystem, browse, drive a desktop, and reach the network under a policy the developer sets. The company positions itself as the layer underneath the agent: the model, prompts and agent logic stay with the customer, while E2B runs the machine. In practice, a developer creates a sandbox through the SDK, CLI or API, and it boots from a snapshot. From there the agent can write files, run commands, start servers that are exposed on public URLs, and read metrics. Sandboxes can be paused and forked, so long-running or branching work does not have to restart from scratch. Secrets are passed as environment variables scoped to a single sandbox, and model calls and MCP tool calls (200+ servers are mentioned) happen from inside it. The runtime is Apache-2.0 licensed and the company states SOC 2 Type II compliance. The audience is engineering teams building coding agents, data analysis agents, computer-use agents, background-job agents, evaluation harnesses and reinforcement learning pipelines. The homepage cites case studies from companies such as Hugging Face, Manus, Groq, ClickUp and Genspark, and claims more than 100K teams. It works with agent harnesses such as the OpenAI Agents SDK, Claude Code and Codex, or a custom one, and can run in E2B Cloud (US, EU, APAC regions) or inside a customer's own AWS, GCP or Azure account, which matters for regulated data. Among alternatives, E2B competes with self-managed container setups, general cloud VMs and other code-execution sandboxes. Its distinguishing points are the per-session microVM model, the bring-your-own-cloud option and the open-source runtime. It is a developer product rather than an end-user app, so it assumes comfort with SDKs and infrastructure concepts.

How do you use E2B?

  1. 1Create an account
    Sign up in the E2B console to get access to the dashboard and an API key for your sandboxes.
    E2B — Create an account
  2. 2Read the docs and install the SDK
    Open the documentation to pick the SDK or CLI that matches your language and see how sandboxes are created and managed.
    E2B — Read the docs and install the SDK
  3. 3Start a sandbox and run commands
    Create a sandbox from your agent code, then run commands or code in it and read the output back through the API.
    E2B — Start a sandbox and run commands
  4. 4Write files and expose a port
    Use the filesystem API to place files in the sandbox, and start a server whose port is reachable through a public sandbox URL.
    E2B — Write files and expose a port
  5. 5Pause, persist and monitor
    Pause a sandbox to keep its state between runs, and pull metrics to watch resource use as the agent works.
  6. 6Build a custom template
    Follow the template quickstart to prepare a reusable environment so new sandboxes start with your tools already installed.

E2B pros and cons

Pros

  • One isolated microVM per agent session keeps untrusted agent-written code away from other workloads and customersAI
  • Runs in E2B Cloud (US, EU, APAC) or in your own AWS, GCP or Azure account with the same SDK and APIAI
  • Sandboxes can be paused and forked, and boot from snapshots, which suits long-running and branching agent workAI
  • Runtime is Apache-2.0 and the company states SOC 2 Type II, which helps security reviewsAI
  • Covers coding, desktop computer use, evals and RL rollouts, with MCP tool access from inside the sandboxAI

Cons

  • Developer infrastructure only: there is no end-user interface, so non-technical users get little from itAI
  • The homepage shows no prices, so cost at scale (many concurrent sandboxes) has to be checked separatelyAI
  • Bring-your-own-cloud and enterprise features likely involve a sales conversation rather than self-serve signupAI
  • Adds another vendor dependency and integration layer to an agent stack that may already have its own container setupAI

E2B pricing

Pricing

The homepage does not state prices. A dedicated pricing page exists, and enterprise plans (including running in your own cloud) are handled through a contact or demo request.

Learn more

Support

Documentation, a status page, a trust centre, a contact form to talk to an engineer, and demo booking. Enterprise customers are routed through the sales team.

Learn more

Integrations

Works with agent harnesses such as the OpenAI Agents SDK, Claude Code and Codex or your own, calls models from Anthropic, OpenAI and open weights, and reaches 200+ MCP servers from inside the sandbox.

Features

Per-session microVM sandboxes with shell, filesystem, browser, network control and a full desktop option. Pause, fork, snapshot boot, public port URLs, metrics, scoped secrets, MCP tools from inside the sandbox, and deployment in E2B Cloud or your own AWS, GCP or Azure account.

Learn more

Frequently asked questions about E2B

  • Is E2B free?
    E2B has a free plan, with paid plans for more usage or features.
  • How much does E2B cost?
    The homepage does not state prices. A dedicated pricing page exists, and enterprise plans (including running in your own cloud) are handled through a contact or demo request.
  • Does E2B have an API?
    Yes, E2B offers an API.
  • How do you use E2B?
    The walkthrough on this page covers 6 steps: 1. Create an account 2. Read the docs and install the SDK 3. Start a sandbox and run commands 4. Write files and expose a port 5. Pause, persist and monitor 6. Build a custom template.
  • What platforms does E2B support?
    E2B is available on Web App and Linux.
  • What does E2B integrate with?
    Works with agent harnesses such as the OpenAI Agents SDK, Claude Code and Codex or your own, calls models from Anthropic, OpenAI and open weights, and reaches 200+ MCP servers from inside the sandbox.

Status

StatusActive
Views0
Outbound clicks0
Added12/5/2026

Platforms

Web AppLinux

Pricing

FreemiumSubscription