E2B
Open-source infrastructure for running AI-generated code in secure, isolated cloud sandboxes.
Sources and review
Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.
Agents that need to execute untrusted code, analyse data or use a desktop safely.
You want no account or infrastructure; use needs an E2B API key or your own self-hosted deployment.
About E2B
E2B runs AI-generated code in secure, isolated sandboxes in the cloud, controlled through JavaScript and Python SDKs. Add-on SDKs provide code interpretation with run_code, and desktop computer use with mouse, keyboard, screenshot and streaming APIs. You can use E2B's cloud with an API key or self-host the infrastructure.
E2B is an open-source project written primarily in Python, with 14k stars on GitHub. It was last updated in September 2026.
pip install e2b