E2B runs AI-generated code and agent workloads in isolated microVM sandboxes. You control them through JavaScript or Python SDKs, in E2B's cloud or on your own AWS, GCP or Azure account.
Overview
E2B is open-source infrastructure that gives each AI agent its own isolated machine. Agents can run code, use a shell, filesystem, browser and network, and call tools inside a sandbox that runs as a microVM per session. You start and control sandboxes through a JavaScript/TypeScript SDK or a Python SDK.
Beyond the core sandbox, separate SDKs add a Code Interpreter for running code with runCode, and a Desktop SDK for computer use, covering mouse, keyboard, screenshots, application control and desktop streaming. Sandboxes boot from snapshots and can be paused. The SDK also exposes file writes, port hosting and metrics.
The platform works with any model or agent harness, such as the OpenAI Agents SDK, Claude Code or Codex. Sandboxes can reach model providers, MCP tools and your own data under an egress policy, with environment variables scoped per sandbox. A cookbook of examples with different LLMs and AI frameworks is available.
E2B can be used in its hosted cloud (US, EU and APAC regions) or deployed in your own AWS, GCP or Azure account. The self-hosted runtime is deployed with Terraform, and a general Linux machine option is also supported through the embed deployment guide. Listed use cases include coding agents, data analysis, computer-use agents, reinforcement learning rollouts and agent evaluations.
Key features
- Isolated microVM sandbox per agent session
- JavaScript/TypeScript and Python SDKs
- Code Interpreter SDK for running code
- Desktop SDK for computer use and streaming
- Snapshots, pause and resume of sandboxes
- Per-sandbox environment variables and egress policy
- Sandbox metrics and file APIs
- Self-hosting on AWS, GCP, Azure or Linux via Terraform
Use cases
- Running AI-generated code safely
- Coding agents that build and serve apps
- Computer-use agents driving desktop apps
- Reinforcement learning rollouts
- Parallel agent evaluations and benchmarks