Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Infrastructure

Gaius runs on a local development infrastructure managed by devenv (Nix-based), with process-compose for service orchestration and Just for task running.

Components

ComponentPurposePortManagement
devenvNix-based development environmentdevenv shell
process-composeService orchestrationdevenv processes up/down
JustTask runner (recipes)just <recipe>
PostgreSQLPrimary database (zndx_gaius)5444devenv process
QdrantVector store (768-dim embeddings)6333/6334devenv process
AeronIPC transport (engine ↔ worker)devenv process
NiFiData ingestion (Brave, arXiv, RSS)8443devenv process
MetabaseAnalytics dashboards3000devenv process
Gaius EnginegRPC daemon (37 services)50051devenv process
PrometheusTime-series metric storage9090devenv process
OTel CollectorTelemetry pipeline4317devenv process

Quick Start

# Enter development environment
devenv shell

# Start all services
devenv processes up

# Or clean restart (preferred)
just restart-clean

# Check status
uv run gaius-cli --cmd "/health" --format json

Architecture

devenv.nix is a pure service declaration file (~470 lines). It defines packages, environment variables, service configurations, and process dependency graphs. All process startup bash lives in scripts/processes/*.sh.

See: