Skip to content
docs
type to search↑↓ move↵ openesc close
v0.2.1github

Host on a server with root

3 min readv0.2.1this page as markdown
let your agent do it
Install Hermitbox on this Linux systemd server with the server preset, which runs as root.
Paste it into your agent. It follows this page as Markdown: server.md

Install Hermitbox on a Linux systemd server as root with the server preset. Root turns on the tiers an ordinary user can’t have: containers, gVisor, virtual machines and a separate user for each process sandbox.

shell
curl -fsSL https://hbx.sh | sudo HERMITBOX_DOMAIN=sandboxes.example.com sh

Before you install

Point a DNS A record for the domain at the server, and allow inbound TCP 443 for HTTPS and certificate validation. The edge needs local TCP ports 80 and 443 for its HTTP and TLS fronts.

Omit HERMITBOX_DOMAIN to install a local server on loopback port 7331, with path aliases. Run sudo hermitbox up --check --domain sandboxes.example.com on an installed CLI to print the plan without changing anything.

Verify the install

The installer prints the API URL, the key and a first command, and saves the URL and key for the account that ran sudo. Run the command it prints:

shell
hermitbox run --image alpine:3.22 -- echo hello

It prints hello. Then list what this host serves:

shell
hermitbox doctor

hermitbox doctor shows each tier as on or off, with the reason and what would change it.

What root turns on

Capability What the server preset adds
Containers from images Docker and an nftables host firewall policy (host-firewall)
gVisor gVisor’s pinned runsc, registered with Docker on x86_64; off elsewhere, with the reason
Virtual machines The signed VM bundle descriptor and hermitboxd-vm-worker.service, on x86_64 with KVM
Separate users A UID pool for process sandboxes (separate-users), where the credential-drop probe passes
Kernel network policy Per-sandbox cgroup programs for process sandboxes: host-firewall, hostname egress and address rules
HTTPS A certificate for the domain from ACME, renewed by the hermitbox-api-tls unit

The node serves every tier its host permits, so process and Wasm sandboxes run beside these. Server sandbox placement needs private network and PID namespaces and enforced CPU and memory limits. The main daemon’s unit hardening stays in force.

Isolation tiers explains each tier, and host capabilities lists every guarantee.

Server notes

A systemd host gets Docker, nftables, persistent Docker volumes for the database and object store, control and edge units, and its enrolled local node. Debian and Ubuntu install missing packages automatically. Other distributions need Docker and nftables installed first, and the installer names them before it provisions anything.

Without an --allow-image list of your own, the node admits alpine: and node: images, the pinned coding-agent and language-stack images, and the images the VM bundle is proven with. See virtual machines for the VM tier’s host requirements.

The API is at https://sandboxes.example.com with an automatically renewed certificate. Existing domains stay immutable. See operations for DNS, TLS, server upgrades, more nodes and explicit data removal.

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), no root, no Docker. Agents can read every page: llms.txt · llms-full.txt
the floor · nothing below this line