Use this skill when the task should run in an E2B sandbox rather than directly on the OpenClaw host.
This skill requires E2B_API_KEY in the environment.
Configure it in Vault / env before use.
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
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.killExample 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}'
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
~/.openclaw/workspace/.state/e2b-sandboxes.json.references/e2b-notes.md first.Read references/e2b-notes.md when you need:
共 1 个版本