Skip to content

Configuration Reference

Server Configuration

Configuration is loaded from server/config/sys.config or environment variables.

Core Settings

SettingDefaultDescription
port8001HTTP listener port
tls_enabledfalseEnable HTTPS
tls_cert_fileTLS certificate path
tls_key_fileTLS private key path
auth_enabledfalseRequire authentication
workspace_root.Workspace files root directory
session_dir./sessionsSession storage directory

Inference Settings

SettingDefaultDescription
inference_bin./llama-serverllama.cpp server binary
inference_gpu_layers99GPU layers to offload
inference_ctx_size4096Context window size
inference_threads4CPU threads

Memory Settings

SettingDefaultDescription
memory_pg_dsnPostgreSQL DSN for vector storage
memory_embed_modelEmbedding model path

ZMQ Settings

SettingDefaultDescription
zmq_router_port5555ZMQ ROUTER bind port
zmq_pub_port5556ZMQ PUB bind port

Monitoring

SettingDefaultDescription
prometheus_enabledtrueExpose /metrics endpoint
otel_enabledfalseOpenTelemetry tracing

CLI Configuration

Stored at ~/.zerg/config.json:

json
{
  "profiles": {
    "default": {
      "url": "https://api.nonsense.ws",
      "token": "your-api-token"
    },
    "staging": {
      "url": "https://staging.nonsense.ws",
      "token": "staging-token"
    }
  }
}

Luna Agent Configuration

Luna uses ~/.luna/config.json:

json
{
  "provider": "anthropic",
  "model": "claude-sonnet-4-20250514",
  "permission_mode": "default",
  "theme": "default"
}

Released under the MIT License.