Install the "e2b-code-interpreter" agent skill from https://github.com/agent-sandbox/agent-sandbox/tree/main/skills/e2b-code-interpreter into .claude/skills/e2b-code-interpreter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "e2b-code-interpreter", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "e2b-code-interpreter" agent skill from https://github.com/agent-sandbox/agent-sandbox/tree/main/skills/e2b-code-interpreter into .agents/skills/e2b-code-interpreter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "e2b-code-interpreter", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "e2b-code-interpreter" agent skill from https://github.com/agent-sandbox/agent-sandbox/tree/main/skills/e2b-code-interpreter into .cursor/skills/e2b-code-interpreter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "e2b-code-interpreter", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "e2b-code-interpreter" agent skill from https://github.com/agent-sandbox/agent-sandbox/tree/main/skills/e2b-code-interpreter into .gemini/skills/e2b-code-interpreter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "e2b-code-interpreter", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "e2b-code-interpreter" agent skill from https://github.com/agent-sandbox/agent-sandbox/tree/main/skills/e2b-code-interpreter into .github/skills/e2b-code-interpreter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "e2b-code-interpreter", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "e2b-code-interpreter" agent skill from https://github.com/agent-sandbox/agent-sandbox/tree/main/skills/e2b-code-interpreter into .opencode/skills/e2b-code-interpreter/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "e2b-code-interpreter", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
e2b-code-interpreter
GitHub stars
218
Token cost
~2.3k tokens
SKILL.md length
170 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0
At a glance
Execute code in E2B sandboxes and integrate with LLMs for tool calling.
Works in 4 steps: Define a tool/function that executes… → Send the tool definition to the LLM → When the LLM calls the tool, execute the… → …
Building AI agents that need to run Python/JS code
SKILL.md covers Setup, Running Code, Execution Contexts (Shared… and Charts & Visualizations, plus 3 more sections
Calls npm and pip
What it does
E2b Code Interpreter is an agent skill from agent-sandbox/agent-sandbox. Execute code in E2B sandboxes and integrate with LLMs for tool calling. Use when building AI agents that need to run Python/JS code, analyze data, generate charts, or use LLM function calling with E2B.
Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Structured output and tool calling, Data analysis and Building AI agents. It works with Python. The repository describes itself as: Agent-Sandbox is an easy-to-use, enterprise-grade sandbox platform for AI Agents — letting them securely run untrusted LLM-generated code, Browser use, Computer use, and deploy… The licence is Apache-2.0.
When your agent uses it
Building AI agents that need to run Python/JS code
Generate charts
Use LLM function calling with E2B
Example prompts
“/e2b-code-interpreter”
Requirements
Python 3
Node.js
Workflow steps
4 steps, taken from the first numbered list in SKILL.md.
1Define a tool/function that executes code in an E2B sandbox
2Send the tool definition to the LLM
3When the LLM calls the tool, execute the code in the sandbox
4Return execution results to the LLM for interpretation
What it can do on your machine
Read from SKILL.md and the folder at commit 6f7b273. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Shell commands in SKILL.md call:
npm
pip
From the folder's file list and the shell code blocks in SKILL.md.
Network
No URLs in SKILL.md. Its commands use npm and pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
E2b Code Interpreter loads about 2.3k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 170 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~56
When it runs· the whole SKILL.md, loaded when a task matches
~2.3k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/e2b-code-interpreter/SKILL.md (or your agent's skills folder).
name
e2b-code-interpreter
description
Execute code in E2B sandboxes and integrate with LLMs for tool calling. Use when building AI agents that need to run Python/JS code, analyze data, generate charts, or use LLM function calling with E2B.
import Anthropic from '@anthropic-ai/sdk'
import { Sandbox } from '@e2b/code-interpreter'
const anthropic = new Anthropic()
const sandbox = await Sandbox.create()
const response = await anthropic.messages.create({
model: 'claude-sonnet-4-5-20250929',
max_tokens: 1024,
tools: [{
name: 'execute_python',
description: 'Execute Python code in a sandbox',
input_schema: {
type: 'object',
properties: {
code: { type: 'string', description: 'Python code to execute' },
},
required: ['code'],
},
}],
messages: [{ role: 'user', content: 'Calculate the first 20 primes' }],
})
// Handle tool use
for (const block of response.content) {
if (block.type === 'tool_use') {
const execution = await sandbox.runCode(block.input.code)
console.log(execution.text)
}
}
python
import anthropic
from e2b_code_interpreter import Sandbox
client = anthropic.Anthropic()
sandbox = Sandbox.create()
response = client.messages.create(
model="claude-sonnet-4-5-20250929",
max_tokens=1024,
tools=[{
"name": "execute_python",
"description": "Execute Python code in a sandbox",
"input_schema": {
"type": "object",
"properties": {
"code": {"type": "string", "description": "Python code to execute"},
},
"required": ["code"],
},
}],
messages=[{"role": "user", "content": "Calculate the first 20 primes"}],
)
for block in response.content:
if block.type == "tool_use":
execution = sandbox.run_code(block.input["code"])
print(execution.text)
Data Analysis Workflow
Upload data, prompt the LLM to generate analysis code, execute in sandbox, extract results.
typescript
import { Sandbox } from '@e2b/code-interpreter'
const sandbox = await Sandbox.create()
// 1. Upload data
await sandbox.files.write('/home/user/data.csv', csvContent)
// 2. Run analysis code (generated by LLM or hand-written)
const execution = await sandbox.runCode(`
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('/home/user/data.csv')
print(df.describe())
plt.figure(figsize=(10, 6))
df.plot(kind='bar')
plt.tight_layout()
display(plt.gcf())
`)
// 3. Get results
console.log(execution.text) // Statistical summary
const chart = execution.results[0].png // Base64 chart image
python
from e2b_code_interpreter import Sandbox
sandbox = Sandbox.create()
# 1. Upload data
sandbox.files.write("/home/user/data.csv", csv_content)
# 2. Run analysis
execution = sandbox.run_code("""
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('/home/user/data.csv')
print(df.describe())
plt.figure(figsize=(10, 6))
df.plot(kind='bar')
plt.tight_layout()
display(plt.gcf())
""")
# 3. Get results
print(execution.text)
chart = execution.results[0].png
Python Context Manager
python
from e2b_code_interpreter import Sandbox
# Sandbox is automatically killed when the block exits
with Sandbox.create() as sandbox:
execution = sandbox.run_code("print('Hello')")
print(execution.text)
E2b Code Interpreter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
E2b Code Interpreter compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
E2b Code Interpreter this skillagent-sandbox/agent-sandbox
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent…
Patterns and tested examples for building agents with Pydantic AI: tools, capabilities, structured output, dependency injection, hooks, YAML specs, streaming and testing.
Design and verify tools that AI agents can actually use — for any framework or language (MCP servers, LangChain/LangGraph, function-calling, raw JSON schema; TypeScript, Python, or otherwise).
Deploy a generated project (one process or several) to agent-sandboxes with scale-to-zero: idle sandboxes pause and auto-resume (process restarted) on the next HTTP request.
Execute code in E2B sandboxes and integrate with LLMs for tool calling. E2b Code Interpreter is an agent skill from agent-sandbox/agent-sandbox. Execute code in E2B sandboxes and integrate with LLMs for tool calling.
When should I use E2b Code Interpreter?
E2b Code Interpreter fits situations like: building AI agents that need to run Python/JS code; generate charts; use LLM function calling with E2B.
How do I install E2b Code Interpreter in Claude Code?
Run `npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a claude-code`. Or copy the skill folder (skills/e2b-code-interpreter in agent-sandbox/agent-sandbox) into .claude/skills/e2b-code-interpreter in your project. Claude Code loads it when a task matches its description.
How do I install E2b Code Interpreter in Codex?
Run `npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a codex`. Or copy the skill folder (skills/e2b-code-interpreter in agent-sandbox/agent-sandbox) into .agents/skills/e2b-code-interpreter in your project. Codex loads it when a task matches its description.
Can I use E2b Code Interpreter in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agent-sandbox/agent-sandbox --skill e2b-code-interpreter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/e2b-code-interpreter, .gemini/skills/e2b-code-interpreter, .github/skills/e2b-code-interpreter and .opencode/skills/e2b-code-interpreter in your project.
What does E2b Code Interpreter need to run?
Going by SKILL.md and its folder, E2b Code Interpreter needs the command-line tools its instructions call (npm and pip). Our summary lists: Python 3; Node.js.
Does E2b Code Interpreter access the network?
SKILL.md contains no URLs. Its commands use npm and pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Is E2b Code Interpreter safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
What licence does E2b Code Interpreter use?
E2b Code Interpreter is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does E2b Code Interpreter use?
About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
What are the alternatives to E2b Code Interpreter?
Skills that share tags, products or a category with E2b Code Interpreter: Google Agents CLI Adk Code (pifferologo/cloud-agents-cli, 129 stars), Ag2 Overview (ag2ai/build-with-ag2, 252 stars), Building Pydantic AI Agents (docling-project/docling, 68k stars) and LangGraph Decision Models (langchain-ai/langchain-skills, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains E2b Code Interpreter?
agent-sandbox (a GitHub organization) maintains it in agent-sandbox/agent-sandbox, which has 218 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 20, 2026.
Source: agent-sandbox/agent-sandbox on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.