AI GLOSSARY · CODING AGENTS AND CODING TOOLS
E2B (sandboxes)
Definition
E2B is open-source infrastructure, also offered as a cloud service, for running AI-generated code in isolated sandboxes. Its documentation says the sandboxes let agents execute code, process data and run tools, and it provides SDKs to start and manage them.
Also called: E2B, E2B sandbox, e2b dev, E2B code interpreter, e2b ai sandbox.
In plain language
When an AI agent writes code, running that code on your own computer can be risky, because a mistake could delete files or leak data. E2B offers a separate, disposable computer in the cloud where the code can run instead. The agent sends its code there, gets the result back, and the sandbox, which is a walled-off space, can be thrown away afterwards. It suits developers who build agents that run code. It is a tool you call from your own program, not an app to chat with. A sandbox limits the damage but does not make the code correct, and you must still decide what the sandbox may reach, such as the internet or your files.
Technical definition
The E2B README describes it as open-source infrastructure that runs AI-generated code in secure isolated sandboxes in the cloud, with JavaScript and Python SDKs to start and control sandboxes, and lists an Apache-2.0 licence. The documentation says the sandboxes let agents execute code, process data and run tools. A sandbox, in the general security sense, is a mechanism for separating running programs, intended to stop faults and security holes from spreading. An agent calls the SDK, which creates a sandbox, sends code or commands to it and returns the output.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Guide · Illustrative, not executed
Autonomous AI Agents: Risks and Guardrails
- What you see
- What goes wrong when an AI agent acts unattended, and the limits, approvals and stopping rules that contain it.
- Why it exercises the concept
- Running agent-written code in an isolated sandbox is one containment measure. The guide covers the wider set of limits and approvals around it.
Skill by Skill Almanac · Illustrative, not executed
coding-agent-guardrails 60/100 · grade CScored · Method v0.2 · How we score
- What you see
- A pre-action checklist for coding agents plus a read-only audit of a repo's guardrail setup.
- Why it exercises the concept
- A sandbox is one guardrail among several. This checklist covers the others, such as what an agent may do before it acts.
Coding tool · Illustrative, not executed
Claude Code
- What to try
/permissions- What you see
- Claude Code shows the permission rules that decide which commands and file edits it may run.
- Why it exercises the concept
- It is the local counterpart to a remote sandbox: a coding agent that runs commands on your machine is governed by its permission rules. E2B is a different product and does not configure this.
How it shows up when you use agents
E2B appears when an agent you build needs to run code it wrote. Instead of executing that code on a laptop or server you care about, the agent's program asks E2B to start a sandbox, sends the code, and reads the result. A sandbox is the general idea; E2B is one product that provides it as a cloud service. It supports code execution for agents such as a data analysis assistant, and it is aimed at developers writing their own agent, not at someone using a coding tool as it comes.
What breaks when it is misunderstood: people treat a sandbox as a full safety answer. The sandbox contains the code, but an agent can still be steered by a malicious instruction hidden in a web page or file, see Prompt injection. If the sandbox is allowed to reach the internet or hold your credentials, those become exposed.
A next action: list what the sandbox needs to reach and give it nothing more, keep secrets out of it, and read the risks and guardrails guide before letting an agent run unattended.
Common confusions
- E2B versus a sandbox. A sandbox is the general mechanism for separating running programs. E2B is a specific open-source product, also run as a cloud service, that provides sandboxes for agents.
- E2B versus a local coding agent. A tool such as Claude Code runs commands on your machine under its permission rules. E2B is a separate service you call from your own code.
- Isolated versus correct. Isolation limits the damage from bad code. It does not check that the code does what you wanted.
- Myth. A sandbox is a safe place for secrets. The sandbox holds whatever you put in it, so keep credentials out unless the task requires them.
Related terms
Terms that mention E2B (sandboxes)
1 terms mention this one
More in Coding agents and coding tools
Sources
- E2B Documentation, E2B (accessed 2026-11-24)
- e2b-dev/E2B (README), GitHub (E2B) (accessed 2026-11-24)
- Sandbox (computer security), Wikipedia (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .
This entry is still in review, so it is not listed in search engines yet.
Change log (2)
- : First version.
- : Verifier pass: applied defect-list corrections.