Requirements and sizing
A Zentri install needs one coordinator and one Postgres database. Everything else is optional. This page lists what each part needs, which ports it uses, and what makes it grow.
The parts
Section titled “The parts”| Part | Required | Version | Port | What it does |
|---|---|---|---|---|
Coordinator (zentri-server) |
Yes | Built from this repository | 8080 | Holds sessions, claims, intents, questions and the audit log. Serves the HTTP API and MCP. |
| Postgres | Yes | 16, with the vector (pgvector) and pg_trgm extensions |
5432 | Stores everything. Compose uses the pgvector/pgvector:pg16 image. |
| Model server | No | Ollama 0.40.19 in Compose, or any OpenAI-compatible API | 11434 for Ollama | Embeds intents and runs the LLM judge. Without one, the offline hash embedder runs. |
| Slack bot | No | Node 22.19 or later | None in Socket Mode, 3000 in HTTP mode | Lets people who never open a terminal send requests, answer questions and review decisions from Slack. |
| GitHub check | No | None | Calls the merge check from a pull request job. | |
| Engineer machines | Yes | zt, git 2.31 or later, tmux 3.2 or later, and an agent CLI |
None | Start agent sessions and talk to the coordinator. |
| OpenShell launcher hosts | No | Docker and OpenShell 0.1.10 | None | Run agents in sandboxes with zt start --launcher openshell. |
The ports are the defaults. You change the coordinator’s with ZENTRI_ADDR or --addr. See the environment reference for every variable.
Coordinator
Section titled “Coordinator”The coordinator is one static Go binary. It is built with CGO_ENABLED=0, so it needs no C libraries. The container image from server/Dockerfile is based on gcr.io/distroless/static-debian13:nonroot, runs as the nonroot user, and exposes port 8080.
You configure it with environment variables and flags only. It holds no model keys for your agents and no git credentials. It needs network access to:
- Postgres.
- The model server, if you set one.
- An OpenTelemetry collector, if you set
OTEL_EXPORTER_OTLP_ENDPOINT.
It needs inbound access from engineer machines, sandboxes, the Slack bot and the GitHub check.
Run one coordinator per database. Most of its rate limiters live in memory, so a second replica would keep its own budgets. The claim request limit is the exception, because it is counted in Postgres and shared. Rate limiting across replicas for the rest is deferred in the threat model.
Postgres
Section titled “Postgres”The coordinator needs Postgres 16 with two extensions:
vector(pgvector), for 768-dimension embeddings.pg_trgm, for symbol search.
Compose creates both when the volume is first made, with deploy/postgres/init/001-extensions.sql. The migrations also create them if they are missing and the migrating role is allowed to.
Zentri uses three roles:
| Role | Login | Used for |
|---|---|---|
The owner, zentri in Compose |
Yes | Runs migrations and owns the tables. |
zentri_app |
No | A group role. Each migration grants it only what the coordinator needs. |
zentri_coordinator |
Yes | The role the coordinator connects as. It is a member of zentri_app. |
The coordinator role can only read and insert rows in the audit log. It cannot update or delete them.
Managed Postgres
Section titled “Managed Postgres”If you use a hosted Postgres, check that it offers vector and pg_trgm for version 16. Then create the two roles once, as the owner:
CREATE ROLE zentri_app NOLOGIN;CREATE ROLE zentri_coordinator LOGIN IN ROLE zentri_app PASSWORD '<coordinator password>';Point ZENTRI_MIGRATE_DATABASE_URL at the owner and ZENTRI_DATABASE_URL at zentri_coordinator. See Upgrades and migrations.
Engineer machines
Section titled “Engineer machines”Each engineer runs zt. zt doctor checks what it needs:
| Program | Minimum | If missing |
|---|---|---|
| git | 2.31 | Fails |
| tmux | 3.2 | Fails. The local-dev launcher runs agents in it. |
claude (Claude Code) |
2.1.295 | Warns. zt start refuses an older one. |
codex |
0.172.0 | Warns |
opencode |
2.4.2 | Warns |
| docker | Any that answers | Warns. Only the openshell launcher needs it. |
| openshell | 0.1.10 | Warns. Only the openshell launcher needs it. |
See Troubleshooting for each check.
OpenShell launcher hosts
Section titled “OpenShell launcher hosts”The openshell launcher runs each agent in an OpenShell sandbox with deny-by-default egress. The host needs Docker, the OpenShell 0.1.10 gateway and CLI, and an image built with make sandbox-image AGENT=<kit>. On native Linux the gateway uses host networking. On Docker Desktop it uses a bridge. See Sandboxing and OpenShell policies.
Sizing
Section titled “Sizing”No one has measured the coordinator’s or Postgres’s CPU, memory or disk use under load yet. This page gives no sizing figures for them. These are the factors that drive size:
| Factor | What grows | Limit in the code |
|---|---|---|
| Active sessions | Claims, notices, plans and snapshots | 500 active claims per session. Claim requests at 1 per second, burst 60. |
| Snapshots | Rows in session_snapshots |
A patch of up to 512 KiB, up to 30 snapshots a minute per session. |
| Embeddings | 768-dimension vectors on intents, plans, questions and decisions | About 3 KB per vector, plus an HNSW index on intents. |
| Audit log | One row per write | None. The coordinator role cannot delete rows. |
| Model calls | CPU or GPU on the model host | Up to 6 chat calls per intent check, each bounded by ZENTRI_MODEL_TIMEOUT (5 s by default). |
The coordinator role cannot delete snapshots, plans or audit rows, and no job prunes them. Plan disk for growth, and watch it.
Model host
Section titled “Model host”The one measured figure is for the model host. ADR-0006 ran the intent check on a 16 GB laptop with 10 CPU cores (4 performance and 6 efficiency) and no GPU. It used Ollama 0.40.19 in Docker with the Compose settings, 4 threads per model and both models kept loaded, embeddinggemma:300m for embeddings and qwen3:4b-instruct as the judge, one call at a time, with the 5 s timeout. Over 863 checks on four labeled sets, the range across the sets was:
| Measure | Time |
|---|---|
| Median | 4.2 to 5.6 s |
| 95th percentile | 9.1 to 12.1 s |
| Maximum | 18.9 s |
82 of 2,506 judge calls failed, and more of them when other work loaded the laptop. Before Ollama ran on 4 threads, 17% to 38% did. Set OLLAMA_THREADS to your number of performance cores. A check that times out falls back and counts in zentri_intent_degraded_total. These figures come from one machine with one call at a time. They do not tell you how the model host behaves with many sessions at once.
Limitations
Section titled “Limitations”- No release has been published. You build the binaries and the image from source. See Release process.
- The Helm chart is tested on a local kind cluster only, and is not published. See Kubernetes.
- Running more than one coordinator against one database is not tested. Only the shared claim rate limit is tested with two claim services on one database.