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. The same API works on every tier.
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.
Sleeps when idle
A quiet box goes to sleep with its state kept, and wakes on the next connection or API call.
Snapshot and fork
Snapshot a box at any point, then start as many copies from it as the job needs.
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.
Your first box
Install
Run curl -fsSL https://hbx.sh | sh. It prints an API URL and a key.
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'
// 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()import os
from hermitbox import Hermitbox
# Connect with the URL and key the installer printed.
hb = Hermitbox(
url=os.environ['HERMITBOX_API_URL'],
key=os.environ['HERMITBOX_API_KEY'],
)
# 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 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()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.
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