E2B
Isolated cloud sandboxes for running AI-generated code
What it is
Infrastructure and SDKs for starting isolated sandboxes where agents can execute code and shell commands. The JavaScript and Python SDKs create a sandbox, run commands in it and return output; companion packages add a code interpreter and a desktop environment. For developers who need a safe place for agent-written code.
Good for
- Execute model-written code away from your host
- Give an agent a code interpreter
- Run shell commands in a throwaway environment
Install or run
pip install e2bCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
An E2B account and API key
Sources
- https://github.com/e2b-dev/E2B (project README, read 10 Nov 2026)
- https://api.github.com/repos/e2b-dev/E2B (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.