AI & Machine Learning · AI Development Platforms
E2B
Isolated sandboxes for running AI-generated code
It targets developers building AI agents and applications that need controlled execution environments. The Apache-2.0 stack includes SDKs, a CLI, runtime, control plane, and Firecracker layer, while hosted Hobby, Pro, and Enterprise plans are also available.
Key facts
- License
- Apache-2.0
- Main language
- Python, JavaScript, TypeScript
- Maintainer
- E2B
- Latest release
- e2b 2.58.0, October 20, 2026
- GitHub stars
- 14.5k, October 2026
- Hosted option
- Hobby $0/month, Pro $150/month plus usage, Enterprise custom
What E2B is
E2B runs AI-generated code inside isolated cloud sandboxes for developers building agents and applications that need controlled execution. The repository was created on March 4, 2023, and GitHub reports about 14.5k stars as of October 2026. E2B maintains the project. Its published stack includes Python and JavaScript or TypeScript SDKs, a command-line interface, runtime components, a control plane, and a Firecracker microVM layer. The project offers hosted plans alongside its Apache-2.0 stack. E2B does not publish a contributor count or funding figure in the listed project documentation. The star count therefore indicates repository interest at a dated point, while staffing and financing remain unspecified.
How it works
A typical workflow begins when an application creates a sandbox through an SDK or the CLI, then runs commands or code inside that environment. Python and JavaScript or TypeScript SDKs provide language-specific integration paths for agent builders. The platform suits applications that need an agent to inspect files, execute programs, or interact with a virtual desktop without placing generated code directly on the application host. The documented features focus on execution control rather than general application hosting.
Architecture and recent releases
E2B combines Python and JavaScript or TypeScript SDKs with a CLI, runtime, control plane, and Firecracker microVM layer. E2B Embed documents Docker Compose, Terraform on AWS or GCP, and Kubernetes deployment paths, while requiring Linux x86-64 hosts with KVM. The open-source page lists BYOC support for AWS, GCP, and Azure. Release listings show e2b 2.58.0 and 2.57.0 on October 20, 2026, indicating continued activity during 2026. These options let teams choose hosted or infrastructure-managed execution, but self-hosting involves provisioning compatible hosts and operating the runtime.
License and pricing
The Apache-2.0 license permits commercial use, modification, and redistribution subject to its conditions. E2B offers hosted service alongside the stack. Its Hobby plan costs $0 per month and includes one-time $100 credits, 20 concurrent sandboxes, one hour of continuous runtime, 8 vCPUs, 8 GiB of memory, and 10 GiB of disk. Pro costs $150 per month plus usage, with 100 concurrent sandboxes, 24-hour runtime, and 20 GiB of disk. Published compute rates are $0.000014 per vCPU-second and $0.0000045 per GiB-second, with storage included. Enterprise pricing is custom, with a published $3,000 monthly minimum. The deployment path avoids mandatory hosted billing.
Limitations and how it compares
E2B’s main limitation is operational complexity because the complete self-hosted runtime requires Linux x86-64 hosts with KVM. Hosted pricing combines a subscription or credits with usage, so costs depend on runtime and memory consumption. Compared with Jupyter Kernel Gateway, E2B offers a more productized sandbox and agent-oriented API. Compared with Modal, it offers an open-source runtime path rather than only a hosted execution service. Compared with Docker, it adds sandbox lifecycle APIs and a microVM layer for this use case.
Main features
- Isolated Sandboxes. Runs AI-generated code in isolated cloud sandboxes designed for controlled execution outside the application host.
- Code Interpreter. Provides APIs for running commands and code within managed sandbox environments while keeping execution separate from the calling application.
- Desktop APIs. Offers desktop and computer-use APIs for applications that need agents to interact with virtual graphical environments.
- .
- Lifecycle Controls. Provides controls for creating, managing, and ending sandbox sessions through supported SDKs and their lifecycle operations.
- Multi-language SDKs. Publishes Python and JavaScript or TypeScript SDKs, plus a command-line interface for integration and administration.
- BYOC Deployment. Supports deployment on AWS, GCP, and Azure through the open-source stack and E2B Embed configuration paths.
Self-hosting E2B
Self-hosting the complete E2B runtime requires more than installing the Python or JavaScript SDK. E2B Embed documents Docker Compose, Terraform on AWS or GCP, and Kubernetes deployment paths. The deployment requires Linux x86-64 with KVM, and BYOC support is listed for AWS, GCP, and Azure. No minimum CPU, memory, or storage configuration is published. The main repository contains SDKs and related components, while the runtime is separate. Operators should use runtime documentation for installation and plan their own upgrade, image, infrastructure, and sandbox-data backup procedures.
Strengths
- The Apache-2.0 license permits commercial use and modification under its license conditions.
- Python and JavaScript or TypeScript SDKs cover common application integration paths.
- Firecracker microVMs provide the documented isolation layer for sandbox execution.
- Hosted and BYOC deployment options support different infrastructure preferences.
Drawbacks
- The full self-hosted runtime requires Linux x86-64 hosts with KVM.
- Hosted pricing combines plan charges, credits, and usage-based compute rates.
- The SDK repository is separate from the complete self-hosted runtime.
What teams replace with it
Teams usually evaluate E2B when they want to move off Modal, Docker.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to E2B
- Jupyter Kernel Gateway
- Kubernetes Jobs
- Firecracker
- Modal
Frequently asked questions
Is E2B free?
E2B has an Apache-2.0 stack and a hosted Hobby plan priced at $0 per month. The Hobby plan includes one-time $100 credits, 20 concurrent sandboxes, one hour of continuous runtime, 8 vCPUs, 8 GiB of memory, and 10 GiB of disk. Hosted use beyond included credits follows published usage pricing, while Pro and Enterprise plans have separate terms.
Can businesses use E2B commercially?
Yes. E2B uses the Apache-2.0 license, which permits commercial use, modification, and redistribution subject to its conditions. E2B also sells hosted Pro and Enterprise offerings. Pro is listed at $150 per month plus usage, while Enterprise pricing is custom with a published $3,000 monthly minimum. Teams should review the license text and commercial plan terms for their deployment.
How do you self-host E2B, and what does it require?
E2B Embed documents Docker Compose, Terraform on AWS or GCP, and Kubernetes deployment paths. The deployment requires Linux x86-64 with KVM. BYOC support is listed for AWS, GCP, and Azure. No minimum hardware configuration is published. The complete runtime is separate from the main SDK repository, so operators should use runtime deployment documentation.
How does E2B compare with Modal?
E2B and Modal both provide execution environments for applications that need to run code outside their primary process. E2B publishes SDK, runtime, control plane, and Firecracker components, plus E2B Embed and BYOC deployment options. Modal is a proprietary hosted alternative. Choose E2B when an open-source or deployable runtime matters, and choose Modal when its hosted operating model fits better.
Does E2B keep generated code isolated?
E2B is designed to run AI-generated code inside isolated cloud sandboxes. Isolation reduces direct execution on an application host, but teams remain responsible for configuring access, handling secrets, reviewing generated code, and applying their own security controls.
Similar projects to compare
- ACI.devApache-2.0ACI.dev is an Apache-2.0 platform from Aipotheosis Labs for connecting AI agents to more than 600 SaaS integrations. It targets developers building agent products with SDKs, a unified MCP server, OAuth, secrets, permissions, and tool discovery. A managed service exists at aci.dev, but published product pages do not list hosted pricing.
- AgentOSApache-2.0AgentOS is a Python toolkit for building, running, tracking, and sharing reinforcement learning agents through the Python Component System. It targets researchers and developers who need explicit dependencies, virtual environments, and experiment runs. AgentOS and PCS use Apache-2.0. Documentation describes a public registry, but no paid hosted AgentOS service is listed.
- AgnoApache-2.0Agno is a Python SDK and AgentOS runtime for building, serving, and managing agents, teams, and workflows. The runtime is Apache-2.0 licensed and self-hostable. A hosted control plane starts at $150 per month for one live connection and three team seats. This provides a concise description of its development components, runtime model, licensing, deployment option, and hosted pricing.
- BeamAGPL-3.0Beam is an open-source runtime for serverless AI workloads, including GPU inference, sandboxes, functions, and background jobs. Beta9 uses AGPL-3.0 and supports self-hosting, while Beam Cloud provides managed compute, dashboards, billing, and hosted services. The hosted product bills CPU, memory, and GPUs by usage, with published rates for several machine types.
- BifrostApache-2.0Bifrost is an Apache-2.0 Go gateway for applications that need one OpenAI-compatible API across more than 20 model providers. It supports routing, failover, budgets, caching, observability, and MCP controls. The free OSS edition is self-managed, while Maxim offers a custom-priced Enterprise edition with a 14-day trial.
- BotpressMITBotpress is a TypeScript platform for building AI agents with Studio, SDKs, integrations, knowledge bases, tables, and helpdesk workflows. The current repository uses the MIT license, while the former v12 product used AGPL-3.0 and is sunset for new deployments. Botpress Cloud provides the hosted service, with a free tier and paid plans starting at $150 per month when billed annually.
Sources
- E2B repository and README
- E2B license
- E2B releases
- E2B open-source deployment page
- E2B billing documentation
- E2B pricing
Last updated 2026-10-22.