e2b-sandbox — Claude Code skill: what it does, how to install
e2b-sandbox executes AI-generated code in isolated cloud VMs with resource monitoring, process streaming, and multiple language runtimes.
no license 2 installs updated 2025-11-13
npx skills add padak/ng_component --skill e2b-sandbox -a claude-codeWhat e2b-sandbox does
This skill guides coding agents on orchestrating secure cloud micro-VMs using the E2B SDK. Instances spin up in roughly 150 milliseconds, offering an isolated filesystem with either 1GB on the Hobby tier or 5GB on Pro. The agent learns how to run scripts across Python, JavaScript, TypeScript, and Bash while capturing standard outputs, logs, and generated visual artifacts.
It covers the entire VM lifecycle: setting execution deadlines, pausing instances, inspecting metadata, and running shell commands in the background with real-time output streaming. The skill also details telemetry handling, including querying CPU, memory, and disk utilization snapshots collected every few seconds.
Running code and tracking lifecycle events via the HTTP endpoint demands an E2B_API_KEY. Without it, the client cannot authenticate against the cloud infrastructure.
What it helps with
- execute untrusted AI-generated code inside disposable cloud VMs
- run TypeScript and JavaScript snippets with top-level await outside your host machine
- stream terminal outputs from long-running background tasks in real time
- track CPU, RAM, and disk consumption across active sandbox environments
Example prompts for the agent
- Create an E2B sandbox with a 10-minute timeout and execute this Python script
- Run this TypeScript snippet inside an isolated environment and print the output
- Fetch the latest CPU and memory metrics for this active E2B sandbox instance
How to install e2b-sandbox
1Skills CLI (Vercel)
npx skills add padak/ng_component --skill e2b-sandbox -a claude-code2Manually: put the files in place
~/.claude/skills/e2b_skill/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/e2b_skill/
1Skills CLI (Vercel)
npx skills add padak/ng_component --skill e2b-sandbox -a codex2Manually: put the files in place
.agents/skills/e2b_skill/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add padak/ng_component --skill e2b-sandbox -a cursor2Manually: put the files in place
.cursor/skills/e2b_skill/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install padak/ng_component .claude/skills/e2b_skill2Manually: put the files in place
.github/skills/e2b_skill/SKILL.md1Skills CLI (Vercel)
npx skills add padak/ng_component --skill e2b-sandbox -a gemini-cli2Platform CLI
gemini skills install https://github.com/padak/ng_component --path .claude/skills/e2b_skillManually: put the files in place
.devin/skills/e2b_skill/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add padak/ng_component --skill e2b-sandbox -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about e2b-sandbox
How to install e2b-sandbox in Claude Code?
Run npx skills add padak/ng_component --skill e2b_skill -a claude-code. The skill will be available at ~/.claude/skills/e2b_skill/SKILL.md.
What execution runtimes are supported?
The environment natively supports Python, JavaScript, TypeScript with top-level await, and Bash commands.
What is the default sandbox lifetime?
Each sandbox defaults to a 5-minute timeout, though you can adjust it upon creation or update it dynamically at runtime.