Technology · Agentic → Code Sandbox · Open Core · wiki:deep

e2b

E2B is open-source infrastructure for running AI-generated code in secure isolated cloud sandboxes. Agents start and control sandboxes through JavaScript (e2b) and Python (e2b) SDKs: create a sandbox, run commands, and read stdout. Adjacent packages cover code interpreter (@e2b/code-interpreter / e2b-code-interpreter) and desktop/computer-use (mouse, keyboard, screenshots, streaming). The infra repo documents Terraform self-hosting (AWS and GCP supported; Azure/general Linux listed as incomplete).

Why it matters here

Once an agentic OS gives tools that execute code or shell, isolation is non-optional. E2B is the research default for SDK-first cloud sandboxes wired into agent frameworks, with an OSS path and optional self-host. Prefer Daytona only if the product/SDK fit wins despite its public-repo maintenance shift; prefer Jupyter Enterprise Gateway for remote notebook kernels on enterprise clusters rather than ephemeral agent VMs.

How it works

The agent holds an API key, creates a Sandbox, and issues commands or runCode inside the isolated environment. Optional Desktop SDK launches apps and captures UI. Self-host deploys the E2B infra stack via Terraform when cloud tenancy is unacceptable.

  1. pip install e2b / npm i e2b + E2B_API_KEY.
  2. Sandbox.create() → isolated environment.
  3. commands.run or code-interpreter run_code → stdout/result.
  4. Destroy/context-exit; keep host unreachable.

Related: daytona · jupyter-enterprise-gateway · topics/06-self-coding

Flow

Scroll inside the canvas to pan

When to reach for it

  • Use when: agents must run untrusted code/shell in cloud sandboxes with JS/Python SDKs (and optional interpreter/desktop).
  • Skip when: you only need cluster notebook kernels (jupyter-enterprise-gateway), or a Daytona-specific product path.
  • Prefer instead: self-host E2B infra when compliance blocks SaaS; JEG for Spark/K8s notebook tenancy.

Limits

  • Cloud-by-default: API key + hosted sandboxes unless you invest in Terraform self-host.
  • Self-host maturity: AWS/GCP yes; Azure/generic Linux not complete per README.
  • Privilege: sandbox ≠ permission to act on money/process — still gate tool use.
  • Not the ledger: execution artifacts are evidence, not declared configuration.

Linked from

What we checked

Claims below are backed by science sources on disk.

Product / sandbox SDKs

e2b-dev/E2B · MODERATE

E2B is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud.

Docs positioning

E2B Documentation — What is E2B? · MODERATE

E2B provides isolated sandboxes that let agents safely execute code, process data, and run tools.

SDK usage shape

SDK create + run · MODERATE

When you start the sandbox, it stays alive for 5 minutes by default but you can change it by passing the timeout parameter.

In this research stack

Features and peers linked from the catalog map — not a second product surface.

Features it supports

Same cell

Stack

Document management

No DM vendor crosswalk edges yet.

Source

Primary repo github.com/e2b-dev/E2B · Open Core

technologies/e2b/README.md

Research inventory

9 tags · 7 out · 8 in · 3 artifacts · 1 gaps · 29 corpus docs

Catalog tags

landscape.layer
Agentic
landscape.subcategory
Code Sandbox
license_tag
Open Core
maps.dm
absent
maps.features
5
one_liner
Agentic
review.depth
science
slug
e2b
title
e2b

Artifacts

  • dm_map · absent
  • features_map · present · technologies/e2b/features.md
  • readme · present · technologies/e2b/README.md

Out · alternative_to

Out · maps_to

In · alternative_to

In · in_stack

In · maps_to

Corpus tags

category
Agentic → Code Sandbox
dedication
open-core
feature
browser-computer-use
job-coding
r2-06-self-coding
sandboxing-isolation
wt-tools-actions
kind
map_edge
tech_features
tech_quote
tech_readme
tech_science_source
tech_section
needs_deepen
false
quality
ok
section
Evidence
Features map
GitHub map
How it works
Limits & failure modes
Links
Scientific notes
What it is
When to use / skip
Why it matters here
slug
e2b
source_id
e2b-docs
e2b-github
e2b-sdk-snippet
technology
e2b

Corpus documents (29)

map_edge · 5

  • e2b → browser-computer-use
  • e2b → job-coding
  • e2b → r2-06-self-coding
  • e2b → sandboxing-isolation
  • e2b → wt-tools-actions

tech_features · 1

  • e2b · features

tech_quote · 9

  • e2b · e2b-docs
  • e2b · e2b-docs
  • e2b · e2b-docs
  • e2b · e2b-github
  • e2b · e2b-github
  • e2b · e2b-github
  • e2b · e2b-sdk-snippet
  • e2b · e2b-sdk-snippet
  • … +1 more

tech_readme · 1

  • e2b

tech_science_source · 3

  • e2b · e2b-docs
  • e2b · e2b-github
  • e2b · e2b-sdk-snippet

tech_section · 10

  • e2b · Evidence
  • e2b · Features map
  • e2b · GitHub map
  • e2b · How it works
  • e2b · Limits & failure modes
  • e2b · Links
  • e2b · Scientific notes
  • e2b · What it is
  • … +2 more