AI code-execution sandbox

E2B

E2B is a Firecracker-microVM sandbox that gives AI agents a secure, ~150ms-cold-start environment to run generated code, with pause/resume and filesystem snapshots.

Last verified 2026-07-26

E2B is the SDK-first, security-led leader in the AI sandbox category. Each session is an isolated Firecracker microVM with per-second billing, memory-state pause/resume and snapshots. Its TypeScript and Python SDKs are the cleanest in the category, and it is an official OpenAI Agents SDK provider.

Key specs

IsolationFirecracker microVM
Cold start150ms
Price / vCPU-hr$0.05
Pricing modelPer-second usage + plan
GPUNo
Session limitUp to 24h
PersistencePause/resume with memory state, snapshots
LanguagesPython, JavaScript/TypeScript, any (custom templates)
MCP support
IntegrationsOpenAI Agents SDK, LangChain, Vercel AI SDK
DeploymentManaged cloud (self-host available)
Free tier$100 one-time credit (Hobby)
Pro plan$150/mo
BillingPer second

Strengths

  • Best-in-class TS/Python SDK
  • Strong Firecracker isolation
  • Pause/resume + snapshots
  • Official OpenAI Agents SDK provider

Trade-offs

  • No in-sandbox GPU
  • Pro plan starts at $150/mo

Best for: Teams that want the cleanest SDK and strong microVM isolation for agent code execution.

Head-to-head

Alternatives to E2B

Sources: E2B pricing ↗ · E2B docs ↗

Get pricing for E2B

Tell us what you're building. We'll route you to the right sandbox teams for pricing and a demo — no spam.