# Hermitbox

Hermitbox runs sandboxes for your agents and your code on Linux hosts you own. Create a sandbox,
run commands in it, keep its files, put it to sleep, snapshot or fork it, and delete it, all
through one API.

```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
```

## Who it is for

- **Agent builders.** Give an AI agent a sandbox to run code, install packages and keep files in,
  isolated to the tier you ask for.
- **Product teams.** Run code your users or your agents write, on hardware you control.
- **Operators.** Start with one machine, then add more as nodes of one fleet.

## What it solves

- **Your hosts, your data.** Sandboxes run on Linux machines you own. Hermitbox needs no hosted
  service.
- **One command to install.** The installer asks nothing, detects the host and takes the preset
  for it. Root, Docker and KVM turn on stronger tiers; none of them is needed to start.
- **State without idle compute.** Sleep stops a sandbox's compute and keeps its files. The next
  command, connection or API call wakes it.
- **The same start every time.** Templates and snapshots start each new sandbox in a known state,
  and a fork copies one.
- **No silent downgrade.** 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 and Python SDKs, the CLI or
  the HTTP API.

## Building blocks

- [Sandboxes](https://docs.hermitbox.dev/v0.2.4/concepts/sandboxes.md): an isolated place to run commands, keep files and serve
  ports.
- [Lifecycle](https://docs.hermitbox.dev/v0.2.4/concepts/lifecycle.md): start, stop, sleep, wake, rest, snapshot, fork and delete.
- [Isolation tiers](https://docs.hermitbox.dev/v0.2.4/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.2.4/concepts/templates.md): a reusable starting state for new sandboxes.
- [Nodes and fleet](https://docs.hermitbox.dev/v0.2.4/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.2.4/get-started/quickstart.md): install Hermitbox, run a first sandbox, and connect
  your agent or your code.
- [Concepts](https://docs.hermitbox.dev/v0.2.4/concepts/sandboxes.md): what a sandbox is, how it runs and sleeps, and how it is
  isolated.
- [Guides](https://docs.hermitbox.dev/v0.2.4/guides/code-interpreter.md): run code, browsers, desktops and virtual machines, build
  templates, receive webhooks and add machines.
- [Integrations](https://docs.hermitbox.dev/v0.2.4/integrations/claude.md): agents over MCP, GitHub Actions and agent frameworks.
- [Hosting](https://docs.hermitbox.dev/v0.2.4/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.2.4/sdk/typescript.md): the SDKs, the CLI, the HTTP API, the MCP tools and
  tiers in depth. [All documentation](https://docs.hermitbox.dev/v0.2.4/reference.md) lists every page.

## Next steps

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