# Choose where to host Hermitbox

> Let your agent do it: Help me choose where to host Hermitbox, then deploy it there. Ask me which platform I use, or whether I have a Linux machine of my own, and follow that platform's guide. Once it is up, check that `https://<service-address>/healthz` answers `"status":"ok"`, set `HERMITBOX_API_URL` and `HERMITBOX_API_KEY` in the shell's private environment, never in a file or this chat, and run `hermitbox run -- echo hello`. Follow the exact steps in https://docs.hermitbox.dev/v0.2.4/hosting.md.

Compare the platforms Hermitbox runs on and pick one, from a managed service to a Linux server of your own.

<!-- SPDX-License-Identifier: AGPL-3.0-only -->
# Choose where to host Hermitbox

Run Hermitbox on a managed platform or on a Linux machine of your own. Each option keeps one state
volume and serves Hermitbox on port `8080`, with readiness at `/healthz`.

| Platform | What it deploys | Guide |
| --- | --- | --- |
| Render | The repository Dockerfile with a state disk and managed Postgres | [Host on Render](https://docs.hermitbox.dev/v0.2.4/hosting/render.md) |
| Railway | The release image with one volume, from a published template | [Host on Railway](https://docs.hermitbox.dev/v0.2.4/hosting/railway.md) |
| Fly.io | The release image on one Machine with a persistent volume | [Host on Fly.io](https://docs.hermitbox.dev/v0.2.4/hosting/fly.md) |
| Koyeb | The release image with a volume you create first | [Host on Koyeb](https://docs.hermitbox.dev/v0.2.4/hosting/koyeb.md) |
| Coolify | A Docker Compose service on your Coolify host | [Host on Coolify](https://docs.hermitbox.dev/v0.2.4/hosting/coolify.md) |
| DigitalOcean | A Droplet with cloud-init, since App Platform has no volumes | [Host on DigitalOcean](https://docs.hermitbox.dev/v0.2.4/hosting/digitalocean.md) |
| Own machine | The release image under systemd from cloud-init, with Docker and its firewall policy | [Host on your own machine](https://docs.hermitbox.dev/v0.2.4/hosting/own-machine.md) |
| Server with root | The server preset: Docker, nftables, systemd units and, with a domain, managed TLS | [Host on a server with root](https://docs.hermitbox.dev/v0.2.4/hosting/server.md) |
| Any container host | The release image with `docker run` | [Deploy the release image](https://docs.hermitbox.dev/v0.2.4/hosting/container.md) |

The templates name the release image by version, `0.2.4`. Render builds the repository
Dockerfile, so its button uses the source directly. The platform documentation linked from each
guide was checked on 2026-11-14; see each platform's own pricing link.

## How to choose

Pick a managed platform when you want HTTPS and a public address without running a machine.
Sandboxes there run on the process tier, and on Wasm where its probe passes.

Pick a machine you control when you need images or virtual machines. A container engine turns on
images, and KVM turns on virtual machines; no managed platform template attaches either.

### Render

Render deploys from the repository with one Blueprint, including managed Postgres.
[Deploy on Render](https://render.com/deploy?repo=https://github.com/hermitbox/hermitbox), then
follow [Host on Render](https://docs.hermitbox.dev/v0.2.4/hosting/render.md).

### Railway

Railway runs the release image from its published template.
[Deploy on Railway](https://railway.com/deploy/hermitbox), then follow
[Host on Railway](https://docs.hermitbox.dev/v0.2.4/hosting/railway.md).

### Fly.io

Fly.io runs the release image on one Machine from a launch configuration. See
[Host on Fly.io](https://docs.hermitbox.dev/v0.2.4/hosting/fly.md).

### Koyeb

Koyeb runs the release image once you create its volume in the dashboard. See
[Host on Koyeb](https://docs.hermitbox.dev/v0.2.4/hosting/koyeb.md).

### Coolify

Coolify runs a Compose service on a host where you already run Coolify. See
[Host on Coolify](https://docs.hermitbox.dev/v0.2.4/hosting/coolify.md).

### DigitalOcean App Platform

App Platform has no persistent volumes, and none of its three storage paths keeps a whole
install. Use a Droplet instead, as [Host on DigitalOcean](https://docs.hermitbox.dev/v0.2.4/hosting/digitalocean.md) explains.

### A machine of your own

Any Linux machine that accepts cloud-init user data runs the release image under systemd, with
Docker and its firewall policy. See [Host on your own machine](https://docs.hermitbox.dev/v0.2.4/hosting/own-machine.md). To install the
server preset instead, see [Host on a server with root](https://docs.hermitbox.dev/v0.2.4/hosting/server.md).

## Connect after deployment

Open the service's HTTPS address to find its key location and connect. Enter the key to see this
install's caller examples; the page keeps it only for the current request in this tab.

Check that the service is ready:

```sh
curl -fsS https://<service-address>/healthz
```

It answers with `"status":"ok"`. Then run a command through the
[CLI](https://docs.hermitbox.dev/v0.2.4/get-started/cli.md):

```sh
# Point the CLI at the service.
export HERMITBOX_API_URL=https://<service-address>
export HERMITBOX_API_KEY=<api-key>

# Run a command in a new sandbox.
hermitbox run -- echo hello
```

Examples reference `HERMITBOX_API_KEY`, never its value. Keep your state volume across
replacements. The image exposes only port `8080` (`PORT` overrides it), with readiness at
`/healthz`. For other callers, see [Connect to your install](https://docs.hermitbox.dev/v0.2.4/get-started/connect.md).

## Tiers and guarantees

On managed platforms (Coolify, Fly.io, Koyeb, Railway and Render), the image uses the process
policy where the kernel enforces Landlock and seccomp. The platform files attach no nested engine
or KVM.

On an ordinary container, the default process tier requires Landlock and seccomp. The image
refuses to start when it cannot enforce that floor. Root gives per-sandbox UIDs; an ordinary
service user gives shared UID isolation, which is weaker and is reported.

Shared UID workloads must trust each other. Internet-enabled process workloads share host
networking, even with separate UIDs. User namespaces and writable cgroups are not assumed. See
[process tier](https://docs.hermitbox.dev/v0.2.4/reference/process-tier.md).

No platform name proves a kernel capability. The welcome page reports the configured default
isolation and says that it does not show the host probe report. Node admission refuses requests
it cannot enforce.

These templates add no privilege, engine socket, device or host policy override. The image
chooses from what it can use; no preset flag is required.

The process path has no container images and no browser or desktop templates. Process sleep
keeps memory while the supervisor survives; after a platform restart, a sandbox starts a fresh
process from its retained files.

Wasm runs on `x86_64` beside the process tier where its probe passes, and
`HERMITBOX_RUNTIME=wasm` serves it alone. It has a virtual kernel, a shared sidecar and
[its limits](https://docs.hermitbox.dev/v0.2.4/integrations/agentos.md), and it never substitutes for a requested process
policy.

The container tier needs an engine and the host firewall, which these managed-service templates
lack. No template attaches a KVM device, so the `vm` tier is off on them.

A provider can change its kernel without changing a template. Only a live probe establishes
Landlock ABI, seccomp, user namespaces and cgroup delegation there.

## How this is tested

CI runs the image built from the checkout in six container envelopes: one per managed platform
above and one as an ordinary user (`1000:1000`). Each has a writable root filesystem, one state
volume, 2 GiB of memory and no added privilege.

Each envelope passes the welcome page's secrecy, the authenticated details, all six caller
blocks, and key retention across a restart without logging the key again. The envelopes
reproduce each platform's container settings under Docker; they don't test a provider's kernel.

CI also runs each platform's own validator where one works without an account
(`control/tools/hosting-validate.ts`). These files create no account and publish no template,
button or catalog entry; where a platform needs a published template, its owner publishes it.

| Platform | Validation in CI | Live deployment |
| --- | --- | --- |
| Render | Render's own JSON Schema, the image envelope and the six caller blocks | Not tested |
| Railway | The container envelope and caller blocks; the published template deployed and answered `/healthz` on Railway on 2026-11-29 | Deployed once |
| Fly.io | The TOML parse, the container envelope and caller blocks, which do not emulate a Fly microVM; Fly's remote validator needs an app and an account ([its source](https://github.com/superfly/flyctl/blob/master/internal/command/config/validate.go)) | Not tested |
| DigitalOcean App Platform | None: App Platform has no stateful image to test | Not tested |
| Koyeb | The ordinary container envelope and caller blocks, which do not test Koyeb's kernel; no account-free service validator is documented | Not tested |
| Coolify | Docker Compose's own config validator with generated values, the container envelope and the caller blocks | Not tested |
| Own machine | cloud-init's own schema, and a boot of the checksum-pinned Ubuntu 24.04 and 26.04 images ([inventory](https://github.com/hermitbox/hermitbox/blob/c61777fdb140d97cded5ef039bce3a7e7c7a2a18/deploy/platforms/cloud-init/images.json)) under QEMU, each with two virtual CPUs and 4 GiB of memory, through boot, install, welcome, authentication and a hello sandbox | Not tested |
