# Hermitbox

Sandboxes for your agents and your code, on Linux machines you own. Each sandbox is a real
computer to work in, and one command installs Hermitbox, as your own user.

```sh
curl -fsSL https://hbx.sh | sh
```

Linux (x86_64 or aarch64), no root, no Docker.

Then run your first command:

```sh
~/.local/bin/hermitbox run -- echo hello
```

## A box you can step into

Your agent gets a sandbox where it runs commands, installs packages, keeps files and publishes a
port with a URL. You can open the same sandbox from your side: a terminal, an SSH session, that
URL, or a desktop in your browser over noVNC. You can also run the agent itself inside one:
`hermitbox create codex` opens Codex in a sandbox, and `hermitbox connect` reattaches later.

## Who it is for

- **Agent builders.** Give a coding agent, a code interpreter or a browser agent a sandbox of its
  own, isolated as strongly as you ask.
- **Developers running code they didn't write.** Run a pull request or a repository you just
  cloned in a box, open it on a URL, and delete the box when you're done.
- **Operators.** Start with one machine, then add more as one fleet.

## What you get

- **Your machines, your data.** Sandboxes run on Linux machines you own. Hermitbox needs no hosted
  service.
- **One command to install.** The installer asks nothing and sets itself up for the host it finds.
  Root, Docker and KVM turn on stronger isolation where the host has them; none of them is needed
  to start.
- **Idle boxes keep their files.** Sleep stops a sandbox's compute and keeps its files. The next
  command, connection or API call wakes it; a suspended wake measured 27.56 ms at p50 in the
  [budget checks](https://docs.hermitbox.dev/v0.3.2/reference/tiers.md#paired-budget-checks). A virtual machine can also sleep with
  its memory, and the same process carries on after a
  [wake of 220 ms at p50](https://docs.hermitbox.dev/v0.3.2/reference/tiers.md#memory-sleep-and-wake).
- **The same start every time.** Templates and snapshots start each new sandbox in a known state,
  and a fork copies one. Hermitbox ships 54
  [starter projects](https://docs.hermitbox.dev/v0.3.2/reference/templates.md#starter-projects), and `hermitbox template from <repo>`
  builds a template from a Git repository.
- **The isolation you asked for, or a clear refusal.** Five tiers, from a confined process to a
  Firecracker virtual machine with its own kernel, run side by side wherever the host allows
  them. A request that names a tier gets it, or a refusal that says what the host is missing.
- **Every caller.** Agents connect over MCP. Code calls the TypeScript, Python and Rust SDKs, the
  CLI or the HTTP API.
- **Open source.** Hermitbox is AGPL-3.0-only; the SDKs and integrations your code links are
  Apache-2.0.

## Building blocks

- [Sandboxes](https://docs.hermitbox.dev/v0.3.2/concepts/sandboxes.md): an isolated place to run commands, keep files and serve
  ports.
- [Lifecycle](https://docs.hermitbox.dev/v0.3.2/concepts/lifecycle.md): start, stop, sleep, wake, rest (archive), snapshot, fork and
  delete.
- [Isolation tiers](https://docs.hermitbox.dev/v0.3.2/concepts/isolation.md): `process`, `wasm`, `container`, `gvisor` and `vm`,
  from a confined process to a virtual machine with its own kernel.
- [Templates](https://docs.hermitbox.dev/v0.3.2/concepts/templates.md): a reusable starting state for new sandboxes.
- [Nodes and fleet](https://docs.hermitbox.dev/v0.3.2/concepts/fleet.md): one machine runs Hermitbox on its own, and more machines
  join it as nodes.

## Documentation map

- [Get started](https://docs.hermitbox.dev/v0.3.2/get-started/quickstart.md): install Hermitbox, run a first sandbox, and connect
  your agent or your code.
- [Concepts](https://docs.hermitbox.dev/v0.3.2/concepts/sandboxes.md): what a sandbox is, how it runs and sleeps, and how it is
  isolated.
- [Guides](https://docs.hermitbox.dev/v0.3.2/guides/code-interpreter.md): run code, browsers, desktops and virtual machines, build
  templates, receive webhooks and add machines.
- [Integrations](https://docs.hermitbox.dev/v0.3.2/integrations/claude.md): agents over MCP, GitHub Actions and agent frameworks.
- [Hosting](https://docs.hermitbox.dev/v0.3.2/hosting.md): where to run Hermitbox, from your own machine to a server or a
  platform that runs images.
- [Reference](https://docs.hermitbox.dev/v0.3.2/sdk/typescript.md): the SDKs, the CLI, the HTTP API, the MCP tools and
  tiers in depth. [All documentation](https://docs.hermitbox.dev/v0.3.2/reference.md) lists every page.

## Next steps

- [Quickstart](https://docs.hermitbox.dev/v0.3.2/get-started/quickstart.md): create a sandbox, run `echo hello` and delete it from
  the CLI, TypeScript, Python or Rust.
- [Connect your agent](https://docs.hermitbox.dev/v0.3.2/get-started/agents.md): paste one prompt into your agent, or add
  `hermitbox mcp` to it yourself.
