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

Host on Railway

2 min readv0.3.2this page as markdown
let your agent do it
Deploy Hermitbox on Railway from its published template, https://railway.com/deploy/hermitbox, as one service with one state volume.
Paste it into your agent. It follows this page as Markdown: railway.md

Get Hermitbox on Railway with HTTPS, as one service with one state volume, from the published template.

Deploy on Railway

The template sets every value in the Railway fields and generates the first API key. After it deploys, give the service 2 GiB of memory to start, then verify the service.

Create the service yourself

Without the template:

  1. In Railway’s Template Composer, or in a new project, add one service from the image the Railway fields name, with one replica.
  2. Add a volume at /var/lib/hermitbox, generate a domain with target port 8080, and set the health check to /healthz.
  3. Set the variables from the same file; outside Template Composer, leave out HERMITBOX_BOOTSTRAP_API_KEY, whose value is a template function. Start with 2 GiB of memory for embedded Postgres, the store and sandboxes, then deploy.

Verify the service

shell
curl -fsS https://<service-address>/healthz

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

Railway notes

In a template, HERMITBOX_BOOTSTRAP_API_KEY=${{secret(64)}} generates the key. Find it in service → Variables. On a service without that variable, read the apiKey the first successful start prints once in the service log.

RAILWAY_PUBLIC_DOMAIN gives the HTTPS origin, and the fields also set HERMITBOX_PUBLIC_URL from it.

Keep one instance, the image’s root user, its writable container filesystem and its one state volume across redeploys. Process admission still requires the kernel policy in Tiers and guarantees; no user namespace, delegated cgroup, Docker or KVM is assumed.

The app builder can run as a second Railway service. Its projects need the container tier, so point it at a Hermitbox on a server.

Templates, variable functions, 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