Skip to content
GitHub

Reference

CLI

The holtkeeper command is the server’s entrypoint: it starts the server (serve, the command of the container image and the Helm chart) handles operator account tasks (users) and helps match secret reports to stored secrets (secrets). Everything else happens in the web panel, or over MCP for agents. It runs from source with Bun.

Terminal window
holtkeeper <command> [options]
Option Description
-c, --config <file> Config file. Default: holtkeeper.config.ts in the current directory.
-h, --help Show usage. Without a command, usage is printed and the exit code is 1.

An unknown command or an invalid config prints the error and exits 1.

Starts the server described by the config’s server section and runs until SIGINT or SIGTERM, then lets running jobs finish and exits 0.

Terminal window
holtkeeper serve -c /app/config/holtkeeper.config.ts --role worker --pool default,write
Option Environment variable Default Description
--role <roles> HOLTKEEPER_ROLE all web, worker, scheduler or all; combine with commas, e.g. web,scheduler.
--concurrency <n> HOLTKEEPER_CONCURRENCY jobs.concurrency Jobs this worker runs at once.
--claim-delay <time> HOLTKEEPER_CLAIM_DELAY none Take only jobs queued at least this long, e.g. 15s, so workers without a delay get new jobs first and this one takes the overflow.
--pool <pools> HOLTKEEPER_WORKER_POOL default Worker pools this worker serves, comma-separated. --pool write makes a dedicated write task worker; --pool default,write runs everything.
--max-jobs <n> HOLTKEEPER_MAX_JOBS none Exit 0 after running n jobs, for a fresh container or pod per job.
--drain-timeout <time> HOLTKEEPER_DRAIN_TIMEOUT 30s How long running jobs may finish on shutdown before they are requeued.

Agent tasks that change code run only on workers that serve the write pool. See Environment variables for everything else the server reads.

Manages accounts of passkey sign-in (HOLTKEEPER_AUTH=users) directly in the config’s store, without permission checks: whoever can read the config and its secrets is an operator. Every change is logged in the audit log with actor cli. <user> is an id, an email or a name only one user has.

Action Options Does
users list --json One tab-separated line per user: id, name, email, admin or grant count, state. --json prints the stored users.
users add <name> --email <address>, --admin An enabled user without passkeys. --admin grants every action on everything; otherwise no grants (add them in Settings › People).
users login-link <user> --ttl <time> (default 15m) A single-use link that signs its holder in without a passkey and opens the panel. This is how an AI agent gets a browser session to drive the web UI.
users enroll-link <user> --ttl <time> (default 72h) The passkey registration link, as an admin would issue it in the panel.
users recover-link <user> --ttl <time> (default 72h) A recovery link to register a new passkey.

--ttl takes durations such as 15m or 2h. Links need server.publicUrl in the config.

Run the command in a web pod, where the config and its secrets are mounted:

Terminal window
kubectl exec deploy/holtkeeper-web -- \
holtkeeper users login-link "Dana Novak" -c /app/config/holtkeeper.config.ts
https://holtkeeper.example.com/auth/users/link/Xk3…q9/login

Helps administrators find which stored secret a secret report is about, from its fingerprint, without anyone sending the value.

Action Options Does
secrets fingerprint none Reads a value from stdin and prints its fingerprint: the first 16 hex characters of its SHA-256.
secrets match <fingerprint…> --address <url>, --mount <mount>, --prefix <path>, --namespace <ns> Walks the latest version of every secret of an OpenBao or Vault KV v2 engine and prints the path, field and version of each value that matches.

secrets match reads its token from BAO_TOKEN or VAULT_TOKEN. --address and --mount are required; --prefix limits the walk to one path, --namespace picks a Vault or OpenBao namespace. Values are hashed in memory and never leave the process; paths the token may not list or read are skipped.

Terminal window
printf %s "$WIDGET_API_KEY" | holtkeeper secrets fingerprint
BAO_TOKEN=… holtkeeper secrets match 3f9a0c1d2e4b5a67 --address https://bao.example.com --mount kv --prefix widgets/

Pipe the value from where it lives, as above; do not type it into the command line, where shell history keeps it.

Code Meaning
0 Done, or serve stopped by a signal after draining or after --max-jobs.
1 Usage error, unknown command, invalid config, or users without a server section.