Keys

Every secret is one of two sticky notes.

FieldWhat you write
apiKeyThe token, written out. Fine for a laptop that never leaves the house.
apiKeyEnvThe name of the environment variable that holds the token.

One of them. The front door, the classifier, and every model use the same pair. The harness shows the front-door key. Upstream keys stay in the process. When the file is wrong, the error names the drawer. It leaves the token out of the message, which is a mercy for anyone reading the log later.

TOML remembers which room you walked into. Keys for the whole building go before the first table.

apiKeyEnv = "HALL_MONITOR_API_KEY"
maxStateChars = 16000
upstreamIdleSeconds = 300
defaultPrefer = ["public-fast"]

[listen]
host = "127.0.0.1"
port = 8080

Write apiKeyEnv under [listen] and you have labeled the listen block. The front door still has an empty hook. The monitor mentions that before anyone gets in.