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

Host on Fly.io

2 min readv0.2.1this page as markdown
let your agent do it
Deploy Hermitbox on Fly.io.
Paste it into your agent. It follows this page as Markdown: fly.md

Deploy Hermitbox on one Fly.io Machine with a persistent state volume. The Fly Launch configuration names the release image, the hermitbox_state volume, port 8080 and the /healthz check.

Launch the app

  1. Copy fly.toml into an empty directory. Change primary_region from ams if you want another region.
  2. Run fly launch in that directory and keep the existing configuration. Fly Launch assigns the app a unique name and attaches hermitbox_state to one Machine.
  3. Read the apiKey the image prints once in app → Monitoring → Logs on its first successful start.

Verify the app

shell
curl -fsS https://<app-name>.fly.dev/healthz

It answers with "status":"ok". Point the CLI at the app with its key and run hermitbox run -- echo hello, as Connect after deployment shows.

Fly.io notes

Keep one Machine. Don’t scale to a second Machine, since it would get an independent state volume.

Fly’s secrets store accepts values you supply, but the launch configuration generates none, so the key appears only in the log. FLY_APP_NAME gives the HTTPS origin, https://<app-name>.fly.dev.

The configuration asks for a shared-cpu-2x Machine with 2 GB of memory, a 10 GB volume, forced HTTPS and a Machine that stays running.

Fly runs the image in a Machine with a writable root filesystem and its persistent /var/lib/hermitbox mount, and the image user stays root. This configuration adds no Docker daemon or KVM device. The process policy must pass on the actual guest kernel; see Tiers and guarantees.

Configuration, volumes, pricing.

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