Project ◆ Hidden gem

e2b

e2b-dev/e2b · Python · Apache-2.0

Give your agent a disposable Linux sandbox to run untrusted code safely.

E2B spins up microVM sandboxes on demand with a filesystem, shell and package manager, so LLM agents can execute code, install deps and inspect results without touching your host.

78.1 / 100 · Score
★ 14k Stars
+116 30-day growth
5 min Time to first run
Not required API key

Score

Trend 67
Activity 91
Quality 95
Community 73
Relevance 63

Setup at a glance

DeployPip, Npm, Cloud
GPUNo GPU needed
API keyNot required
UI languagesen
Doc languagesen
Install
pip install e2b-code-interpreter

Deep dive

E2B is an open-source secure cloud sandbox for AI code execution: every session gets an isolated, sandboxed filesystem and shell that an agent can run code in without touching your machine.

The SDKs (Python, JavaScript) spin up a sandbox in about 150ms, run arbitrary code inside it, read and write files, and tear it down when the session ends — the same primitive that powers code interpreters and agent tooling.

The server side is open source and can be self-hosted; the hosted service adds Google Cloud and general Linux machine options (via Embed) plus a dashboard and API keys for teams.

Use cases

Back the 'run this code' step of a coding agent
Let users execute snippets in your SaaS safely
Prototype data pipelines without polluting local env

Good for / Not ideal for

Good for

Agent platforms needing code execution
Apps that run user-submitted scripts
Teaching / notebook-style products

Not ideal for

You only need simple eval (use Python's own sandbox)
Air-gapped on-prem without a runner

Trend · 30d