Deploy
Install the Fly CLI and authenticate
Install
flyctl using the official instructions, then log in:Clone the repo and create the app
fly.toml configuration. The --no-deploy flag prevents deploying before secrets are set.Set secrets
| Variable | Required | Description |
|---|---|---|
AGENT_VAULT_MASTER_PASSWORD | No | Derives a KEK that wraps the data encryption key. Omit for passwordless mode. |
AGENT_VAULT_ADDR | Recommended | Externally-reachable base URL. Used for generating links in emails, invites, and discovery responses. |
Deploy
Register the owner
Key details
- Config:
fly.tomlsets port 14321, forces HTTPS, and enables auto-stop/auto-start machines - Entrypoint:
scripts/docker-entrypoint.shforwards arguments to theagent-vaultbinary, which natively readsAGENT_VAULT_MASTER_PASSWORDfrom the environment - Storage: Persistent volume
agent_vault_datamounted at/data— all state is in a single SQLite file - Cold starts:
min_machines_runningdefaults to0, so the app scales to zero when idle. The first request after sleep incurs a few seconds of cold-start latency. Set it to1infly.tomlif you need always-on availability.