Skip to content

Self-host

Your agents, prompts, and traces stay in your boundary

Run Kibitz on a laptop, an internal server, or multiple stateless web replicas backed by a shared RWX volume. Trace and evaluation resources are stored outside the image and written atomically.

Private trace archive receiving authenticated agent data and replicating to a second node
Ingestion, resource storage, and the application remain separable. Replace a web container without replacing its trace history.

01

Local

One process and human-readable JSON files. Best for evaluating private coding-agent sessions.

02

Persistent server

Docker Compose keeps traces and prompt/evaluation resources in named volumes across container replacement.

03

Multiple replicas

Web instances are stateless. Mount the same RWX trace/resource directories; atomic rename prevents partial JSON reads.

Project-scoped access without handing API keys to the browser

External collectors use read or ingest roles. A scoped token can force every incoming run into one project and restrict every API result to the same project.

  • Separate read, ingest, and admin roles
  • Project is derived from the token rather than trusted request data
  • Prompt recording remains opt-in in the LangChain callback
  • BYOK keys stay server-side; optional Claude Code/Codex auth remains inside the installed CLI
  • OTLP and direct Run ingestion share the same authorization path
  1. 01

    Collector

    Python, TypeScript, OTLP, Langfuse, Claude Code, Codex, and direct HTTP enter through authenticated routes.

  2. 02

    Store

    Each trace is an idempotent file. Temporary write plus same-directory rename makes every visible document complete.

  3. 03

    Investigate

    Any stateless web replica reads the same trace and resource directories and derives sessions, scores, and failure clusters.

Project token configuration
KIBITZ_PROJECT_TOKENS={
  "collector-token": {"project":"agent-prod","role":"ingest"},
  "reader-token": {"project":"agent-prod","role":"read"}
}
Docker Compose
KIBITZ_INGEST_TOKEN=replace-me
KIBITZ_READ_TOKEN=replace-me
docker compose up -d

# Multiple replicas: mount the same RWX paths
KIBITZ_DATA_DIR=/data/traces
KIBITZ_RESOURCE_DIR=/data/resources

Deploy the smallest topology that matches the workload

Start with Docker Compose. Move the same data directories to a shared persistent volume when you add replicas.

Read self-hosting docs