🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?
Claim this page →
code-interpreter
Python & JS/TS SDK for running AI-generated code/code interpreting in your AI app
git clone https://github.com/e2b-dev/code-interpreter

What is E2B?
E2B 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.
Run your first Sandbox
1. Install SDK
JavaScript / TypeScript
npm i @e2b/code-interpreter
Python
pip install e2b-code-interpreter
2. Get your E2B API key
E2B_API_KEY=e2b_***
3. Execute code with code interpreter inside Sandbox
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
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
4. Check docs
Visit E2B documentation.
5. E2B cookbook
Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.
Customizing the sandbox template
Need extra packages or a different runtime? You can build your own Code Interpreter sandbox template. See the template guide for a step-by-step walkthrough of creating, building, and using a custom template (as well as building the production code-interpreter-v1 template).
// compatibility
| Platforms | api |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | Apache-2.0 |
| Pricing | open-source |
| Language | Python |
// faq
What is code-interpreter?
Python & JS/TS SDK for running AI-generated code/code interpreting in your AI app . It is open-source on GitHub.
Is code-interpreter free to use?
code-interpreter is open-source under the Apache-2.0 license, so it is free to use.
What category does code-interpreter belong to?
code-interpreter is listed under uncategorized in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/code-interpreter)
// retro hit counter
[](https://claudeers.com/code-interpreter)
// reviews
// guestbook
// related in Uncategorized / Others
FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Q…
The agent engineering platform.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
100+ AI Agent & RAG apps you can actually run — clone, customize, ship.