# Use Hermitbox with your agent

`hermitbox mcp` is an MCP server over stdio. After `curl -fsSL https://hbx.sh | sh`, it reads the
credentials the installer saved, so no key goes in any agent's config. The ordinary-user install
puts the CLI in `~/.local/bin/hermitbox`; a root install puts it in `/usr/local/bin/hermitbox`.
Agents started from a desktop may not have either on `PATH`, so each step names the full path.

## Ask your agent

Any agent that can run commands on your machine can do the whole setup from this prompt:

```text
Install Hermitbox on this machine and connect yourself to it.
Run `curl -fsSL https://hbx.sh | sh` as my ordinary user, never with sudo.
Then add `hermitbox mcp` to your MCP settings by its absolute path (~/.local/bin/hermitbox).
It reads the credentials the installer saved, so never copy a key into a config file or this chat.
For anything else, follow https://docs.hermitbox.dev/llms.txt.
Prove it works: create a sandbox, run `echo hello` in it, show me the output, then delete it.
```

## Claude

Claude Code adds the server for your user with one command:

```sh
claude mcp add --transport stdio --scope user hermitbox -- ~/.local/bin/hermitbox mcp
```

Check it with `claude mcp get hermitbox`. A one-click Claude Desktop extension is not published
yet; in Claude Desktop, give Claude the prompt above.

## Cursor

Open
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=hermitbox&config=eyJjb21tYW5kIjoiJHt1c2VySG9tZX0vLmxvY2FsL2Jpbi9oZXJtaXRib3giLCJhcmdzIjpbIm1jcCJdfQ==)
and confirm in Cursor, or add this server to `~/.cursor/mcp.json` under `mcpServers.hermitbox`.
Cursor expands `${userHome}` itself.

```json
{ "command": "${userHome}/.local/bin/hermitbox", "args": ["mcp"] }
```

## VS Code

VS Code adds the server to your user profile with one command:

```sh
code --add-mcp "{\"name\":\"hermitbox\",\"type\":\"stdio\",\"command\":\"$HOME/.local/bin/hermitbox\",\"args\":[\"mcp\"]}"
```

Copilot's agent mode lists the hermitbox tools after a reload.

## Codex

```sh
codex mcp add hermitbox -- ~/.local/bin/hermitbox mcp
```

It lands in `~/.codex/config.toml` as `[mcp_servers.hermitbox]`.

## ChatGPT

ChatGPT on the web connects to a public MCP endpoint over HTTPS. Hermitbox's MCP server listens
only on this machine ([MCP](https://docs.hermitbox.dev/v0.2.0/mcp.md)), so there is nothing for ChatGPT to add yet. Give the prompt
to an agent that runs on your machine, or use Codex.

## What the server offers

[MCP](https://docs.hermitbox.dev/v0.2.0/mcp.md) lists the tools, the loopback HTTP transport and their limits. Host admission
enforces [tier limits](https://docs.hermitbox.dev/v0.2.0/tiers.md); an agent cannot grant a capability the host lacks.
