E2B Sandbox
/install e2b-sandbox
E2B Sandbox
Use this skill when the task should run in an E2B sandbox rather than directly on the OpenClaw host.
Credentials
This skill requires E2B_API_KEY in the environment.
Configure it in Vault / env before use.
MCPorter-native setup
Register the local MCP server once:
node /home/charl/.openclaw/workspace/skills/e2b-sandbox/scripts/register-mcporter.mjs
This writes an e2b-sandbox entry into:
~/.openclaw/workspace/config/mcporter.json
Then verify it:
mcporter list e2b-sandbox --schema
Primary usage
After registration, prefer MCP tools instead of shell wrappers.
Expected tool names:
e2b-sandbox.create_sandboxe2b-sandbox.list_sandboxese2b-sandbox.get_infoe2b-sandbox.exece2b-sandbox.hoste2b-sandbox.set_timeoute2b-sandbox.snapshote2b-sandbox.kill
Example low-level calls:
mcporter call e2b-sandbox.create_sandbox --args '{"label":"codex-lab","template":"base","timeoutMs":3600000}'
mcporter call e2b-sandbox.exec --args '{"sandbox":"codex-lab","cmd":"python3 --version"}'
mcporter call e2b-sandbox.host --args '{"sandbox":"codex-lab","port":3000}'
Shell helper fallback
A wrapper still exists for debugging or environments where you want direct script access:
/home/charl/.openclaw/workspace/skills/e2b-sandbox/scripts/run-e2b.sh help
Notes
- Sandbox ids and labels are tracked in
~/.openclaw/workspace/.state/e2b-sandboxes.json. - Prefer labels for longer tasks so later steps can refer to the same sandbox cleanly.
- The MCP server is local and uses the E2B Node SDK under the hood.
- Use this helper for one-shot command execution. If a task needs a long interactive PTY session or a specialized template flow, read
references/e2b-notes.mdfirst. - If a task needs a custom image or preinstalled stack, create the sandbox/template first, then snapshot it for reuse.
Read next when needed
Read references/e2b-notes.md when you need:
- state-file behavior
- timeout / snapshot guidance
- port exposure reminders
- when to use MCP tools vs the shell helper
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install e2b-sandbox - 安装完成后,直接呼叫该 Skill 的名称或使用
/e2b-sandbox触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
E2B Sandbox 是什么?
Spin up and manage E2B cloud sandboxes for agent work. Use when an OpenClaw agent needs an isolated remote Linux sandbox instead of the local workspace: crea... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 106 次。
如何安装 E2B Sandbox?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install e2b-sandbox」即可一键安装,无需额外配置。
E2B Sandbox 是免费的吗?
是的,E2B Sandbox 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
E2B Sandbox 支持哪些平台?
E2B Sandbox 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 E2B Sandbox?
由 maverick-software(@maverick-software)开发并维护,当前版本 v1.0.0。