E2B
Open-source cloud sandboxes for code that agents run.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
E2B starts an isolated Linux VM on demand for each agent session, so model-written code, shell commands and file changes happen there instead of on your servers. You drive it from the Python or JavaScript SDK, or use the Code Interpreter SDK to run code cells that keep state between calls. Templates set what a sandbox starts with, a paused sandbox keeps its files and memory, and you can use E2B's cloud or deploy the open-source infrastructure yourself with Terraform.
Best for
Developers adding code execution to an agent who need each run isolated.
Skills it helps with
Learn E2B by doing
- Run AI-generated code in a sandbox
Run model-written Python in a throwaway Docker container, then in an E2B sandbox, with time, memory, network and file limits, and a test suite of hostile code.
Related tools
garak
Scanner that probes LLMs for vulnerabilities such as prompt injection.
Guardrails AI
Python framework of validators that check and correct LLM inputs and outputs.
NeMo Guardrails
NVIDIA's toolkit for programmable input, output and dialogue rails in LLM apps.
PyRIT
Microsoft toolkit for red-teaming generative AI systems.
Cisco Skill Scanner
Open-source Agent Skills scanner using rules, dataflow analysis and an LLM judge.
Lakera
Runtime protection against prompt injection and data leakage, now part of Check Point.