Environment variables¶
Every environment variable alr reads, found by walking the code: each read of the process environment, with the variable's name taken from the code.
Groups:
alr's own variables¶
Variables only alr uses.
ALR_CLIENTSALR_COST_CENTERSALR_CREDENTIAL_IDALR_CREDENTIAL_KINDALR_CREDENTIAL_LABELALR_DESTINATIONALR_EMIT_AGENT_IDALR_EMIT_COST_ALLOCATIONALR_EMIT_COST_BASISALR_EMIT_HARNESS_VERSIONALR_EMIT_HERMES_TURN_TTL_SALR_EMIT_HOMEALR_EMIT_LOCK_TIMEOUT_SALR_EMIT_PRICES_DIRALR_EMIT_PRICES_URLALR_EMIT_PROBE_PLUGINALR_EMIT_PROJECT_DIRALR_EMIT_SETTLE_SALR_EMIT_SINKALR_GRADERALR_LOCAL_RATESALR_LOG_DIRALR_PLAN_FILEALR_PRICE_BOOK_KEYSALR_PRINCIPALALR_PROFILEALR_PROJECTALR_PROJECTSALR_PROJECT_RATES_PAIDALR_PROVIDERALR_RATES_FILEALR_RATES_SHA256ALR_RECORD_FILE_MODEALR_REPO_SETTINGSALR_TAGGERALR_TAGSALR_TAG_CHECKSALR_TASK_CLASSALR_TRANSMITALR_WORK_TYPES
ALR_CLIENTS¶
- Read by:
alr_emit.tag_lists - From the code: The client list file (CSV, alr-clients.csv) read when --clients does not name one.
ALR_COST_CENTERS¶
- Read by:
alr_emit.tag_lists - From the code: The cost-center list (alr-cost-centers.csv) read when --cost-centers names none.
ALR_CREDENTIAL_ID¶
- Read by:
alr_emit.config - Sets the configuration key
credential_id
ALR_CREDENTIAL_KIND¶
- Read by:
alr_emit.config - Sets the configuration key
credential_kind
ALR_CREDENTIAL_LABEL¶
- Read by:
alr_emit.config - Sets the configuration key
credential_label
ALR_DESTINATION¶
- Read by:
alr_emit.config - Sets the configuration key
destination
ALR_EMIT_AGENT_ID¶
- Read by:
alr_emit.adapters.claude_code - From the code: The agent id on each record, in place of the OS user name.
ALR_EMIT_COST_ALLOCATION¶
- Read by:
alr_emit.adapters.claude_code - From the code: Set to off (or 0, no) to keep a session's cost on the session record, never shared over its turns. "off": never share a session cost over its turns
ALR_EMIT_COST_BASIS¶
- Read by:
alr_emit.costmap,alr_emit.viewer.plan_cli - From the code: The cost basis a record's cost is reported on (metered or api-equivalent), when no flag gives it.
ALR_EMIT_HARNESS_VERSION¶
- Read by:
alr_emit.adapters.grok_tui - From the code: The Grok version written on each record, when --harness-version does not give it.
ALR_EMIT_HERMES_TURN_TTL_S¶
- Read by:
alr_emit.adapters.hermes - From the code: Idle seconds after which an open turn is flushed as an orphan.
ALR_EMIT_HOME¶
- Read by:
alr_emit.paths - From the code: One directory that holds all of alr's own files: state, the record file, kit state.
ALR_EMIT_LOCK_TIMEOUT_S¶
- Read by:
alr_emit.adapters.claude_code - From the code: Hooks run inside the user's session, so their wait for the sink lock is bounded; backfill, an operator command, waits without a limit.
ALR_EMIT_PRICES_DIR¶
- Read by:
alr_emit.viewer.pricebook - From the code: The directory alr prices update stores price books in (default: \<alr home>/prices).
ALR_EMIT_PRICES_URL¶
- Read by:
alr_emit.viewer.prices_update - From the code: The URL alr prices update fetches the price book from, in place of the default.
ALR_EMIT_PROBE_PLUGIN¶
- Read by:
alr_emit.kit - From the code: The installed plugin directory the probe loads (set by
probe).
ALR_EMIT_PROJECT_DIR¶
- Read by:
alr_emit.adapters.hermes - From the code: The project directory for Hermes when the session gives none (its project config and tags).
ALR_EMIT_SETTLE_S¶
- Read by:
alr_emit.adapters.claude_code - From the code: Seconds a Stop hook waits for its turn's last transcript line (default 3; 0 turns the wait off).
ALR_EMIT_SINK¶
- Read by:
alr_emit.config,alr_emit.kit,alr_emit.sink - From the code: The record file itself (a path), above log_dir and every config layer. earlier releases' record-file variable (alr_emit.sink)
- From the code: The record file the emitters append to (a path), above log_dir and the default.
ALR_GRADER¶
- Read by:
alr_emit.viewer.cli
ALR_LOCAL_RATES¶
- Read by:
alr_emit.config
ALR_LOG_DIR¶
- Read by:
alr_emit.config - Sets the configuration key
log_dir
ALR_PLAN_FILE¶
- Read by:
alr_emit.config - Sets the configuration key
plan_file
ALR_PRICE_BOOK_KEYS¶
- Read by:
alr_emit.config
ALR_PRINCIPAL¶
- Read by:
alr_emit.viewer.plan_cli - From the code: Who issues a plan or accepts a task, when --by does not say.
ALR_PROFILE¶
- Read by:
alr_emit.config
ALR_PROJECT¶
- Read by:
alr_emit.config,alr_emit.viewer.plan_cli - Sets the configuration key
project - From the code: The project the alr plan interview offers as its first answer.
ALR_PROJECTS¶
- Read by:
alr_emit.projects - From the code: The project list file (CSV) alr projects reads, when --projects does not name one.
ALR_PROJECT_RATES_PAID¶
- Read by:
alr_emit.config
ALR_PROVIDER¶
- Read by:
alr_emit.config - Sets the configuration key
provider
ALR_RATES_FILE¶
- Read by:
alr_emit.config
ALR_RATES_SHA256¶
- Read by:
alr_emit.config
ALR_RECORD_FILE_MODE¶
- Read by:
alr_emit.config
ALR_REPO_SETTINGS¶
- Read by:
alr_emit.config
ALR_TAGGER¶
- Read by:
alr_emit.viewer.cli
ALR_TAGS¶
- Read by:
alr_emit.commands - From the code: Tags added to every record, separated by commas or spaces.
ALR_TAG_CHECKS¶
- Read by:
alr_emit.config
ALR_TASK_CLASS¶
- Read by:
alr_emit.config - Sets the configuration key
task_class
ALR_TRANSMIT¶
- Read by:
alr_emit.config - Sets the configuration key
transmit
ALR_WORK_TYPES¶
- Read by:
alr_emit.config
Variables a harness sets¶
Variables a harness, or its user, sets for the harness itself; alr reads them to follow it.
CLAUDE_CODE_ENABLE_TELEMETRYCLAUDE_CODE_USE_*CLAUDE_CONFIG_DIRGROK_HOMEGROK_HOOK_EVENTGROK_SESSION_IDHERMES_HOMEOTEL_*
CLAUDE_CODE_ENABLE_TELEMETRY¶
- Read by:
alr_emit.otel_ctl - From the code: The variable that turns Claude Code's telemetry on; with the
OTEL_*family it is what a shell can set beside the settings file (shell_telemetry).
CLAUDE_CODE_USE_*¶
- Every variable whose name starts with
CLAUDE_CODE_USE_; the code namesCLAUDE_CODE_USE_BEDROCK,CLAUDE_CODE_USE_VERTEX - Read by:
alr_emit.billing
CLAUDE_CONFIG_DIR¶
- Read by:
alr_emit.otel_ctl - From the code: The variable that moves Claude Code's user settings directory (its
settings.jsonis then$CLAUDE_CONFIG_DIR/settings.json).
GROK_HOME¶
- Read by:
alr_emit.adapters.grok_tui,alr_emit.kit - From the code: Grok's own home, where its session journals are read (default ~/.grok).
GROK_HOOK_EVENT¶
- Read by:
alr_emit.adapters.grok_tui
GROK_SESSION_ID¶
- Read by:
alr_emit.adapters.grok_tui
HERMES_HOME¶
- Read by:
alr_emit.kit
OTEL_*¶
- Read by:
alr_emit.otel_ctl
Standard system variables¶
Variables the operating system or the user's shell sets.
HOME¶
- Read by:
alr_emit.dashboard.builder,alr_emit.paths,alr_emit.viewer.local_rates
LOCALAPPDATA¶
- Read by:
alr_emit.kit
PATH¶
- Read by:
alr_emit.kit
TZ¶
- Read by:
alr_emit.viewer.render
USERPROFILE¶
- Read by:
alr_emit.dashboard.builder,alr_emit.paths,alr_emit.viewer.local_rates
XDG_CONFIG_HOME¶
- Read by:
alr_emit.config
XDG_STATE_HOME¶
- Read by:
alr_emit.paths
Other uses of the environment¶
Some code copies the whole environment, to hand it to its own helpers or to a command it starts; a copy is not a read, and the variables the helpers read are listed above: alr_emit.dashboard.builder, alr_emit.kit, alr_emit.otel_ctl, alr_emit.viewer.cli.
The Python standard library also reads variables for alr: getpass.getuser() (the default name of a grader or a tagger) reads LOGNAME, USER, LNAME and USERNAME, and Path.home() reads HOME (USERPROFILE on Windows).