E2B Code Interpreter provides Python and JavaScript/TypeScript SDKs to run AI-generated code in secure sandboxes. It manages sandboxed execution via a JS/TS or Python interface and includes templates and docs.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
E2B Code Interpreter is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.
How it works
The repository offers a JavaScript/TypeScript SDK (@e2b/code-interpreter) and a Python SDK (e2b-code-interpreter) to create a Sandbox, execute code inside the sandbox, and retrieve results. Examples show creating a sandbox and running code snippets, then accessing execution.text for the output.
Getting started
Install the SDKs as shown:
JavaScript / TypeScript
npm i @e2b/code-interpreter
Python
pip install e2b-code-interpreter
Get an API key and set it in the environment as:
E2B_API_KEY=e2b_***
Usage examples for JavaScript/TypeScript:
import { Sandbox } from '@e2b/code-interpreter'
const sbx = await Sandbox.create()
await sbx.runCode('x = 1')
const execution = await sbx.runCode('x+=1; x')
console.log(execution.text) // outputs 2
Usage examples for Python:
from e2b_code_interpreter import Sandbox
with Sandbox.create() as sandbox:
sandbox.run_code("x = 1")
execution = sandbox.run_code("x+=1; x")
print(execution.text) # outputs 2
Recent releases
Latest releases include:
- @e2b/code-interpreter@2.7.0 (2026-07-23): Minor Changes
- eb70a98: Honor the
sandboxUrl/sandbox_urloption and theE2B_SANDBOX_URLenvironment variable when connecting to the Jupyter server, matching the base E2B SDK. Jupyter requests... - @e2b/code-interpreter-template@0.4.6 (2026-07-23): Patch Changes
- 8d51873: Bump
pillowto 12.3.0 to address multiple security vulnerabilities - @e2b/code-interpreter-python@2.9.0 (2026-07-23): Minor Changes
- @e2b/code-interpreter-template@0.4.5 (2026-07-23): Patch Changes
- 623b0ec: Bump
nltkto 3.10.0 to address a security vulnerability - @e2b/code-interpreter-template@0.4.4 (2026-06-22): Patch Changes
- 0ab4def: Bump
jupyter-serverto 2.20.0 to address a security vulnerability
Traction
2371 stars, 220 forks, 19 open issues as of the data.
Behind the repo
Not provided in the excerpt.
Caveats
License: Apache-2.0. Language: Python. Created: 2024-03-11. Last push: 2026-07-29. Open issues: 19.






