---
title: "E2B Open Source"
description: "The Apache-2.0 E2B runtime, SDKs, CLI, code interpreter, desktop sandbox, and open-source agent examples."
url: "https://e2b.dev/open-source"
---

# E2B Open Source

> E2B's core sandbox stack is public under Apache-2.0: SDKs, CLI, runtime, control plane, and Firecracker-based microVM layer.

## Why the stack is open

- **Inspect the isolation boundary:** Security teams can review the code that runs and isolates agent workloads.
- **Self-host the runtime:** Deploy the stack into infrastructure you operate, including AWS or GCP through Terraform.
- **Keep an exit path:** The runtime is not available only as a managed proprietary service.
- **Build in public:** Issues, pull requests, examples, and developer feedback shape the product.

## Main repositories

- [e2b-dev/E2B](https://github.com/e2b-dev/E2B): Python and JavaScript SDKs plus the E2B CLI.
- [e2b-dev/infra](https://github.com/e2b-dev/infra): Orchestrator, control plane, Firecracker runtime, and Terraform deployment.
- [e2b-dev/code-interpreter](https://github.com/e2b-dev/code-interpreter): Execute Python or JavaScript and return charts, tables, images, and other rich results.
- [e2b-dev/desktop](https://github.com/e2b-dev/desktop): Graphical Linux desktops with screen, mouse, keyboard, and a live stream for computer-use agents.
- [e2b-dev/fragments](https://github.com/e2b-dev/fragments): Open-source prompt-to-app example that builds and serves generated applications in sandboxes.
- [e2b-dev/surf](https://github.com/e2b-dev/surf): Open-source computer-use agent running in an E2B desktop sandbox.

## Managed and self-hosted options

The open-source runtime and E2B Cloud use the same product model: an isolated machine per agent session controlled through the E2B API. Use the managed cloud when E2B should operate the infrastructure, BYOC when the data plane must run in your AWS or GCP account, or self-host when your team will operate the full stack.

## Project scale

E2B reports more than 25,000 GitHub stars across its repositories, more than 10 million monthly SDK downloads across npm and PyPI, and more than one billion sandboxes started on the runtime. Live repository counts can change; use GitHub for current figures.

## Start here

- [E2B GitHub organization](https://github.com/e2b-dev)
- [Self-hosting repository](https://github.com/e2b-dev/infra)
- [E2B documentation](https://docs.e2b.dev)
- [Quickstart for the managed API](https://docs.e2b.dev/quickstart)
- [Enterprise deployment options](https://e2b.dev/enterprise.md)
