Core E2B SDK knowledge — correct imports, namespacing, terminology, and API patterns.

Apache-2.0Auto-check passedProductivity & Automation

Install E2b

skills CLI
$ npx skills add agent-sandbox/agent-sandbox --skill e2b -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agent-sandbox/agent-sandbox e2b --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agent-sandbox/agent-sandbox.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/e2b .claude/skills/e2b && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
e2b
GitHub stars
218
Token cost
~732 tokens
SKILL.md length
238 words
Files
3 (incl. references)
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Core E2B SDK knowledge — correct imports, namespacing, terminology, and API patterns.

  • Productivity & Automation work in your project
  • SKILL.md covers Two SDK Packages, Authentication, Critical: Correct Namespacing and Critical: Sandbox Creation, plus 3 more sections
  • Needs E2B_API_KEY

What it does

E2b is an agent skill from agent-sandbox/agent-sandbox. Core E2B SDK knowledge — correct imports, namespacing, terminology, and API patterns. Activates automatically when working with E2B sandboxes, templates, or code execution.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/api-reference.md` and `references/common-mistakes.md`).

It sits in Productivity & Automation. It works with Model Context Protocol, Git and 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

  • Productivity & Automation work in your project

Example prompts

  • “/e2b”

Requirements

  • Python 3
  • A credential in E2B_API_KEY

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • E2B_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

E2b loads about 732 tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 238 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~732
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

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.

SKILL.md

The full file from agent-sandbox/agent-sandbox at commit 6f7b273, republished under its Apache-2.0 licence (© agent-sandbox). 238 words, ~732 tokens.

Download SKILL.mdSave it as .claude/skills/e2b/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
e2b
description
Core E2B SDK knowledge — correct imports, namespacing, terminology, and API patterns. Activates automatically when working with E2B sandboxes, templates, or code execution.
user-invocable
false

E2B SDK — Core Knowledge

E2B provides sandboxes — secure, isolated Linux environments purpose-built as an AI agent runtime. Agents use sandboxes to safely execute code, run commands, manage files, and interact with git repositories.

Two SDK Packages

PackageJS/TS importPython importUse when
Base SDKimport Sandbox from 'e2b'from e2b import SandboxTemplates, MCP gateway, sandbox lifecycle only
Code Interpreterimport { Sandbox } from '@e2b/code-interpreter'from e2b_code_interpreter import SandboxCode execution with runCode()/run_code() + all base features

Default choice: Use the Code Interpreter package — it includes everything from the base SDK plus code execution. Only use the base e2b package when you specifically need MCP gateway or don't need runCode().

Authentication

Set E2B_API_KEY environment variable or pass apiKey/api_key to SDK methods.

Critical: Correct Namespacing

All sandbox operations use namespaced methods:

NamespaceExample (JS)Example (Python)
sandbox.commandssandbox.commands.run('ls')sandbox.commands.run('ls')
sandbox.filessandbox.files.read('/path')sandbox.files.read('/path')
sandbox.gitsandbox.git.clone(url, { path })sandbox.git.clone(url, path=path)

WRONG: sandbox.run(), sandbox.read(), sandbox.clone() — these do NOT exist.

Critical: Sandbox Creation

Use Sandbox.create() — a static factory method. NEVER use new Sandbox() or Sandbox().

typescript
// ✅ Correct
const sandbox = await Sandbox.create()

// ❌ Wrong — constructor does not create a sandbox
const sandbox = new Sandbox()
python
# ✅ Correct
sandbox = Sandbox.create()

# ❌ Wrong — constructor does not create a sandbox
sandbox = Sandbox()

Critical: Timeout Units

LanguageUnitParameter nameExample
JavaScript/TypeScriptMillisecondstimeoutMsSandbox.create({ timeoutMs: 60_000 })
PythonSecondstimeoutSandbox.create(timeout=60)

Terminology

  • Use "sandbox" or "E2B sandbox"
  • NEVER say "code interpreter sandbox", "ephemeral", "short-lived", or "cloud VM"
  • E2B is an "AI agent runtime", not a "cloud provider" or "VM service"
  • The main entity is Sandbox, templates are Template

Reference Files

© agent-sandbox, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/e2b of agent-sandbox/agent-sandbox.

  • SKILL.md
  • references/api-reference.md
  • references/common-mistakes.md

Open the folder on GitHubat commit 6f7b273

Compare with similar skills

E2b 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
E2b this skillagent-sandbox/agent-sandbox218—~732Automated safety check: PassApache-2.0
OpenStoryline Install HelperFireRedTeam/FireRed-OpenStoryline3.5k—~1.5kAutomated safety check: NotesApache-2.0
Repo Repairoaslananka/kicad-mcp-pro119—~581Automated safety check: PassMIT
Setup MedsciAperivue/medsci-skills329—~960Automated safety check: PassMIT
Skyvern Browser AutomationSkyvern-AI/skyvern23k—~1.9kAutomated safety check: PassAGPL-3.0
Browser MCP Agentantibrow/anti-detect-browser-skills9141 repos~4.2kAutomated safety check: WarnMIT

Similar skills

  • OpenStoryline Install Helper

    FireRedTeam/FireRed-OpenStoryline

    Installs, repairs and starts a local source checkout of FireRed-OpenStoryline, from prerequisites and a venv to resources, config and the MCP and web servers.

    3.5k GitHub stars~1.5k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Repo Repair

    oaslananka/kicad-mcp-pro

    A skill your agent uses for maintainer-requested pull request repairs in kicad-mcp-pro; maps changes to repository-native validation gates and safety constraints.

    119 GitHub stars~581 tokensUpdated today
    DevelopmentAuto-check passed
  • Setup Medsci

    Aperivue/medsci-skills

    A skill your agent uses when a skill fails for a missing tool or the environment needs checking.

    329 GitHub stars~960 tokensUpdated 2 days ago
    Research & ScienceAuto-check passed
  • Skyvern Browser Automation

    Skyvern-AI/skyvern

    Automates websites with Skyvern's AI browser agent to fill forms, extract data, download files, log in and run multi-step workflows through SDKs, REST, MCP or a CLI.

    23k GitHub stars~1.9k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Browser MCP Agent

    antibrow/anti-detect-browser-skills

    Give an AI agent its own real browser over MCP tool calls - launch, navigate, click, fill, screenshot, extract text, run JS - with a kernel-level real-device fingerprint and a persistent profile, so…

    914 GitHub starsUsed in 1 repo~4.2k tokens
    Productivity & AutomationAuto-check: warnings
  • Soul Interview

    ldbumble/taskuary

    Conduct a seven-question adaptive interview and turn the answers into Taskuary's SOUL.md.

    136 GitHub stars~1.4k tokensUpdated today
    Productivity & AutomationAuto-check passed

More from agent-sandbox/agent-sandbox

  • E2b Sandbox

    agent-sandbox/agent-sandbox

    Create, manage, and use E2B sandboxes — run commands, manage files, use git, persist state, and configure networking.

    218 GitHub stars~2.6k tokensUpdated 17 days ago
    Auto-check passed
  • AI Deploy

    agent-sandbox/agent-sandbox

    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.

    218 GitHub stars~3k tokensUpdated 17 days ago
    Auto-check: notes
  • E2b Code Interpreter

    agent-sandbox/agent-sandbox

    Execute code in E2B sandboxes and integrate with LLMs for tool calling.

    218 GitHub stars~2.3k tokensUpdated 17 days ago
    Auto-check passed

Questions about E2b

What does E2b do?

Core E2B SDK knowledge — correct imports, namespacing, terminology, and API patterns. E2b is an agent skill from agent-sandbox/agent-sandbox. Core E2B SDK knowledge — correct imports, namespacing, terminology, and API patterns.

When should I use E2b?

E2b fits situations like: productivity & Automation work in your project.

How do I install E2b in Claude Code?

Run `npx skills add agent-sandbox/agent-sandbox --skill e2b -a claude-code`. Or copy the skill folder (skills/e2b in agent-sandbox/agent-sandbox) into .claude/skills/e2b in your project. Claude Code loads it when a task matches its description.

How do I install E2b in Codex?

Run `npx skills add agent-sandbox/agent-sandbox --skill e2b -a codex`. Or copy the skill folder (skills/e2b in agent-sandbox/agent-sandbox) into .agents/skills/e2b in your project. Codex loads it when a task matches its description.

Can I use E2b 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 -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, .gemini/skills/e2b, .github/skills/e2b and .opencode/skills/e2b in your project.

What does E2b need to run?

Going by SKILL.md and its folder, E2b needs credentials named E2B_API_KEY. Our summary lists: Python 3; A credential in E2B_API_KEY.

Does E2b access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is E2b 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 use?

E2b 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 use?

About 732 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.1k tokens, read only when the agent opens those files.

What are the alternatives to E2b?

Skills that share tags, products or a category with E2b: OpenStoryline Install Helper (FireRedTeam/FireRed-OpenStoryline, 3.5k stars), Repo Repair (oaslananka/kicad-mcp-pro, 119 stars), Setup Medsci (Aperivue/medsci-skills, 329 stars) and Skyvern Browser Automation (Skyvern-AI/skyvern, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains E2b?

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.