Hermes Agent
Run Hermes Agent in a sandbox from the prebuilt hermes template. Its terminal and file tools work on the sandbox, and its memory, sessions and skills stay there between turns.
- E2B
- Prebuilt hermes sandbox template
- e2b
- TypeScript, Python
Get started
Paste the prompt into your coding agent, or follow the steps yourself.
Paste this into your coding agent
Run Hermes Agent in an E2B sandbox from this project.
- 1.Install the e2b SDK using the project's package manager.
- 2.The SDK needs the E2B_API_KEY environment variable, and Hermes needs a model provider key such as OPENROUTER_API_KEY. If E2B_API_KEY isn't set, ask me for my API key from https://console.e2b.dev/?tab=keys. Never hardcode either key.
- 3.Follow the Hermes Agent guide at https://docs.e2b.dev/agents/hermes: create a sandbox from the hermes template, pass the provider key in envs, and run hermes chat -Q --yolo -q for a single headless turn. Kill the sandbox when it's done.
- 4.Run one task and show me the output that came from the sandbox.
Or set it up yourself
1. Install the E2B SDK
2. Set your API keys
3. Run a headless turn
4. Continue the session
What runs in the sandbox
Hermes runs inside the sandbox, so its terminal and file tools act on the sandbox, not your machine.
- Terminal, file, browser, memory and skill tools, auto-approved with --yolo and contained by the sandbox.
- Skills under ~/.hermes/skills and memory under ~/.hermes/memories last as long as the sandbox does.
- Conversations are saved in the sandbox. -c continues the latest one, --resume picks one by ID or title.
- Your host files and credentials stay out unless you copy or pass them into the sandbox.
More coding agents
Other coding agents that run in E2B sandboxes.
- OpenClawHost an always-on OpenClaw agent in a sandbox and chat with it from its web UI or Telegram.
- PiRun the Pi coding agent in a sandbox, or keep Pi local and send its tool calls to E2B with @e2b/pi.
- OpenCodeRun OpenCode in a sandbox, or keep it local and point its workspaces at E2B with the @e2b/opencode plugin.
