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. The same API works on every tier.

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

Isolation tiers

From a plain process to a microVM with its own kernel. Ask for a tier and you get it, or a refusal that says what the host is missing.

processwasmcontainergvisorvm
idlesleeping
await box.sleep()

Sleeps when idle

A quiet box goes to sleep with its state kept, and wakes on the next connection or API call.

snapshots1 box
await snapshot.fork()

Snapshot and fork

Snapshot a box at any point, then start as many copies from it as the job needs.

the lifecycle

Six lifecycle verbs

Click a verb to see the state change. Each one is an SDK method.

  • start()Start compute.
  • stop()Stop compute and keep the data.
  • sleep()Suspend, keeping the data.
  • wake()Resume where it slept.
  • 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 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 that stay with the box under /data.

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 on every state change.

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, with a window that shows every box and what it is doing. It is being built now.

The download page lists each build as it is published. On a server, the docs have what you need today.

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 is present, and virtual machines when KVM is. Anything the host lacks stays off on that host, and Hermitbox says what would turn it on.

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

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 it is not on this machine yet.

    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. In Claude Desktop, paste the prompt instead.

A one-click Claude Desktop extension is not published yet.

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 it is not on this machine yet.

    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 it is not on this machine yet.

    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 agent mode lists the Hermitbox tools after a reload.

VS Code documents no install link yet, so this one is a command.

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 it is not on this machine yet.

    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 a public MCP server over HTTPS. Hermitbox’s MCP server listens 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