Skip to main content
That is the query API on localhost:8080, allowed to read brains from ghcr.io. There is nothing to install: the image is published with every release, for linux/amd64 and linux/arm64.
1

Start it

The command above. Docker pulls ghcr.io/getsfumato/vitruvio-server:latest the first time. Add -e VITRUVIO_REGISTRY_USERNAME=… -e VITRUVIO_REGISTRY_TOKEN=… when the brain is private.
2

Check it

{"status":"ok"}. /health/live answers the same, and /docs is the interactive OpenAPI page.
3

Ask it something

The first request for a brain pulls it; the next ones hit the cache. The response is the envelope vitruvio search --json prints, with the evidence bundle under data.evidence. The query API has the rest.

Everything, with Compose

Ingestion needs three more pieces: the ingest API, a worker, and the Redis they share. One file brings up all four. It is committed as apps/server/compose.yaml; copy it anywhere.
The file reads a few things from the shell, or from a .env beside it:

One image, three roles

The image’s entrypoint is the vitruvio-server command and its default argument is query:
--init for the worker: it installs no signal handler and runs as PID 1, so without an init process docker stop waits out the grace period. Compose sets init: true for the same reason. A worker killed mid-job loses nothing — its job is reclaimed through a lease — it is only slow to stop. Anything that is not a role goes through the command’s argument parser, so to run something else inside the image pass --entrypoint:

Configuration

Everything is read from the environment. query and ingest also take --host and --port. Do not set the CLI’s selection variables — VITRUVIO_ACTOR_ID, VITRUVIO_BRAIN, VITRUVIO_CONFIG, VITRUVIO_PROJECT — in the server’s environment. The request supplies the brain and the actor; an override is refused (ACTOR_OVERRIDE_REFUSED) and every request fails.

Credentials

The server presents credentials on the caller’s behalf, which is why the destinations are bound to a list the operator wrote rather than to the request:
  • Registry: VITRUVIO_REGISTRY_USERNAME and VITRUVIO_REGISTRY_TOKEN, or DOCKER_USERNAME and DOCKER_TOKEN. Docker Hub wants a personal access token, as publishing explains. The token goes only to hosts in VITRUVIO_SERVER_ALLOWED_REGISTRIES.
  • Embedding providers: the provider’s own variable — OPENAI_API_KEY, VOYAGE_API_KEY, COHERE_API_KEY, ANTHROPIC_API_KEY, HF_TOKEN — or its VITRUVIO_-prefixed form. A request may name a base_url only when it is in VITRUVIO_SERVER_ALLOWED_EMBEDDING_URLS.
  • S3 documents: the standard AWS variables, plus VITRUVIO_SERVER_S3_ENDPOINT for a compatible store.
  • Signing, for governed brains: the worker needs an SSH agent. Mount the socket and point SSH_AUTH_SOCK at it. On Linux: -v "$SSH_AUTH_SOCK:/ssh-agent" -e SSH_AUTH_SOCK=/ssh-agent. On macOS Docker Desktop the host socket cannot be mounted; use -v /run/host-services/ssh-auth.sock:/ssh-agent instead.
The server has no HTTP authentication. Anyone who can reach the port can read every brain the credentials can. Deploy it on a private network or behind a gateway that authenticates.

Pin, upgrade, build

Pin the version on anything that is not a laptop:
Upgrading is changing the tag. There is no state on the instance to migrate, and two versions can run side by side during a rollout. To build the image yourself, from a checkout of the repository:
It installs the workspace from uv.lock, so it builds exactly what the tree says. Compose uses a locally built latest rather than pulling one.

Without Docker

From a checkout, the same command runs directly:
Outside the image the default bind is loopback; pass --host 0.0.0.0 or set VITRUVIO_SERVER_HOST to expose it.

Next

The query API: what to send, and how to read what comes back.