sandboxes on hosts you own

A box for every agent

Hermitbox runs sandboxes for your agents on Linux machines you own: a laptop, a server, or a fleet.

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), as your own user. No root, no Docker.
one crab = one sandbox

Isolated by tier

Choose how strongly each box is isolated, through the same API.

isolation · five tiersvm
$ hermitbox run --isolation vm --image alpine:3.22 -- uname -r

Isolation tiers

From a confined process to a Firecracker virtual machine with its own kernel. Ask for a tier and you get it, or a refusal that says what is missing.

processwasmcontainergvisorvm
idlesleeping
await box.sleep()

Sleeps when idle

With an idle timer, a quiet box goes to sleep and keeps its files. The next command, connection or API call wakes it.

snapshots1 box
await snapshot.fork()

Snapshot and fork

Snapshot a box’s files, then fork new, independent boxes from the snapshot.

the lifecycle

Lifecycle verbs

Six of a box’s verbs. Click one to see the state change. Each is an SDK method.

  • start()Start compute.
  • stop()Stop compute and keep the data.
  • sleep()Suspend or stop, keeping the data.
  • wake()Run again with what sleep or rest kept.
  • rest()Archive the data and release compute.
  • snapshot()Save a point to fork from.
box · an illustrationrunning
await box.wake()illustration
the sdk

Your first box

01

Install

Run curl -fsSL https://hbx.sh | sh. It prints an API URL and, on the first install, a key.

02

Ask for a box

From TypeScript, Python, the CLI or MCP.

03

Run and delete it

Run commands, keep files, open ports. Delete it when you're done.

hello.ts
import { Hermitbox } from 'hermitbox'

// Connect with the URL and key the installer printed.
const hb = new Hermitbox({
  url: process.env.HERMITBOX_API_URL!,
  key: process.env.HERMITBOX_API_KEY!,
})

// Create a sandbox on the host's default tier.
const box = await hb.sandbox()

// Run a command in it.
const result = await box.run('echo hello')
console.log(result.stdout) // hello

// Delete it when you're done.
await box.delete()
what is in the box

What agents reach for

One API for the things agents need.

Commands

Run a command and get the result, or stream it as it runs.

box.run() · box.stream()

Files

Read and write files in the box’s data directory, which stop, sleep, rest and snapshots keep.

box.read() · box.write()

Git

Clone, branch, commit and push inside the box.

box.git.clone()

Ports

Publish a port and get a URL for it.

box.expose(port)

Webhooks

Get a signed call when a box is created, runs, sleeps, wakes, rests, fails or is deleted.

hb.webhook()

Idle policy

Keep a box awake, or let it sleep after a quiet spell.

box.keepAlive() · box.setIdle()
Hermitbox Desktop

Sandboxes on your own computer

Hermitbox Desktop runs Hermitbox on Linux, macOS and Windows. Its window shows every sandbox live, creates new ones, opens shells and previews, and connects your agent.

Get it from the download page, with each file’s SHA-512 and signed statement. On a server, follow the docs.

Adapts to your host

Hermitbox installs with one command that asks nothing. It starts as an ordinary user, without root or Docker. It turns on containers when Docker or Podman runs on the host, and virtual machines on x86_64 when KVM is open to it. Whatever the host lacks stays off on that host, and hermitbox doctor says why.

Open source under AGPL-3.0-only; the SDKs and integrations are Apache-2.0. The code is on GitHub. The newest release is v0.2.5.

open source · AGPL-3.0-only

Give your agent a box

Paste one line, or hand the prompt to your agent and let it do the rest.

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), as your own user. No root, no Docker.
add to claudehermitbox mcp

Add Hermitbox to Claude

Claude Code adds it with one command.

  1. Install Hermitbox, if this machine doesn’t have it.

    curl -fsSL https://hbx.sh | sh
  2. Add the MCP server for your user:

    claude mcp add --transport stdio --scope user hermitbox -- ~/.local/bin/hermitbox mcp
  3. Check it: claude mcp get hermitbox.

No Claude Desktop extension is published. In Claude Desktop, paste the prompt, or connect it from Hermitbox Desktop.

Installed as root? Use /usr/local/bin/hermitbox instead of ~/.local/bin/hermitbox. No key goes in any config: hermitbox mcp reads the credentials the installer saved.

All agents
add to cursorhermitbox mcp

Add Hermitbox to Cursor

Cursor opens its own install dialog from this link.

  1. Install Hermitbox, if this machine doesn’t have it.

    curl -fsSL https://hbx.sh | sh
  2. Open the link and confirm in Cursor.

    Add to Cursor
  3. Or put this server in ~/.cursor/mcp.json under mcpServers.hermitbox:

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

Installed as root? Use /usr/local/bin/hermitbox instead of ~/.local/bin/hermitbox. No key goes in any config: hermitbox mcp reads the credentials the installer saved.

All agents
add to vs codehermitbox mcp

Add Hermitbox to VS Code

VS Code adds it to your user profile with one command.

  1. Install Hermitbox, if this machine doesn’t have it.

    curl -fsSL https://hbx.sh | sh
  2. Add the MCP server:

    code --add-mcp "{\"name\":\"hermitbox\",\"type\":\"stdio\",\"command\":\"$HOME/.local/bin/hermitbox\",\"args\":[\"mcp\"]}"
  3. Copilot’s agent mode lists the Hermitbox tools after a reload.

Installed as root? Use /usr/local/bin/hermitbox instead of ~/.local/bin/hermitbox. No key goes in any config: hermitbox mcp reads the credentials the installer saved.

All agents
add to codexhermitbox mcp

Add Hermitbox to Codex

Codex adds it with one command.

  1. Install Hermitbox, if this machine doesn’t have it.

    curl -fsSL https://hbx.sh | sh
  2. Add the MCP server:

    codex mcp add hermitbox -- ~/.local/bin/hermitbox mcp
  3. It lands in ~/.codex/config.toml as [mcp_servers.hermitbox].

Installed as root? Use /usr/local/bin/hermitbox instead of ~/.local/bin/hermitbox. No key goes in any config: hermitbox mcp reads the credentials the installer saved.

All agents
add to chatgpthermitbox mcp

Add Hermitbox to ChatGPT

ChatGPT on the web connects to MCP servers at a public HTTPS address. Hermitbox’s MCP server runs only on your machine, so there is nothing for ChatGPT to add.

  1. Give the prompt to an agent that runs on your machine, or use Codex.

Installed as root? Use /usr/local/bin/hermitbox instead of ~/.local/bin/hermitbox. No key goes in any config: hermitbox mcp reads the credentials the installer saved.

All agents