# 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.3.2/hosting.md.

A managed platform gives Hermitbox HTTPS and a public address, with no machine to look after. A
Linux machine of your own also lets sandboxes run container images and virtual machines. Every
option keeps one state volume and serves Hermitbox on port `8080`, with readiness at `/healthz`.

## How to choose

| You want | Use | Sandboxes run on |
| --- | --- | --- |
| HTTPS and a public address, with no machine to run | [Render](https://docs.hermitbox.dev/v0.3.2/hosting/render.md), [Railway](https://docs.hermitbox.dev/v0.3.2/hosting/railway.md), [Fly.io](https://docs.hermitbox.dev/v0.3.2/hosting/fly.md) or [Koyeb](https://docs.hermitbox.dev/v0.3.2/hosting/koyeb.md) | Process, and Wasm where its probe passes |
| Hermitbox beside your apps on a Coolify host | [Coolify](https://docs.hermitbox.dev/v0.3.2/hosting/coolify.md) | Process, and Wasm where its probe passes |
| Containers, gVisor and virtual machines, with HTTPS for your domain | [A server with root](https://docs.hermitbox.dev/v0.3.2/hosting/server.md) | Containers and process sandboxes; gVisor on `x86_64`; virtual machines on `x86_64` with KVM |
| A cloud machine that sets itself up from cloud-init | [Your own machine](https://docs.hermitbox.dev/v0.3.2/hosting/own-machine.md) or a [DigitalOcean Droplet](https://docs.hermitbox.dev/v0.3.2/hosting/digitalocean.md) | Containers |
| One container on a host you already run | [The release image](https://docs.hermitbox.dev/v0.3.2/hosting/container.md) | Process and Wasm where their probes pass; containers where the host's engine is usable |

A container engine turns on images, and KVM turns on virtual machines. No managed platform
template attaches either, so for those, use a machine you control.

## Platform notes

The templates name the release image by version, `0.3.2`. 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.

### Render

One Blueprint deploys the repository Dockerfile with a state disk and 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.3.2/hosting/render.md).

### Railway

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

### Fly.io

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

### Koyeb

Koyeb runs the release image once you create its volume in the dashboard; its deploy button
can't attach one. See [Host on Koyeb](https://docs.hermitbox.dev/v0.3.2/hosting/koyeb.md).

### Coolify

Coolify runs Hermitbox as a Docker Compose service on a host where you already run Coolify. See
[Host on Coolify](https://docs.hermitbox.dev/v0.3.2/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 with cloud-init instead, as [Host on DigitalOcean](https://docs.hermitbox.dev/v0.3.2/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.3.2/hosting/own-machine.md).

To install the server preset instead (Docker, nftables, systemd units and, with a domain,
managed TLS), see [Host on a server with root](https://docs.hermitbox.dev/v0.3.2/hosting/server.md). For the release image with
`docker run` on any container host, see [Deploy the release image](https://docs.hermitbox.dev/v0.3.2/hosting/container.md).

## Connect after deployment

Open the service's HTTPS address. Its page shows where to find the key and how to connect; enter
the key to see this install's caller examples. The page keeps the key 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.3.2/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.3.2/get-started/connect.md).

## Tiers and guarantees

On the platform templates (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.

In an ordinary container, the default process tier requires Landlock and seccomp, and the image
refuses to start when it can't enforce that floor. Running as root gives each sandbox its own
UID. An ordinary service user gives shared UID isolation, which is weaker, and Hermitbox reports
it.

Workloads that share a UID must trust each other. Process workloads with internet access share
the host's network, even with separate UIDs. User namespaces and writable cgroups are not
assumed. See [process tier](https://docs.hermitbox.dev/v0.3.2/reference/process-tier.md).

No platform name proves a kernel capability, and a provider can change its kernel without
changing a template. Only a live probe establishes Landlock ABI, seccomp, user namespaces and
cgroup delegation. The welcome page reports the configured default isolation and says that it
doesn't show the host probe report. Node admission refuses requests it can't 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.

What each tier gives on these platforms:

- **Process.** 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.3.2/integrations/agentos.md), and it never stands in for a requested process
  policy.
- **Container.** Needs an engine and the host firewall, which these managed-service templates
  lack.
- **VM.** Off: no template attaches a KVM device.

## 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/cdd62e6c07e07c2b649b726729b4d8da6b25a737/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 |
