// CONTENTS Part 13 · Reference

// PART 13

Environment variables

Chapter 54 / 60 3 min read English Part 13 of 15

A name reference only — no values. Bot-level settings belong in config.csv; credentials belong in Vault. Resolution order for most secrets: Vault → environment → built-in default. Canonical example files: .env.example, botserver/.env.example, botmodels/.env.example. The complete generated index (349 names read in Rust plus the BotModels Python service, each with its first read site) lives in the legacy BotBook reference; grep the repository for a name to see every consumer.

Runtime essentials

Variable Purpose
VAULT_ADDR / VAULT_TOKEN / VAULT_CACERT / VAULT_SKIP_VERIFY / VAULT_CACHE_TTL Vault connection and cache (TTL default 300 s)
VAULT_TOKEN_FILE / VAULT_CLIENT_CERT / VAULT_CLIENT_KEY alternative Vault credentials
DATABASE_URL PostgreSQL string (prod credentials from Vault gbo/tables)
CACHE_URL / REDIS_URL / VALKEY_URL / REDIS_DB cache connection and database index for namespace isolation
LLM_URL / LLM_MODEL / LLM_KEY LLM fallback when Vault has no entry
LLM_READ_TIMEOUT_SECS / LLM_TURN_TIMEOUT_SECS first-chunk (120) and per-turn (300) timeouts
SAAS_JWT_SECRET / JWT_SECRET / GB_ALLOW_DEV_JWT_SECRET JWT secret fallbacks; the persisted saas_jwt_secret wins
RUST_LOG log filter
BOTSERVER_HOST / BOTSERVER_DISABLE_TLS bind address; TLS off (throwaway profiles only)
BOTSERVER_STACK_PATH / GBO_STACK_PATH / STACK_PATH stack roots
BOTSERVER_BIN / BOTSERVER_INSTALLERS_PATH / BOTUI_PATH explicit binary/installer/UI locations
BOTUI_PORT / BOTUI_CLOUD_PORT / BOTUI_LOGIN_PORT 3000 / 4000 / 5000
GB_LOGIN_URL / GB_PUBLIC_URL / GB_PLATFORM_DOMAIN / LOGIN_URL origins and platform domain
DRIVE_SCAN_INTERVAL drive discovery cadence (default 30 s)
GB_VIBE_GIT_MONITOR_SECS git monitor cadence (default 15 s)
GB_SERVICES_ON re-enable a service a product file switched off
GB_ALLOW_LAN allow LAN exposure of the LAN-gated feature (OS appliance)
GB_DESKTOP_OFFLINE / GB_DESKTOP_ALLOW_DOWNLOAD offline vs first-run downloads
GB_WIZARD_MODEL_MODE / GB_WIZARD_LLM_URL / GB_WIZARD_LLM_MODEL / GB_WIZARD_LLM_KEY / GB_WIZARD_WITH_BOTMODELS first-run wizard LLM plan
OTTERIO_ACCESS_KEY / OTTERIO_SECRET_KEY / OTTERIO_ENDPOINT / OTTERIO_BUCKET / OTTERIO_BACKEND Drive fallback when Vault is unreachable (no hardcoded fallback — missing vars are an error)
QDRANT_URL / QDRANT_API_KEY / VECTORDB_URL / VECTORDB_API_KEY vector database endpoints
MAIL_HOST / MAIL_PORT / MAIL_USER / MAIL_PASS / MAIL_FROM mail relay fallback (Vault gbo/email wins)
GB_RUN_EVENTS / GB_RUN_EVENTS_RETENTION_DAYS run-event stream and retention
GB_TRASH_PURGE_SECS / GB_TERMINAL_AUDIT_PURGE_SECS retention jobs (trash hourly; terminal audit 90 days)
GB_APPROVALS_SIGNING_KEY approvals signing key (else a per-process random key)
GB_SESSION_TTL_SECS session lifetime (directory auth routes)
GB_PROMPT_API_CATALOG inject the API command catalog into prompts (opt-out: 0 for single-user agent-only installs)
GB_REQUIRE_CHECKSUMS require checksum verification for downloaded artifacts
SCIM_TOKENS SCIM bearer tokens; fails closed when unset/malformed
GB_LLM_PROFILES / GB_LLM_PROFILES_FILE / GB_LLM_PRICING routing profiles and pricing JSON
GB_OPS_SLO_PATH / GB_RUNBOOK_BASE_URL SLO config path and runbook deep links
GB_TENANT / GB_WORK_PATH / GBO_WORK_PATH tenant and work-dir overrides for provisioning
GBO_SKIP_LOCAL_DIRECTORY / GBO_SKIP_DIRECTORY_WAIT skip directory bootstrap (desktop/offline paths)

Variables that must never carry production secrets

DATABASE_URL, CACHE_URL, OTTERIO_*, MAIL_*, LLM_KEY are fallbacks. Production sets them in Vault; the .env keeps only VAULT_*.

Found a mistake? Open an issue · All books

// SEARCH ESC
Pagefind · 236 pages · 4 books Enter to open ↑ ↓ to move