Skip to content

Configuration

cvsz edited this page Sep 1, 2026 · 1 revision

⚙️ Configuration

Environment Variables

Variable Default Purpose
ZASI_PORT 8080 HTTP server listening port
ZASI_API_KEY (empty) Optional API key auth — if set, all /api/* requests must include X-API-Key: <value> header. /api/status is always public.
GEMINI_API_KEY (empty) Optional Google Gemini 2.0 Flash API key. If unset, falls back to hardcoded persona responses.

Rate Limiting

  • Algorithm: Sliding window (per IP)
  • Limit: 60 requests / minute on all /api/* routes
  • Response on exceed: HTTP 429 with Retry-After header

SQLite State Persistence

  • File: data/zasi_state.db
  • Table: state (key TEXT, value TEXT)
  • Behaviour: State variables are persisted on every /api/mutate and /api/tick. Restored on server startup.

Config File

config/zasi_config.json is written by install.sh:

{
  "version": "32.0.0",
  "subsystems": 176,
  "environment": "production",
  "formal_verification": true,
  "quantum_backend": "QISKIT_OPENQASM_3",
  "telemetry_prober": "NVIDIA_NVML",
  "plan_a_compliance": true,
  "omniversal_equilibrium": 1.0,
  "server_port": 8080
}

Clone this wiki locally