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

Configuration

Gaius uses HOCON configuration files with environment variable overrides. The canonical source is config/base.conf.

Configuration Hierarchy

  1. config/base.conf — Default values
  2. ~/.config/gaius/acp.conf — ACP-specific overrides
  3. Environment variables — Highest priority

Database

KeyDefaultEnv VarDescription
database.hostlocalhostPGHOSTPostgreSQL host
database.port5444PGPORTPostgreSQL port
database.namezndx_gaiusPGDATABASEDatabase name
database.usergaiusPGUSERDatabase user
database.passwordgaiusPGPASSWORDDatabase password

Important: Always use gaius.core.config.get_database_url() to get the connection URL. Never hardcode.

Engine

KeyDefaultEnv VarDescription
engine.grpc.host0.0.0.0GAIUS_ENGINE_HOSTgRPC bind host
engine.grpc.port50051GAIUS_ENGINE_PORTgRPC port
engine.grpc.max_workers10Max gRPC worker threads
engine.orchestrator.preload_endpoints["reasoning"]Endpoints to load on startup
engine.orchestrator.startup_timeout600Startup timeout (seconds)
engine.scheduler.default_timeout120GAIUS_ENGINE_TIMEOUTDefault inference timeout
engine.evolution.enabledtrueEnable evolution daemon
engine.evolution.idle_threshold60GPU idle seconds before evolution

Health

KeyDefaultDescription
health.check_interval60Health Observer poll interval (seconds)
health.fmea.learning_rate0.2Adaptive S/O/D learning rate
health.self_healing.enabledtrueEnable automatic remediation

Agents

KeyDefaultDescription
agents.swarm.paralleltrueEnable parallel swarm execution
agents.swarm.timeout60Swarm execution timeout (seconds)
agents.theta.confidence_threshold0.8Theta consolidation confidence threshold

ACP Security

Configured in ~/.config/gaius/acp.conf:

acp {
  github {
    allowed_repos = ["zndx/gaius-acp"]
    require_private = true
    verify_on_each_operation = true
    cache_visibility_seconds = 300
  }
}