Environment variables

Configuration lives in the TOML file. There are no per-key environment overrides: Cognitora does not read COGNITORA__* variables. Secrets are referenced by file path in TOML, such as [auth].api_keys_file and [security].key_file, so Kubernetes Secrets can be mounted as files.

Cognitora variables

VariableEffect
CGN_CONFIGConfig path when --config isn't passed; the fallback is /etc/cognitora/cognitora.toml
CGN_CACHE_DIRWhere downloaded tokenizers are cached; defaults to the system temp directory
CGN_RECIPES_DIRRecipe directory for cgn-ctl recipe
CGN_HELM_BINhelm binary for cgn-ctl
COGNITORA_ETCDetcd endpoint for cgn-ctl
HF_TOKENBearer token for tokenizer_repo downloads, needed for gated repos
HF_ENDPOINTHugging Face mirror for tokenizer_repo

Standard runtime variables

These aren't Cognitora-specific but shape the runtime:

VariableEffect
RUST_LOGoverrides tracing filter (e.g. cgn_router=debug)
OTEL_EXPORTER_OTLP_ENDPOINTenable OTLP/gRPC traces
OTEL_TRACES_SAMPLER_ARGsample rate (0.0 – 1.0)
OTEL_RESOURCE_ATTRIBUTESextra resource tags
TOKIO_WORKER_THREADSTokio worker count
RUST_BACKTRACE1 / full for crash diagnostics