A box for every agent
Hermitbox runs sandboxes for your agents on Linux machines you own: a laptop, a server, or a fleet.
$curl -fsSL https://hbx.sh | shInstall Hermitbox and set it up for me
Isolated by tier
Choose how strongly each box is isolated, through the same API.
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.
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.
Snapshot and fork
Snapshot a box’s files, then fork new, independent boxes from the snapshot.
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.
Your first box
Install
Run curl -fsSL https://hbx.sh | sh. It asks nothing.
Ask for a box
From TypeScript, Python, the CLI or MCP.
Run and delete it
Run commands, keep files, open ports. Delete it when you're done.
import { Hermitbox } from 'hermitbox'
// Finds this machine's Hermitbox by itself.
const hb = new Hermitbox()
// 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()from hermitbox import Hermitbox
# Finds this machine's Hermitbox by itself.
hb = Hermitbox()
# Create a sandbox on the host's default tier.
box = hb.sandbox()
# Run a command in it.
result = box.run('echo hello')
print(result.stdout) # hello
# Delete it when you're done.
box.delete()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()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.
Download it from dl.hbx.sh, with each file’s SHA-512. 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.
Give your agent a box
Paste one line, or hand the prompt to your agent and let it do the rest.
$curl -fsSL https://hbx.sh | shInstall Hermitbox and set it up for me