Self-host
Holtkeeper ships as one container image. Every process runs the same holtkeeper serve command and gets its work from its role, so the same image serves a laptop trial, a Compose host and a Kubernetes cluster. This section is for the person who runs it: picking a layout, writing the config file, signing in the first admin, and keeping the instance healthy.
Processes and roles
Section titled “Processes and roles”flowchart LR people[People and agents] -- panel, MCP --> web forge[GitLab] -- webhooks --> web web[web: API, panel, webhooks] --> store[(Postgres or SQLite)] scheduler[scheduler: sweeps, schedules, retention] --> store worker[worker: jobs] --> store worker --> artifacts[(Artifacts: S3 or /data)] web --> artifacts worker -- package downloads --> proxy[egress proxy, optional]
| Role | Serves | Runs jobs | Scheduler duties |
|---|---|---|---|
web |
API, panel, webhooks, probes, metrics | no | no |
worker |
probes and metrics only | yes | no |
scheduler |
probes and metrics only | no | yes |
all |
everything | yes | yes |
Roles combine with commas: --role web,scheduler is what Compose and the Helm chart run in their web containers. Several processes may hold the scheduler role; they contend for a lease in the store and only the holder runs the duties. The deployment reference has the details.
Choose a layout
Section titled “Choose a layout”| Layout | Store | Artifacts | Good for |
|---|---|---|---|
| Single container | SQLite | /data |
Trying it out, a small fleet, one host |
| Compose with workers | Postgres | S3 | One host, several workers you scale by hand |
| Kubernetes | Postgres | S3 | Autoscaled workers, one job per pod, NetworkPolicies, write workers |
Start with a single container if you are unsure. Moving to Postgres and S3 later is a config change, but the data does not move by itself: plan the switch before the instance holds history you care about.
The config file and the panel
Section titled “The config file and the panel”Holtkeeper splits its configuration in two.
holtkeeper.config.ts holds infrastructure only, and is read at start:
server: sign-in provider, store,vaultKey, listener,publicUrl, artifacts and their retention, the egress rules secret, credential rotation;jobs: execution mode and its egress proxy,concurrency,cacheDir,timeoutMinutes, the sharedwebhookSecret;limits.distributed,ai.providersanddryRun.
The panel holds everything else, stored in the database: forges with their token credentials and fleet, teams, repository traits, schedules, triggers, merge request policies, analyzer options, the AI budget and every other setting. After the first sign-in you add your GitLab forge (for example https://gitlab.example.com) and its fleet in Settings › Integrations, then teams on Repos › Teams.
The starting configs in the repository (deploy/holtkeeper.config.ts for Docker and Compose, the chart’s files/holtkeeper.config.ts for Kubernetes) read every secret from the environment and switch to Postgres and S3 when their variables are set, so most installs only set variables. See Configuration for a walk-through and Environment variables for every variable.
More than one process
Section titled “More than one process”As soon as web and workers run as separate processes, they need shared state:
- Postgres. SQLite is a local file: it works for one process, or several in one container sharing the file, but not for pods on different nodes.
- S3-compatible artifacts. Workers write artifacts and web processes serve them. Any S3-compatible storage works: AWS S3, Cloudflare R2, Garage, Ceph, MinIO, Versity S3 Gateway.
- Distributed limits.
limits: { distributed: true }keeps credential rate limits in the store, so all workers share one token’s budget. The bundled config turns it on with Postgres. - The same vault key everywhere. Every process must have the same
HOLTKEEPER_VAULT_KEY.