GUI Configuration¶
Precedence¶
autonomy-gui initializes each flag default from environment variables, then
parses CLI flags. Practical precedence:
Explicit CLI flag
Environment variable
Built-in default
Flags and environment variables¶
Flag |
Env var |
Default |
Notes |
|---|---|---|---|
|
|
required |
Path to control-plane SQLite DB |
|
|
|
Listen address |
|
|
|
Enables |
|
|
|
|
|
|
|
Adds HSTS header when GUI terminates TLS |
|
|
empty |
Extra dev-only CSP |
Auth credential mapping env vars¶
Static bearer tokens¶
AUTONOMY_GUI_TOKEN_OPERATORAUTONOMY_GUI_TOKEN_ANALYSTAUTONOMY_GUI_TOKEN_AUDITORAUTONOMY_GUI_TOKEN_INTEGRATOR
Basic auth user mapping¶
AUTONOMY_GUI_USER_<NAME>=<role>
Example:
export AUTONOMY_GUI_USER_alice=operator
export AUTONOMY_GUI_USER_bob=auditor
Defaults and implicit values¶
StaleThresholdSecondsdefaults to300when unset/non-positive in auth config./api/v1/configexposesstale_threshold_secondsfor frontend initialization.
Not implemented / no evidence¶
--registry-tokenCLI flag is not implemented inflagregistration.AUTONOMY_GUI_REGISTRY_TOKENis documented in comments but not consumed byrun().
Minimal examples¶
Minimal (token-based)¶
export AUTONOMY_GUI_TOKEN_AUDITOR='replace-me'
bin/autonomy-gui --db /data/orchestrator.db --addr :8090
Dev mode¶
bin/autonomy-gui --db demo/data/contested.db --addr :8090 --dev-mode
Evidence¶
gui/cmd/gui/main.go(run,buildAuthConfig,envOr,envBool)gui/internal/auth/middleware.go(Config,/api/v1/configheader behavior)gui/internal/api/config.godocs/_generated/test-outputs/gui-help.txt