E2B is open-source infrastructure for running AI-generated code inside secure, isolated cloud sandboxes. It is aimed at developers building AI applications and agents that need to execute untrusted or model-produced code without exposing their own systems.
Sandboxes are started and controlled through JavaScript/TypeScript and Python SDKs: create a sandbox, run shell commands, and read their output. A companion Code Interpreter SDK adds a runCode/run_code path for executing code and capturing results directly. The infrastructure can also be self-hosted via Terraform, with support for AWS and Google Cloud (Azure and generic Linux are listed as not yet supported).
