Deploy the release image
docker run -p 8080:8080 ghcr.io/hermitbox/hermitbox:0.2.0Open the public root address for the welcome page and caller examples. If HERMITBOX_BOOTSTRAP_API_KEY is set, it supplies the first key and is never logged; otherwise the first successful start prints the initial API key once. See hosting for platform files and exact validation boundaries. Set HERMITBOX_API_URL to
http://localhost:8080 and HERMITBOX_API_KEY to that key in the CLI or SDK environment.
hermitbox run -- echo hello uses the bundled userland. hermitbox run --image alpine:3.22 -- echo hello
is refused on the process tier with the image error documented in process-tier.md.
The image serves process and agentOS VMs together where their probes succeed, and container
workloads where the host engine is usable. Control chooses an eligible tier for an unnamed
request and reports the result. A request with isolation fixes its tier; a missing runtime is
refused by name. hermitbox doctor lists what this host supports and why a tier is off. Advanced
priority and single-backend overrides are documented in tiers.md. Wasm refuses an image
and accepts optional packages registry names instead. See tiers.md for the measured
default and capabilities and agentos.md for persistence and ingress limits.
The one-command installer runs the same supervisor as an ordinary user or provisions a systemd server as root.
Docker creates the image’s state volume automatically. For a named persistent volume:
docker run --name hermitbox -p 8080:8080 -v hermitbox:/var/lib/hermitbox ghcr.io/hermitbox/hermitbox:0.2.0docker compose up --build uses the root docker-compose.yml with a named state volume.
docker compose logs hermitbox shows the initial key on first start. A fresh image can use
--user 1000:1000; it then reports shared UID isolation and keeps that user’s state in its
own directory in the volume. Restart with the same UID and volume. No privileged flag,
engine socket or seccomp override is needed for the process tier. Embedded Postgres requires
its private password on both TCP and Unix sockets.
The only public listener is HTTP port 8080 (or PORT). Set HERMITBOX_PUBLIC_URL to the externally
reachable HTTP or HTTPS origin behind your platform’s TLS terminator. Agent URLs use an
authenticated /sandboxes/<id>/_hermitbox/ alias; exposed application ports use public
/sandboxes/<id>/ports/<port>/ aliases. Applications using those aliases must support their
URL prefix. Declared HTTP ports use the public hostnames returned by the API; configure DNS
and preserve the Host header through the TLS terminator. The configured HERMITBOX_PUBLIC_URL
hostname stays reserved for control routing, including when a declared hostname collides.
TLS and raw TCP fronts are disabled in the image. Standalone host edges
can still use wildcard DNS, certificates and raw fronts as documented in agent.md.
New image state derives its private node listener pool below the kernel’s outgoing ephemeral
range without changing sysctls. Restart preserves the stored pool, including older implicit
pools. The image honors the edge’s HERMITBOX_EDGE_* admission and greeting settings while keeping
embedded service listeners private; normal limits remain the defaults.
Without DATABASE_URL the image starts private Postgres in the volume. With DATABASE_URL it uses that existing Postgres and applies hermitbox’s migrations. Without S3_ENDPOINT it starts a private S3-compatible store in the volume. To use external S3, set S3_ENDPOINT, S3_BUCKET, S3_ACCESS_KEY and S3_SECRET_KEY together; normal TLS certificate checks remain enabled. Keep the state volume even with external stores: it also holds fleet identity, private credentials and local sandbox data. Back up the database, object store and state together.
For Render, this repository includes render.yaml, a public Blueprint with an ordinary Docker web service, persistent state disk and managed Postgres:
- Open Render’s New → Blueprint, connect your fork of this public repository, select the branch containing render.yaml, and apply the Blueprint.
- Keep its Standard web-service plan and disk; the bundled service and a default sandbox need more memory than a 512 MiB instance. Render creates the Postgres add-on and supplies its connection string through the Blueprint’s DATABASE_URL reference.
- Wait for
/healthzto become healthy, then retrieve HERMITBOX_BOOTSTRAP_API_KEY in the service Environment settings. The image uses Render’s RENDER_EXTERNAL_URL automatically, so agent and port aliases use the service’s verified HTTPS origin. Set HERMITBOX_PUBLIC_URL explicitly when using a custom domain. - Point the CLI/SDK at the service origin with that key. Run
hermitbox run -- echo helloand create sandboxes without an image. Keep the disk attached across deployments.
The process tier is Linux-only and requires the kernel policy described in process-tier.md. The image fails closed when the platform cannot enforce it. Container-tier installations add a usable host Docker socket and the host firewall policy; they require an operator’s host permissions and do not change the ordinary-container process proof.
On a fresh Linux host, sudo hermitbox up --image --domain sandboxes.example.com installs the same
release image as a systemd service. It pulls, copies from and runs that image only by the index
digest in the release’s signed server manifest, and refuses a cached image under any other
digest. An explicit image reference may follow --image, or be set in HERMITBOX_IMAGE; it is used
as given, and the install output’s imageSource says which of the two it ran. The one-box
binary preset starts PostgreSQL and RustFS by index digest too. This
operator path installs the host Docker/firewall policy and mounts its engine socket; its
container requires NET_ADMIN to apply that policy. It is separate from the ordinary process
start above. Repeated installation retains credentials. Existing binary installations must
first be stopped and their data migrated; the installer refuses an active binary deployment.
Host installation reserves its configured workload ports in Linux’s
ip_local_reserved_ports, preserving existing reservations and writing a sysctl drop-in.
This prevents outgoing connections from taking a stopped sandbox’s published port.
For an existing manually installed node, run sudo hermitboxd reserve-ports --config /etc/hermitboxd/hermitboxd.toml.
$curl -fsSL https://hbx.sh | shInstall Hermitbox and set it up for me