Skip to content
docs
type to search↑↓ move↵ openesc close
v0.3.2github

Connect Claude Code

1 min readv0.3.2this page as markdown
let your agent do it
Connect Claude Code to my remote Hermitbox install through hermitbox mcp.
Paste it into your agent. It follows this page as Markdown: claude.md

Claude Code gets tools to create sandboxes, run commands in them, and snapshot, fork, sleep and delete them, on a Hermitbox install on another machine, through hermitbox mcp over stdio.

On the machine where you ran the installer, skip this page: Connect your agent sets Claude Code up without a key.

  1. Install the Hermitbox CLI where Claude Code runs.
  2. Start Claude Code with HERMITBOX_API_URL and HERMITBOX_API_KEY in its private environment.
  3. Merge this into the project’s .mcp.json and restart Claude Code. Ask it for the project’s defaults, a sandbox, echo hello in it and cleanup. A container default needs an image; process and Wasm defaults must leave it out.
json
{
  "mcpServers": {
    "hermitbox": {
      "type": "stdio",
      "command": "hermitbox",
      "args": ["mcp"],
      "env": {
        "HERMITBOX_API_URL": "${HERMITBOX_API_URL}",
        "HERMITBOX_API_KEY": "${HERMITBOX_API_KEY}"
      }
    }
  }
}

The file names the two variables, never their values; Claude Code’s reference defines it and its variable expansion. Host admission enforces tier limits, so an agent can’t grant a capability the host lacks.

run it yourself
$curl -fsSL https://hbx.sh | sh
or ask your agent
Install Hermitbox and set it up for me
Linux (x86_64 or aarch64), no root, no Docker. Agents can read every page: llms.txt · llms-full.txt
the floor · nothing below this line