Install wizard
Pick where Clavis will run and how it should do HTTPS. The wizard writes a compose.yaml, the command to start it, and a setup link you can click. It all runs in your browser; nothing you type here is sent anywhere.
1. Where will Clavis run?
2. Address
3. HTTPS
Clavis creates a certificate for 192.168.1.20. Browsers warn once; trust the certificate on your devices to remove the warning. The CLI shows the fingerprint and asks once per computer. Passkeys need a trusted certificate and a name, not an IP.
Ports on the host
The HTTP port redirects to HTTPS.
First sign-in
Generated in your browser and never sent anywhere.
Image
compose.yaml
services:
clavis:
image: dumhouse/clavis:latest
container_name: clavis
restart: unless-stopped
ports:
- "80:8080"
- "443:8443"
environment:
CLAVIS_SERVER_BASE_URL: "https://192.168.1.20"
CLAVIS_TLS: "self-signed"
CLAVIS_SETUP_TOKEN: ""
# Daily encrypted backups to their own volume; the newest 7 are kept.
CLAVIS_BACKUP_ENABLED: "true"
CLAVIS_BACKUP_DIR: "/backups"
volumes:
- clavis-data:/data
- clavis-backups:/backups
# Clavis writes only to its volumes, so the rest can be locked down.
read_only: true
tmpfs:
- /tmp
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 256
stop_grace_period: 30s
volumes:
clavis-data:
clavis-backups:
Start it
docker compose up -d --wait--wait returns once Clavis reports healthy, and fails if it does not. To update later, see Updating a Docker install.
Or as one docker command (no compose file)
docker run -d --name clavis --restart unless-stopped --read-only --tmpfs /tmp --cap-drop ALL --security-opt no-new-privileges --pids-limit 256 -p 80:8080 -p 443:8443 -v clavis-data:/data -e CLAVIS_SERVER_BASE_URL="https://192.168.1.20" -e CLAVIS_TLS="self-signed" -e CLAVIS_SETUP_TOKEN="" dumhouse/clavis:latestThen open
https://192.168.1.20/setup#token=The link carries the setup token, so the wizard skips that step. Keep it private until you have created the owner account; after that the token stops working.
What the options mean
Where will Clavis run?
- Try it on this computer. Plain HTTP on
http://localhost. Browsers treatlocalhostas secure, so sign-in and passkeys work without a certificate. - Home lab or office network. You reach the server by IP address or a local name. Clavis makes a self-signed certificate for that address, so traffic is encrypted. Your browser warns once; see trusting the certificate.
- Public server with a domain. Clavis gets a free certificate from Let's Encrypt and renews it. The domain must point at the server and ports 80 and 443 must be reachable from the internet.
- Behind my reverse proxy. Caddy, nginx, Traefik or Cloudflare handles HTTPS. Clavis speaks plain HTTP on
127.0.0.1:8080and the proxy forwards to it. The base URL is stillhttps://, so cookies and passkeys work.
Setup token in the file. A fresh server must be claimed with a one-time token, so whoever reaches it first cannot take it over. When you let the wizard put a token in compose.yaml, you already know it, and the setup link carries it: open the link, create your account, done. Without it, read the token with:
docker compose exec clavis clavis setup-tokenOwner email. When set, only that address can create the owner account, and the setup page fills it in for you.
After setup
- Install the CLI:
brew install dumhouse/tap/clavis(other systems: Download). clavis login --server <your base URL>- In your repository:
clavis init, thenclavis run npm run dev.
All settings are listed in Self-hosting, and every HTTPS option is explained in HTTPS and certificates.