← all repositories
e2b-dev/E2B

Isolated cloud sandboxes built for AI-generated code

E2B provides open-source infrastructure and SDKs for running AI-generated code in secure, isolated cloud sandboxes.

E2B
Velocity · 7d
+12
★ / day
Trend
steady
star history

What it does

E2B is open-source cloud infrastructure that spins up isolated sandboxes for executing AI-generated code. It provides JavaScript and Python SDKs to create sandboxes, run shell commands, and execute code remotely. A separate Code Interpreter package adds convenience methods like runCode() and run_code() for higher-level execution workflows.

The interesting bit

The project assumes AI-written code should never run on your local machine by default, which is a sensible posture when agents are generating bash scripts from natural language prompts. You can also self-host the entire stack on AWS or Google Cloud via Terraform if managed sandboxes violate your threat model.

Key highlights

  • Open-source sandbox infrastructure with JavaScript/TypeScript and Python SDKs
  • Remote command execution and code interpretation in isolated cloud environments
  • Optional Code Interpreter SDK for runCode()/run_code() workflows
  • Self-hostable on AWS and GCP using Terraform
  • Cookbook with integration examples for various LLMs and AI frameworks

Caveats

  • Azure and general Linux machine support are listed but not yet available (shown as unchecked items in the README)
  • The README does not specify the underlying isolation mechanism (containers, microVMs, etc.) or detailed security boundaries

Verdict

Useful if you’re building agents that need to execute generated code without polluting the host environment. Not ready if you require Azure, bare-metal Linux, or detailed documentation on the isolation architecture.

Frequently asked

What is e2b-dev/E2B?
E2B provides open-source infrastructure and SDKs for running AI-generated code in secure, isolated cloud sandboxes.
Is E2B open source?
Yes — e2b-dev/E2B is open source, released under the Apache-2.0 license.
What language is E2B written in?
e2b-dev/E2B is primarily written in Python.
How popular is E2B?
e2b-dev/E2B has 13.1k stars on GitHub and is currently holding steady.
Where can I find E2B?
e2b-dev/E2B is on GitHub at https://github.com/e2b-dev/E2B.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.