Claude Code environment variables

Updated by

Claude Code v2.1.332 reads 1327 environment variables; 429 of them appear in the official reference, and 110 more existed in earlier releases and are gone. Each entry gives the version it was added in, the version it was removed in if it no longer ships, and what it does where that is known. The list is regenerated with every Claude Code release, tracked back to v2.1.69.

Type part of a name to filter: words match in any order (compact win), and short letter runs match initials (acw finds CLAUDE_CODE_AUTO_COMPACT_WINDOW). Release-by-release changes are in the Claude Code version tracker.

1437 of 1437
VariableStatusWhat it does
ANTHROPIC_API_KEY
Authentication
—
Documented
Primary API key for Claude API
ANTHROPIC_AUTH_TOKEN
Authentication
—
Documented
Alternative bearer token; takes priority over API key
ANTHROPIC_AWS_API_KEY
Cloud providers
—
Documented
—
ANTHROPIC_AWS_BASE_URL
Cloud providers
—
Documented
—
ANTHROPIC_AWS_WORKSPACE_ID
Cloud providers
—
Documented
—
ANTHROPIC_BASE_URL
Network and proxy
—
Documented
Custom endpoint for Anthropic services
ANTHROPIC_BEDROCK_BASE_URL
Cloud providers
—
Documented
Alternative Bedrock endpoint (alias)
ANTHROPIC_BEDROCK_MANTLE_BASE_URL
Cloud providers
—
Documented
—
ANTHROPIC_BEDROCK_REGION_PREFIX
Cloud providers
—
Documented
Tells Bedrock to prefer a specific cross-region inference-profile prefix over the one derived from AWS_REGION. Claude Code is explicit that this is "a…
ANTHROPIC_BEDROCK_SERVICE_TIER
Cloud providers
—
Documented
—
ANTHROPIC_BETAS
Other
—
Documented
Comma-separated beta feature headers
ANTHROPIC_CUSTOM_HEADERS
Other
—
Documented
Custom HTTP headers (newline-separated Key: Value)
ANTHROPIC_CUSTOM_MODEL_OPTION
Models and thinking
—
Documented
—
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_CUSTOM_MODEL_OPTION_NAME
Models and thinking
—
Documented
—
ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_HAIKU_MODEL
Models and thinking
—
Documented
Override Haiku model ID
ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_MODEL
Models and thinking
—
Documented
Sets the model new sessions begin on. A /model selection overrides it and is remembered across restarts, unlike ANTHROPIC_MODEL. The picker marks a value set…
ANTHROPIC_DEFAULT_OPUS_MODEL
Models and thinking
—
Documented
Override Opus model ID
ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_OPUS_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_SONNET_MODEL
Models and thinking
—
Documented
Override Sonnet model ID
ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_SONNET_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_FEDERATION_RULE_ID
Other
—
Documented
—
ANTHROPIC_FOUNDRY_API_KEY
Cloud providers
—
Documented
Foundry API key
ANTHROPIC_FOUNDRY_AUTH_TOKEN
Cloud providers
—
Documented
—
ANTHROPIC_FOUNDRY_BASE_URL
Cloud providers
—
Documented
Custom Foundry endpoint
ANTHROPIC_FOUNDRY_RESOURCE
Cloud providers
—
Documented
Foundry resource name
ANTHROPIC_GOOGLE_CLOUD_BASE_URL
Cloud providers
—
Documented
—
ANTHROPIC_GOOGLE_CLOUD_LOCATION
Cloud providers
—
Documented
—
ANTHROPIC_GOOGLE_CLOUD_PROJECT
Cloud providers
—
Documented
—
ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID
Cloud providers
—
Documented
—
ANTHROPIC_LOG
Debugging
—SDK internal logging level
ANTHROPIC_MODEL
Models and thinking
—
Documented
Override the default Claude model
ANTHROPIC_ORGANIZATION_ID
Other
—
Documented
—
ANTHROPIC_PROFILE
Debugging
—
Documented
—
ANTHROPIC_SMALL_FAST_MODEL
Models and thinking
—
Documented
Override small/fast model for quick operations
ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION
Cloud providers
—
Documented
AWS region for small fast model on Bedrock
ANTHROPIC_VERTEX_BASE_URL
Cloud providers
—
Documented
—
ANTHROPIC_VERTEX_PROJECT_ID
Cloud providers
—
Documented
Google Cloud project ID
ANTHROPIC_WORKSPACE_ID
Other
—
Documented
—
API_FORCE_IDLE_TIMEOUT
Network and proxy
—
Documented
—
API_TIMEOUT_MS
Network and proxy
—
Documented
Request timeout in milliseconds
AWS_BEARER_TOKEN_BEDROCK
Cloud providers
—
Documented
Bearer token for Bedrock authentication
BASH_DEFAULT_TIMEOUT_MS
Network and proxy
—
Documented
—
BASH_MAX_OUTPUT_LENGTH
Shell and tools
—
Documented
Max bash output character length
BASH_MAX_TIMEOUT_MS
Network and proxy
—
Documented
—
BETA_TRACING_ENDPOINT
Other
—
Documented
Custom endpoint for beta tracing
CCR_FORCE_BUNDLE
Feature toggles
—
Documented
—
CLAUDECODE
Other
—
Documented
Set to 1 in child shell processes (auto-set)
CLAUDE_AFK_COUNTDOWN_MS
Other
Added between v2.1.143 and v2.1.212Milliseconds before the away-from-keyboard timeout at which the warning countdown begins; defaults to 20000 and is capped at the timeout length.
CLAUDE_AFK_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212Milliseconds of inactivity before the away-from-keyboard timeout fires; setting it also enables the idle countdown display.
CLAUDE_AFTER_LAST_COMPACT
Context and compaction
Present since v2.1.69 or earlierRequest only conversation logs after last compaction
CLAUDE_AGENT
Agents and subagents
Added between v2.1.118 and v2.1.123Short-form identifier for the current agent, used in inter-agent messaging and log attribution.
CLAUDE_AGENTS_AUTO_RELAUNCHED_AT
Agents and subagents
Added between v2.1.118 and v2.1.123Timestamp set when the agent fleet was automatically relaunched after a crash. Downstream consumers can detect state that predates the relaunch and invalidate…
CLAUDE_AGENTS_SELECT
Agents and subagents
Added between v2.1.118 and v2.1.123Selects which agents from a fleet configuration are active for this session or job. Analogous to a feature flag for agents: target a specific agent variant…
CLAUDE_AGENT_SDK_CLIENT_APP
Agents and subagents
Present since v2.1.69 or earlierClient application name
CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS
Agents and subagents
Present since v2.1.69 or earlier
Documented
Disable built-in agent types
CLAUDE_AGENT_SDK_DISABLE_MCP_MANIFESTS
Agents and subagents
Added between v2.1.269 and v2.1.283—
CLAUDE_AGENT_SDK_MCP_NO_PREFIX
Agents and subagents
Present since v2.1.69 or earlier
Documented
Don't prefix MCP tool names with server name
CLAUDE_AGENT_SDK_VERSION
Agents and subagents
Present since v2.1.69 or earlierAgent SDK version sent in User-Agent header
CLAUDE_AI_AUTHORIZE_URL
Authentication
Present since v2.1.69 or earlierAuthorization URL endpoint
CLAUDE_AI_HOST
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_AI_IMPORT_SHAPE
Other
Removed between v2.1.252 and v2.1.266—
CLAUDE_AI_INFERENCE_SCOPE
Other
Present since v2.1.69 or earlier—
CLAUDE_AI_OAUTH_SCOPES
Authentication
Removed between v2.1.269 and v2.1.283—
CLAUDE_AI_ORIGIN
Other
Added in v2.1.84Overrides the base URL for Claude AI authentication endpoints. This complements the existing CLAUDE_CODE_API_BASE_URL (which controls the inference endpoint)…
CLAUDE_AI_PLUGINS_SCOPE
Plugins and skills
Added between v2.1.266 and v2.1.269—
CLAUDE_AI_PRIVACY_CONSENTS_WRITE_SCOPE
Other
Added between v2.1.321 and v2.1.323—
CLAUDE_AI_PROFILE_SCOPE
Debugging
Present since v2.1.69 or earlier—
CLAUDE_AI_PROJECTS_READ_SCOPE
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_AI_PROJECTS_WRITE_SCOPE
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_AI_SESSIONS_SCOPE
Sessions
Added in v2.1.300—
CLAUDE_AI_SIGN_IN_STEP
Other
Added in v2.1.324—
CLAUDE_API_KEY
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_API_SKILL_DESCRIPTION
Plugins and skills
Removed between v2.1.252 and v2.1.266Registration hook for the built-in "claude-api" skill that bundles Anthropic SDK docs (Python, TypeScript, Java, Go, Ruby, PHP, C#, curl) plus shared…
CLAUDE_ARTIFACT_HOST_GRANT
Other
Added between v2.1.269 and v2.1.283Supplies the local-server host grant for artifact publishing, controlling which local MCP servers a published artifact may reach through callTool and watchTool.
CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS
Network and proxy
Added between v2.1.108 and v2.1.114
Documented
Default 600,000ms (10 minutes). Directly backs v2.1.113's "subagents that stall mid-stream now fail with a clear error after 10 minutes" changelog bullet. Tune…
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE
Context and compaction
Present since v2.1.69 or earlier
Documented
Set when auto-compaction triggers (percentage threshold)
CLAUDE_AUTO_BACKGROUND_TASKS
Sessions
Present since v2.1.69 or earlier
Documented
Enable automatic background task execution
CLAUDE_AX_ANNOUNCEMENT_HOLD_MS
Terminal and UI
Added in v2.1.288Milliseconds to hold a screen reader announcement when a hold is requested; defaults to 1000 and is capped at 10000.
CLAUDE_AX_PREPARK_MS
Terminal and UI
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_AX_REWRITE_HELD_ANNOUNCEMENT
Terminal and UI
Added in v2.1.288—
CLAUDE_AX_SCREEN_READER
Terminal and UI
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_AX_STARTUP_QUIET_MS
Terminal and UI
Added between v2.1.215 and v2.1.217
Documented
Startup quiet window (milliseconds) for screen-reader mode. First shipped v2.1.217; the changelog names the fix but not the knob.
CLAUDE_BASE
Other
Added in v2.1.92Likely overrides the base URL or base configuration path for Claude Code. This is a compact alternative to the more specific CLAUDE_CODE_API_BASE_URL —…
CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR
Shell and tools
Present since v2.1.69 or earlier
Documented
Maintain consistent working directory across commands
CLAUDE_BASH_NO_LOGIN
Shell and tools
—Replaced by CLAUDE_CODE_SHELL_PREFIX
CLAUDE_BG_AUTH_SNAPSHOT_PATH
Authentication
Added between v2.1.138 and v2.1.143Path for snapshotting background session auth credentials to disk. Fixes the failure mode where a background session lost auth mid-run and corrupted its state…
CLAUDE_BG_AUTO_MEMORY_OFF
Memory and CLAUDE.md
Added in v2.1.285—
CLAUDE_BG_BACKEND
Sessions
Added between v2.1.108 and v2.1.114Set to "daemon" to route background work through a daemon backend. The code path is wrapped around EIO/EPIPE handling — pipe/socket IPC with graceful…
CLAUDE_BG_CARRIED_PROMPTS_SHA256
Sessions
Added in v2.1.293—
CLAUDE_BG_CLAIM_AUTH
Authentication
Added between v2.1.143 and v2.1.212Held the claim authentication token for a background spare session's claim gate, used as a fallback when the socket tokens file supplied none; read until…
CLAUDE_BG_CRASH_UPLOAD_JUDGED
Sessions
Added between v2.1.326 and v2.1.331—
CLAUDE_BG_DISPATCHER_RATE_LIMIT_TIER
Sessions
Added between v2.1.247 and v2.1.252—
CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPE
Sessions
Added between v2.1.247 and v2.1.252—
CLAUDE_BG_DISPATCH_ENTRYPOINT
Sessions
Added in v2.1.321In a background session (session kind bg), supplies the entrypoint identifier used in place of the normal one, when it passes a validity check.
CLAUDE_BG_GATEWAY_ROUTED
Sessions
Added between v2.1.324 and v2.1.326—
CLAUDE_BG_GATEWAY_WITHHELD
Sessions
Added between v2.1.301 and v2.1.303Carries the path of an LLM gateway that was set in your shell but not passed through to a background session opened from another folder. It backs the clearer…
CLAUDE_BG_ISOLATION
Sessions
Added between v2.1.118 and v2.1.123Isolation mode for background agent processes — controls how separated the daemon's process space is from the foreground session. Values likely span a…
CLAUDE_BG_MEMORY_TOGGLED_OFF
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212When set to 1 in a background session, turns memory off for that session.
CLAUDE_BG_POST_CLEAR_RESPAWN
Sessions
Added between v2.1.143 and v2.1.212Marks a background session respawned after a clear; when set, it is treated like a resumed session so the initial agent setup is skipped.
CLAUDE_BG_PTY_AUTH
Authentication
Added between v2.1.143 and v2.1.212Carries the authentication token for the background PTY host's data gate; it is consumed and removed at startup, and the socket tokens file takes precedence.
CLAUDE_BG_RENDEZVOUS_SOCK
Sessions
Added between v2.1.118 and v2.1.123Socket path for the IPC channel between a foreground Claude session and the background daemon. The daemon starts independently and listens; the foreground…
CLAUDE_BG_RV_AUTH
Authentication
Added between v2.1.143 and v2.1.212Carries the authentication token for the background rendezvous socket server; it is consumed and removed at startup, and the socket tokens file takes…
CLAUDE_BG_SESSION_CREDENTIAL
Authentication
Added between v2.1.321 and v2.1.323Supplies the credential for a background session; it is read only when a gating check passes and is used only if the value validates, otherwise ignored.
CLAUDE_BG_SESSION_PERMISSION_RULES
Permissions and sandbox
Added between v2.1.143 and v2.1.212In a background session, supplies JSON permission rules with allow and deny arrays and optional addDirs; ignored when absent or malformed.
CLAUDE_BG_SILENT_PEER_TIMEOUT_MS
Network and proxy
Added in v2.1.315—
CLAUDE_BG_SOCKET_TOKENS_PATH
Authentication
Added between v2.1.143 and v2.1.212Path to a file holding a background session's socket auth tokens for the claim, PTY and rendezvous gates; its tokens take precedence over the individual auth…
CLAUDE_BG_SOCK_ADMIT_SILENT_PEERS
Sessions
Added in v2.1.315—
CLAUDE_BG_SOURCE
Sessions
Added between v2.1.118 and v2.1.123Tags where a background job originated: CLI, SDK, Remote Control, another agent. Present on the daemon side so it can route, prioritize, or attribute work…
CLAUDE_BG_STARTUP_WEDGE_MS
Sessions
Added between v2.1.128 and v2.1.138Startup jitter for background sessions. When you spawn many agents simultaneously, they can race for the same auth or daemon connections. This introduces a…
CLAUDE_BG_TCC_DISCLAIMED
Sessions
Added between v2.1.138 and v2.1.143macOS TCC (Transparency, Consent, and Control) permission disclaimer state for background sessions. Background agents without a controlling terminal need…
CLAUDE_BG_WORKSPACE_TRUSTED
Sessions
Added between v2.1.269 and v2.1.283Set to 1 to mark a background session's workspace as trusted so hooks and home-directory project settings apply; without it the session stays untrusted with…
CLAUDE_BRIDGE_BASE_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_OAUTH_TOKEN
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_REATTACH_GROUPING
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_REATTACH_NO_BACKFILL
Sessions
Added between v2.1.224 and v2.1.227—
CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY
Sessions
Added between v2.1.143 and v2.1.212Set to 1 to run a reattached bridge session's REPL bridge in outbound-only mode instead of fully enabling it; read until v2.1.304.
CLAUDE_BRIDGE_REATTACH_OWNER_ACCT
Sessions
Added between v2.1.224 and v2.1.227—
CLAUDE_BRIDGE_REATTACH_OWNER_ORG
Sessions
Added between v2.1.224 and v2.1.227—
CLAUDE_BRIDGE_REATTACH_SEQ
Sessions
Added in v2.1.118Sequence number for the bridge reconnection protocol. At-least-once delivery semantics: the daemon replays events the bridge missed since this sequence point.…
CLAUDE_BRIDGE_REATTACH_SESSION
Sessions
Added in v2.1.118Session identity used during bridge reconnection. Pairs with CLAUDE_BRIDGE_REATTACH_SEQ — the bridge presents both to resume exactly where it disconnected.
CLAUDE_BRIDGE_SESSION_INGRESS_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_USE_CCR_V2
Sessions
Removed between v2.1.143 and v2.1.212Toggle for CCR v2 bridge protocol — companion to the existing CLAUDE_CODE_USE_CCR_V2 introduced in v2.1.69. Suggests the bridge layer (IDE extensions, remote…
CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_C
Other
Removed between v2.1.245 and v2.1.247—
CLAUDE_CHROME_CLASSIFIER_FLOOR
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CHROME_PAIRED_DEVICE_ID
Other
Added between v2.1.266 and v2.1.269Specifies the browser extension device id to pair with; ignored with a warning if it is not a valid extension device id.
CLAUDE_CHROME_PERMISSION_MODE
Permissions and sandbox
Present since v2.1.69 or earlierPermission mode for Claude for Chrome
CLAUDE_CHROME_TAB_GROUP_KEY
Other
Added in v2.1.286Sets the Chrome tab group key, which must be "chat:" followed by a lowercase UUID; it applies only when a remote session id is set, otherwise it is ignored.
CLAUDE_CLIENT_PRESENCE_FILE
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_3P_PROBE_WROTE_HAIKU_DEFAULT
Models and thinking
Added in v2.1.285—
CLAUDE_CODE_3P_PROBE_WROTE_OPUS_DEFAULT
Models and thinking
Added between v2.1.143 and v2.1.212Records the Opus model value written by the third-party model probe, so an ANTHROPIC_DEFAULT_OPUS_MODEL equal to it counts as auto-detected rather than…
CLAUDE_CODE_3P_PROBE_WROTE_SONNET_DEFAULT
Models and thinking
Added between v2.1.143 and v2.1.212Records the Sonnet model value written by the third-party model probe, so an ANTHROPIC_DEFAULT_SONNET_MODEL equal to it counts as auto-detected rather than…
CLAUDE_CODE_3P_SEEDED_OPUS_DEFAULT
Models and thinking
Added in v2.1.285Records the Opus model value seeded as the default, so an ANTHROPIC_DEFAULT_OPUS_MODEL equal to it is treated as the seeded value rather than a user override.
CLAUDE_CODE_3P_SEEDED_SONNET_DEFAULT
Models and thinking
Added in v2.1.285Records the Sonnet model value seeded as the default, so an ANTHROPIC_DEFAULT_SONNET_MODEL equal to it is treated as the seeded value rather than a user…
CLAUDE_CODE_ACCESSIBILITY
Terminal and UI
Present since v2.1.69 or earlier
Documented
Enable accessibility mode; disables cursor hiding
CLAUDE_CODE_ACCOUNT_TAGGED_ID
Other
Added between v2.1.77 and v2.1.79Stores a tagged or decorated account identifier, distinct from the existing CLAUDE_CODE_ACCOUNT_UUID. While the UUID is a raw unique identifier, a "tagged" ID…
CLAUDE_CODE_ACCOUNT_UUID
Other
Present since v2.1.69 or earlierPre-configured account UUID
CLAUDE_CODE_ACTION
Other
Present since v2.1.69 or earlierIndicates running as GitHub Action
CLAUDE_CODE_ACT_DONT_REDERIVE
Other
Added between v2.1.143 and v2.1.212Toggles the guidance that tells the model to act once it has enough information instead of re-deriving settled facts; when unset, a server default that is on…
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD
Memory and CLAUDE.md
Present since v2.1.69 or earlier
Documented
Additional directories to scan for CLAUDE.md files (colon-separated)
CLAUDE_CODE_ADDITIONAL_PROTECTION
Other
Present since v2.1.69 or earlierAdd additional protection header to API requests
CLAUDE_CODE_ADOPT_UNDERIVABLE_PARKED_PERMISSION
Permissions and sandbox
Removed in v2.1.307In print/SDK mode, when a host reconnects and a permission prompt was left parked with no persisted answer that can be rederived, adopt that prompt and retire…
CLAUDE_CODE_AGENT
Agents and subagents
Added between v2.1.118 and v2.1.123Full agent descriptor passed into a spawned agent process — likely the agent's frontmatter (tools, allowed/disallowed lists, system prompt path) so the child…
CLAUDE_CODE_AGENTS_MD_ROWS_EVERY_PROCESS
Agents and subagents
Added in v2.1.311—
CLAUDE_CODE_AGENT_COST_STEER
Agents and subagents
Removed between v2.1.138 and v2.1.143Controls cost-aware behavior for subagent delegation. As Claude Code's multi-agent architecture matures — named subagents now appear in @ mention typeahead[1]…
CLAUDE_CODE_AGENT_LIST_IN_MESSAGES
Agents and subagents
Removed between v2.1.143 and v2.1.212An early agent-listing toggle, made obsolete by the Agent View and coordinator surfaces that now own how agents are shown.
CLAUDE_CODE_AGENT_PROGRESS_SUMMARIES
Agents and subagents
Added in v2.1.296Enables agent progress summaries when set, for clients that support them.
CLAUDE_CODE_AGENT_PROXY_GH_SHIM
Network and proxy
Added between v2.1.143 and v2.1.212When set, installs a gh CLI shim so GitHub CLI calls route through the agent proxy's governed git.
CLAUDE_CODE_AGENT_PROXY_GIT_CONFIG
Network and proxy
Added between v2.1.143 and v2.1.212When set, appends a governed git config so git operations route through the agent proxy.
CLAUDE_CODE_AGENT_PROXY_GIT_HOSTS
Network and proxy
Added between v2.1.269 and v2.1.283Comma-separated list of git hosts routed through the agent proxy's governed git; invalid entries are dropped and an empty value falls back to the default host.
CLAUDE_CODE_AGENT_RULE_DISABLED
Agents and subagents
Present since v2.1.69 or earlierDisable agent rules
CLAUDE_CODE_AGENT_SWARMS
Agents and subagents
—Replaced by CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
CLAUDE_CODE_AGENT_VIEW_RELAUNCH
Agents and subagents
Added between v2.1.138 and v2.1.143Force-relaunches the Agent View UI component when it gets into a bad state. The Agent View is a separate surface from the main session; this is its dedicated…
CLAUDE_CODE_ALDER_WICKET
Other
Removed in v2.1.218—
CLAUDE_CODE_ALLOW_OTHER_MODELS
Models and thinking
Added between v2.1.301 and v2.1.303Set to 1 to start on a model that the --client-data-url document has no entry for, without applying its per-model client data, instead of exiting. Same as…
CLAUDE_CODE_ALTGR_AS_TEXT
Other
Added between v2.1.143 and v2.1.212Controls whether AltGr key input is treated as text: a true value forces it on, a false value forces it off, and otherwise it is auto-detected, on under…
CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT
Terminal and UI
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_ALWAYS_ENABLE_EFFORT
Models and thinking
Added in v2.1.70
Documented
Force-enable reasoning effort level regardless of other settings. Useful for ensuring CLAUDE_CODE_EFFORT_LEVEL always takes effect, even in contexts where it…
CLAUDE_CODE_AMBER_ASTROLABE
Other
Added between v2.1.215 and v2.1.217—
CLAUDE_CODE_API_BASE_URL
Network and proxy
Present since v2.1.69 or earlierCustom Claude Code API base URL for proxies
CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR
Authentication
Present since v2.1.69 or earlierFile descriptor to read API key from
CLAUDE_CODE_API_KEY_HELPER_TTL_MS
Authentication
Present since v2.1.69 or earlier
Documented
Cache TTL for API key helper
CLAUDE_CODE_APPEND_PROMPT_HEAD
Other
Added in v2.1.284Designates a prompt-head string that is validated for integrity before use and then cleared after a single read; an invalid value is ignored.
CLAUDE_CODE_ARG_KEY_SHAPE
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_ARTIFACT
Other
Added between v2.1.143 and v2.1.212Turns on Artifacts, with companions for its API endpoint, direct upload, and MCP exposure. Claude Code can produce a first-class artifact now — and share it…
CLAUDE_CODE_ARTIFACTS_API_BASE_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ARTIFACTS_API_TOKEN
Authentication
Added between v2.1.219 and v2.1.221Auth token for the artifacts service. Claude Code treats it as a credential alongside CLAUDE_CODE_OAUTH_TOKEN and ANTHROPIC_API_KEY, redacting it and using its…
CLAUDE_CODE_ARTIFACT_ASK_FIRST
Other
Added in v2.1.310—
CLAUDE_CODE_ARTIFACT_ASSETS
Other
Added between v2.1.229 and v2.1.234Turns artifact asset support on or off; when unset, falls back to whether the agent declares the assets capability.
CLAUDE_CODE_ARTIFACT_ASSET_BASE_URL
Network and proxy
Added between v2.1.219 and v2.1.221—
CLAUDE_CODE_ARTIFACT_AUTO_OPEN
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_ARTIFACT_COMMENTS
Other
Added between v2.1.219 and v2.1.221
Documented
Turns on the artifact comment-thread capability, overriding the server gate tengu_teal_corbel. With it set, Claude reads and replies to human comments on an…
CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT
Other
Added between v2.1.219 and v2.1.221
Documented
Overrides tengu_sorrel_trellis to let Claude respond to new comments on its own, driven by a task notification whose source is artifact-auto-react. The prompt…
CLAUDE_CODE_ARTIFACT_COMMENT_FAST_ACK
Other
Added between v2.1.229 and v2.1.234Enables a quick acknowledgement reply to artifact comments before the work is finished; defaults to off.
CLAUDE_CODE_ARTIFACT_COMMENT_FAST_ACK_FIXED
Other
Added between v2.1.234 and v2.1.237When fast acknowledgement of artifact comments is on, selects the fixed set of acknowledgement messages; defaults to off.
CLAUDE_CODE_ARTIFACT_COMMENT_RESPONDER
Other
Added between v2.1.224 and v2.1.227Turns on dispatch of the comment-thread responder. If it is not set, the code reads the server gate tengu_bracken_sluice (off by default), so the sorting agent…
CLAUDE_CODE_ARTIFACT_DB
Other
Added between v2.1.222 and v2.1.224Enables the artifact database feature; on by default. Set to false to disable it.
CLAUDE_CODE_ARTIFACT_DB_STR_REPLACE
Other
Added between v2.1.252 and v2.1.266When the artifact database is enabled, turns on string-replace edits for it; defaults to off.
CLAUDE_CODE_ARTIFACT_DELETE
Other
Added between v2.1.238 and v2.1.241Enables the delete-Artifact path (owner-only, requires confirmation, blocked in plan mode). The gate refuses in remote sessions and otherwise falls back to the…
CLAUDE_CODE_ARTIFACT_DIRECT_UPLOAD
Other
Removed between v2.1.238 and v2.1.241Forced artifacts to use the direct inline upload path when set; read until v2.1.238.
CLAUDE_CODE_ARTIFACT_FD
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_FIVE_CLASS_ASKS
Other
Removed in v2.1.295Enabled the five-class artifact permission ask mode; defaulted to off, read until v2.1.292.
CLAUDE_CODE_ARTIFACT_FRESH_READ
Other
Added between v2.1.269 and v2.1.283Controls fresh reads of artifact content from the docs store; stays on unless set to false.
CLAUDE_CODE_ARTIFACT_HOT
Other
Added between v2.1.266 and v2.1.269Enables hot updates for artifacts when no frozen hot-update value overrides it; defaults to off.
CLAUDE_CODE_ARTIFACT_INHERITED_TYPE_GRANT
Other
Added between v2.1.269 and v2.1.283Enables inherited type grants for artifacts; latched once per session and defaults to off.
CLAUDE_CODE_ARTIFACT_LIVE_BASE_URL
Network and proxy
Added between v2.1.219 and v2.1.221—
CLAUDE_CODE_ARTIFACT_LIVE_WATCH
Other
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_ARTIFACT_MCP
MCP
Added between v2.1.143 and v2.1.212Enables MCP runtime-capability support for artifacts; on by default. Set to false to disable it.
CLAUDE_CODE_ARTIFACT_MULTI_FILE
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ARTIFACT_OPENING_PREFETCH
Other
Added between v2.1.269 and v2.1.283Controls prefetching when an artifact opens; prefetch is disabled when this is set to false.
CLAUDE_CODE_ARTIFACT_OPEN_ACTION
Other
Added between v2.1.252 and v2.1.266Enables the artifact open action; defaults to off when neither this nor its feature flag is set.
CLAUDE_CODE_ARTIFACT_PATH_PIN
Other
Added between v2.1.269 and v2.1.283Enables path pinning for artifacts, requiring files be read before they are replaced or removed; on by default.
CLAUDE_CODE_ARTIFACT_PIN
Other
Added between v2.1.252 and v2.1.266Enables pinning and unpinning artifacts; on by default, and unavailable in some cloud sessions.
CLAUDE_CODE_ARTIFACT_PRESENCE
Other
Added between v2.1.247 and v2.1.252Enables live presence for artifacts so open sessions share connection state; defaults to off.
CLAUDE_CODE_ARTIFACT_PREVIEW
Other
Added between v2.1.245 and v2.1.247Turned the artifact preview on or off; false disabled it and true forced it on, otherwise a flag decided; read until v2.1.309.
CLAUDE_CODE_ARTIFACT_PREVIEW_EMULATOR
Other
Added in v2.1.292Pins the artifact-preview emulator on (true) or off (false); left unset, a feature flag decides. When on, the emulator checks its skill's files first and stays…
CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS
Other
Added in v2.1.299
Documented
—
CLAUDE_CODE_ARTIFACT_QUICKSTART
Other
Added between v2.1.269 and v2.1.283Enables the artifact quickstart; on by default. Set to false to disable it.
CLAUDE_CODE_ARTIFACT_REPL
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_ARTIFACT_ROOM
Other
Added in v2.1.238—
CLAUDE_CODE_ARTIFACT_SHARE
Other
Added in v2.1.286Set to true to enable artifact sharing in supported desktop or cloud sessions; off otherwise.
CLAUDE_CODE_ARTIFACT_SHARE_PROBE_REUSE_MS
Other
Added between v2.1.307 and v2.1.309Maximum age in milliseconds for which a recently issued artifact share probe is reused instead of issuing a new one; the built-in default is also the ceiling.
CLAUDE_CODE_ARTIFACT_START_KIT
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_SYNC_BASE_URL
Network and proxy
Added in v2.1.238—
CLAUDE_CODE_ARTIFACT_TEXT_VARIANT
Other
Removed in v2.1.296Selected the artifact text variant; accepted v1 or v2 and treated any other value as v0, which was also the default. Read until v2.1.295.
CLAUDE_CODE_ARTIFACT_TOOLSET
Shell and tools
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ARTIFACT_TYPES
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_ARTIFACT_TYPE_CATALOG
Debugging
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_ARTIFACT_TYPE_CLOUD_CREATE
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_ARTIFACT_VERIFY
Other
Added in v2.1.238—
CLAUDE_CODE_ARTIFACT_VERSIONS
Other
Added in v2.1.292When set, the session can list and read an artifact's earlier versions; without it, a session reports that an artifact's earlier versions are not available.…
CLAUDE_CODE_ARTIFACT_VIEWER_BASE_URL
Network and proxy
Added in v2.1.229Sets the base URL for the artifact viewer. It joins the artifact endpoint set (CLAUDE_CODE_ARTIFACTS_API_BASE_URL, CLAUDE_CODE_ARTIFACT_ASSET_BASE_URL,…
CLAUDE_CODE_ATTACHMENTS_BY_PATH
Other
Added in v2.1.300When set, the attachment handler takes the by-path route instead of an upload mode, so attachments are referenced by their file path rather than having their…
CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA
Other
Added in v2.1.301Off unless set. In remote sessions it governs reading session attachments from a user-data uploads root, behind a retention check that withholds the path when…
CLAUDE_CODE_ATTRIBUTION_ANNOUNCEMENT
Other
Added between v2.1.266 and v2.1.269When set, controlled whether an attribution announcement was computed and added to the context window; defaulted to on. Read until v2.1.309.
CLAUDE_CODE_ATTRIBUTION_HEADER
Other
Present since v2.1.69 or earlier
Documented
API billing header in system prompt
CLAUDE_CODE_ATTRIBUTION_PROJECT
Other
Added in v2.1.304Sets the attribution project; a non-empty value is resolved to a tagged project id with source 'harness' and takes precedence over project and user settings.
CLAUDE_CODE_ATTRIBUTION_STATUS_TIMEOUT_MS
Network and proxy
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_AUTH_FAIL_EXIT_MS
Authentication
Added between v2.1.143 and v2.1.212In a remote child, the number of milliseconds authentication may stay unrecovered before the process exits; defaults to 600000, and a value of 0 or less…
CLAUDE_CODE_AUTOMOUNT_ROOTS
Other
Added between v2.1.321 and v2.1.323
Documented
A list of absolute paths separated by the path delimiter; a path that resolves to one of them is treated as an automount root.
CLAUDE_CODE_AUTOUPDATER_DISABLED_BY_HOST
Other
Added in v2.1.295When set, treats the autoupdater as disabled by the host, so plugin autoupdate follows the host's pin and is skipped when the pin gives a reason;…
CLAUDE_CODE_AUTO_BACKGROUND_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212For the main agent, the milliseconds before a running task auto-backgrounds; clamped to at least 2000 and never above the requested timeout, with a…
CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS
Sessions
Removed between v2.1.269 and v2.1.283
Documented
Sets how often, in seconds, a dispatched background worker reports progress ("still running", last tool call, minutes elapsed). Applies when…
CLAUDE_CODE_AUTO_COMPACT_WINDOW
Context and compaction
Added between v2.1.77 and v2.1.79
Documented
Sets the auto-compact window in tokens, 100k to 1M, capped at the model's context window. Compaction fires at the window minus a summary buffer.
CLAUDE_CODE_AUTO_CONNECT_IDE
Network and proxy
Present since v2.1.69 or earlier
Documented
Auto-connect to IDE on startup
CLAUDE_CODE_AUTO_MODE_ARTIFACT_CONSENT_RULE
Permissions and sandbox
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_AUTO_MODE_CANDIDATE_WORDING
Permissions and sandbox
Removed in v2.1.286Chose the auto-mode classifier wording; a truthy value requested the 'candidate' variant and a falsy one the 'baseline'. Read until v2.1.285.
CLAUDE_CODE_AUTO_MODE_CLASSIFIER_OVERLAP
Permissions and sandbox
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_AUTO_MODE_CLASSIFIER_QUEUE
Permissions and sandbox
Removed between v2.1.219 and v2.1.221—
CLAUDE_CODE_AUTO_MODE_CLASSIFY_ASK_USER_QUESTION
Permissions and sandbox
Added between v2.1.222 and v2.1.224—
CLAUDE_CODE_AUTO_MODE_CLASSIFY_EDITS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Turns the classification pass on: every edit runs through the classifier before it touches disk. Every change leaves a recorded decision you can inspect, which…
CLAUDE_CODE_AUTO_MODE_COMPACT_THREAD_RULE
Context and compaction
Added in v2.1.299When set, enables the compact thread rule for auto-mode project threads; while off, thread handling stays on the original path.
CLAUDE_CODE_AUTO_MODE_EDIT_REMOVAL
Permissions and sandbox
Added between v2.1.143 and v2.1.212Governs whether Auto mode may delete content as part of an edit. Deletions are the riskiest edit class, so they get their own policy.
CLAUDE_CODE_AUTO_MODE_EDIT_REMOVAL_CAP
Permissions and sandbox
Added between v2.1.143 and v2.1.212Caps how much a single autonomous edit can remove before it's held for a human. A direct answer to the runaway-refactor failure where an agent "simplifies" by…
CLAUDE_CODE_AUTO_MODE_EMAIL_SENDER_REPLY_TURN
Permissions and sandbox
Added in v2.1.305When true, enables the auto-mode email sender reply-turn rule and includes its reply-handling guidance in the prompt.
CLAUDE_CODE_AUTO_MODE_EMAIL_SENDER_TURN
Permissions and sandbox
Added in v2.1.305Set to true to force the email-sender-turn guidance (the rule against sending sensitive content to recipients outside the trust boundary) even when no message…
CLAUDE_CODE_AUTO_MODE_EXTERNAL_PERMISSIONS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Hands permission decisions to an external policy engine instead of the built-in prompt. This is the hook an enterprise needs to enforce its own approval rules…
CLAUDE_CODE_AUTO_MODE_FULL_CONTEXT
Context and compaction
Added in v2.1.315—
CLAUDE_CODE_AUTO_MODE_GIT_STATUS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Feeds the working tree's git status into the classifier's context. An edit means something different in a clean repo than in one with forty dirty files.
CLAUDE_CODE_AUTO_MODE_GIT_STATUS_LIMIT
Permissions and sandbox
Added between v2.1.143 and v2.1.212Bounds how much of that status is included, so the classifier prompt doesn't balloon in large or messy repos. Cost and latency control for the gate.
CLAUDE_CODE_AUTO_MODE_GIT_STATUS_UPLOADS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Controls whether git-status context is uploaded to the classification service. A data-governance knob — some orgs don't want file paths and change sets leaving…
CLAUDE_CODE_AUTO_MODE_HEARTH_MEMBER_RELAY_ROWS
Permissions and sandbox
Added in v2.1.286—
CLAUDE_CODE_AUTO_MODE_MODEL
Models and thinking
Added between v2.1.143 and v2.1.212
Documented
Picks the model that classifies each proposed edit — deliberately separate from the model doing the work. A small, fast model here keeps the safety check cheap…
CLAUDE_CODE_AUTO_MODE_OUTCOME_CODES
Permissions and sandbox
Added between v2.1.143 and v2.1.212Structured outcome codes for the classifier's verdicts instead of free text. Makes autonomous-edit outcomes machine-readable — the basis for telemetry,…
CLAUDE_CODE_AUTO_MODE_PRIOR_ASSISTANT_CONTEXT
Context and compaction
Added between v2.1.143 and v2.1.212Feeds prior assistant turns into the decision, so the classifier can see the reasoning behind an edit. Intent matters — the same diff can be safe or reckless…
CLAUDE_CODE_AUTO_MODE_REMOTE_BROWSER
Permissions and sandbox
Added in v2.1.304—
CLAUDE_CODE_AUTO_MODE_REPO_VISIBILITY
Permissions and sandbox
Added between v2.1.143 and v2.1.212Lets behavior depend on whether the repo is public or private. Being more conservative in public repos, where a bad edit is instantly visible, is the obvious…
CLAUDE_CODE_AUTO_MODE_SEGMENTED_TRANSCRIPT
Permissions and sandbox
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_AUTO_MODE_SERVER
Permissions and sandbox
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_AUTO_MODE_SIBLING_CONTEXT
Context and compaction
Removed between v2.1.219 and v2.1.221Includes sibling files (or sessions) when classifying. Lets the gate reason about consistency across related files instead of judging each change in isolation.
CLAUDE_CODE_AUTO_MODE_TEMPERATURE
Permissions and sandbox
Added between v2.1.143 and v2.1.212Temperature for the classifier. Low values make the safe/hold call deterministic and repeatable — exactly what you want for a gate that fires on every write.
CLAUDE_CODE_AUTO_MODE_THREAD_ASK_HELD
Permissions and sandbox
Added in v2.1.307—
CLAUDE_CODE_AUTO_MODE_THREAD_ASK_OWN_WORK
Permissions and sandbox
Added between v2.1.315 and v2.1.317In the held compact auto mode, a truthy value selects the 'own work' held state instead of the plain held state; the default comes from a server-side setting.
CLAUDE_CODE_AUTO_MODE_TIER
Permissions and sandbox
Added in v2.1.286—
CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS
Cloud providers
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_BASALT_COVE
Other
Added between v2.1.143 and v2.1.212An internal codename — one of five this stretch (PEWTER_OWL, LANTERN_PRISM, WALNUT_SPIRE, and a PEWTER_OWL_TOOL). Named flags with no changelog entry are…
CLAUDE_CODE_BASE_REF
Other
Present since v2.1.69 or earlierGit base ref for diff operations
CLAUDE_CODE_BASE_REFS
Other
—Specifies base git references (branches, tags, or SHAs) for diff comparison when Claude Code operates in a worktree or feature branch. In multi-worktree agent…
CLAUDE_CODE_BASH_EDIT_DIFF
Shell and tools
Added between v2.1.266 and v2.1.269
Documented
Overrides the Bash edit-diff behavior, which the bashEditDiffEnabled setting otherwise controls. Present in v2.1.269; the changelog names the…
CLAUDE_CODE_BASH_OUTPUT_AUDIENCE_NOTE
Shell and tools
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR
Permissions and sandbox
Present since v2.1.69 or earlierShow indicator when bash runs in sandbox
CLAUDE_CODE_BENCH_LIVE_COUNTS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_BG_CLASSIFIER_MODEL
Models and thinking
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_BG_TASKS_REPORT_RUNNING
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_BISON_CAIRN
Other
Added between v2.1.215 and v2.1.217When truthy, adds the delivering-work-max guidance to the system prompt; when unset, an internal check decides whether to include it.
CLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE
Terminal and UI
Present since v2.1.69 or earlierOverride token limit for input blocking
CLAUDE_CODE_BREEZY_HORIZON
Other
Added between v2.1.245 and v2.1.247Set to a Claude model id to override the model used for the prompt; a value that is not a valid model id is ignored and the original model is kept.
CLAUDE_CODE_BRIDGE_CHILD_ARTIFACT
Sessions
Added between v2.1.266 and v2.1.269In a bridge child, counts like CLAUDE_CODE_ARTIFACT so artifact handling is not turned off by the SDK default.
CLAUDE_CODE_BRIDGE_CHILD_AUTO_DEFAULT
Sessions
Added between v2.1.266 and v2.1.269Makes a bridge child default to auto mode (a pending auto decision resolves to auto); ignored when auto mode is disabled on an unattended remote session.
CLAUDE_CODE_BRIDGE_CHILD_CLI_ENTRYPOINT
Sessions
Added in v2.1.314—
CLAUDE_CODE_BRIDGE_CHILD_HELD_TO_AUTO
Sessions
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_BRIDGE_CHILD_MACHINE_SETTINGS
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_BRIDGE_CHILD_PROJECTS_ENTRYPOINT
Sessions
Added in v2.1.304—
CLAUDE_CODE_BRIDGE_CHILD_START_DIR
Sessions
Added in v2.1.321Holds the directory the session started in; on startup, if the real working directory no longer matches it, prints an error and exits with code 78.
CLAUDE_CODE_BRIDGE_MCP_CARRIER
MCP
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_BRIDGE_OWNER_ACCOUNT_UUID
Sessions
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_BRIDGE_OWNER_ORG_UUID
Sessions
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_BRIDGE_PROMPT_SHA256
Sessions
Added between v2.1.238 and v2.1.241Holds the expected SHA-256 hex of the appended system prompt file; the file is used only when its hash matches this value.
CLAUDE_CODE_BRIDGE_SESSION_ID
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_BRIDGE_SETTINGS_BINDING
Sessions
Added in v2.1.321Binds a settings file as a 64-character hex hash and a reference joined by a colon; when set but not in that valid form, the settings file is rejected with an…
CLAUDE_CODE_BRIDGE_SOURCE_DIR
Sessions
Added in v2.1.286—
CLAUDE_CODE_BRIEF
Other
Added between v2.1.70 and v2.1.72Toggle brief/concise output mode — shorter responses from Claude. Useful for scripted workflows or agents that don't need verbose explanations.
CLAUDE_CODE_BRIEF_UPLOAD
Other
Added between v2.1.70 and v2.1.72Brief mode specifically for upload operations. Likely suppresses progress details when uploading files or context to the session.
CLAUDE_CODE_BS_AS_CTRL_BACKSPACE
Other
Added between v2.1.108 and v2.1.114
Documented
Treats a bare backspace keypress as Ctrl+Backspace (delete-word). Default: on Windows unless the terminal is mintty or cygwin. Exists because Windows terminals…
CLAUDE_CODE_BUBBLEWRAP
Permissions and sandbox
Present since v2.1.69 or earlierSet to 1 when running in bubblewrap sandbox (Linux) [6]
CLAUDE_CODE_BYOC_ENABLE_DATADOG
Telemetry
Added between v2.1.128 and v2.1.138Opt-in Datadog telemetry for BYOC (Bring Your Own Cloud) Bedrock/Vertex deployments. Route Claude Code operational metrics to Datadog alongside your existing…
CLAUDE_CODE_CALM_MOCHI
Other
Added in v2.1.290Accepts 'forks' or 'all' to set the subagent budget-on-top-of-start mode for forked subagents or all subagents; any other value means none.
CLAUDE_CODE_CARVED_SLATE
Other
Removed between v2.1.266 and v2.1.269Set to true to enable a static system prompt; off by default. Read until v2.1.266.
CLAUDE_CODE_CCR_AFFINITY_KEY
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_CCR_EARLY_HYDRATE_PREFETCH
Other
Added between v2.1.252 and v2.1.266When a remote SDK session is being resumed, triggers early remote work that prefetches and hydrates reads before initialization finishes.
CLAUDE_CODE_CCR_EARLY_PLUGINS_SYNC
Plugins and skills
Added in v2.1.286Enables an early plugins sync during startup of a non-interactive session; the sync is skipped when the session is interactive or the variable is unset.
CLAUDE_CODE_CCR_EARLY_REMOTE_CONNECT
Network and proxy
Added between v2.1.269 and v2.1.283Set to start early remote work that opened the remote connection link when resuming a remote SDK session; read until v2.1.309.
CLAUDE_CODE_CCR_EARLY_SKILLS_SYNC
Plugins and skills
Added in v2.1.287Enables an early skills sync during startup of a non-interactive session; the sync is skipped when the session is interactive or the variable is unset.
CLAUDE_CODE_CCR_EARLY_SYNC_AFTER_SETTINGS_REFUSAL
Other
Added in v2.1.305When set, still runs the early sync after a settings load fails with an HTTP 403 refusal, instead of taking the default path.
CLAUDE_CODE_CCR_EVENT_FLUSH_POLICY
Other
Added in v2.1.305—
CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN
Other
Added in v2.1.287When set and plugin startup is still pending, folds the first-turn command rescan into the plugin state refresh instead of running a separate command refresh.
CLAUDE_CODE_CCR_LAZY_SUBAGENT_HYDRATE
Agents and subagents
Removed between v2.1.266 and v2.1.269—
CLAUDE_CODE_CCR_LONG_POLL
Other
Added in v2.1.314—
CLAUDE_CODE_CCR_ONE_PLUGIN_LOAD_PER_RELOAD
Plugins and skills
Added in v2.1.315—
CLAUDE_CODE_CCR_OWN_CONNECTION_POOL
Network and proxy
Added between v2.1.307 and v2.1.309—
CLAUDE_CODE_CCR_REQUESTS_BY_FETCH
Other
Added in v2.1.321When set and running as a hosted worker, routes axios requests that use no proxy through Bun's fetch.
CLAUDE_CODE_CCR_SKIP_FRESH_MIGRATIONS
Feature toggles
Added in v2.1.287When set, and other conditions hold, skips running config migrations, instead marking the migration version as current and the migrations as already complete.
CLAUDE_CODE_CCR_SKIP_HYDRATE_ON_CURRENT_TIP
Feature toggles
Added in v2.1.319When set during connect, supplies the current tip position to hydration reads and the session link; otherwise those run without a tip position.
CLAUDE_CODE_CCR_SKIP_NEEDLESS_STARTUP_READS
Feature toggles
Removed between v2.1.326 and v2.1.331When set, skips the worktree-fallback resume lookup while the worker epoch is 1, returning no result, and runs an extra store step after a memory sync.
CLAUDE_CODE_CCR_SLOW_SKILLS_WATCH
Plugins and skills
Added between v2.1.315 and v2.1.317Takes effect only in remote mode; when both this and remote mode are set, slow-skills watching is enabled.
CLAUDE_CODE_CCR_SURFACE
Other
Added between v2.1.252 and v2.1.266Set to "tag" to include the "claude-tag-plugins" default marketplace in plugin download URLs and in plugin or skill search requests.
CLAUDE_CODE_CCR_WORKER_SOCKET
Other
Added in v2.1.299Comma-separated list; when it contains the matching entry and the process owns its connection, the SDK connection opens its stream through a worker socket.
CLAUDE_CODE_CERT_STORE
Authentication
Added between v2.1.100 and v2.1.104
Documented
Comma-separated CA sources to trust: bundled, system, or both (the default since v2.1.101). Unknown values are ignored with a warning.
CLAUDE_CODE_CFC_REFUSED
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_CHILD_NOTES_DIR
Other
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_CHILD_SESSION
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_CHROME_LATE_MCP_SERVER
MCP
Added in v2.1.311When true, loads the alternate late Claude-in-Chrome MCP server module and skips installing the Chrome native host early.
CLAUDE_CODE_CHROME_MCP_ORG_DENIED
MCP
Added between v2.1.252 and v2.1.266When set, forces Claude-in-Chrome to be treated as denied by organization policy, with the cause reported as parent_org_policy.
CLAUDE_CODE_CHROME_SIDE_PANEL
Terminal and UI
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_CLASSIFIER_SUMMARY
Other
Added between v2.1.118 and v2.1.123Carries the output of a prompt classifier as a structured summary. Where CLAUDE_CODE_VERIFY_PROMPT triggers classification, this variable holds the result so…
CLAUDE_CODE_CLIENT_CERT
Authentication
Present since v2.1.69 or earlier
Documented
Path to client certificate for mTLS
CLAUDE_CODE_CLIENT_DATA_URL
Network and proxy
Added between v2.1.269 and v2.1.283URL of a signed configuration document on downloads.claude.ai with per-model client data; same as --client-data-url, and keeps the URL out of the process list.…
CLAUDE_CODE_CLIENT_KEY
Authentication
Present since v2.1.69 or earlier
Documented
Path to client private key
CLAUDE_CODE_CLIENT_KEY_PASSPHRASE
Authentication
Present since v2.1.69 or earlier
Documented
Passphrase for encrypted client key
CLAUDE_CODE_CLOUD_SESSION_ID
Sessions
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_COLD_COMPACT
Context and compaction
Added between v2.1.123 and v2.1.126—
CLAUDE_CODE_COMMIT_BETWEEN_KEYS
Other
Removed in v2.1.284—
CLAUDE_CODE_COMMIT_LOG
Debugging
Removed between v2.1.224 and v2.1.227Likely controls whether or where Claude Code logs commit operations. This could enable audit trails for automated commits made by agents and sub-agents —…
CLAUDE_CODE_COMPILED_ACORN
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_CONFIG_LOCK_WAIT_MS
Other
Added in v2.1.318
Documented
Milliseconds to keep retrying for the config lock when a caller-only lock is in use; defaults to 0.
CLAUDE_CODE_CONFIG_PROBE
Other
Added in v2.1.286Marks the run as an IDE config probe; when set, the AWS and GCP auth refreshes are skipped.
CLAUDE_CODE_CONFIG_WATCH_EVENTS
Other
Added in v2.1.288On Linux, when set, watches config files with filesystem events instead of interval polling; ignored on other platforms.
CLAUDE_CODE_CONNECT_TIMEOUT_MS
Network and proxy
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_CONSENT_POINTERLESS
Other
Removed between v2.1.326 and v2.1.331For an MCP elicitation that requests no input fields, when set the consent prompt no longer defaults to accept.
CLAUDE_CODE_CONTAINER_ID
Other
Present since v2.1.69 or earlierContainer/pod identifier sent in HTTP headers
CLAUDE_CODE_COORDINATOR_EXTRA_TOOLS
Agents and subagents
Added between v2.1.143 and v2.1.212Comma-separated list of extra tool names the coordinator keeps available; a tool passes the filter when one of the entries matches its name prefix.
CLAUDE_CODE_COORDINATOR_FORCE_WORKER_INHERIT_MODEL
Agents and subagents
Added between v2.1.247 and v2.1.252When set, subagent workers ignore any model parameter and inherit the session model; the model option is dropped before launch.
CLAUDE_CODE_COORDINATOR_MODE
Agents and subagents
Added between v2.1.143 and v2.1.212Runs a session as a coordinator over child agents, with companions for its toolset and whether memory flows down the tree. The agent-teams plumbing that was…
CLAUDE_CODE_COORDINATOR_PROPAGATE_NESTED_MEMORY
Agents and subagents
Added between v2.1.143 and v2.1.212When set, propagates the parent session's pending nested-memory triggers to workers, loading CLAUDE.md and CLAUDE.local.md files they have not already read.
CLAUDE_CODE_COORDINATOR_SKILL_GUIDANCE
Agents and subagents
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_COORDINATOR_WORKER_CHECKIN_SECONDS
Agents and subagents
Removed between v2.1.269 and v2.1.283Set the interval in seconds between coordinator worker check-ins, converted to milliseconds; read until v2.1.269.
CLAUDE_CODE_COUNT_GARBAGE_COLLECTIONS
Other
Added in v2.1.311When set to 1 and remote mode is enabled, starts V8 garbage-collection profilers that count collections up to the first message and first result.
CLAUDE_CODE_COWORK_FRAME_ARTIFACTS
Other
Added in v2.1.228—
CLAUDE_CODE_COWORK_PLUGIN_SKILL
Plugins and skills
Added in v2.1.319Enables the built-in plugin-building skill when set, provided another check does not already disable it.
CLAUDE_CODE_COWORK_SHELL_CHECK
Shell and tools
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_COZY_TEAPOT
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_CRYPTIC_HORIZON
Other
Added in v2.1.319—
CLAUDE_CODE_CURRIED_TRINKET
Other
Added in v2.1.290Selects which response-length variant is applied when building the response, accepting control, no_scratchpad, no_scratchpad_capped, no_scratchpad_keep_asks,…
CLAUDE_CODE_CUSTOM_OAUTH_URL
Authentication
Present since v2.1.69 or earlierCustom OAuth endpoint URL
CLAUDE_CODE_DAEMON_COLD_START
Other
Added between v2.1.118 and v2.1.123Set when the daemon starts from a completely cold state rather than resuming warm. Lets the daemon emit different startup telemetry and skip cache-warm…
CLAUDE_CODE_DAPPER_CUPCAKE
Other
Added in v2.1.301—
CLAUDE_CODE_DAPPER_LAGOON
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS
Telemetry
Present since v2.1.69 or earlierDatadog metrics flush interval (ms)
CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MS
Telemetry
Added between v2.1.143 and v2.1.212Sets the interval in milliseconds for flushing batched error-tracking logs to Datadog; defaults to 30000.
CLAUDE_CODE_DEBUG_LOGS_DIR
Debugging
Present since v2.1.69 or earlier
Documented
Custom directory for debug logs
CLAUDE_CODE_DEBUG_LOG_LEVEL
Debugging
Added between v2.1.70 and v2.1.72
Documented
Set debug logging verbosity level. More granular than the existing DEBUG=1 boolean — probably accepts levels like "info", "warn", "error", "debug".
CLAUDE_CODE_DEBUG_REPAINTS
Debugging
Added between v2.1.79 and v2.1.83Enables debug logging for terminal repaint operations. This release fixes several rendering issues — screen flashing blank after idle, scrollback jumping when…
CLAUDE_CODE_DECSTBM
Other
Removed between v2.1.324 and v2.1.326Enables DECSTBM (VT100 Set Top and Bottom Margins) for scrolling regions in the TUI. The mechanism behind /tui fullscreen's flicker-free rendering — pins…
CLAUDE_CODE_DEEP_TWILIGHT
Other
Added between v2.1.315 and v2.1.317—
CLAUDE_CODE_DESIGN_OAUTH_CLIENT_ID
Authentication
Added between v2.1.143 and v2.1.212Overrides the OAuth client ID used for the design authentication flow; design OAuth counts as configured only when the value does not start with 00000000-.
CLAUDE_CODE_DESKTOP_APP_VERSION
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_DESKTOP_CONNECTOR_NAMES
Network and proxy
Added in v2.1.310Carries desktop connector names into the session from the host. It is read once at startup, applied, then cleared from the environment. New in v2.1.310.
CLAUDE_CODE_DESKTOP_MESSAGE_CARD
Other
Added between v2.1.321 and v2.1.323In desktop mode, and when not reattaching a bridge session, enables the desktop message card.
CLAUDE_CODE_DESKTOP_MODE_FROM_RECORD
Other
Added between v2.1.321 and v2.1.323In desktop mode, enables setting the desktop mode from a record.
CLAUDE_CODE_DESKTOP_PLUGIN_INSTALL_FRAMES
Plugins and skills
Added between v2.1.321 and v2.1.323When plugins are enabled, turns on desktop plugin install frames, then removes the variable from the environment.
CLAUDE_CODE_DESKTOP_RESULT_FIRST
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_DESKTOP_SKILLS_PLUGIN_DIR
Plugins and skills
Added between v2.1.301 and v2.1.303Holds a directory path the desktop app passes for its skills plugin; the client reads it into the desktop-skills plugin directory, then clears it from the…
CLAUDE_CODE_DESKTOP_SKILL_SWITCHES
Plugins and skills
Added in v2.1.293—
CLAUDE_CODE_DESKTOP_WORKFLOW_LIMIT_WAIT
Agents and subagents
Added in v2.1.319When the desktop app is active, applies this value as its workflow limit wait; the variable is then removed from the environment.
CLAUDE_CODE_DEV_RAW_CHANGELOG_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DIAGNOSTICS_FILE
Other
Present since v2.1.69 or earlierPath to write diagnostics output
CLAUDE_CODE_DIFF_COPY_ROOT
Other
Added in v2.1.307A self-hosted runner names, in this variable, the folder holding the checked copy of a repository's git settings that Claude Code reads for a workspace diff…
CLAUDE_CODE_DIR_SYNC_ARCHIVE
Other
Removed between v2.1.245 and v2.1.247Enabled the archive engine of directory sync, keeping archived copies alongside synced files; read until v2.1.245.
CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING
Feature toggles
Removed in v2.1.285—
CLAUDE_CODE_DIR_SYNC_ENGINE
Other
Removed in v2.1.285Took a comma-separated list of words controlling directory sync; none, off, 0, false or no turned it off, otherwise it stayed enabled. Read until v2.1.284.
CLAUDE_CODE_DIR_SYNC_FFWD
Other
Removed in v2.1.285—
CLAUDE_CODE_DIR_SYNC_GIT
Other
Removed in v2.1.285Enabled the git engine of directory sync, starting the git-based sync worker and opening the sync gate; read until v2.1.284.
CLAUDE_CODE_DIR_SYNC_OVERLAY
Other
Removed between v2.1.241 and v2.1.245—
CLAUDE_CODE_DIR_SYNC_STREAM
Network and proxy
Removed in v2.1.285—
CLAUDE_CODE_DISABLE_1M_CONTEXT
Context and compaction
Present since v2.1.69 or earlier
Documented
Disable extended 1M token context window
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING
Models and thinking
Present since v2.1.69 or earlier
Documented
Disable adaptive thinking mode
CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION
Feature toggles
Added between v2.1.222 and v2.1.224When set to true, uses only the leading admin tier's environment settings instead of merging (unioning) the environment across all admin tiers.
CLAUDE_CODE_DISABLE_ADVISOR_TOOL
Shell and tools
Added between v2.1.79 and v2.1.83
Documented
Disables what appears to be an internal advisory tool. The "Advisor" pattern suggests a meta-tool that provides guidance or recommendations to the model during…
CLAUDE_CODE_DISABLE_AGENTS_FLEET
Agents and subagents
Removed between v2.1.138 and v2.1.143Kill switch for the entire agent fleet subsystem — no selection, no auto-relaunch, no fleet coordination. Its existence implies the fleet is on by default for…
CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES
Agents and subagents
Added in v2.1.318Set to 1 to turn off agent progress summaries; when set, the summary timer returns early and the subagent's progress summary is dropped.
CLAUDE_CODE_DISABLE_AGENT_VIEW
Agents and subagents
Added between v2.1.138 and v2.1.143
Documented
Disables Agent View. Renamed successor to CLAUDE_CODE_DISABLE_AGENTS_FLEET (removed this release). If you're managing Claude Code via policy config and aren't…
CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN
Terminal and UI
Added between v2.1.128 and v2.1.138
Documented
Prevents the TUI from using the terminal alternate screen buffer. If Claude Code's UI is eating your terminal history, breaking tmux scrollback, or failing in…
CLAUDE_CODE_DISABLE_ARTIFACT
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_ATTACHMENTS
Feature toggles
Present since v2.1.69 or earlier
Documented
File/image attachments
CLAUDE_CODE_DISABLE_ATTRIBUTION_BASELINE_REUSE
Feature toggles
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_DISABLE_ATTRIBUTION_CROSS_REPO
Feature toggles
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_DISABLE_AUTH_REFRESH_LOCK
Authentication
Added in v2.1.286
Documented
Turns off the lock that coordinates a GCP or AWS credential refresh across processes. With the lock on, one process refreshes and opens a single login browser…
CLAUDE_CODE_DISABLE_AUTO_MEMORY
Memory and CLAUDE.md
Present since v2.1.69 or earlier
Documented
Disable automatic memory (MEMORY.md)
CLAUDE_CODE_DISABLE_AWAITING_USER_IDLE
Feature toggles
Added between v2.1.252 and v2.1.266When set, stops the session from being treated as idle while it waits for user input, so time parked on the user is not counted as idle.
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS
Sessions
Present since v2.1.69 or earlier
Documented
Disable background tasks entirely
CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_DEFAULT
Cloud providers
Added between v2.1.238 and v2.1.241
Documented
—
CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD
Cloud providers
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP
Shell and tools
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_BG_STABLE_PATH
Sessions
Added in v2.1.295
Documented
On macOS, skips resolving a stable executable path for the background process and re-execs using the current executable path instead.
CLAUDE_CODE_DISABLE_BUNDLED_SKILLS
Plugins and skills
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_CFC_PROMPT
Feature toggles
Added between v2.1.252 and v2.1.266
Documented
—
CLAUDE_CODE_DISABLE_CLAUDE_API_SKILL
Plugins and skills
Added between v2.1.88 and v2.1.89Disables the built-in Claude API skill. The Claude API skill auto-triggers when code imports anthropic or @anthropic-ai/sdk, providing SDK-aware guidance. In…
CLAUDE_CODE_DISABLE_CLAUDE_CODE_SKILL
Plugins and skills
Added between v2.1.143 and v2.1.212When set to true, registers the built-in Claude Code skill as disabled so it is not available.
CLAUDE_CODE_DISABLE_CLAUDE_MDS
Memory and CLAUDE.md
Present since v2.1.69 or earlier
Documented
Disable loading CLAUDE.md files
CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK
Feature toggles
Removed between v2.1.88 and v2.1.89Previously allowed disabling command injection detection. The safety check is now mandatory — no opt-out. This aligns with the changelog's hook hardening:…
CLAUDE_CODE_DISABLE_CRON
Feature toggles
Added between v2.1.70 and v2.1.72
Documented
Disable cron/scheduled task functionality. Claude Code recently added /cron for recurring tasks — this lets you turn it off entirely.
CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT
Network and proxy
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME
Shell and tools
Added between v2.1.326 and v2.1.331
Documented
Added in 2.1.328. Lets a host stop claude -p --resume and --continue from running a tool call that a hook deferred.
CLAUDE_CODE_DISABLE_DESKTOP_SHIP
Feature toggles
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_DISABLE_DIR_SYNC
Feature toggles
Removed in v2.1.285Turns off the background directory-sync worker on a remote session. The worker runs only when CLAUDE_CODE_REMOTE_SESSION_ID is set. The related…
CLAUDE_CODE_DISABLE_EARLY_KEY_GUARD
Feature toggles
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_DISABLE_EMPTY_CLASSIC_DISPATCH_SKIP
Feature toggles
Added in v2.1.311When set, prevents skipping a classic hook dispatch even when all its registered handlers satisfy the skip check, so the dispatch always runs.
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS
Feature toggles
Present since v2.1.69 or earlier
Documented
Experimental beta API features
CLAUDE_CODE_DISABLE_EXPLORE_INHERIT_CAP
Feature toggles
Added between v2.1.215 and v2.1.217Lets the built-in Explore search agent run at the parent model instead of a cheaper capped default. First shipped v2.1.217; undocumented.
CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_EXPORTED_VARIABLE_PROMPT
Feature toggles
Added in v2.1.324When set, skips an extra step that otherwise runs for an allowed command, leaving it to run only when the command contains a shell metacharacter ($ | * ? [ ~).
CLAUDE_CODE_DISABLE_FAST_MODE
Models and thinking
Present since v2.1.69 or earlier
Documented
Disable the /fast toggle that uses the same model with faster output
CLAUDE_CODE_DISABLE_FEATURE_FLAGS
Feature toggles
Added in v2.1.319
Documented
Set to a truthy value to turn off the GrowthBook feature flags; the choice is forwarded to child processes as DISABLE_GROWTHBOOK=1.
CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY
Telemetry
Present since v2.1.69 or earlier
Documented
Survey prompts
CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING
Feature toggles
Present since v2.1.69 or earlier
Documented
Git-based file checkpointing/backup
CLAUDE_CODE_DISABLE_FILE_MENTIONS
Feature toggles
Added in v2.1.299
Documented
Switches @ file mentions from inlining file contents to passing their paths, which Claude reads with its file tools on demand. Keeps large mentioned files out…
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS
Feature toggles
Present since v2.1.69 or earlier
Documented
—
CLAUDE_CODE_DISABLE_HELD_MESSAGE_RECOGNITION
Feature toggles
Added in v2.1.315—
CLAUDE_CODE_DISABLE_HOME_SETTINGS_SEED
Feature toggles
Added between v2.1.241 and v2.1.245When set, prevents the startup worker from seeding settings into the home .claude config directory.
CLAUDE_CODE_DISABLE_HOOK_FORWARDING
Feature toggles
Added between v2.1.238 and v2.1.241When set, disables forwarding this machine's hooks to cloud and remote sessions.
CLAUDE_CODE_DISABLE_HTTPS_AGENT_KEEPING
Agents and subagents
Added in v2.1.315—
CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT
Shell and tools
Added in v2.1.288
Documented
Turns off the new prompt that catches a dangerous rm inside an inline bash -c or sh -c script. Left unset, such a command asks before running even under…
CLAUDE_CODE_DISABLE_LAUNCHER_SIGN_IN
Feature toggles
Added in v2.1.307When set, the launcher sign-in path reports switched_off and does not offer launcher sign-in.
CLAUDE_CODE_DISABLE_LAUNCH_COMPOSER
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DISABLE_LAYOUT_CHECK
Feature toggles
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP
Models and thinking
Present since v2.1.69 or earlier
Documented
—
CLAUDE_CODE_DISABLE_LONE_SEC_DEFAULT_SHORTCUT
Feature toggles
Added in v2.1.311When set, disables a fast path that applies default handling to single operations such as command.describe and env.get, forcing them through the full dispatch.
CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP
Authentication
Added in v2.1.315Keeps system-store certificates that certify each other in a loop beside their root, which Claude Code otherwise drops. Meant for a private CA that needs the…
CLAUDE_CODE_DISABLE_MCP_INDEX_ROOM_COUNT
MCP
Added between v2.1.324 and v2.1.326Setting it to any value turns off the warning about memory used by large inbound MCP index messages, which otherwise runs only when a diagnostics file is set…
CLAUDE_CODE_DISABLE_MCP_TASKS
MCP
Added between v2.1.315 and v2.1.317When set to any value, disables the MCP tasks feature; when unset, availability is decided by a server-side setting together with other session conditions.
CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND
MCP
Added between v2.1.247 and v2.1.252
Documented
Turns off automatic backgrounding of MCP tool tasks. It sits with the other MCP subagent knobs (CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS,…
CLAUDE_CODE_DISABLE_MEMORY_BULK_INFLATE
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212When set, skips the bulk inflate that exports the whole memory store at once, so it is not attempted.
CLAUDE_CODE_DISABLE_MEMORY_MASS_DELETE_HOLD
Memory and CLAUDE.md
Added in v2.1.218When set, disables the hold that guards against deleting a large share of memory entries at once; the deletion threshold becomes unbounded instead of max(50,…
CLAUDE_CODE_DISABLE_MEMORY_PERIODIC_RESYNC
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212When set, disables the periodic memory store resync by returning a zero interval; otherwise it defaults to 60 minutes, minimum 1.
CLAUDE_CODE_DISABLE_MEMORY_RO_UNSAVED_NOTICE
Memory and CLAUDE.md
Added between v2.1.241 and v2.1.245Set to skip the scan that warns about unsaved writes in read-only memory mounts; read until v2.1.307.
CLAUDE_CODE_DISABLE_MEMORY_STREAM_LIST
Network and proxy
Added between v2.1.143 and v2.1.212Turns off the incremental metadata-streaming path inside multi-store memory sync. That path (gated by the new tengu_memory_stream_list, default on) calls a…
CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK
Models and thinking
Added in v2.1.285
Documented
Present in the v2.1.285 build and absent from that release's notes.
CLAUDE_CODE_DISABLE_MOUNTED_DRIVE_RM_PROMPT
Feature toggles
Added in v2.1.304
Documented
Turns off the dangerous-removal prompt this release adds for an rm that targets a mounted drive, the folder that holds mounted drives, or a top-level entry of…
CLAUDE_CODE_DISABLE_MOUSE
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Disables all mouse input handling in the terminal UI. Claude Code captures mouse events for interactive elements like clickable buttons and text selection, but…
CLAUDE_CODE_DISABLE_MOUSE_CLICKS
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Granular mouse click disable, added in v2.1.88. Superseded by the broader CLAUDE_CODE_DISABLE_MOUSE flag. The two-tier mouse control approach lasted one…
CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION
Network and proxy
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_DISABLE_NESTED_CHAIN_IDLE
Feature toggles
Added between v2.1.143 and v2.1.212When set, disables idle tracking for nested blocked prompt chains, so a blocking nested chain is not counted toward idle.
CLAUDE_CODE_DISABLE_NESTED_SESSION_ID
Sessions
Added between v2.1.315 and v2.1.317Set to a truthy value to stop the session-id getter from returning null and have it return the resolved id instead.
CLAUDE_CODE_DISABLE_NESTED_USER_REPAIR
Feature toggles
Added in v2.1.238When set, stops the automatic repair of malformed user messages with the wrong role over remote transport; such messages are left unrepaired.
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
Feature toggles
Present since v2.1.69 or earlier
Documented
Non-critical network requests
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK
Network and proxy
Added between v2.1.79 and v2.1.83
Documented
Disables the fallback path that retries failed streaming requests as non-streaming calls. The changelog explicitly documents this variable.
CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL
Plugins and skills
Present since v2.1.69 or earlier
Documented
Disable automatic plugin installation from marketplace
CLAUDE_CODE_DISABLE_ORG_MEMORY
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212Kill switch. Turns the whole org-memory sync off regardless of the above.
CLAUDE_CODE_DISABLE_OTEL_EVENT_SKIP
Telemetry
Added in v2.1.311When set, prevents skipping OpenTelemetry events when no event logger is active and the session is idle, so those events are still emitted.
CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS
Permissions and sandbox
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_DISABLE_PLUGIN_FORWARDING
Plugins and skills
Added between v2.1.238 and v2.1.241When set, disables forwarding this machine's enabled plugins to cloud and remote sessions and hides the cloud-plugins setting.
CLAUDE_CODE_DISABLE_POLICY_SKILLS
Plugins and skills
Added between v2.1.87 and v2.1.88
Documented
Disables policy-enforced skills. Skills in Claude Code are specialized prompt-driven capabilities (like /commit or /review-pr) that can be configured at the…
CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT
Network and proxy
Added in v2.1.314—
CLAUDE_CODE_DISABLE_POWERSHELL_ALIAS_SHADOW_CHECK
Shell and tools
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENY
Shell and tools
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_DISABLE_POWERSHELL_LIBRARY_LOAD_GUARD
Shell and tools
Added in v2.1.332Turns off a guard in the PowerShell 7 parse that Claude Code runs to check a command against your permission rules. The guard stops the parse when text like…
CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP
Context and compaction
Present since v2.1.69 or earlierDisable skipping pre-compaction checks
CLAUDE_CODE_DISABLE_PROACTIVITY
Feature toggles
Added in v2.1.290Turns off the proactivity selector, a behavior gated by tengu_proactivity_selector and on by default. When set, the value is carried into relaunched and…
CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR
Network and proxy
Added between v2.1.326 and v2.1.331
Documented
—
CLAUDE_CODE_DISABLE_QUIET_BACKGROUND_WAIT
Sessions
Added in v2.1.311When set, disables the quiet long background wait, so the session returns instead of entering a long sleep while background work is idle.
CLAUDE_CODE_DISABLE_REDIRECT_CHECK
Feature toggles
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_DISABLE_REDIRECT_DENY_RECHECK
Feature toggles
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
After a flagged message, Claude Code switches models automatically, now including model names it doesn't recognize such as custom deployment names. Set it to 1…
CLAUDE_CODE_DISABLE_REFUSAL_RETRY
Network and proxy
Added between v2.1.269 and v2.1.283When set, disables the automatic retry of a response that stopped with a refusal.
CLAUDE_CODE_DISABLE_RESPONSE_COMPARISON
Feature toggles
Added in v2.1.314—
CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION
Feature toggles
Added between v2.1.326 and v2.1.331
Documented
Added in 2.1.331. Asks the API for uncompressed model responses, for a proxy that cuts compressed ones off. The changelog notes it is not advised yet for…
CLAUDE_CODE_DISABLE_RESUME_LOAD_GOODBYE_SKIP
Sessions
Added in v2.1.319Set this to stop the worker from skipping its disconnect goodbye during resume load; by default that goodbye is skipped then.
CLAUDE_CODE_DISABLE_SELF_NAMED_CERT_DROP
Authentication
Added in v2.1.315Keeps certificates that name themselves as their own issuer, which Claude Code drops by default when it cannot confirm the certificate's key signed it and no…
CLAUDE_CODE_DISABLE_SHELL_HEAD_START
Shell and tools
Added between v2.1.326 and v2.1.331
Documented
—
CLAUDE_CODE_DISABLE_SHIP
Feature toggles
Added between v2.1.326 and v2.1.331
Documented
—
CLAUDE_CODE_DISABLE_STARTUP_WORK_GATE
Feature toggles
Added between v2.1.269 and v2.1.283When set, disables the startup work gate that defers background work until startup settles, so the gate is never armed.
CLAUDE_CODE_DISABLE_STOP_OF_HELD_MESSAGES
Feature toggles
Added in v2.1.318Set to turn off stopping of held messages; when set the gate returns false, otherwise it falls back to a server-side killswitch.
CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS
Feature toggles
Added in v2.1.288
Documented
Turns structured outputs off for gateways or providers (such as Mantle) that reject them. The changelog ties this to session titles, memory recall and prompt…
CLAUDE_CODE_DISABLE_SUBAGENT_HANDBACK
Agents and subagents
Added between v2.1.315 and v2.1.317When set, turns off subagent handback; when unset, the value falls back to CLAUDE_CODE_SENDMESSAGE_HANDBACK and then to a server-side setting.
CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT
Feature toggles
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_DISABLE_TERMINAL_TITLE
Terminal and UI
Present since v2.1.69 or earlier
Documented
Stop Claude Code from setting the terminal title
CLAUDE_CODE_DISABLE_THINKING
Models and thinking
Present since v2.1.69 or earlier
Documented
Completely disable extended thinking
CLAUDE_CODE_DISABLE_TRANSCRIPT_READ_AHEAD
Feature toggles
Added in v2.1.318Set to skip transcript read-ahead; when unset, an SDK-URL session reads the transcript ahead and can abort before continuing.
CLAUDE_CODE_DISABLE_TURN_HANDOFF
Feature toggles
Added between v2.1.269 and v2.1.283Set to disable the turn-handoff admission between sessions; read until v2.1.309.
CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK
Feature toggles
Added between v2.1.307 and v2.1.309
Documented
Set to 1 to skip the workspace-trust gate that claude ultrareview added in v2.1.309. Without it, ultrareview asks for trust on a terminal or refuses to run;…
CLAUDE_CODE_DISABLE_ULTRATHINK
Feature toggles
Added in v2.1.315
Documented
Turns the ultrathink keyword off, so the word has no effect in a prompt.
CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT
Models and thinking
Added between v2.1.222 and v2.1.224
Documented
—
CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL
Terminal and UI
Added between v2.1.70 and v2.1.72
Documented
Disable virtual scrolling in terminal UI. Useful if virtual scroll causes rendering issues in certain terminal emulators or when piping output.
CLAUDE_CODE_DISABLE_VITALS_EMITTER
Feature toggles
Added between v2.1.238 and v2.1.241Set to disable the guest vitals emitter; when set, the vitals emitter process is not launched.
CLAUDE_CODE_DISABLE_WEB_FETCH
Shell and tools
Added in v2.1.285
Documented
Turns off the WebFetch tool. An environment variable, so it disables WebFetch without a managed-settings file. Added in v2.1.285.
CLAUDE_CODE_DISABLE_WINDOWS_SHELL_LAUNCHER
Shell and tools
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_DISABLE_WORKFLOWS
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_WORKING_SYNC
Feature toggles
Added between v2.1.143 and v2.1.212Set to stop the synced file syncer from starting in remote sessions; read until v2.1.310.
CLAUDE_CODE_DISABLE_WORKING_SYNC_WATCH
Feature toggles
Added in v2.1.311On Linux, set to disable the working-sync file watcher; without it the watcher is used.
CLAUDE_CODE_DISPATCH_V2D
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_DISPATCH_V2S
Other
Added in v2.1.219—
CLAUDE_CODE_DONT_INHERIT_ENV
Other
Present since v2.1.69 or earlierStart shell with empty environment
CLAUDE_CODE_DOWNLOAD_DEADLINE_MS_FOR_TESTING
Other
Added between v2.1.143 and v2.1.212Set the download deadline in milliseconds; defaulted to 600000. Read until v2.1.309.
CLAUDE_CODE_DROP_UNAVAILABLE_DEFERRED_TOOL
Shell and tools
Added in v2.1.319
Documented
When true, a deferred tool that becomes unavailable is dropped rather than kept registered while it is gone.
CLAUDE_CODE_EAGER_FLUSH
Other
Present since v2.1.69 or earlierEagerly flush output buffers
CLAUDE_CODE_EDITOR_CODELIVERY
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_EFFORT_LEVEL
Models and thinking
Present since v2.1.69 or earlier
Documented
Reasoning effort: low, medium, or high (default). Controls adaptive thinking depth [4]
CLAUDE_CODE_ELEGANT_MEADOW
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ELEGANT_MIST
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS
Sessions
Added between v2.1.79 and v2.1.83
Documented
Controls whether Claude Code emits session state change events. This fits the growing SDK and Remote Control infrastructure — external consumers (IDE…
CLAUDE_CODE_EMIT_STARTUP_TIMING
Other
Added between v2.1.269 and v2.1.283When set, emits startup timing phase metrics, which are also emitted in remote mode; otherwise they are not reported.
CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES
Shell and tools
Present since v2.1.69 or earlierEmit tool use summary events
CLAUDE_CODE_EMIT_USER_PROMPT_SUBMIT_HOOK_EVENTS
Other
Added in v2.1.311When set, enables emitting start and end hook events for user prompt submission; the value is read once and then cleared.
CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT
Agents and subagents
Added between v2.1.108 and v2.1.114Authorizes SDK callers to append a custom string to a subagent's system prompt via options.appendSubagentSystemPrompt. Without this flag, the option is…
CLAUDE_CODE_ENABLE_AUTO_MODE
Permissions and sandbox
Added between v2.1.143 and v2.1.212
Documented
The master switch. Redundant on Bedrock/Vertex/Foundry now that Auto mode is default-on, but still the toggle everywhere else. It gates everything below.
CLAUDE_CODE_ENABLE_AWAY_SUMMARY
Feature toggles
Added between v2.1.104 and v2.1.107
Documented
Enables generation of a summary when the user returns after being away from an active session.
CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH
Plugins and skills
Added between v2.1.108 and v2.1.114
Documented
Enables automatic background plugin refresh when the runtime detects updates are needed. Without this, refresh is synchronous and delays session startup.
CLAUDE_CODE_ENABLE_CFC
Feature toggles
Present since v2.1.69 or earlier
Documented
Enable Claude for Chrome browser automation
CLAUDE_CODE_ENABLE_CONFIG_MISSING_READ_GUARD
Feature toggles
Removed in v2.1.318When set, the config reader treats a missing config file (ENOENT) as a handled not-found result, setting a fallback flag and recording the outcome rather than…
CLAUDE_CODE_ENABLE_DESIGN_SYNC
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL
Shell and tools
Added between v2.1.108 and v2.1.114Enables the experimental Advisor Tool — a server-side tool with its own advisorModel config option. Requires first-party auth; falls back to the…
CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL
Telemetry
Added between v2.1.128 and v2.1.138
Documented
Re-enables the session quality survey for enterprise deployments with OTEL enabled. Backs the v2.1.136 changelog bullet explicitly. If your org collects Claude…
CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING
Network and proxy
Present since v2.1.69 or earlier
Documented
Enable fine-grained (eager) input streaming for tools
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS
Feature toggles
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY
Models and thinking
Added between v2.1.128 and v2.1.138
Documented
Query available models from a gateway rather than a hardcoded list. For enterprise setups where model availability is controlled centrally — a new model rolls…
CLAUDE_CODE_ENABLE_LAUNCH_COMPOSER
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ENABLE_MENU_KIND_LANES
Feature toggles
Added between v2.1.143 and v2.1.212When set, groups slash-command menu entries into kind lanes, overriding the default gate.
CLAUDE_CODE_ENABLE_MORNING_BRIEF
Feature toggles
Removed between v2.1.212 and v2.1.215Set to enable the morning brief in cowork or remote sessions; read until v2.1.212.
CLAUDE_CODE_ENABLE_NARRATION
Feature toggles
Removed in v2.1.284Set to false to turn off narration, or to a truthy value to enable it on a 30000 ms interval; read until v2.1.283.
CLAUDE_CODE_ENABLE_OPUS_4_7_FAST_MODE
Models and thinking
Added between v2.1.128 and v2.1.138
Documented
—
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION
Feature toggles
Present since v2.1.69 or earlier
Documented
Enables a prompt suggestion feature in the Claude Code UI. This likely surfaces contextual follow-up prompts or autocomplete suggestions based on the current…
CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER
Authentication
Added between v2.1.108 and v2.1.114Set to "1" to enable the proxy auth helper subsystem. Lets Claude Code shell out to an external program to fetch proxy credentials dynamically — for…
CLAUDE_CODE_ENABLE_REFRESH_MCP_TOOLS
MCP
Added between v2.1.143 and v2.1.212Enables an on-demand MCP-tool refresh capability, grouped with CLAUDE_CODE_ENABLE_TASKS and CLAUDE_CODE_ENABLE_REMOTE_RECAP. It lets a session re-fetch an MCP…
CLAUDE_CODE_ENABLE_REMOTE_RECAP
Sessions
Added between v2.1.143 and v2.1.212When set, enables the remote recap at turn end, overriding the default gate; when off, the recap does not start.
CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING
Feature toggles
Present since v2.1.69 or earlierEnable file checkpointing in SDK mode
CLAUDE_CODE_ENABLE_SHARE_BUNDLE
Feature toggles
Added in v2.1.299
Documented
—
CLAUDE_CODE_ENABLE_TASKS
Feature toggles
Present since v2.1.69 or earlier
Documented
Enable the task system
CLAUDE_CODE_ENABLE_TELEMETRY
Telemetry
Present since v2.1.69 or earlier
Documented
Enable telemetry collection
CLAUDE_CODE_ENABLE_TODO_TOOLS
Shell and tools
Added between v2.1.229 and v2.1.234
Documented
Set to 1 to restore the todo and task tools on models where they are now off by default (Opus 4.8, Sonnet 5, Fable 5, Mythos 5). The gate falls through to a…
CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT
Authentication
Present since v2.1.69 or earlierAttach token usage info to messages
CLAUDE_CODE_ENABLE_WRAP_UP
Feature toggles
Added between v2.1.315 and v2.1.317Enables the wrap-up feature; when unset it turns on only when prompt suggestions are enabled and the session's cloud origin is remote or remote-desktop.
CLAUDE_CODE_ENABLE_XAA
Feature toggles
Added between v2.1.79 and v2.1.83Enables an internal feature flagged as "XAA." The acronym is opaque, but the ENABLE_ prefix and proximity to other experimental flags suggest this is an opt-in…
CLAUDE_CODE_ENHANCED_TELEMETRY_BETA
Telemetry
Present since v2.1.69 or earlierEnable enhanced telemetry (beta)
CLAUDE_CODE_ENTRYPOINT
Other
Present since v2.1.69 or earlierApplication entry point; auto-set based on context (e.g. cli, vscode, sdk-py) [7]
CLAUDE_CODE_ENTRYPOINT_ON_REQUESTS
Other
Added in v2.1.305Sets the entrypoint name reported on outgoing requests; honored only when the entrypoint is claude-desktop-3p and no name is already set, otherwise ignored.
CLAUDE_CODE_ENVIRONMENT_KIND
Other
Present since v2.1.69 or earlierEnvironment: byoc, anthropic_cloud, bridge
CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION
Other
Added between v2.1.143 and v2.1.212Environment runner version
CLAUDE_CODE_EVAL_ALLOW_ARTIFACT_PUBLISH
Other
Added between v2.1.229 and v2.1.234Set to true to allow artifact publishing during an eval run; the eval's execution config must also enable it. Defaults to disallowed.
CLAUDE_CODE_EVAL_ALLOW_FLAG_OVERRIDES
Terminal and UI
Added between v2.1.229 and v2.1.234Comma-separated list of feature-flag names an eval run may override; listed flags are applied from the eval config and the rest are dropped. Defaults to empty.
CLAUDE_CODE_EVAL_ARTIFACT_STUB_DIR
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_EVAL_CONFINED
Other
Added between v2.1.247 and v2.1.252Set to 1 to run as a confined eval: the account counts as eligible, allow permission rules are dropped, and the auto handback is disabled.
CLAUDE_CODE_EVAL_INTERVIEW_SESSION
Sessions
Added between v2.1.229 and v2.1.234When set, marks an eval interview session and suppresses the default auto-publishing of the eval report.
CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS
Permissions and sandbox
Added in v2.1.311
Documented
When set, dangerous rm commands can run without a confirmation prompt in bypass permissions mode. The build carries guards where it has no effect: in a session…
CLAUDE_CODE_EXECPATH
Other
Added in v2.1.92Overrides the detected executable path for the Claude Code binary. This matters in environments where the binary is symlinked, wrapped in a shell script, or…
CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER
Other
Present since v2.1.69 or earlierExit after first UI render (testing)
CLAUDE_CODE_EXIT_AFTER_STOP_DELAY
Other
Present since v2.1.69 or earlier
Documented
Delay before exit after stop signal (ms)
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
Agents and subagents
Present since v2.1.69 or earlier
Documented
Enable Agent Teams (the official release of Swarms). Each agent works in an independent Git Worktree [1]
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE
Other
Added in v2.1.318
Documented
Opts into the experimental code mode; set it to 'on' to enable, an unrecognized value is refused as a bad value, and anything else leaves it not asked.
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE_RESTART
Other
Added in v2.1.318Signals a restart into the experimental code mode; when set it triggers the startup opt-in, then the value is read once and cleared.
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE_RESTARTED_FROM
Other
Added in v2.1.318Records the prior state the experimental code mode was restarted from; it is read into the restart tracking and then cleared.
CLAUDE_CODE_EXPERIMENTAL_OBSERVER_AGENTS
Agents and subagents
Added between v2.1.143 and v2.1.212Agents that watch a session rather than act in it. The natural counterpart to autonomy: if agents edit on their own, you want independent observers checking…
CLAUDE_CODE_EXTRA_BODY
Other
Present since v2.1.69 or earlier
Documented
Additional JSON merged into API request bodies
CLAUDE_CODE_EXTRA_METADATA
Other
Added between v2.1.77 and v2.1.79Passes additional metadata to API requests beyond what Claude Code includes by default. This likely attaches custom key-value pairs to the Anthropic API call…
CLAUDE_CODE_FABLE_BRIDGE_DIALOG_TIMEOUT_MS
Network and proxy
Removed between v2.1.234 and v2.1.237Set a timeout in milliseconds, applied when greater than zero and otherwise defaulting to 60000; read until v2.1.229.
CLAUDE_CODE_FEATURE_FLAGS_KICK_FROM_INIT
Other
Added between v2.1.321 and v2.1.323—
CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHE
Other
Added between v2.1.321 and v2.1.323—
CLAUDE_CODE_FEATURE_FLAGS_REFRESH_INTERVAL_MS
Other
Added between v2.1.321 and v2.1.323—
CLAUDE_CODE_FEDERATION_CACHE_DIR
Other
Added between v2.1.241 and v2.1.245Points at the directory holding the exchanged workload-identity-federation credential (default <config>/credentials/federation). CI processes in one job read…
CLAUDE_CODE_FETCH_PERSONAL_CLOUD_CONFIGURATION
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS
Context and compaction
Present since v2.1.69 or earlier
Documented
Max tokens for file read output
CLAUDE_CODE_FILE_READ_MAX_PDF_PAGES_PER_MESSAGE
Other
Added in v2.1.300Caps how many PDF pages the Read tool loads within a single message. A value below the built-in limit trims the pages pulled in per message.
CLAUDE_CODE_FILE_READ_MAX_PDF_PAGES_PER_TURN
Other
Added in v2.1.300Caps the running total of PDF pages the Read tool loads across a turn, working with the per-message cap above.
CLAUDE_CODE_FIRST_CALL_THINKING_TITLES
Models and thinking
Added between v2.1.324 and v2.1.326Set it to allow a thinking title on the session's first human turn, used only when thinking summaries are not already shown; otherwise this is off, and when on…
CLAUDE_CODE_FIZZY_GROVE
Other
Added between v2.1.315 and v2.1.317When enabled, an interrupted run returns a different handling outcome than the default; the fallback value comes from a server-side setting.
CLAUDE_CODE_FLAG_FETCH_WAIT_MS
Other
Added between v2.1.266 and v2.1.269Milliseconds to wait for the feature-flag fetch to return before giving up; defaults to 3000.
CLAUDE_CODE_FLEETVIEW_SIMPLE
Other
Added between v2.1.215 and v2.1.217Forces the simplified FleetView layout, the multi-agent monitoring surface. First shipped v2.1.216; undocumented.
CLAUDE_CODE_FLEET_PAST_SESSIONS
Sessions
Added between v2.1.143 and v2.1.212Set to true to show past sessions in fleet view; otherwise a server flag decides, defaulting to off.
CLAUDE_CODE_FOOTER_INDICATOR
Other
Added between v2.1.269 and v2.1.283Sets custom text shown in the status footer indicator; control characters are stripped and the text is trimmed.
CLAUDE_CODE_FORCE_BRIDGE
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_EVALUATE_MEMORY
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_FIRST_LAUNCH
Feature toggles
Added between v2.1.245 and v2.1.247Forces the first-launch flow; the value is used as a pretend last-seen marker so first-run behavior replays.
CLAUDE_CODE_FORCE_FULLSCREEN_UPSELL
Terminal and UI
Added between v2.1.108 and v2.1.114Forces the fullscreen TUI upsell prompt past the normal fullscreenUpsellSeenCount cap and the tengu_ochre_hollow gate. Internal test/demo affordance.
CLAUDE_CODE_FORCE_FULL_LOGO
Debugging
Removed between v2.1.245 and v2.1.247Force full ASCII logo display on startup
CLAUDE_CODE_FORCE_GLOBAL_CACHE
Shell and tools
Removed between v2.1.87 and v2.1.88Previously forced use of a global cache directory. Likely superseded by improved cache management that no longer needs a manual override.
CLAUDE_CODE_FORCE_MEMORY_SURVEY
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_MID_CONVERSATION_SYSTEM
Feature toggles
Added between v2.1.143 and v2.1.212Set to force mid-conversation system messages on, overriding the per-model and server-flag decision.
CLAUDE_CODE_FORCE_RC_LONG_TURN_NUDGE
Feature toggles
Added between v2.1.143 and v2.1.212Set to force the long-turn nudge that suggests continuing the session on your phone, with a 5-second threshold, shown every time and no impression cap.
CLAUDE_CODE_FORCE_SANDBOX
Permissions and sandbox
Removed in v2.1.300—
CLAUDE_CODE_FORCE_SESSION_PERSISTENCE
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_FORCE_STRIKETHROUGH
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_FORCE_SYNC_OUTPUT
Feature toggles
Added between v2.1.128 and v2.1.138
Documented
Disable streaming output in favor of synchronous writes. If you're capturing Claude Code output in a script and seeing partial lines or buffering artifacts,…
CLAUDE_CODE_FORCE_TERMINAL_IMAGES
Terminal and UI
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_FORCE_TIP_ID
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_WINDOWS_CREDMAN
Feature toggles
Added between v2.1.143 and v2.1.212Forces credential storage through the Windows Credential Manager. A FORCE_ override in the credential-backend family next to…
CLAUDE_CODE_FORK_SUBAGENT
Agents and subagents
Added between v2.1.114 and v2.1.117
Documented
Fork subagents (subagent_type "fork") start with the full parent conversation and are on by default: in the terminal, and from v2.1.302 in claude -p, the Agent…
CLAUDE_CODE_FORWARD_SUBAGENT_TEXT
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
Includes subagent text and thinking in stream-json output, paired with a new --forward-subagent-text flag. Shipped in v2.1.211 (npm 2026-07-15) and the one…
CLAUDE_CODE_FORWARD_USER_INTENT
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_FOUND_REPOSITORY_GIT
Other
Added in v2.1.307—
CLAUDE_CODE_FRAME_TIMING_LOG
Debugging
Added between v2.1.77 and v2.1.79Enable per-frame render timing logs in the terminal UI. A diagnostic variable — when set, it likely writes timing data for each UI frame render cycle, useful…
CLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERY
Other
Added between v2.1.143 and v2.1.212When frame-timing logging is enabled, includes the extra per-frame memory sample every Nth frame; minimum 1, defaults to 1.
CLAUDE_CODE_FULL_SIGN_IN_LINK
Other
Added between v2.1.326 and v2.1.331
Documented
Added in 2.1.330. Set to 1 to print the full sign-in link, for when the short one shows an error or a script reads values from it.
CLAUDE_CODE_GATEWAY_HINT_HEADERS
Other
Added between v2.1.269 and v2.1.283
Documented
Set to 1 to attach the gateway hint headers, including x-claude-code-prompt-id, so a gateway can group the requests behind one prompt.
CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS
Network and proxy
Added between v2.1.266 and v2.1.269
Documented
Extends the LLM gateway /v1/models discovery timeout; default 3 seconds. Present in v2.1.269.
CLAUDE_CODE_GATEWAY_TOKEN
Authentication
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_GATEWAY_TOKEN_FILE_DESCRIPTOR
Authentication
Added between v2.1.252 and v2.1.266Gives the file descriptor number to read the gateway auth token from at startup; it is then removed from the environment, and ignored when running remotely.
CLAUDE_CODE_GAULT_KESTREL
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_GB_BASE_URL
Network and proxy
Present since v2.1.69 or earlierAn internal base URL override, possibly for a "gradebook" or grading service used during internal testing. Its removal suggests the endpoint was consolidated…
CLAUDE_CODE_GB_DISK_CACHE_WHEN_TELEMETRY_OFF
Telemetry
Added between v2.1.143 and v2.1.212Opts GrowthBook (GB) flag data back into the on-disk cache under a telemetry-off profile, where feature-flag caching would otherwise be skipped. Shipped…
CLAUDE_CODE_GB_REFRESH_INTERVAL_MS
Other
Removed between v2.1.321 and v2.1.323—
CLAUDE_CODE_GENTLE_PARASOL
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_GIT_BASH_PATH
Shell and tools
Present since v2.1.69 or earlier
Documented
Git Bash executable path (Windows)
CLAUDE_CODE_GIT_CHECK_ONLY_IN_REPOSITORY
Other
Added in v2.1.321When set, marks that git checks run only inside a repository, after which the count of checks skipped outside one becomes available.
CLAUDE_CODE_GLOB_HIDDEN
Shell and tools
Present since v2.1.69 or earlier
Documented
Include hidden files in globs
CLAUDE_CODE_GLOB_NO_IGNORE
Shell and tools
Present since v2.1.69 or earlier
Documented
Ignore .gitignore rules in globs
CLAUDE_CODE_GLOB_TIMEOUT_SECONDS
Network and proxy
Present since v2.1.69 or earlier
Documented
Timeout for glob operations; default 20s (WSL: 60s)
CLAUDE_CODE_GOAL_CHECKIN_MINUTES
Other
Added between v2.1.229 and v2.1.234
Documented
Sets how long /goal waits on stalled background work before Claude checks in, defaulting to 30 minutes; 0 opts out. Read only when the tengu_saffron_wren gate…
CLAUDE_CODE_GORSE_PLOVER
Other
Added in v2.1.218Enabled the bash act-first behavior when set; otherwise a server flag decided, defaulting to off. Read until v2.1.309.
CLAUDE_CODE_GROWTHBOOK_KICK_FROM_INIT
Other
Added in v2.1.287When set, starts the GrowthBook feature-flag fetch during initialization.
CLAUDE_CODE_GROWTHBOOK_KICK_ON_WARM_CACHE
Other
Added in v2.1.288When set, triggers an early GrowthBook feature-flag fetch even when the cache is already warm.
CLAUDE_CODE_GZIP_CCR_REQUEST_BODIES
Network and proxy
Added between v2.1.245 and v2.1.247Controls whether request bodies sent by the ccr worker are gzip-compressed.
CLAUDE_CODE_GZIP_DATADOG_LOGS
Telemetry
Added in v2.1.288Controls whether log batches posted to Datadog are gzip-compressed and sent with a gzip Content-Encoding header; defaults to an internal setting.
CLAUDE_CODE_GZIP_REQUEST_BODIES
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_GZIP_REQUEST_BODY_BLOCKS
Network and proxy
Added in v2.1.287Selects one of two gzip modes (1 or 2) for API request bodies at least 512KB in size; any other value, and the default, leaves it off. It sits alongside the…
CLAUDE_CODE_GZIP_REQUEST_BODY_LEVEL
Network and proxy
Added between v2.1.269 and v2.1.283Sets the gzip compression level for request bodies as an integer from 1 to 9; values outside that range disable compression.
CLAUDE_CODE_HANDBACK_PROVENANCE
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_HARBOR_KITE
Other
Added between v2.1.222 and v2.1.224Set to a boolean to enable or disable cross-session messaging, overriding the platform and server-flag defaults.
CLAUDE_CODE_HARBOR_KITE_CLOUD
Other
Added between v2.1.229 and v2.1.234Set to a truthy value to enable cloud peer access for cross-session messaging, subject to other checks; otherwise a server flag decides, defaulting to off.
CLAUDE_CODE_HARBOR_KITE_PACING_OFF
Other
Added between v2.1.234 and v2.1.237Turns off outbound request pacing when set; pacing is on by default.
CLAUDE_CODE_HARMONIC_RIDDLE
Other
Added in v2.1.290Sets subagent effort: a string names the effort level, and a negative integer steps down that many levels from the current one, applied only when it lowers the…
CLAUDE_CODE_HERON_TALLOW
Other
Removed in v2.1.229—
CLAUDE_CODE_HFI_BEARER_TOKEN
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_HIDE_CWD
Terminal and UI
Added between v2.1.118 and v2.1.123
Documented
Changelog-confirmed[1] (v2.1.119): hides the working directory display in the startup logo. Useful for shared terminals, screen shares, or documentation…
CLAUDE_CODE_HIDE_REPLY_SERVER_NAME
Terminal and UI
Added in v2.1.300When the app's own tool server (the one that serves the tools you reply with) cannot sign in, this hides that server's name from Claude, so it does not name or…
CLAUDE_CODE_HIDE_SETTINGS_HINT
Terminal and UI
Added between v2.1.143 and v2.1.212Hides the settings hint when set; otherwise the hint shows unless the entrypoint is one of the known remote or chat integrations.
CLAUDE_CODE_HOLD_REPORT_PARK_AT_INIT
Other
Added between v2.1.238 and v2.1.241Reported a parked turn at initialization, but only when CLAUDE_CODE_RESUME_INTERRUPTED_TURN was also set; read until v2.1.309.
CLAUDE_CODE_HOLD_UNANSWERED_PARKED_PERMISSION
Permissions and sandbox
Removed between v2.1.269 and v2.1.283Held an unanswered parked permission request open instead of retiring it, keeping the turn waiting on it; read until v2.1.269.
CLAUDE_CODE_HOME_SEED_HOLD_TIMEOUT_MS
Network and proxy
Added between v2.1.238 and v2.1.241Maximum time in milliseconds to hold for the home settings seed; capped at the built-in default, so it can only shorten the wait.
CLAUDE_CODE_HOME_SEED_VERDICT_TIMEOUT_MS
Network and proxy
Added between v2.1.238 and v2.1.241Maximum time in milliseconds to wait for the home settings seed verdict; capped at the built-in default, so it can only shorten the wait.
CLAUDE_CODE_HOOKS_SAME_THREAD
Other
Added between v2.1.241 and v2.1.245Runs plugin hooks on the same thread instead of in a worker when set; the default is worker.
CLAUDE_CODE_HOOK_HEARTBEAT_INTERVAL_MS
Other
Added between v2.1.321 and v2.1.323Interval in milliseconds between hook heartbeat timer ticks, which also sets how many ticks fit within the limit; defaults to a built-in value.
CLAUDE_CODE_HOSTED_DESKTOP
Other
Added in v2.1.290—
CLAUDE_CODE_HOST_ALLOW_RESETS_DENIAL_STREAK
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_HOST_ARTIFACT_TYPE_COMMANDS
Other
Added between v2.1.321 and v2.1.323Names the host artifact-type commands to allow; a command is enabled when this value contains its name and other conditions hold.
CLAUDE_CODE_HOST_AUTH_ASK_AT_START
Authentication
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_HOST_AUTH_ENV_VAR
Authentication
Added between v2.1.143 and v2.1.212Names another environment variable that supplies host authentication; when set it marks the session as host-managed and launcher-started.
CLAUDE_CODE_HOST_AUTH_REFRESH_TIMEOUT_MS
Authentication
Added between v2.1.143 and v2.1.212Timeout in milliseconds for the host authentication token refresh request.
CLAUDE_CODE_HOST_CHECKED_FOLDER
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_HOST_CREDS_FILE
Other
Added between v2.1.143 and v2.1.212Path to the host's credentials file; it is treated as an allowed credential path and, together with host gateway lineage, enables host-managed authentication.
CLAUDE_CODE_HOST_GATEWAY_LINEAGE
Other
Added between v2.1.269 and v2.1.283Marked the host gateway lineage; together with a host credentials file it enabled the host-managed gateway path. Read until v2.1.309.
CLAUDE_CODE_HOST_GUARDS_ARTIFACTS_MCP
MCP
Added in v2.1.312On a desktop host, the artifacts MCP entry is skipped unless this is set to true, which keeps that entry enabled.
CLAUDE_CODE_HOST_HTTP_PROXY_PORT
Network and proxy
Present since v2.1.69 or earlierHTTP proxy port for host
CLAUDE_CODE_HOST_HYBRID_ORGANIZATION_UUID
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_HOST_OWNED_CONFIG_DIR
Other
Added in v2.1.321Names a config directory managed by the host application; when it matches the config directory and that config is empty or broken, starts with default settings…
CLAUDE_CODE_HOST_OWNED_SPAWN_ENV
Other
Added between v2.1.324 and v2.1.326When set to true, in a remote session with a session id and environment kind set, it wraps an exporter so its exports are held in a buffer instead of sent…
CLAUDE_CODE_HOST_PLATFORM
Other
Present since v2.1.69 or earlierOverride platform detection: win32, darwin, linux
CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD
Other
Added in v2.1.285—
CLAUDE_CODE_HOST_READS_NO_BASH_EDIT_DIFF
Shell and tools
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_HOST_SCHEDULED_RUN
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_HOST_SESSION_ID
Sessions
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_HOST_SHORT_SCRATCHPAD
Other
Added in v2.1.332—
CLAUDE_CODE_HOST_SHORT_TEMP_DIRS
Other
Added between v2.1.315 and v2.1.317Controls whether short temp directory paths are used on the host; set to 1 or 0 to force it, otherwise a default is chosen automatically.
CLAUDE_CODE_HOST_SHOWS_CONNECTION_NOTICE
Network and proxy
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_HOST_SKILL_CATALOG
Plugins and skills
Added in v2.1.292A JSON object ({"skills": [...]}) of 1 to 64 folder names that scopes which synced claude.ai skills a remote session loads. It is read only when a remote…
CLAUDE_CODE_HOST_SOCKS_PROXY_PORT
Network and proxy
Present since v2.1.69 or earlierSOCKS proxy port for host
CLAUDE_CODE_HOST_STARTED_AHEAD
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_HOST_WORKTREE
Other
Added in v2.1.288Declares the git worktree the host is operating in; the path is validated against the current working directory.
CLAUDE_CODE_HOST_WORKTREE_FENCE
Other
Added in v2.1.288Declares the boundary (fence) path for the host worktree; it is validated so it does not extend wider than the declared worktree.
CLAUDE_CODE_HOVER_REST
Other
Added in v2.1.238Pins the v5 storage backend from the environment at startup when its value resolves to pinned.
CLAUDE_CODE_HTTPS_PROXY
Network and proxy
Added between v2.1.114 and v2.1.117Claude-namespaced HTTPS proxy URL. See CLAUDE_CODE_HTTP_PROXY above.
CLAUDE_CODE_HTTP_PROXY
Network and proxy
Added between v2.1.114 and v2.1.117Claude-namespaced HTTP proxy URL. Claude-namespacing avoids collisions with system HTTP_PROXY for other tools in the shell that should use a different proxy.…
CLAUDE_CODE_HUMBLE_HAMMOCK
Other
Added between v2.1.252 and v2.1.266Forces whether tool-use inputs are echoed back over the wire, overriding the server default.
CLAUDE_CODE_IDE_HOST_OVERRIDE
Terminal and UI
Present since v2.1.69 or earlier
Documented
Custom host address for IDE communication
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL
Terminal and UI
Present since v2.1.69 or earlier
Documented
Skip automatic IDE extension install
CLAUDE_CODE_IDE_SKIP_VALID_CHECK
Terminal and UI
Present since v2.1.69 or earlier
Documented
Bypass IDE extension validation checks
CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS
Context and compaction
Added in v2.1.290
Documented
Sets the minimum conversation size, in tokens, before idle compaction runs. The value is floored at 100,000 and defaults to 200,000 when unset.
CLAUDE_CODE_IDLE_THRESHOLD_MINUTES
Other
Added in v2.1.84Sets the threshold (in minutes) before a session is considered idle. The changelog describes a new "idle-return prompt" that nudges users returning after 75+…
CLAUDE_CODE_IDLE_TOKEN_THRESHOLD
Authentication
Added in v2.1.84Works alongside CLAUDE_CODE_IDLE_THRESHOLD_MINUTES to gate when the idle-return prompt appears. The token threshold likely ensures the prompt only fires for…
CLAUDE_CODE_IGNORE_PERSISTED_TRUST
Other
Added in v2.1.307When set, no persisted workspace-trust record counts in the process. A self-hosted runner sets it when started with --trust-workspace false.
CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES
Other
Present since v2.1.69 or earlierInclude partial/streaming messages in output
CLAUDE_CODE_INCREMENTAL_REQUEST_BODY
Other
Added in v2.1.311Enables sending the request body incrementally for first-party requests; defaults to 0 (off), a non-zero value turns it on when the server flag agrees, and 2…
CLAUDE_CODE_INDEXED_SALAMANDER
Other
Added in v2.1.332—
CLAUDE_CODE_INLINE_TOOLS
Shell and tools
Added between v2.1.269 and v2.1.283Enables inline tools; set it to false to turn them off, otherwise when unset the feature follows the server flag.
CLAUDE_CODE_INSTALLED_VIA_NPM_WRAPPER
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_INTRO_FRAME
Other
Removed in v2.1.295Armed the intro frame when set to a truthy value, overriding the server flag; read until v2.1.294.
CLAUDE_CODE_INVESTIGATE_FIRST
Other
Removed between v2.1.222 and v2.1.224Instructs the agent to read and investigate before acting — enforcing "read before write." Converts an agent that might immediately start editing into one that…
CLAUDE_CODE_INVOKED_SKILLS
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_IS_COWORK
Other
Present since v2.1.69 or earlierIndicates running in cowork (multi-agent) mode
CLAUDE_CODE_I_ACCEPT_CROSS_ORG_DATA_RISK
Other
Added in v2.1.319—
CLAUDE_CODE_JIT_POLICY_AFTER_STARTUP
Other
Added in v2.1.299Sets the Bun JIT policy applied shortly after startup; the number is passed to the runtime and defaults to 1.
CLAUDE_CODE_JSONL_TRANSCRIPT
Other
Removed between v2.1.241 and v2.1.245—
CLAUDE_CODE_JUNIPER_SUNDIAL
Other
Added in v2.1.218Sets the number of turns between maintenance passes; defaults to 10 when unset.
CLAUDE_CODE_KB_COHESION_FIXES
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_LANTERN_PRISM
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_LARCH_CISTERN
Other
Added between v2.1.215 and v2.1.217—
CLAUDE_CODE_LAUNCHED_BY_SESSION_IDS
Sessions
Added between v2.1.324 and v2.1.326A comma-separated list of session ids that launched this one; values are trimmed, blanks and the current session id are dropped, and up to 32 valid ids are…
CLAUDE_CODE_LAUNCHER_RUNS_API_KEY_HELPER
Authentication
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_LAZY_ENV_GETTERS
Other
Removed between v2.1.315 and v2.1.317—
CLAUDE_CODE_LAZY_WORKTREE
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_LEGACY_BUNDLE
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_LINKED_SPINDLE
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_LOOP_KEEPALIVE
Other
Added between v2.1.143 and v2.1.212
Documented
Enables the loop keepalive that reschedules the agent loop to keep it running; defaults to on and overrides the server value when set.
CLAUDE_CODE_LOOP_PERSISTENT
Other
Added between v2.1.128 and v2.1.138Persist loop state across session boundaries. Loops don't die when the session restarts — they resume. Turns /loop from a within-session tool into a durable…
CLAUDE_CODE_LUMINOUS_WHISTLE
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_MAIN_REPLY_HOLD_MS
Other
Added in v2.1.318Number of milliseconds to hold back the main reply stream before handing pieces on; applies only when the relevant transport is active and defaults to 0.
CLAUDE_CODE_MANAGED_CONFIG_PREFETCH
Other
Added in v2.1.292Turns on a hedged prefetch of the organization's managed settings during startup, so the first managed-settings fetch runs earlier in the launch sequence.…
CLAUDE_CODE_MANAGED_SETTINGS_PATH
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_MARKETPLACE_NAME
Plugins and skills
Added in v2.1.238—
CLAUDE_CODE_MARKETPLACE_URL
Network and proxy
Added in v2.1.238Set in the environment of a marketplace headersHelper command when Claude Code fetches that marketplace's catalog, alongside CLAUDE_CODE_MARKETPLACE_NAME. The…
CLAUDE_CODE_MARL_CORMORANT
Other
Removed between v2.1.222 and v2.1.224—
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS
Agents and subagents
Added between v2.1.215 and v2.1.217
Documented
Ceiling on subagents running at once, default 20; when full Claude Code tells the model to stop and the user to raise this variable. Gated by…
CLAUDE_CODE_MAX_CONTEXT_TOKENS
Context and compaction
Added between v2.1.96 and v2.1.100
Documented
Sets an explicit ceiling on the context window size used during a session. Rather than relying on the model's default maximum, this variable lets operators cap…
CLAUDE_CODE_MAX_EFFORT_REMINDER
Models and thinking
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH
MCP
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_MAX_OUTPUT_TOKENS
Context and compaction
Present since v2.1.69 or earlier
Documented
Maximum output tokens; validated per-model
CLAUDE_CODE_MAX_RETRIES
Network and proxy
Present since v2.1.69 or earlier
Documented
Maximum API request retries
CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
Per-session ceiling on subagent spawns (default 200). When the cap is hit, Claude Code injects a prompt — "Subagent spawn limit reached. Complete the remaining…
CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH
Agents and subagents
Added between v2.1.215 and v2.1.217
Documented
Nesting-depth cap on delegation, default 1 — subagents no longer spawn their own subagents, and the team roster stays flat. Gated by tengu_hazel_trellis. First…
CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY
Shell and tools
Present since v2.1.69 or earlierMax concurrent tool executions; default 10
CLAUDE_CODE_MAX_TURNS
Other
Added between v2.1.138 and v2.1.143
Documented
Hard cap on conversation turns. The single most important variable in this release for anyone running unattended agents. Set it to 50, 100, or whatever your…
CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION
Shell and tools
Added between v2.1.143 and v2.1.212
Documented
Per-session ceiling on WebSearch tool calls (default 200), gated by a web_search_session_cap. Its exhaustion string tells the model "this session has used its…
CLAUDE_CODE_MCP_ALLOWLIST_ENV
MCP
Added in v2.1.94
Documented
Specifies an allowlist of environment variables that MCP servers can access. MCP servers run as subprocesses and inherit the parent environment by default,…
CLAUDE_CODE_MCP_ALWAYS_LOAD_JOIN_BEFORE_INPUT
MCP
Added in v2.1.299—
CLAUDE_CODE_MCP_APPS_HOST
MCP
Added between v2.1.269 and v2.1.283Set to true to declare support for MCP app UI extensions, advertising HTML (text/html;profile=mcp-app) surfaces in the client capabilities.
CLAUDE_CODE_MCP_APPS_NO_TOOL_ROUTE
MCP
Added in v2.1.324When true, adds the header X-MCP-Features set to mcp_apps_disable_form_deferral on MCP server requests that do not already send that header.
CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS
MCP
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS
Network and proxy
Added between v2.1.269 and v2.1.283Milliseconds to wait for MCP connectors before the first input, capped at an internal maximum and applied only for SDK-URL sessions.
CLAUDE_CODE_MCP_HANDED_LISTINGS
MCP
Removed in v2.1.312Set to "0" to disable MCP handed listings so none are passed through; any other value keeps them enabled.
CLAUDE_CODE_MCP_INSTR_DELTA
MCP
Removed in v2.1.91Delta/incremental MCP instruction updates. Instead of sending full MCP server instructions every turn, this likely enables sending only changes — reducing…
CLAUDE_CODE_MCP_MEMORY_CGROUP
MCP
Added between v2.1.238 and v2.1.241When set to a recognized value or "none", adds MCP tools to the classes excluded from the tool memory cgroup.
CLAUDE_CODE_MCP_NO_REDIAL_AFTER_POLICY_REFUSAL
MCP
Added in v2.1.315After a remote request is answered with a 403 that the request was blocked by policy, records the host and port and does not dial it again in the session.
CLAUDE_CODE_MCP_PREWAIT_SERVERS
MCP
Added in v2.1.286—
CLAUDE_CODE_MCP_PREWAIT_SERVERS_MS
MCP
Added in v2.1.286—
CLAUDE_CODE_MCP_PREWAIT_SERVERS_MS_BY_NAME
MCP
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_MCP_REGISTRY_FETCH_AT_STARTUP
MCP
Added in v2.1.311Forces the official MCP server registry to be fetched at startup instead of deferring the fetch until the server URL lookup completes.
CLAUDE_CODE_MCP_SERVER_NAME
MCP
Added in v2.1.85Added in v2.1.85 to identify which MCP server a helper process was acting on behalf of. Removed after just two versions.
CLAUDE_CODE_MCP_SERVER_URL
Network and proxy
Added in v2.1.85The companion to MCP_SERVER_NAME, providing the server endpoint URL. Also removed. Together these formed a pair for routing MCP requests through a single…
CLAUDE_CODE_MCP_SERVE_AUTH_TOKEN
Authentication
Added between v2.1.252 and v2.1.266Set the bearer token used to authenticate the MCP serve process; without it it fell back to reading auth from stdout. Read until v2.1.309.
CLAUDE_CODE_MCP_SERVE_ENABLED_PLUGINS
MCP
Added in v2.1.304Lists the plugins to enable for the MCP serve process as JSON; the named plugins are merged into the enabled-plugins config and switched on.
CLAUDE_CODE_MCP_SERVE_GARBAGE_COLLECTIONS
MCP
Added in v2.1.321Controls garbage collection while serving MCP; when enabled the serve process runs full or young (eden) collections; the default comes from a server-side…
CLAUDE_CODE_MCP_SERVE_INTERFACE_MIN_VERSION
MCP
Added in v2.1.299Sets the minimum tool-host interface version advertised when serving MCP; a value that differs from what the running daemon reports is ignored and logged.
CLAUDE_CODE_MCP_SERVE_MACHINE_PLUGINS
MCP
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_MCP_SERVE_MEMORY_WALKS_DEADLINE_MS
MCP
Removed in v2.1.332Deadline in milliseconds for memory walks while serving an MCP tool; defaults to 2000.
CLAUDE_CODE_MCP_SERVE_SETTINGS
MCP
Added in v2.1.285Provides JSON permission settings for the MCP serve process, parsed into allow and deny rule lists that scope what the server may do.
CLAUDE_CODE_MCP_SERVE_TOOL_OUTPUT
MCP
Added in v2.1.287When true, enables the experimental MCP serve tool-output path, which validates and attaches tool deny rules; off otherwise.
CLAUDE_CODE_MCP_SERVE_TUNNEL_BINARY_FRAMES
MCP
Added in v2.1.318—
CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT
MCP
Added between v2.1.301 and v2.1.303Used by claude mcp serve --transport http. Registers a workspace-root folder for the server; only a folder beneath the server's own is accepted, and a path…
CLAUDE_CODE_MCP_SKIP_UNCHANGED_RELIST
MCP
Added in v2.1.315—
CLAUDE_CODE_MCP_STARTUP_WAIT_MS
MCP
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_MEMORY_API_BASE_URL
Network and proxy
Added between v2.1.224 and v2.1.227Base URL for the memory API instead of the default. Routes hang off /v1/memory_stores/… under the managed-agents-2026-04-01 beta.
CLAUDE_CODE_MEMORY_API_TOKEN
Authentication
Added between v2.1.224 and v2.1.227Bearer token for that server. When set, the client sends Authorization: Bearer and skips its OAuth refresh. Treated as a credential and masked in logs, like…
CLAUDE_CODE_MEMORY_CONTEXT_NO_WAIT
Context and compaction
Added in v2.1.314—
CLAUDE_CODE_MEMORY_PUSH_DELETE_MODE
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212Controls how deletions propagate when memory is pushed upstream — a delete-mode knob for the memory subsystem that gained account- and organization-scoped sync…
CLAUDE_CODE_MEMORY_SUBAGENT_APPEND
Agents and subagents
Added between v2.1.269 and v2.1.283When set, the memory block is not appended to a subagent's system prompt; by default a subagent includes that memory in its prompt.
CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL
Other
Added in v2.1.300Set to 5m to force the messages prompt cache to a five-minute lifetime. It sits beside the existing CLAUDE_CODE_PROMPT_CACHE_TTL and…
CLAUDE_CODE_MESSAGING_SOCKET
Other
Added between v2.1.222 and v2.1.224
Documented
Points at the Unix domain socket for cross-session messaging. The transport refuses a non-local path and refuses to bind a socket another process already…
CLAUDE_CODE_MESSAGING_TOKEN
Authentication
Added in v2.1.228
Documented
Controls access to the local inbox for cross-session messages. A sender opens the socket named in CLAUDE_CODE_MESSAGING_SOCKET and sends this token first. If…
CLAUDE_CODE_MID_CONVERSATION_SYSTEM
Other
Removed between v2.1.143 and v2.1.212Inject a system message mid-conversation. Your harness can update Claude's constraints, inject new context, or shift behavioral guidelines without ending the…
CLAUDE_CODE_MOCK_REMOTE_SETTINGS
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_MOCK_TRIAL
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_CODE_MODEL_CAPABILITIES
Models and thinking
Added between v2.1.266 and v2.1.269Overrides model capabilities with semicolon-separated entries like model=cap1,cap2; a trailing * on the model matches by prefix, a leading - removes a…
CLAUDE_CODE_MODEL_CATALOG
Models and thinking
Added between v2.1.247 and v2.1.252Forces the served model catalog off. The catalog (model families, context windows, aliases fetched for an account) is otherwise gated behind the…
CLAUDE_CODE_MODEL_CATALOG_URL
Network and proxy
Added between v2.1.252 and v2.1.266Sets the URL to load the published model catalog from, used when no catalog URL is otherwise configured; file URLs are accepted.
CLAUDE_CODE_MODEL_NOBODY_CHOSE
Models and thinking
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_MORNING_BRIEF_PROMPT
Other
Removed between v2.1.212 and v2.1.215Set a custom prompt for the morning brief; used when its trimmed length was within bounds, otherwise the default prompt applied. Read until v2.1.212.
CLAUDE_CODE_NANKEEN_KESTREL
Other
Added between v2.1.143 and v2.1.212Windows-only sandbox gate. The gate function returns false on any non-Windows OS, true if this variable is set, otherwise defers to the server gate…
CLAUDE_CODE_NATIVE_APP_BUNDLE
Other
Added in v2.1.319—
CLAUDE_CODE_NATIVE_CURSOR
Terminal and UI
Added between v2.1.128 and v2.1.138
Documented
Use native terminal cursor control. Extension of the terminal-native capabilities that came in with v2.1.113's binary launcher. If cursor positioning looks off…
CLAUDE_CODE_NEW_INIT
Other
Added between v2.1.77 and v2.1.79
Documented
Toggles a refactored initialization path that reduces startup memory usage. The changelog explicitly highlights "~18MB" savings across all scenarios, which is…
CLAUDE_CODE_NEW_RENDERER
Other
Added between v2.1.324 and v2.1.326Sets whether the new renderer is enabled; when it is unset, the default comes from a server-side setting.
CLAUDE_CODE_NONBLOCKING_STDOUT
Other
Added between v2.1.252 and v2.1.266
Documented
—
CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES
Network and proxy
Added in v2.1.285
Documented
Caps how many times a timed-out non-streaming fallback request is re-sent. Added in v2.1.285.
CLAUDE_CODE_NORMALIZE_PREFIX_CACHE
Other
Added in v2.1.319Set to false to disable prefix-cache normalization, or true to enable it at a 0.02 share when no server-side share is set; a server-side share between 0 and 1…
CLAUDE_CODE_NORMALIZE_PREFIX_CACHE_VERIFY
Other
Added in v2.1.319—
CLAUDE_CODE_NOTIFICATIONS_HOST
Other
Added in v2.1.321—
CLAUDE_CODE_NO_FLICKER
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Enables flicker-free alternate-screen rendering. The changelog[1] explicitly documents this as CLAUDE_CODE_NO_FLICKER=1.
CLAUDE_CODE_NO_MODEL_FALLBACK
Models and thinking
Added between v2.1.212 and v2.1.215When set, the availability chain collapses to [primary]: buildAvailabilityFallbackChain() returns only the model you selected, and a tripwire error fires if…
CLAUDE_CODE_OAUTH_401_WAIT_MS
Authentication
Added between v2.1.143 and v2.1.212Sets the grace period in milliseconds for unrecovered 401 auth errors before failing; defaults to a preset value for remote sessions and 0 otherwise.
CLAUDE_CODE_OAUTH_CLIENT_ID
Authentication
Present since v2.1.69 or earlierCustom OAuth client ID
CLAUDE_CODE_OAUTH_REFRESH_TOKEN
Authentication
Present since v2.1.69 or earlier
Documented
OAuth refresh token
CLAUDE_CODE_OAUTH_SCOPES
Authentication
Present since v2.1.69 or earlier
Documented
OAuth scopes for refresh token
CLAUDE_CODE_OAUTH_TOKEN
Authentication
Present since v2.1.69 or earlier
Documented
Pre-configured OAuth access token
CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR
Authentication
Present since v2.1.69 or earlierFile descriptor to read OAuth token from
CLAUDE_CODE_OFF_PERSONS_MACHINE
Other
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE
Models and thinking
Added between v2.1.138 and v2.1.143
Documented
Pin Fast mode to Opus 4.6. Fast mode upgraded to Opus 4.7 by default in v2.1.142. If you're evaluating 4.7 or have a reproducibility requirement — benchmarks,…
CLAUDE_CODE_ORGANIZATION_UUID
Other
Present since v2.1.69 or earlierOrganization UUID
CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH
Telemetry
Added between v2.1.212 and v2.1.215
Documented
Caps the length of content attributes on OpenTelemetry spans and logs; the truncation function takes the minimum of this value (default 60 KB) and the standard…
CLAUDE_CODE_OTEL_DIAG_STDERR
Telemetry
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS
Telemetry
Present since v2.1.69 or earlier
Documented
OpenTelemetry flush timeout; default 5000ms
CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS
Telemetry
Present since v2.1.69 or earlier
Documented
Debounce for OTEL headers helper
CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS
Telemetry
Present since v2.1.69 or earlier
Documented
OpenTelemetry shutdown timeout; default 2000ms
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS
Network and proxy
Added in v2.1.292
Documented
Sets the base delay, in milliseconds, for the backoff when a request comes back overloaded (HTTP 529). The retry loop seeds its wait from this value on…
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS
Network and proxy
Added in v2.1.296
Documented
Raises the ceiling on the backoff delay when retrying a request that returned a 529 overloaded response. It applies to the overloaded retry path specifically,…
CLAUDE_CODE_OVERLOADED_RETRY_MAX_WAIT_MS
Network and proxy
Added between v2.1.321 and v2.1.323Maximum wait in milliseconds before retrying after an overloaded response; used only on the main request when neither the max-retries nor retry-watchdog…
CLAUDE_CODE_OVERRIDE_DATE
Terminal and UI
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_OWNERSHIP_FRAME
Other
Removed between v2.1.215 and v2.1.217—
CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE
Other
Added between v2.1.128 and v2.1.138
Documented
Let Claude Code run the Homebrew or WinGet upgrade of its own package in the background. Off by default; set to 1 to turn it on. It runs only for Homebrew and…
CLAUDE_CODE_PARCHMENT_FERN
Other
Removed in v2.1.285—
CLAUDE_CODE_PARKED_PERMISSION_WAIT_MS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Sets how long in milliseconds to wait for a parked permission prompt's answer; defaults to 2000.
CLAUDE_CODE_PARKED_RUN_BEFORE_CLEAR
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_PARKED_STOP_RETIRES
Other
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_PARSED_WILLOW
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_PEPPY_STARLIGHT
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_PERFETTO_TRACE
Telemetry
Present since v2.1.69 or earlierEnable Perfetto trace output to file path (server-gated)
CLAUDE_CODE_PERFETTO_WRITE_INTERVAL_S
Telemetry
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PERFORCE_MODE
Other
Added between v2.1.96 and v2.1.100
Documented
Activates Perforce VCS integration. The changelog[1] specifies: "when set, Edit/Write/NotebookEdit fail on read-only files with a p4 edit hint instead of…
CLAUDE_CODE_PERSONAL_CONFIG_FIX
Other
Added in v2.1.304—
CLAUDE_CODE_PERSONAL_HOOKS_OFF
Other
Added between v2.1.315 and v2.1.317Turns off personal hooks; accepts retry, fix or launch to pick the mode, treats none, off, false, no, 0 or empty as leaving them on, and any other value as…
CLAUDE_CODE_PER_TURN_TIMING
Other
Added between v2.1.269 and v2.1.283When set, enables per-turn timing for models that support it; without it the feature stays off.
CLAUDE_CODE_PEWTER_OWL
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PEWTER_OWL_TOOL
Shell and tools
Added between v2.1.143 and v2.1.212When set to true, it can stop certain tool results from ending the agent's turn, so the agent keeps going instead of returning control to the user.
CLAUDE_CODE_PLAIN_DELTA_DIRECT_WRITE
Other
Added between v2.1.315 and v2.1.317Takes effect only together with CLAUDE_CODE_PLAIN_DELTA_FAST_PATH, under --output-format stream-json with --verbose: a plain-text streaming delta is written…
CLAUDE_CODE_PLAIN_DELTA_FAST_PATH
Other
Added in v2.1.311When set, enables a fast path for emitting plain text streaming deltas directly; the fast path is disabled when it is unset.
CLAUDE_CODE_PLAIN_DELTA_TAKE_AT_SOURCE
Other
Added between v2.1.315 and v2.1.317When set to true, wraps the model call so plain-text deltas are captured at the source instead of through the normal path.
CLAUDE_CODE_PLAN_ARTIFACTS
Other
Removed in v2.1.238—
CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE
Other
Removed between v2.1.143 and v2.1.212Enable interview phase in plan mode
CLAUDE_CODE_PLAN_MODE_REQUIRED
Other
Present since v2.1.69 or earlierRequire agents to use plan mode for all tasks
CLAUDE_CODE_PLAN_V2_AGENT_COUNT
Agents and subagents
Present since v2.1.69 or earlierNumber of agents in Plan v2 mode (1–10)
CLAUDE_CODE_PLAN_V2_EXPLORE_AGENT_COUNT
Agents and subagents
Present since v2.1.69 or earlierExploration agents in Plan v2 (1–10)
CLAUDE_CODE_PLUGIN_ARCHIVE_URL
Network and proxy
Added in v2.1.238Set in the environment of a plugin's headersHelper command at install or update time, together with CLAUDE_CODE_PLUGIN_NAME, so the helper can mint headers for…
CLAUDE_CODE_PLUGIN_ATTRIBUTION
Plugins and skills
Added between v2.1.245 and v2.1.247Provides per-plugin attribution metadata as JSON (fields such as marketplace name, server plugin id, installation preference and marketplace kind), looked up…
CLAUDE_CODE_PLUGIN_BINARY_ASSETS
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PLUGIN_CACHE_DIR
Plugins and skills
Present since v2.1.69 or earlier
Documented
Local cache directory for downloaded plugins
CLAUDE_CODE_PLUGIN_DIRS
Plugins and skills
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_PLUGIN_DIR_WATCH
Plugins and skills
Added between v2.1.252 and v2.1.266
Documented
—
CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS
Network and proxy
Present since v2.1.69 or earlier
Documented
Git clone timeout for plugin installation
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE
Plugins and skills
Added in v2.1.90
Documented
Preserves the local marketplace plugin cache when git pull fails. Source code shows that without this flag, a failed pull triggers a full delete-and-reclone of…
CLAUDE_CODE_PLUGIN_MCPB_DIR
MCP
Added in v2.1.324Sets the directory for plugin MCPB files; it is used only when it exists and lies outside the default cache directory, which otherwise supplies the 'mcpb'…
CLAUDE_CODE_PLUGIN_NAME
Plugins and skills
Added in v2.1.238—
CLAUDE_CODE_PLUGIN_PREFER_HTTPS
Plugins and skills
Added between v2.1.138 and v2.1.143
Documented
Force HTTPS for plugin source resolution. If you're in a network environment where HTTP traffic is intercepted or plugins could be fetched without TLS, this…
CLAUDE_CODE_PLUGIN_REMOTE_MCP_REACHABLE_HOSTS_HINT
MCP
Added between v2.1.321 and v2.1.323A comma-separated list of host patterns, with wildcards like *. allowed, naming the reachable hosts for remote plugin MCP servers.
CLAUDE_CODE_PLUGIN_SEED_DIR
Plugins and skills
Present since v2.1.69 or earlier
Documented
Seed directory for pre-installed plugins
CLAUDE_CODE_PLUGIN_USE_ZIP_CACHE
Plugins and skills
Present since v2.1.69 or earlierUse zip-based caching instead of git
CLAUDE_CODE_POLICY_HELPER_PS1_PATH
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_POLICY_HELPER_PSMODULEPATH
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_POLISHED_DEWDROP
Other
Added between v2.1.252 and v2.1.266Sets how a certain response block is handled: 'drop' discards the block, 'block' turns it into an error, and 'off' disables this handling; overrides the…
CLAUDE_CODE_POLL_EVENTS
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_POLL_EVENT_DECLARATIONS
Other
Added in v2.1.287—
CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2
Sessions
Removed between v2.1.219 and v2.1.221Use POST-based session ingress v2
CLAUDE_CODE_POST_TURN_MEMORY
Memory and CLAUDE.md
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_POST_TURN_MEMORY_CONFIG
Memory and CLAUDE.md
Added between v2.1.266 and v2.1.269Holds the JSON configuration for the post-turn memory pass, including the instruction, how many turns between runs, maximum turns, idle-flush timing and prose…
CLAUDE_CODE_POST_TURN_MEMORY_SYNC
Memory and CLAUDE.md
Added between v2.1.266 and v2.1.269When set, runs the post-turn memory pass synchronously: once every turn and with no idle-flush delay, overriding the interval and idle timing from the config.
CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY
Shell and tools
Added between v2.1.138 and v2.1.143
Documented
Restore PowerShell execution policy checks. v2.1.143 made bypass-policy the default to reduce the most common Windows friction. If your environment uses…
CLAUDE_CODE_POWERUP_ONBOARDING
Other
Added between v2.1.143 and v2.1.212Forces the power-user onboarding tour to show even after onboarding is finished; accepts 'banner' or 'step' to choose the format, and otherwise follows the…
CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_PRINT_ENGINE_LOOP
Other
Removed between v2.1.252 and v2.1.266—
CLAUDE_CODE_PROACTIVE
Other
Added in v2.1.128—
CLAUDE_CODE_PROCESS_WRAPPER
Other
Added between v2.1.143 and v2.1.212
Documented
Names an executable that Claude Code must launch itself through. When the CLI spawns a copy of itself — the background daemon, agent-view workers, subagents —…
CLAUDE_CODE_PROFILE_QUERY
Debugging
Added between v2.1.143 and v2.1.212Likely merged into general profiling
CLAUDE_CODE_PROFILE_STARTUP
Debugging
Present since v2.1.69 or earlierEnable startup profiling; set to 1
CLAUDE_CODE_PROGRAM_USE_CASE_ID
Other
Added between v2.1.315 and v2.1.317Sets the program use case id attached to requests; it must be 1 to 128 characters of letters, digits, underscore or hyphen, and is ignored if it fails that…
CLAUDE_CODE_PROGRAM_USE_CASE_STAMPED
Other
Added in v2.1.318Selects the program use case stamping mode: the value 'follow' enables follow mode, and any other non-empty value marks the session as stamped, changing how…
CLAUDE_CODE_PROJECTS_FEATURE_FLAGS
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_PROJECTS_SESSION
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_PROJECT_DIR_NAME
Other
Added between v2.1.229 and v2.1.234
Documented
When CLAUDE_CONFIG_DIR is set, picks a short name for the per-project transcript directory so a host that gives each session its own config directory can label…
CLAUDE_CODE_PROJECT_DOC_LOOK_TIMEOUT_MS
Network and proxy
Added between v2.1.321 and v2.1.323Timeout in milliseconds for the project document hash lookup; on expiry the lookup is aborted. Defaults to a built-in value.
CLAUDE_CODE_PROMPT_CACHE_TTL
Other
Added between v2.1.241 and v2.1.245
Documented
Sets the prompt cache TTL for the main conversation (interactive, -p, and SDK turns) to "5m" or "1h". Takes precedence over the promptCacheTtl setting. Unset…
CLAUDE_CODE_PROPAGATE_TRACEPARENT
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST
Terminal and UI
Added between v2.1.79 and v2.1.83
Documented
Indicates that the API provider configuration is managed by the host application rather than by Claude Code itself.
CLAUDE_CODE_PROXY_AUTHENTICATE
Authentication
Added between v2.1.108 and v2.1.114Carries the WWW-Authenticate challenge from the proxy into the helper. Enables challenge-response schemes by reading what the proxy actually asked for.
CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS
Authentication
Added between v2.1.108 and v2.1.114Cache TTL for helper-returned credentials. Parsed as integer milliseconds; zero or negative falls back to default.
CLAUDE_CODE_PROXY_HOST
Network and proxy
Added between v2.1.108 and v2.1.114Proxy hostname, passed alongside the URL so helpers that route credentials by hostname don't need to re-parse.
CLAUDE_CODE_PROXY_RESOLVES_HOSTS
Network and proxy
Present since v2.1.69 or earlier
Documented
Proxy handles DNS resolution (skip local DNS)
CLAUDE_CODE_PROXY_URL
Network and proxy
Added between v2.1.108 and v2.1.114Full proxy URL, injected into the helper subprocess's environment. Claude-namespaced because the helper protocol is Claude-specific and must not collide with…
CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS
Network and proxy
Added in v2.1.85Sets the timeout for PowerShell command parsing on Windows. The PowerShell tool shipped as a preview in v2.1.84 with CLAUDE_CODE_USE_POWERSHELL_TOOL — this…
CLAUDE_CODE_QUESTION_EXTENDED
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_QUESTION_OPTIONAL_DESCRIPTIONS
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_QUESTION_PREVIEW_FORMAT
Other
Present since v2.1.69 or earlierFormat for permission question previews
CLAUDE_CODE_QUEUED_NOTIFICATIONS_BY_POLL
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_RATE_LIMIT_TIER
Other
Added between v2.1.114 and v2.1.117Rate-limit bucket for the current session, independent of subscription type. Enterprise customers may have custom limits that differ from their plan defaults —…
CLAUDE_CODE_RC_PERMISSION_NUDGE
Permissions and sandbox
Added between v2.1.143 and v2.1.212Overrides the permission-nudge settings as JSON: how many prompts before it may appear (default 5, minimum 1), the probability it shows (default 0, off), and…
CLAUDE_CODE_REFUSAL_FALLBACK_CATCH_ALL
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_RELAUNCH_BYPASS_SWITCH
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_RELAUNCH_HOME_TRUST
Other
Added in v2.1.284Carries a 'pid:token' trust marker into a relaunched process; the home directory is trusted without re-prompting only when the pid and token match the current…
CLAUDE_CODE_RELAUNCH_PROACTIVITY_BASELINE
Other
Added in v2.1.290Passes the startup permission-mode baseline into a relaunched process; it is read once and then cleared, and a 'bypassPermissions' value is dropped unless…
CLAUDE_CODE_RELAUNCH_PROACTIVITY_DECIDED
Terminal and UI
Added in v2.1.290—
CLAUDE_CODE_RELAUNCH_PROACTIVITY_EVER_ON
Other
Added in v2.1.290—
CLAUDE_CODE_RELAUNCH_PROACTIVITY_LEVEL
Other
Added in v2.1.290—
CLAUDE_CODE_RELAUNCH_RESUME_HINT_FLAGS
Sessions
Added between v2.1.315 and v2.1.317Holds space-separated CLI flags to reapply when relaunching to resume; the flags are validated against known options, dropped if any is invalid, and the…
CLAUDE_CODE_RELAUNCH_SANDBOX_HOLD
Permissions and sandbox
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_RELAUNCH_SEAT_LAUNCH
Other
Added in v2.1.332—
CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE
Terminal and UI
Added between v2.1.143 and v2.1.212Restores the terminal size after a relaunch: when set to a value like 120x40 and output is a TTY, sets the terminal column and row counts if they are not…
CLAUDE_CODE_REMOTE
Sessions
Present since v2.1.69 or earlier
Documented
Indicates running in remote/server mode
CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE
Sessions
Present since v2.1.69 or earlierRemote environment type sent in telemetry
CLAUDE_CODE_REMOTE_HERMETIC_MODE
Sessions
Added between v2.1.143 and v2.1.212When combined with remote mode, runs in hermetic mode, which skips reading the enabled-plugins configuration and loads no named plugins.
CLAUDE_CODE_REMOTE_MCP_CONFIG
MCP
Added in v2.1.299Path to an MCP servers configuration file delivered by the remote runner; it is read, with its variables expanded, to load those MCP servers dynamically.
CLAUDE_CODE_REMOTE_MEMORY_DIR
Memory and CLAUDE.md
Present since v2.1.69 or earlierMemory directory for remote sessions
CLAUDE_CODE_REMOTE_RAW_EVENTS_FILE
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE_SDK_URL
Network and proxy
Added in v2.1.290Holds the URL of the remote SDK endpoint; when set and valid, it becomes the SDK connection URL.
CLAUDE_CODE_REMOTE_SEND_KEEPALIVES
Sessions
Present since v2.1.69 or earlierSend keepalive pings in remote mode
CLAUDE_CODE_REMOTE_SESSION_ID
Sessions
Present since v2.1.69 or earlier
Documented
Remote session identifier
CLAUDE_CODE_REMOTE_SESSION_ORIGIN
Sessions
Added between v2.1.215 and v2.1.217Provenance tag for cloud/remote sessions, checked against the value "review". First shipped v2.1.217; undocumented.
CLAUDE_CODE_REMOTE_SESSION_UUID
Sessions
Added between v2.1.222 and v2.1.224—
CLAUDE_CODE_REMOTE_SETTINGS_PATH
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE_SETTINGS_POLL_MS
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE_STALL_CHECK_INTERVAL_MS
Sessions
Added between v2.1.315 and v2.1.317In remote sessions, sets the stall-check interval in milliseconds; when unset a built-in default is used, and it has no effect outside remote sessions.
CLAUDE_CODE_REMOTE_TOOLS_ADOPT_MCP
MCP
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_REMOTE_TOOLS_ASK_SEATS
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_CALLER_SESSIONS_MAX
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_DESKTOP_APP_HOST
Shell and tools
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_REMOTE_TOOLS_FORWARD
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_HOST_ALLOWS_UNATTENDED
Shell and tools
Added in v2.1.290—
CLAUDE_CODE_REMOTE_TOOLS_HOST_IDLE_RELEASE_MINUTES
Shell and tools
Added in v2.1.312Minutes of idle time before the remote tools host channel is released, applied as that value times 60000 milliseconds; when unset, no idle release timeout is…
CLAUDE_CODE_REMOTE_TOOLS_JUMP_QUEUE
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_PIN_STORED_LOGIN
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_POLICY
Shell and tools
Added between v2.1.247 and v2.1.252Selects how tools are served to Remote Control clients. Unset or parity keeps the default; any other value switches to interim serving.
CLAUDE_CODE_REMOTE_TOOLS_SERVE
Shell and tools
Added between v2.1.245 and v2.1.247Controls serving of remote tools; serving is enabled by default, and setting it to a false value turns serving off.
CLAUDE_CODE_REMOTE_TOOLS_SESSION_CHANNEL
Shell and tools
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_REMOTE_TOOLS_SPECULATIVE_CLASSIFIER
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOVE_PROMPT_STRINGS
Other
Added in v2.1.290Takes a JSON array of strings that are stripped from the prompt before sending; falls back to the remove_prompt_strings client setting, and is ignored when it…
CLAUDE_CODE_REPL
Other
Added between v2.1.87 and v2.1.88Boolean toggle for the new native REPL path introduced by v2.1.113's native-binary launcher. Forces on or off regardless of entrypoint detection — the…
CLAUDE_CODE_REPLY_GATE_POLICY
Other
Added in v2.1.318Carries a reply-gate policy into agent-loop sessions: a list of terminal tools and caps on how many times Claude asks after a person's message, after its own…
CLAUDE_CODE_REPORT_FINDINGS
Other
Added between v2.1.143 and v2.1.212Set to a truthy value to turn on the review findings mode that produces a list of findings; it stays off for text or json output and during skill preloads.
CLAUDE_CODE_REPORT_REPO_PROVENANCE
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_REPO_CHECKOUTS
Other
Added between v2.1.104 and v2.1.107Specifies a directory path (or paths) where Claude Code should create and manage git worktree checkouts. By default, worktrees land in a temporary location…
CLAUDE_CODE_REQUIRED_PLUGINS_HOLD
Plugins and skills
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_RESTRICTED
Permissions and sandbox
Added between v2.1.247 and v2.1.252
Documented
—
CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG
Other
Added in v2.1.295Limits what a session's own Claude Code files may do. With it set, a user's own agents cannot define their own MCP servers or widen their permission mode, the…
CLAUDE_CODE_RESULT_NONCE
Other
Added in v2.1.285Supplies a nonce value that is attached as the nonce field on emitted command results.
CLAUDE_CODE_RESUME_CACHE_WARM
Sessions
Added in v2.1.318In remote mode, controls warming the resume cache: true force-enables it, false disables it, and otherwise a server-side setting decides whether it runs.
CLAUDE_CODE_RESUME_FROM_SESSION
Sessions
Added between v2.1.104 and v2.1.107Instructs Claude Code to bootstrap a new session's context from an existing session ID. Rather than starting fresh, the new session loads key context —…
CLAUDE_CODE_RESUME_HINT_COMMAND
Sessions
Added between v2.1.321 and v2.1.323
Documented
Sets the launcher program name shown in the printed command for resuming a session.
CLAUDE_CODE_RESUME_INTERRUPTED_TURN
Sessions
Present since v2.1.69 or earlier
Documented
Resume an interrupted agent turn
CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_RESUME_PROMPT
Sessions
Added between v2.1.138 and v2.1.143
Documented
Set the prompt injected when resuming a session. If you build on top of Claude Code's resume capability and want Claude to get oriented differently on re-entry…
CLAUDE_CODE_RESUME_REASON
Sessions
Added between v2.1.266 and v2.1.269Sets the reason recorded when a session resumes; accepts 1 to 64 lowercase letters and underscores, and defaults to interrupted_turn when unset or invalid.
CLAUDE_CODE_RESUME_SESSIONSTART_HOOKS_WAIT_MS
Sessions
Added in v2.1.296Milliseconds that resuming a session waits for SessionStart hooks to finish before continuing; when unset, resume skips this timed wait.
CLAUDE_CODE_RESUME_SHOWS_CUT_OFF_CALLS
Sessions
Added between v2.1.307 and v2.1.309
Documented
—
CLAUDE_CODE_RESUME_SOURCE_ALIVE
Sessions
Added between v2.1.143 and v2.1.212Carries the session and parent-session ids of the session a resume or fork started from; resume stores them on the session record and treats the source as…
CLAUDE_CODE_RESUME_THRESHOLD_MINUTES
Sessions
Added between v2.1.88 and v2.1.89Sets the time window (in minutes) during which a session is eligible for automatic resume. Claude Code already supports --resume for continuing sessions, and…
CLAUDE_CODE_RESUME_TOKEN_THRESHOLD
Authentication
Added between v2.1.88 and v2.1.89Sets the token count threshold for session resume eligibility. Complementing the time-based threshold above, this adds a context-size dimension: if a session's…
CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS
Context and compaction
Added between v2.1.241 and v2.1.245Set to let resume keep extra user messages appended to a session's transcript instead of rejecting them as a mismatch. Read until v2.1.307.
CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_SEEDS
Context and compaction
Added in v2.1.290Set to let resume accept queued task-notification seed messages in a transcript rather than treating them as leftover context rows.
CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION
Permissions and sandbox
Removed between v2.1.269 and v2.1.283Set to retire the interrupted turn's pending tool calls when a parked permission prompt timed out unanswered. Read until v2.1.269.
CLAUDE_CODE_RETRY_WATCHDOG
Network and proxy
Added between v2.1.114 and v2.1.117
Documented
Tunes the retry watchdog that detects API calls silently looping without progress. v2.1.123 fixed an OAuth 401 retry loop when…
CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS
Network and proxy
Added in v2.1.301Bounds how long unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) waits for a usage-limit reset. When a 429 response's reset is farther out than this budget,…
CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS
Network and proxy
Added in v2.1.295
Documented
Caps the total time unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) waits through 429 and 529 responses. Once the elapsed wait passes the cap, the request…
CLAUDE_CODE_RETRY_WATCHDOG_SCOPE
Network and proxy
Added in v2.1.310Read alongside CLAUDE_CODE_RETRY_WATCHDOG. With the watchdog on, the guarded branch runs only when this is not set to capacity; setting it to capacity turns…
CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS
Network and proxy
Added in v2.1.305
Documented
Governs how unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) rechecks a usage limit that was lifted before its reset, so a headless run can resume once the…
CLAUDE_CODE_RIPPLING_TULIP
Other
Added in v2.1.290Overrides the token budget for the total-tokens usage reminder; read only while that reminder is enabled, and skipped when attachments are disabled or simple…
CLAUDE_CODE_RUNNER_MODEL_SOCKET
Models and thinking
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_RUNNER_START_NOTES
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_RUSTLING_PIXEL
Other
Added between v2.1.269 and v2.1.283Controls whether thinking blocks carried over from another model are kept: accepts 'all', 'upgrade' or 'none', and an unrecognized value logs a warning and…
CLAUDE_CODE_SABLE_THRUSH
Other
Removed between v2.1.247 and v2.1.252Set to true or false to force the thinking-block narration feature on or off; otherwise a server default of off applied. Read until v2.1.247.
CLAUDE_CODE_SAFE_MODE
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SANDBOXED
Permissions and sandbox
Added in v2.1.94Indicates or enforces that Claude Code is running in a sandboxed environment. The v2.1.92 changelog[1] restored the apply-seccomp helper for Linux sandbox in…
CLAUDE_CODE_SANDBOX_LEAVE_DENIES_TO_SRT_WIN
Permissions and sandbox
Added in v2.1.299Set to skip configuring the sandbox's native Windows deny rules; when present, that setup logs as switched off and returns without applying them.
CLAUDE_CODE_SANDBOX_LEAVE_PARENT_FOLDERS_ALONE
Permissions and sandbox
Added in v2.1.299On Windows, set to skip the sandbox step that adjusts permissions on the project's and home directory's parent folders; when present it logs as switched off…
CLAUDE_CODE_SAVE_HOOK_ADDITIONAL_CONTEXT
Context and compaction
Removed between v2.1.96 and v2.1.100Extra context passed to save hooks
CLAUDE_CODE_SCRATCHPAD_DIR
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SCRIPT_CAPS
Other
Added between v2.1.96 and v2.1.100
Documented
Limits per-session script invocations. The changelog[1] pairs this with subprocess sandboxing via PID namespace isolation on Linux (when…
CLAUDE_CODE_SCROLL_SPEED
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Controls the scroll speed within the terminal UI. Default scroll behavior in terminal applications is typically one line per scroll event, which can feel…
CLAUDE_CODE_SDK_HAS_HOST_AUTH_REFRESH
Authentication
Added between v2.1.143 and v2.1.212When set, Claude Code requests authentication-token refreshes from the SDK host, using CLAUDE_CODE_HOST_AUTH_REFRESH_TIMEOUT_MS as the timeout when it is…
CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH
Authentication
Added between v2.1.100 and v2.1.104Signals to the Claude Code runtime that the SDK caller has already provided an OAuth refresh token.
CLAUDE_CODE_SDK_HAS_SESSIONS_OAUTH_REFRESH
Authentication
Added in v2.1.311—
CLAUDE_CODE_SDK_MCP_TOOL_IDLE_TIMEOUT
Network and proxy
Added between v2.1.321 and v2.1.323Sets the idle timeout in milliseconds for SDK MCP tools, then removes the variable from the environment.
CLAUDE_CODE_SDK_READS_SESSION_STATE
Sessions
Added in v2.1.284When set, emits a host-only session_state_changed system event whenever the session state changes, letting the SDK host observe it.
CLAUDE_CODE_SDK_READS_STARTUP_MARKS
Other
Added in v2.1.304When set and the output format is stream-json, writes startup marker records to stdout for the SDK to read.
CLAUDE_CODE_SEARCH_HINTS_IN_LIST
Other
Removed between v2.1.87 and v2.1.88Controlled whether search hints appeared in list views. The feature was probably either made default or removed as the UI evolved.
CLAUDE_CODE_SENDMESSAGE_HANDBACK
Other
Added between v2.1.266 and v2.1.269Overrode whether an auto-mode agent delivered its final report by calling the send-message tool rather than ending plainly; defaulted on. Read until v2.1.307.
CLAUDE_CODE_SENDS_VIA_SESSION_SERVICE
Sessions
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SEND_FEEDBACK
Other
Added between v2.1.143 and v2.1.212
Documented
Kill switch for the new /bug feedback relay. The gate function bails if DISABLE_FEEDBACK_COMMAND or DISABLE_BUG_COMMAND is set, requires an…
CLAUDE_CODE_SERVED_PATHS
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SERVED_SCHEMA_VERSION
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS
Network and proxy
Added between v2.1.77 and v2.1.79
Documented
Set the timeout in milliseconds for hooks that run when a Claude Code session ends. Session-end hooks (like SessionEnd in the hooks config) run cleanup scripts…
CLAUDE_CODE_SESSIONS_OAUTH_TOKEN
Authentication
Added in v2.1.311—
CLAUDE_CODE_SESSION_ACCESS_TOKEN
Authentication
Present since v2.1.69 or earlierSession-scoped access token
CLAUDE_CODE_SESSION_ATTENDED
Sessions
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_SESSION_BEGAN_AS_COPY
Sessions
Added in v2.1.315—
CLAUDE_CODE_SESSION_CREATED_AT_MS
Sessions
Added between v2.1.321 and v2.1.323—
CLAUDE_CODE_SESSION_ID
Sessions
Added between v2.1.118 and v2.1.123
Documented
Stable identifier for the current session, passed into subprocess environments. Lets subprocess tools — hooks, MCP servers, custom scripts — correlate their…
CLAUDE_CODE_SESSION_KIND
Sessions
Added between v2.1.118 and v2.1.123Classifies the session: interactive, SDK/headless, subagent, background, or Remote Control. Hooks can branch on kind — a hook that opens a browser link makes…
CLAUDE_CODE_SESSION_LOG
Sessions
Added between v2.1.118 and v2.1.123Path to the session's transcript file, surfaced to subprocesses. Lets hooks and post-processing scripts find the transcript without traversing ~/.claude/ or…
CLAUDE_CODE_SESSION_NAME
Sessions
Added between v2.1.118 and v2.1.123Human-readable session name backing the v2.1.121 terminal tab title feature. Hooks and status-line integrations can read it without querying the CLI.
CLAUDE_CODE_SESSION_ORIGIN
Sessions
Added between v2.1.252 and v2.1.266Records where the session came from; the value 'claude_ai_chat' marks it as originating from the claude.ai chat surface and gates chat-origin-specific handling.
CLAUDE_CODE_SESSION_START_ANNOUNCEMENTS_BEFORE_PROMPT
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_SETTLE_TOUCHED_FILES
Other
Removed in v2.1.305—
CLAUDE_CODE_SHELL
Shell and tools
Present since v2.1.69 or earlier
Documented
Override shell for Bash tool (must be bash or zsh)
CLAUDE_CODE_SHELL_HANDOVER_KEY
Shell and tools
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SHELL_HANDOVER_PATH
Shell and tools
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SHELL_LAUNCHER_SCRIPT
Shell and tools
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_SHELL_MCP_SERVERS
MCP
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SHELL_PREFIX
Shell and tools
Present since v2.1.69 or earlier
Documented
Prefix command for shell execution
CLAUDE_CODE_SHELL_PREFIXI50
Shell and tools
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_SHINY_FOUNTAIN
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SHOWN_PLUGINS_DIR
Plugins and skills
Added between v2.1.321 and v2.1.323Sets the directory of shown plugins when the path is valid and a condition holds, then removes the variable from the environment.
CLAUDE_CODE_SHOW_HIDDEN_CHARACTERS
Other
Added between v2.1.324 and v2.1.326Sets whether hidden characters are shown; when it is unset, the default comes from a server-side setting.
CLAUDE_CODE_SILENT_TURN_REMINDER
Other
Added between v2.1.234 and v2.1.237Toggles an injected reminder that fires after several turns with no update to the user, prompting Claude to report a finding or a change of plan. Overrides the…
CLAUDE_CODE_SILENT_TURN_REMINDER_SECONDS
Other
Added in v2.1.290Set the number of seconds of silence before the silent-turn reminder fired; when unset, a configured setting applied. Read until v2.1.309.
CLAUDE_CODE_SILENT_TURN_REMINDER_TEXT
Other
Added in v2.1.238Overrides the text of the silent-turn reminder (the nudge injected after turns that produce no output). Falls back to the tengu_hushed_lark_text gate value,…
CLAUDE_CODE_SILENT_TURN_REMINDER_TURNS
Other
Added between v2.1.234 and v2.1.237Sets how many silent turns pass before the reminder fires. Falls back to the tengu_hushed_lark gate, defaulting to 5 turns.
CLAUDE_CODE_SIMPLE
Other
Present since v2.1.69 or earlier
Documented
Simplified mode; disables CLAUDE.md and attachments (renamed from CLAUDE_CODE_SIMPLETON)
CLAUDE_CODE_SIMPLETON
Other
—Renamed to CLAUDE_CODE_SIMPLE
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT
Other
Added between v2.1.114 and v2.1.117
Documented
Switches to a reduced system prompt, stripping out the non-essential guidance sections that bulk up the default prompt. Useful in latency-sensitive or…
CLAUDE_CODE_SIMULATE_PROXY_USAGE
Network and proxy
Added in v2.1.92Simulates proxy-based API routing without an actual proxy. This is a testing tool — it lets developers verify that their Claude Code configuration behaves…
CLAUDE_CODE_SKILL_ATTRIBUTION
Plugins and skills
Added between v2.1.252 and v2.1.266Supplies attribution data as a JSON object (up to 256 KB) that associates skills with their skill and plugin IDs; values that are not a JSON object are ignored.
CLAUDE_CODE_SKILL_DESCRIPTION
Plugins and skills
Removed between v2.1.212 and v2.1.215—
CLAUDE_CODE_SKILL_DESC_REFRAME
Plugins and skills
Removed between v2.1.215 and v2.1.217Set to a truthy value to arm an alternative wording of the skill tool's description, overriding the server flag; read until v2.1.215.
CLAUDE_CODE_SKILL_NAME
Plugins and skills
Removed between v2.1.252 and v2.1.266—
CLAUDE_CODE_SKILL_PROPOSALS
Plugins and skills
Added between v2.1.229 and v2.1.234Enables the tool that proposes skills from recurring procedures for the user to review and save, and adds its usage instructions.
CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH
Cloud providers
Added in v2.1.90
Documented
Skips credential resolution for the Anthropic AWS provider. Source code shows two effects: (1) passes skipAuth: true to the AnthropicAws client constructor,…
CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH
Cloud providers
Added between v2.1.212 and v2.1.215
Documented
The skip-auth companion to the toggle above, grouped in the auth-bypass list with SKIP_BEDROCK_AUTH, SKIP_VERTEX_AUTH, SKIP_FOUNDRY_AUTH,…
CLAUDE_CODE_SKIP_AWS_CRED_CACHE
Cloud providers
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SKIP_BEDROCK_AUTH
Cloud providers
Present since v2.1.69 or earlier
Documented
Skip Bedrock authentication
CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS
Models and thinking
Added between v2.1.77 and v2.1.79
Documented
Controls whether Claude Code suppresses or bypasses network errors that occur specifically in fast mode. Fast mode uses the same Opus 4.6 model with faster…
CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK
Models and thinking
Added in v2.1.92
Documented
Disables the organization-level eligibility check for fast mode. Fast mode (toggled via /fast) normally verifies that the user's organization supports it.
CLAUDE_CODE_SKIP_FOUNDRY_AUTH
Cloud providers
Present since v2.1.69 or earlier
Documented
Skip Foundry authentication
CLAUDE_CODE_SKIP_HFI_VERSION_CHECK
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_MANTLE_AUTH
Cloud providers
Added in v2.1.94
Documented
Skips Mantle authentication. This is the escape hatch for environments where Mantle is enabled at the org level but a specific workflow needs direct API access…
CLAUDE_CODE_SKIP_MCP_DEBUG_LOG_FILES
MCP
Added in v2.1.311When set to true, skips writing MCP server debug messages to their per-server log files.
CLAUDE_CODE_SKIP_MODEL_ACCESS_MEMORY
Models and thinking
Added in v2.1.285
Documented
—
CLAUDE_CODE_SKIP_PLUGIN_LOCAL_MCP_SERVERS
MCP
Added in v2.1.304—
CLAUDE_CODE_SKIP_PLUGIN_MCP_BUNDLES
MCP
Added in v2.1.304—
CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS
MCP
Added between v2.1.143 and v2.1.212When set, skips discovering a plugin's MCP servers unless the plugin is exempted through CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS_EXCEPT.
CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS_EXCEPT
MCP
Added between v2.1.143 and v2.1.212Comma-separated list of plugins to exempt from the plugin MCP skip flags; an entry containing @ matches the plugin's repository, otherwise its name.
CLAUDE_CODE_SKIP_PRECOMPACT_LOAD
Context and compaction
—Optimize large session file loading
CLAUDE_CODE_SKIP_PROJECT_BACKFILL
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_PROMPT_HISTORY
Feature toggles
Present since v2.1.69 or earlier
Documented
Disable prompt history saving
CLAUDE_CODE_SKIP_REPO_UPLOAD
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_VERTEX_AUTH
Cloud providers
Present since v2.1.69 or earlier
Documented
Skip Vertex AI authentication
CLAUDE_CODE_SLACK_TAG_TOKEN
Authentication
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_SLEEPY_SNOWFLAKE
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_SLEEP_COMPACT
Context and compaction
Added in v2.1.295When set, enables sleep compaction, which compacts the conversation while the session sits idle.
CLAUDE_CODE_SLEEP_COMPACT_AFTER_MS
Context and compaction
Added in v2.1.296Milliseconds to wait after a turn before idle sleep compaction runs, clamped between 60000 and 210000; defaults to 150000.
CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS
Other
Present since v2.1.69 or earlierThreshold for slow filesystem operation warnings
CLAUDE_CODE_SNAPPY_PELICAN
Other
Added in v2.1.296When enabled, keeps a request's relative effort value (lower or higher) instead of stripping it; defaults to the server flag value.
CLAUDE_CODE_SORTED_OTTER
Other
Added in v2.1.315—
CLAUDE_CODE_SPARE_DEFER_ALL_MCP
MCP
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_SPARE_KEEPS_BOOT_SESSION_ID
Sessions
Removed between v2.1.326 and v2.1.331When set, keeps the boot session ID so a spare process does not claim a new session when none was provided.
CLAUDE_CODE_SPAWNED_BY_SERVER
Other
Present since v2.1.69 or earlierWas used to indicate a server-spawned process. Added in v2.1.69's remote/server mode batch. Removed after just one version — likely internalized or replaced by…
CLAUDE_CODE_SPAWN_TIMESTAMP_MS
Other
Added between v2.1.143 and v2.1.212Integer millisecond timestamp the process uses as its spawn time; read after CCR_SPAWN_TIMESTAMP_MS and only when it parses to a finite number.
CLAUDE_CODE_SPEND_PROJECT
Other
Added in v2.1.332—
CLAUDE_CODE_SQUISHY_NEWT
Other
Removed in v2.1.301—
CLAUDE_CODE_SSE_PORT
Other
Present since v2.1.69 or earlierServer-Sent Events port
CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING
Network and proxy
Present since v2.1.69 or earlierSet the download stall timeout in milliseconds, after which a download receiving no data was aborted; defaulted to 120000. Read until v2.1.309.
CLAUDE_CODE_STARTER_MAY_HOLD_CONNECTOR_FILE
Network and proxy
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_STARTUP_FAILURE_RESULTS
Other
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_STELLAR_DRIFT
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_STOP_HOOK_BLOCK_CAP
Other
Added between v2.1.138 and v2.1.143
Documented
Cap how long a stop hook can block session termination. If you've ever hit Ctrl+C and had Claude Code hang before actually closing — this is why, and this is…
CLAUDE_CODE_STOP_ON_UNUSABLE_PROFILE
Debugging
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_STREAMED_BUMBLEBEE
Network and proxy
Added in v2.1.290When enabled, adds a note telling a subagent its context budget, with the amount substituted for {N} in the wording; otherwise no note is added.
CLAUDE_CODE_STREAMED_BUMBLEBEE_TEXT
Network and proxy
Added in v2.1.290Custom wording for the subagent context-budget note; a non-empty string replaces the default text, with {N} filled in by the budget amount.
CLAUDE_CODE_STREAMING_TEXT
Network and proxy
Removed between v2.1.73 and v2.1.76Likely controlled an experimental streaming text mode that has now graduated to being the default behavior. v2.1.78 introduced line-by-line response streaming…
CLAUDE_CODE_STREAM_EVENT_HOLD_MS
Network and proxy
Added in v2.1.314—
CLAUDE_CODE_STREAM_EVENT_MAX_LINE_BYTES
Network and proxy
Added in v2.1.314—
CLAUDE_CODE_STREAM_EVENT_NO_SUBSCRIBER_HOLD_MS
Network and proxy
Added in v2.1.319Milliseconds to hold a stream event when nothing is subscribed; used only when CLAUDE_CODE_STREAM_EVENT_HOLD_MS is also set.
CLAUDE_CODE_STREAM_TIMER_SLACK_MS
Network and proxy
Added in v2.1.318Sets the stream timer slack in milliseconds as an integer from 0 to 1000; values outside that range become 0, and when unset the default comes from a…
CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT
Shell and tools
Added in v2.1.299
Documented
Set to 1 to keep prompting on a run-time or inline rm in a shell -c script Claude Code cannot read. Left unset, scripts that do not visibly run rm no longer…
CLAUDE_CODE_SUBAGENT_CACHE_EVICT
Agents and subagents
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SUBAGENT_CONFIG_WARNING
Agents and subagents
Added in v2.1.295Set to a truthy value to enable the subagent configuration warning or a falsy value to disable it, overriding the server default.
CLAUDE_CODE_SUBAGENT_EFFORT
Agents and subagents
Added in v2.1.315
Documented
Sets the effort level subagents run at when their own definition names none. Read when a subagent leaves effort unset, it takes a level (low, medium, high,…
CLAUDE_CODE_SUBAGENT_HISTORY
Agents and subagents
Added in v2.1.307
Documented
Gates a subagent history view; when unset the view falls back to the tengu_rustling_crescent feature gate, which is off by default. Present in v2.1.307, with…
CLAUDE_CODE_SUBAGENT_MODEL
Agents and subagents
Present since v2.1.69 or earlier
Documented
Force a specific model for sub-agent operations
CLAUDE_CODE_SUBAGENT_MODELU
Agents and subagents
—The trailing-U variant flagged as a likely typo in v2.1.84 has been removed. CLAUDE_CODE_SUBAGENT_MODEL (without the U) remains. Clean housekeeping.
CLAUDE_CODE_SUBAGENT_MODEL_FORCE
Agents and subagents
Added between v2.1.252 and v2.1.266
Documented
—
CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL
Agents and subagents
Added between v2.1.241 and v2.1.245
Documented
Same control for everything outside the main conversation: subagents, workflows, background and helper requests. Defaults to five minutes unless…
CLAUDE_CODE_SUBAGENT_PROMPT_SNAPSHOT
Agents and subagents
Added in v2.1.290Set to force a subagent to snapshot its system prompt, overriding the configured option; read until v2.1.309.
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB
Permissions and sandbox
Added between v2.1.77 and v2.1.79
Documented
When set to 1, strips Anthropic and cloud provider credentials from subprocess environments — the Bash tool, hooks, and MCP stdio servers. The changelog…
CLAUDE_CODE_SUBSCRIPTION_TYPE
Other
Added between v2.1.114 and v2.1.117Current subscription plan identifier. Lets the process branch on tier without an API call — used by v2.1.118's unified /usage to render plan-specific limits…
CLAUDE_CODE_SUPERVISED
Other
Added between v2.1.138 and v2.1.143Mark a session as supervised — a human is watching. In supervised mode Claude is more likely to surface decisions for human confirmation rather than resolving…
CLAUDE_CODE_SUPPRESS_SESSION_ATTRIBUTION
Sessions
Added between v2.1.143 and v2.1.212Set to suppress session attribution, so no session URL or ID is attached to the session.
CLAUDE_CODE_SYNC_PLUGINS
Plugins and skills
Added between v2.1.143 and v2.1.212Set to turn on plugin syncing, pulling the organization's plugins into the local install.
CLAUDE_CODE_SYNC_PLUGINS_BUFFERED_DOWNLOAD
Plugins and skills
Added between v2.1.143 and v2.1.212Set to download synced plugins as a single buffered request instead of a stall-monitored stream.
CLAUDE_CODE_SYNC_PLUGINS_DOWNLOAD_CONCURRENCY
Plugins and skills
Added between v2.1.307 and v2.1.309Maximum number of plugin downloads to run in parallel during sync; defaults to 6.
CLAUDE_CODE_SYNC_PLUGINS_DOWNLOAD_STALL_MS
Plugins and skills
Added between v2.1.143 and v2.1.212Milliseconds a plugin download stream may stall before it is aborted; defaults to 60000.
CLAUDE_CODE_SYNC_PLUGINS_INSTALL_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212Timeout in milliseconds for installing a synced plugin; defaults to 30000.
CLAUDE_CODE_SYNC_PLUGINS_MCP_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212Timeout in milliseconds for a synced plugin's MCP connection; defaults to 10000.
CLAUDE_CODE_SYNC_PLUGIN_INSTALL
Plugins and skills
Present since v2.1.69 or earlier
Documented
Install plugins synchronously (block until done)
CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS
Network and proxy
Present since v2.1.69 or earlier
Documented
Timeout for synchronous plugin install
CLAUDE_CODE_SYNC_REUSE_WITHIN_MS
Other
Added between v2.1.266 and v2.1.269Number of milliseconds within which a recent sync result may be reused instead of syncing again; only a positive value takes effect.
CLAUDE_CODE_SYNC_SESSION_REFS
Sessions
Added between v2.1.143 and v2.1.212Enables syncing of session references in remote and child sessions. The gate function is true only when this variable is truthy and a CLAUDE_CODE_SESSION_ID is…
CLAUDE_CODE_SYNC_SKILLS
Plugins and skills
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SYNTAX_HIGHLIGHT
Other
Present since v2.1.69 or earlier
Documented
Disable syntax highlighting when set to false
CLAUDE_CODE_SYSTEM_PROMPT_FEATURE_FLAG
Other
Added between v2.1.321 and v2.1.323In remote mode, names the feature flag whose non-empty string value replaces the default system prompt.
CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATURE
Other
Added between v2.1.108 and v2.1.114Names a GrowthBook feature flag whose value overrides the system prompt — but only when CLAUDE_CODE_REMOTE is set. Anthropic can A/B-test remote-session…
CLAUDE_CODE_TAGS
Other
Present since v2.1.69 or earlierCustom tags for telemetry events
CLAUDE_CODE_TAG_ISMETA_MESSAGES
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TASK_LIST_ID
Other
Present since v2.1.69 or earlier
Documented
Task list ID for agent coordination
CLAUDE_CODE_TEAMMATE_COMMAND
Agents and subagents
Present since v2.1.69 or earlierCommand for teammate/cowork functionality
CLAUDE_CODE_TEAM_ONBOARDING
Agents and subagents
Removed between v2.1.143 and v2.1.212Replaced by newer onboarding paths (CLAUDE_CODE_POWERUP_ONBOARDING, /doctor's CLAUDE.md-trimming check).
CLAUDE_CODE_TEAM_TEARDOWN_PARK_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TEE_SDK_STDOUT
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TELEPORT_MOVE
Other
Added in v2.1.318Set to '1' to mark that moving the session to the cloud was restarted after a copy; the value is read once then cleared, and it adjusts the move's logging and…
CLAUDE_CODE_TERMINAL_MCP_TOOLS
MCP
Added between v2.1.143 and v2.1.212Comma-separated list of MCP tool names treated as terminal tools; when empty, the related check is skipped.
CLAUDE_CODE_TERMINAL_RECORDING
Terminal and UI
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TEST_ALLOW_REAL_NETWORK
Other
Removed between v2.1.326 and v2.1.331Set to allow a test runtime to make real non-loopback network requests, which are otherwise refused; loopback is always allowed.
CLAUDE_CODE_TEST_FIXTURES_ROOT
Other
Removed between v2.1.326 and v2.1.331Root directory for test fixtures
CLAUDE_CODE_TEST_FORCE_DENY
Feature toggles
Removed between v2.1.326 and v2.1.331—
CLAUDE_CODE_TEST_NO_GIT_BASH
Shell and tools
Removed between v2.1.326 and v2.1.331—
CLAUDE_CODE_TEST_NO_PWSH
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_CODE_TETHER_LIVE
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_THINKING_DISPLAY_UPDATES
Models and thinking
Added between v2.1.238 and v2.1.241Overrides whether Claude's in-progress thinking and connector text render during a turn. When set it takes precedence over the thinking_display_updates dynamic…
CLAUDE_CODE_THINKING_RESUMPTION
Models and thinking
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_THISTLE_GREBE
Other
Added between v2.1.212 and v2.1.215Set to default, no_nudges or counter_steer to choose the steering mode, overriding the server and model settings.
CLAUDE_CODE_THREAD_CPU_ONE_IN
Other
Added in v2.1.319Runs the thread CPU timing sample for about one in N remote sessions; set to 0 to disable it, and a non-integer value falls back to a built-in default.
CLAUDE_CODE_THRIFTY_SONIC
Other
Added between v2.1.219 and v2.1.221—
CLAUDE_CODE_TICKLISH_WHISPER
Other
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_TICKLISH_WHISPER_TIMEOUT_MS
Network and proxy
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_TMPDIR
Other
Present since v2.1.69 or earlier
Documented
Temp directory for operations
CLAUDE_CODE_TMUX_PREFIX
Terminal and UI
Present since v2.1.69 or earlierTmux prefix key shown in detach instructions
CLAUDE_CODE_TMUX_PREFIX_CONFLICTS
Terminal and UI
Present since v2.1.69 or earlierShow prefix twice when key conflicts in tmux
CLAUDE_CODE_TMUX_SESSION
Terminal and UI
Present since v2.1.69 or earlierTmux session name shown in UI header
CLAUDE_CODE_TMUX_TRUECOLOR
Terminal and UI
Added between v2.1.79 and v2.1.83
Documented
Controls truecolor (24-bit) rendering when running inside tmux. Tmux has historically been tricky with truecolor support — it requires both the terminal…
CLAUDE_CODE_TOASTY_THIMBLE
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_TODO_REMINDER_MODE
Other
Added between v2.1.143 and v2.1.212Set to override the todo reminder mode; off turns the reminders off, otherwise baseline is used.
CLAUDE_CODE_TOOL_CONTAINER_PLUGINS_NAMED
Plugins and skills
Removed in v2.1.311—
CLAUDE_CODE_TOOL_MEMORY_CGROUP_EXCLUDE
Shell and tools
Added between v2.1.245 and v2.1.247
Documented
—
CLAUDE_CODE_TOOL_MEMORY_LIMIT
Shell and tools
Added between v2.1.229 and v2.1.234
Documented
Caps memory for Bash tool commands via a Linux/WSL cgroup so a runaway build cannot stall the session. Only honored on Linux and WSL; none disables it. Shipped…
CLAUDE_CODE_TOOL_PICTURE_SERVERS
Shell and tools
Added in v2.1.321Comma-separated allowlist of MCP server names; only a tool result from a listed server gets the inline picture handling, others are returned unchanged.
CLAUDE_CODE_TOOL_USE_ID
Shell and tools
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_TOTAL_TOKENS_REMINDER
Context and compaction
Added between v2.1.143 and v2.1.212Set to control the total-tokens reminder mode, taking priority over the stored setting.
CLAUDE_CODE_TOTAL_TOKENS_REMINDER_AFTER_USER_TURN
Context and compaction
Added between v2.1.143 and v2.1.212Toggles the remaining-tokens reminder shown to the model after each user turn; defaults to on.
CLAUDE_CODE_TOTAL_TOKENS_REMINDER_BUDGET
Context and compaction
Added between v2.1.143 and v2.1.212Sets the token budget used for the remaining-tokens reminder; must be a positive number, otherwise the configured default applies.
CLAUDE_CODE_TRANSCRIPT_LOCAL_GC
Other
Added between v2.1.215 and v2.1.217
Documented
Toggles local garbage-collection of on-disk session transcripts, backed by tengu_transcript_local_gc. First shipped v2.1.217; undocumented.
CLAUDE_CODE_TRANSCRIPT_SLIM_TOOL_RESULTS
Shell and tools
Added in v2.1.299In non-interactive SDK sessions, stores tool results in the transcript in a slimmed-down form instead of the counted form when set.
CLAUDE_CODE_TRANSCRIPT_TAIL_LOAD
Other
Added in v2.1.319—
CLAUDE_CODE_TRIGGER_ID
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TUI_ASKED
Other
Added between v2.1.324 and v2.1.326Holds a remembered answer to the fullscreen TUI prompt; only 'fullscreen' or 'default' is kept and any other value is ignored, then the variable is removed…
CLAUDE_CODE_TUI_JUST_SWITCHED
Other
Added between v2.1.108 and v2.1.114Set to "fullscreen" immediately after /tui fullscreen. The next render reads it to show a one-time confirmation hint, then clears the flag.
CLAUDE_CODE_TUI_TRIAL
Other
Added between v2.1.234 and v2.1.237Set to fullscreen to put the terminal UI into fullscreen mode; any other value leaves it off.
CLAUDE_CODE_TURN_UPDATES
Other
Added in v2.1.229When enabled, switches the user-communication instructions to the turn-updates variant.
CLAUDE_CODE_TWO_STAGE_CLASSIFIER
Other
Added between v2.1.70 and v2.1.72Added in v2.1.72 as an opt-in flag for two-stage intent classification. Its removal after just two versions suggests the feature graduated out of flag-gating —…
CLAUDE_CODE_ULTRAREVIEW_LAUNCH_RECORD
Other
Added in v2.1.318Path where the ultrareview launch writes the session ID, created as a new file with mode 0600; when set, it also collapses newlines in the command's output.
CLAUDE_CODE_ULTRAREVIEW_PREFLIGHT_FIXTURE
Other
Removed between v2.1.326 and v2.1.331Points to a test fixture file used during the preflight phase of UltraReview — Claude Code's automated PR review pipeline. In test and CI environments, this…
CLAUDE_CODE_ULTRAREVIEW_PR_AS_MERGED
Other
Added in v2.1.321When set, reviews a pull request as it was merged rather than as it currently stands; if that mode is unavailable, nothing is launched and an error is shown.
CLAUDE_CODE_ULTRAREVIEW_QUOTA_FIXTURE
Other
Removed between v2.1.326 and v2.1.331Supplies a fixture for the ultrareview quota (reviews used, limit, remaining, overage) that replaces the live fetch; ignored if it does not parse to that shape.
CLAUDE_CODE_ULTRAREVIEW_REVIEW_MD_FILE
Other
Added between v2.1.321 and v2.1.323Points to a draft REVIEW.md file for ultrareview; it is accepted only when a pull request is reviewed as merged with no findings posted or applied, otherwise…
CLAUDE_CODE_UNWATCHED_REPLY_HOLD_MS
Other
Added in v2.1.311Number of milliseconds to hold streamed replies for unwatched contexts (subagent, auxiliary, compaction); defaults to 0, meaning no hold.
CLAUDE_CODE_UPFRONT_TOOLS
Shell and tools
Added in v2.1.314—
CLAUDE_CODE_USER_DELEGATED_SESSION
Sessions
Added between v2.1.321 and v2.1.323—
CLAUDE_CODE_USER_DELEGATED_SESSION_ALLOWED_CHECK_MODELS
Models and thinking
Added in v2.1.321Sets the models allowed as check models for a user-delegated session; defaults to claude-opus-5 and claude-opus-5-5.
CLAUDE_CODE_USER_DELEGATED_SESSION_ALLOWED_PROVIDERS
Terminal and UI
Added in v2.1.321—
CLAUDE_CODE_USER_DELEGATED_SESSION_ANY_CHECK_MODEL
Models and thinking
Added between v2.1.321 and v2.1.323When set, and when a further runtime condition holds, treats a check model as allowed if its normalized name (provider prefixes stripped) matches the current…
CLAUDE_CODE_USER_DELEGATED_SESSION_DIRECT_API
Sessions
Added in v2.1.321When set, a user-delegated session calls the API directly, and a related policy is then forced to deny_all.
CLAUDE_CODE_USER_DELEGATED_SESSION_SERVER_CHECK_PROVIDERS
Terminal and UI
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_USER_EMAIL
Other
Present since v2.1.69 or earlierPre-configured user email
CLAUDE_CODE_USE_ANTHROPIC_AWS
Cloud providers
Added in v2.1.90
Documented
Selects "Claude Platform on AWS" as the API provider. Source code confirms this is a distinct provider alongside Bedrock, Vertex, and Foundry — the provider…
CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD
Cloud providers
Added between v2.1.212 and v2.1.215
Documented
A new provider-backend toggle sitting in Claude Code's exact provider family — beside CLAUDE_CODE_USE_BEDROCK, USE_VERTEX, USE_FOUNDRY, USE_ANTHROPIC_AWS,…
CLAUDE_CODE_USE_BEDROCK
Cloud providers
Present since v2.1.69 or earlier
Documented
Use Amazon Bedrock as backend
CLAUDE_CODE_USE_CCR_V2
Other
Present since v2.1.69 or earlierUse Claude Code Router v2 for cowork sessions
CLAUDE_CODE_USE_COWORK_PLUGINS
Plugins and skills
Present since v2.1.69 or earlierUse cowork_plugins directory instead of default
CLAUDE_CODE_USE_FOUNDRY
Cloud providers
Present since v2.1.69 or earlier
Documented
Use Anthropic Foundry as backend
CLAUDE_CODE_USE_GATEWAY
Other
Added between v2.1.143 and v2.1.212Routes traffic through an Anthropic-operated gateway (with loopback and log-level tuning). Centralized model access for managed fleets, behind the v2.1.206…
CLAUDE_CODE_USE_MANTLE
Cloud providers
Added in v2.1.94
Documented
Activates Mantle-based authentication for Amazon Bedrock. The changelog[1] describes this as "integrated Amazon Bedrock support via Mantle" with…
CLAUDE_CODE_USE_NATIVE_FILE_SEARCH
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_USE_POWERSHELL_TOOL
Shell and tools
Added between v2.1.79 and v2.1.83
Documented
Enables a PowerShell-specific tool variant for Windows environments. This suggests the team is building first-class PowerShell support rather than routing…
CLAUDE_CODE_USE_VERTEX
Cloud providers
Present since v2.1.69 or earlier
Documented
Use Google Vertex AI as backend
CLAUDE_CODE_VERIFY_PROMPT
Other
Removed between v2.1.143 and v2.1.212The verify flow was reworked; the standalone prompt override no longer maps to how verification runs.
CLAUDE_CODE_VERSION
Other
Added between v2.1.128 and v2.1.138Exposes the CLI version to subprocesses, hooks, and MCP servers. Your hooks and MCP tools can now read CLAUDE_CODE_VERSION directly — gate behavior on minimum…
CLAUDE_CODE_VOICE_FORWARD_INTERIMS_TYPED
Other
Added between v2.1.138 and v2.1.143Stream interim voice transcription results as you speak rather than waiting for the final transcript.
CLAUDE_CODE_WALNUT_SPIRE
Other
Removed between v2.1.266 and v2.1.269Set to 1 to enable `claude plugin eval` in a session, for clients that cannot receive the per-organization rollout; read until v2.1.245.
CLAUDE_CODE_WARN_DISK_FREE_GIB
Other
Added in v2.1.304
Documented
—
CLAUDE_CODE_WARN_MEMORY_FREE_GIB
Memory and CLAUDE.md
Added in v2.1.304
Documented
—
CLAUDE_CODE_WATCHED_SLEEP
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS
Shell and tools
Added between v2.1.229 and v2.1.234
Documented
Configures the WebFetch session URL cache TTL. The default is unchanged at 15 minutes. Shipped in v2.1.233.
CLAUDE_CODE_WEBFETCH_DEADLINE_MS
Shell and tools
Added between v2.1.266 and v2.1.269
Documented
Overrides WebFetch's 300-second request deadline (added v2.1.268).
CLAUDE_CODE_WEBFETCH_MCP_TOOL
MCP
Added between v2.1.326 and v2.1.331—
CLAUDE_CODE_WEBFETCH_USE_CCR_PROXY
Network and proxy
Added between v2.1.143 and v2.1.212On first-party accounts, routes WebFetch requests through the CCR proxy when set.
CLAUDE_CODE_WEBSEARCH_CITATIONS
Shell and tools
Added in v2.1.295Returns web-search results as structured citation blocks carrying source URLs instead of ending the answer with a plain Sources: link list. In a…
CLAUDE_CODE_WEBSEARCH_CITATIONS_DECLARED
Shell and tools
Removed in v2.1.299—
CLAUDE_CODE_WEBSEARCH_USE_CCR_PROXY
Network and proxy
Added between v2.1.143 and v2.1.212On first-party accounts, routes WebSearch requests through the CCR proxy when set.
CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR
Authentication
Present since v2.1.69 or earlierFile descriptor for WebSocket credentials
CLAUDE_CODE_WEB_FETCH_AGENT
Agents and subagents
Added between v2.1.229 and v2.1.234When set, enables the web-fetch agent; when unset it follows the server flag, which is off by default.
CLAUDE_CODE_WEB_SEARCH_FAST_ARG
Shell and tools
Added between v2.1.269 and v2.1.283When set to a truthy value, turns on the fast web-search mode; a falsy or invalid value leaves it off.
CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR
Shell and tools
Added in v2.1.290
Documented
Sets how many web-search budget refills accrue per hour, overriding the value the feature gate serves. It accepts 0 to 3600 and defaults to 100 when unset; the…
CLAUDE_CODE_WHIMSICAL_ELEPHANT
Other
Added in v2.1.284—
CLAUDE_CODE_WILLOW_TERN
Other
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_WISE_COMET
Other
Added between v2.1.252 and v2.1.266Overrides whether thinking is stripped; provide true or false to force the behavior, otherwise only adaptive thinking is stripped per the server flag.
CLAUDE_CODE_WITHHOLD_PRODUCT_EVENTS
Other
Added between v2.1.324 and v2.1.326—
CLAUDE_CODE_WITTY_DEWDROP
Other
Added in v2.1.307—
CLAUDE_CODE_WORKER_CHECKIN_SCHEDULE
Other
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_WORKER_EPOCH
Other
Present since v2.1.69 or earlierWorker epoch for versioning internal state
CLAUDE_CODE_WORKER_EPOCHIF0
Other
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_WORKFLOWS
Agents and subagents
Added between v2.1.143 and v2.1.212Set to true to enable the workflows feature or false to disable it; when unset it follows the server flag, on by default.
CLAUDE_CODE_WORKFLOW_LAUNCH_SHA256
Agents and subagents
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS
Agents and subagents
Added between v2.1.266 and v2.1.269
Documented
Raises the Workflow tool's per-run concurrent-agent limit; changelog range 1 to 256. Present in v2.1.269.
CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS
Agents and subagents
Added in v2.1.229
Documented
—
CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE
Agents and subagents
Added between v2.1.241 and v2.1.245Toggles whether the automated-trigger provenance preamble is added to workflow prompts; defaults to on.
CLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTS
Agents and subagents
Added between v2.1.143 and v2.1.212Set the maximum number of scheduled agents before the workflow-size warning fired; a positive value overrode the default cap. Read until v2.1.245.
CLAUDE_CODE_WORKFLOW_SIZE_WARNING_TOKENS
Context and compaction
Added between v2.1.143 and v2.1.212Token count above which the workflow-size warning fires; falls back to the server-provided value, then a built-in default.
CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL
Agents and subagents
Added in v2.1.296Runs every workflow agent on the named model while other subagents keep their own. A value of inherit disables the override, and the existing…
CLAUDE_CODE_WORKSPACE_HOST_PATHS
Other
Added between v2.1.77 and v2.1.79Specifies host-side filesystem paths that should be mapped or accessible within a workspace context. This is relevant for containerized and remote development…
CLAUDE_CODE_YOU_SHOULD_KNOW_AUTO_SEND
Other
Added in v2.1.321—
CLAUDE_CODE_YOU_SHOULD_KNOW_DEBUG
Debugging
Added in v2.1.286
Documented
—
CLAUDE_CONFIG_DIR
Other
Present since v2.1.69 or earlier
Documented
Custom config directory
CLAUDE_CONTEXT_COLLAPSE
Context and compaction
Removed between v2.1.269 and v2.1.283Collapses context on the fly, with a dedicated model to do it. A more aggressive context-management primitive than auto-compact, aimed at keeping long agentic…
CLAUDE_CONTEXT_COLLAPSE_MODEL
Context and compaction
Removed between v2.1.269 and v2.1.283—
CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES
Terminal and UI
Added between v2.1.77 and v2.1.79Injects additional memory guidelines into cowork (teammate) sessions. In multi-agent "cowork" mode — where a leader spawns teammate Claude sessions in split…
CLAUDE_COWORK_MEMORY_GUIDELINES
Terminal and UI
Added between v2.1.118 and v2.1.123Policy document for the CoWork shared memory system — a new abstraction distinct from user memory (~/.claude/) and project memory (CLAUDE.md). Multiple agents…
CLAUDE_COWORK_MEMORY_INDEX_CONTENT
Memory and CLAUDE.md
Added between v2.1.118 and v2.1.123Content of the CoWork memory index. Where guidelines set policy, this carries structured summaries agents use to find relevant prior work without replaying…
CLAUDE_COWORK_MEMORY_PATH_OVERRIDE
Terminal and UI
Present since v2.1.69 or earlierSets an override directory for cowork memory; providing it also stops auto-memory from being disabled in a remote session.
CLAUDE_DEBUG
Debugging
Present since v2.1.69 or earlierEnable debug logging
CLAUDE_DEV_MODS_DIR
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_DISABLE_ADOPT
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_EFFORT
Models and thinking
Added between v2.1.128 and v2.1.138
Documented
Set thinking effort level at spawn time without the interactive /effort picker. Scriptable effort control: run high effort on the architect agent, low effort…
CLAUDE_ENABLE_BYTE_WATCHDOG
Network and proxy
Added between v2.1.104 and v2.1.107
Documented
Activates a byte-level watchdog on API response streams. The v2.1.105 changelog describes a fix for stalled API streams: "streams now abort after 5 minutes of…
CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK
Cloud providers
Added between v2.1.138 and v2.1.143
Documented
Enable the byte watchdog on Bedrock connections. The watchdog fires when a connection opens but produces no bytes within a window — catching silent stalls that…
CLAUDE_ENABLE_STREAM_WATCHDOG
Network and proxy
Present since v2.1.69 or earlier
Documented
Enable stream health monitoring
CLAUDE_ENV_FILE
Other
Present since v2.1.69 or earlier
Documented
Path to environment file for session variables
CLAUDE_FORCE_DISPLAY_SURVEY
Feature toggles
Present since v2.1.69 or earlierForce feedback survey display
CLAUDE_GATEWAY_ALLOW_LOOPBACK
Other
Added between v2.1.143 and v2.1.212Set to 1 in the gateway to allow outbound requests to loopback and localhost addresses that are otherwise blocked as SSRF; it cannot be combined with…
CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS
Network and proxy
Added between v2.1.269 and v2.1.283Milliseconds the gateway gives in-flight requests to finish during shutdown before closing them; defaults to 25000.
CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME
Network and proxy
Added between v2.1.326 and v2.1.331—
CLAUDE_GATEWAY_LOG_FORMAT
Debugging
Added in v2.1.319Set to json to write gateway logs as JSON; any other value keeps the plain text format.
CLAUDE_GATEWAY_LOG_LEVEL
Debugging
Added between v2.1.143 and v2.1.212Set the gateway log threshold to debug, info, warn or error; messages below the level were dropped and it defaulted to info. Read until v2.1.269.
CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY
Network and proxy
Added between v2.1.269 and v2.1.283Set in the gateway to treat the configured HTTPS_PROXY as the egress boundary, handing it hostnames and relying on its allowlist instead of resolving and…
CLAUDE_HELPER_CONTEXT
Context and compaction
Added between v2.1.229 and v2.1.234—
CLAUDE_IMPORT_CONVERSATIONS
Other
Added between v2.1.143 and v2.1.212Enables the import-conversations feature; without it the command reports that import-conversations is not enabled.
CLAUDE_INTERNAL_ASSISTANT_TEAM_NAME
Agents and subagents
Added in v2.1.108Passes the current Agent Teams team name (prefixed assistant-) to a spawned child process. Agent Teams surfaces in the UI as "Agent Teams is not yet available…
CLAUDE_INTERNAL_FC_OVERRIDES
Terminal and UI
Added between v2.1.118 and v2.1.123Internal overrides for function-call (tool-use) behavior. Injects overrides that bypass normal routing — for testing new tool schemas or shadowing production…
CLAUDE_INTERNAL_SESSION_TASK_LIST_ID
Sessions
Added in v2.1.311Carries a session's task list id into a relaunched process so it reuses the same task list; read once at startup and then cleared.
CLAUDE_IN_CHROME_DOMAIN_RULE_TOOL
Shell and tools
Added between v2.1.143 and v2.1.212—
CLAUDE_IN_CHROME_MANAGED_MCP_REFUSAL
MCP
Added between v2.1.269 and v2.1.283—
CLAUDE_IN_CHROME_MCP_SERVER_NAME
MCP
Added between v2.1.143 and v2.1.212—
CLAUDE_IN_CHROME_TOOL_PREFIX
Shell and tools
Added between v2.1.326 and v2.1.331—
CLAUDE_IN_SLACK_V2
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_JOB_DIR
Other
Added between v2.1.118 and v2.1.123
Documented
Working directory for a background job, independent of the daemon's own cwd. Background jobs may target a different directory than the session that spawned…
CLAUDE_LOCAL_OAUTH_API_BASE
Authentication
Added in v2.1.85Overrides the base URL for local OAuth API operations. This extends the auth customization story started by CLAUDE_AI_ORIGIN in v2.1.84, giving operators finer…
CLAUDE_LOCAL_OAUTH_APPS_BASE
Authentication
Added in v2.1.85Overrides the base URL for the local OAuth applications registry. Together with CLAUDE_LOCAL_OAUTH_API_BASE, this completes a two-part override for the OAuth…
CLAUDE_LOCAL_OAUTH_CONSOLE_BASE
Authentication
Added in v2.1.86Overrides the base URL for the OAuth console interface. This is the third piece of the local OAuth override triptych: CLAUDE_LOCAL_OAUTH_API_BASE handles token…
CLAUDE_LOOK_ROW
Other
Removed in v2.1.324—
CLAUDE_MEMORY_STORES
Memory and CLAUDE.md
Added between v2.1.138 and v2.1.143Configure which memory backends are active. With the memory system now supporting typed files, project-scoped MEMORY.md indexes, and persistent cross-session…
CLAUDE_MOCK_HEADERLESS_429
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_MOD_MADE
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_NAMES
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_OPUS_4_8
Models and thinking
Removed between v2.1.252 and v2.1.266—
CLAUDE_PID
Other
Added between v2.1.212 and v2.1.215
Documented
Holds the CLI's own process ID and powers a self-protection shim: the injected shell wrapper around pkill/pgrep refuses to signal any match equal to…
CLAUDE_PLUGIN_DATA
Plugins and skills
Added between v2.1.77 and v2.1.79Provides a filesystem path where plugins can store persistent state that survives plugin updates and reinstalls. Previously, plugin data lived alongside the…
CLAUDE_PLUGIN_FEATURE_FLAGS
Plugins and skills
Added between v2.1.326 and v2.1.331—
CLAUDE_PLUGIN_OPTION_
Plugins and skills
—A prefix-style variable (note the trailing underscore) for passing configuration options to installed plugins. This follows the pattern of…
CLAUDE_PLUGIN_ROOT
Plugins and skills
Present since v2.1.69 or earlierRoot directory for plugins
CLAUDE_PREVIEW_CLASSIFIER_FLOOR
Other
Removed between v2.1.241 and v2.1.245—
CLAUDE_PROJECT_DIR
Other
Present since v2.1.69 or earlierOverride project directory
CLAUDE_PROJECT_UUID
Other
Added between v2.1.143 and v2.1.212Holds the project UUID used to fetch project context and detail; when it is unset no project context is requested.
CLAUDE_PTY_HEARTBEAT_MS
Other
Added between v2.1.143 and v2.1.212Interval in milliseconds between heartbeat pings the PTY host sends to clients; defaults to 60000, and a client is dropped after three missed pings.
CLAUDE_PTY_HOST_EXEC
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_PTY_HOST_NO_STABLE_PATH
Other
Added in v2.1.295On macOS, set to 1 to skip resolving a stable executable path for the background PTY host and use the current executable path instead.
CLAUDE_PTY_ORPHAN_CHECK_MS
Other
Added between v2.1.143 and v2.1.212Interval in milliseconds for the PTY host orphan watchdog; defaults to 2000, and the host exits after about thirty checks with no parent and no client.
CLAUDE_PTY_RECORD
Other
Added between v2.1.118 and v2.1.123Enables PTY session recording for a background agent — captures the raw terminal byte stream as a bit-for-bit replay artifact, not just a transcript. Likely…
CLAUDE_RELAUNCH_SESSION_ADD_DIRS
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX
Sessions
Added in v2.1.92
Documented
Sets a prefix for Remote Control session names. The changelog[1] mentions improved session naming for Remote Control — this variable lets teams enforce naming…
CLAUDE_REMOTE_TOOLS_BRIDGE_URL
Network and proxy
Added between v2.1.224 and v2.1.227Overrides the base URL of the remote tools device bridge; when unset the URL is chosen from the OAuth environment.
CLAUDE_REMOTE_WORKFLOW_ARGS
Agents and subagents
Added between v2.1.143 and v2.1.212Provides JSON-encoded arguments passed to the environment-delivered remote workflow script; it must be valid JSON within a size limit.
CLAUDE_REMOTE_WORKFLOW_SCRIPT
Agents and subagents
Added between v2.1.143 and v2.1.212Names the workflow script run as the deterministic entry point for a remote session; the command errors when it is not set.
CLAUDE_REPL_MODE
Other
Removed between v2.1.96 and v2.1.100Sets the operating mode for the REPL interface. This likely controls behavior such as output format (JSON vs plain text), verbosity level, or whether the REPL…
CLAUDE_REPL_MODE0
Other
—Prototype naming for the REPL mode configuration. Replaced by the properly named CLAUDE_REPL_MODE in this release.
CLAUDE_REPL_VARIANT
Other
Removed between v2.1.269 and v2.1.283Selects which REPL implementation to load. Multiple variants coexist in the native binary; this key lets Anthropic A/B-test REPL behavior without separate…
CLAUDE_REPL_VERBOSE
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_RUNNER_ACCOUNT_EMAIL
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ACCOUNT_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ACTIVITY_FD
Other
Added between v2.1.143 and v2.1.212File descriptor that session activity is written to; it must be an integer above 2 pointing at a pipe or socket, and a write error falls back to stdout.
CLAUDE_RUNNER_ALIVE_EVERY_MS
Other
Added between v2.1.307 and v2.1.309Interval in milliseconds for emitting an 'alive_before_init' heartbeat on the activity channel while the child has not yet initialized; no heartbeat is emitted…
CLAUDE_RUNNER_API_BASE_URL
Network and proxy
Added between v2.1.222 and v2.1.224Provides the API base URL for code-signing when ANTHROPIC_BASE_URL and SESSION_INGRESS_URL are unset; trailing slashes are stripped.
CLAUDE_RUNNER_ATTEMPT
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_CHECKOUT_PATH
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_CLAUDE_BIN
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_CLIENT_PLATFORM
Other
Added in v2.1.229—
CLAUDE_RUNNER_CORRELATION_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_DEBUG_LOG_PATH
Debugging
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_DISABLE_AWAITING_ACTION_OVERRIDE
Terminal and UI
Added between v2.1.143 and v2.1.212When a child is parked at a prompt it is reported as 'awaiting-action'; set this to disable that override so the turn ends normally instead.
CLAUDE_RUNNER_DISABLE_RENEWAL_WARNING
Feature toggles
Added in v2.1.319When set, skips creating the session renewal warning poster; by default that poster is set up to warn about renewal.
CLAUDE_RUNNER_DISABLE_START_HEARTBEATS
Feature toggles
Added between v2.1.326 and v2.1.331—
CLAUDE_RUNNER_DISABLE_TURN_BEGAN_BEFORE_INIT
Feature toggles
Added between v2.1.307 and v2.1.309Set to disable detecting that a turn began before the child initialized; turn-start signals are then ignored and the startup timeout does not switch to…
CLAUDE_RUNNER_EXIT_REASON
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_FAIL_FAST_FETCH
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_FETCH_DEPTH
Other
Added between v2.1.143 and v2.1.212Sets the git fetch depth passed as --depth: a positive integer limits history to that many commits, 'full' or '0' fetches full history, and any other value…
CLAUDE_RUNNER_FETCH_SERVER_PROGRESS_CAP_MS
Other
Added in v2.1.295On a self-hosted runner, caps how long a git fetch keeps waiting while the server is still reporting progress on a large repository. Takes milliseconds,…
CLAUDE_RUNNER_GIT_MOUNT_URL
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_OFFERS_NEW_MACHINE
Other
Added in v2.1.319—
CLAUDE_RUNNER_ORDER_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ORDER_SERVER_TIME
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_POOL_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_PRIMARY_REPO_REVISION
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_PRIMARY_REPO_URL
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_REPO_REF
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_REPO_SOURCES
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_REPO_URL
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_SESSION_ID
Sessions
Added between v2.1.222 and v2.1.224Session identifier used for code-signing from a lifecycle hook; its 'session_' prefix is rewritten to 'cse_', and it applies when CLAUDE_CODE_REMOTE_SESSION_ID…
CLAUDE_RUNNER_SESSION_UUID
Sessions
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_SKIP_GIT_VERIFY
Feature toggles
Added between v2.1.222 and v2.1.224Set to 1 to skip checking that a checkout hook left a .git directory, for non-git source control systems; otherwise a missing .git fails the checkout.
CLAUDE_RUNNER_SPAWN_REASON
Other
Added in v2.1.318—
CLAUDE_RUNNER_STALL_GIVEUP
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_RUNNER_START_FOLDER
Other
Added between v2.1.326 and v2.1.331—
CLAUDE_RUNNER_TRUST_CANONICAL_PREWARM
Other
Added between v2.1.222 and v2.1.224Set to true to skip repository validation by trusting the prewarmed canonical checkout; it requires a drain grace of 0 (one-shot sessions) and is ignored or…
CLAUDE_RUNNER_UPDATE_BIN
Other
Added in v2.1.307—
CLAUDE_RUNNER_USE_GIT_PROXY
Network and proxy
Added between v2.1.222 and v2.1.224Set to a truthy value to route git through the Anthropic git proxy; this requires --capacity 1 because the proxy URL is per-session.
CLAUDE_RUNNER_WORKSPACE_PATHS
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_WORK_ORDER_FILE
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_SCRIPT_HOOK_ACK
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_SDK_AGENT_IN_PROCESS_SERVER
Agents and subagents
Added between v2.1.326 and v2.1.331—
CLAUDE_SDK_CAN_USE_TOOL_SHADOWED
Shell and tools
Added between v2.1.143 and v2.1.212—
CLAUDE_SDK_MCP_SERVERS_ARGV_DEPRECATED
MCP
Added between v2.1.324 and v2.1.326—
CLAUDE_SDK_MCP_SERVERS_NOT_APPLIED
MCP
Added between v2.1.324 and v2.1.326—
CLAUDE_SECURESTORAGE_CONFIG_DIR
Other
Added between v2.1.143 and v2.1.212Sets the directory for secure credential storage, using ~/.claude when set to an empty string and a default location when unset; the value is passed to child…
CLAUDE_SERVE_DRAIN_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_SESSION_ID
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_SESSION_INGRESS_TOKEN_FILE
Authentication
Added between v2.1.79 and v2.1.83Path to the file the session ingress token is read from; a well-known path is used when unset.
CLAUDE_SESSION_SURFACE
Sessions
Added in v2.1.295—
CLAUDE_SKILL_DIR
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_SLOW_FIRST_BYTE_MS
Other
Added between v2.1.108 and v2.1.114Default 30,000ms. Logs a "Slow first byte: no stream chunk" observability event when the connection opens but produces no chunks within the window. Complements…
CLAUDE_SNIP
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_SONNET_4_6
Models and thinking
Removed between v2.1.247 and v2.1.252—
CLAUDE_SSH_DAEMON_CHILD
Other
Added in v2.1.299—
CLAUDE_SSH_LOCAL_BINARY
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_SSH_RUN_DIR
Other
Added in v2.1.299—
CLAUDE_SSH_VERSION
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_STAGE_FILE_ROOT
Other
Added between v2.1.143 and v2.1.212Sets the root directory for staged session files and must be an absolute path; a default root is used when unset, and the outputs directory is derived from it.
CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS
Network and proxy
Added between v2.1.241 and v2.1.245
Documented
Overrides the first-byte deadline for a dispatched API request. When the server sends no response headers within it, the request is treated as stalled, retried…
CLAUDE_STREAM_IDLE_TIMEOUT_MS
Network and proxy
Added in v2.1.84
Documented
Configures the streaming idle watchdog threshold — the maximum time Claude Code waits for data on an open SSE connection before treating it as stalled. The…
CLAUDE_STROKE
Other
Removed between v2.1.247 and v2.1.252—
CLAUDE_SUBAGENT_BG_SHELL_MAX_MS
Agents and subagents
Removed between v2.1.252 and v2.1.266
Documented
Time cap for shell commands run by background subagents. A background agent running a full test suite or a slow build command used to be bounded only by the…
CLAUDE_TEST_BACKGROUND
Sessions
Removed between v2.1.326 and v2.1.331—
CLAUDE_TEST_ESSENTIAL_TRAFFIC
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_TEST_HEADED
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_TEST_LISTEN
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_TEST_NO_OPEN
Other
Removed between v2.1.326 and v2.1.331Set to any value to stop automatically opening a browser; the open check then returns false and reports that it is set.
CLAUDE_TEST_PROJECT_DIR
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_TEST_SANDBOX
Permissions and sandbox
Removed between v2.1.326 and v2.1.331—
CLAUDE_TEST_USER_SETTINGS
Other
Removed between v2.1.326 and v2.1.331—
CLAUDE_TMPDIR
Other
Present since v2.1.69 or earlierAlternative temp directory; fallback for CLAUDE_CODE_TMPDIR
CLAUDE_TRUSTED_DEVICE_TOKEN
Authentication
Added in v2.1.86Stores a token that marks the current device as trusted, likely enabling persistent authentication sessions without repeated re-authorization.
CLAUDE_WORKFLOW_NAME_ONLY
Agents and subagents
Added between v2.1.143 and v2.1.212Restricts a remote/headless run to a single named workflow. It appears immediately after CLAUDE_REMOTE_WORKFLOW_SCRIPT and CLAUDE_REMOTE_WORKFLOW_ARGS in the…
CLAUDE_WORKSHOP_PROGRESS
Other
Removed in v2.1.312Set to false to disable the workshop authoring-progress hook, which otherwise ran when available; read until v2.1.309.
DATABASE_URL
Network and proxy
—
Documented
—
DEBUG
Debugging
—
Documented
—
DISABLE_AUTOUPDATER
Feature toggles
—
Documented
Automatic update checker
DISABLE_AUTO_COMPACT
Context and compaction
—
Documented
Disable automatic compaction only (manual /compact still works)
DISABLE_AUTO_MIGRATE_TO_NATIVE
Feature toggles
—Native installer migration
DISABLE_BUG_COMMAND
Feature toggles
—/bug command
DISABLE_CLAUDE_CODE_SM_COMPACT
Context and compaction
—Disable session memory compaction
DISABLE_COMPACT
Context and compaction
—
Documented
Disable all compaction (manual + auto)
DISABLE_COST_WARNINGS
Feature toggles
—
Documented
API cost warnings
DISABLE_DOCTOR_COMMAND
Feature toggles
—
Documented
/doctor diagnostic command
DISABLE_ERROR_REPORTING
Feature toggles
—
Documented
Automatic error reporting
DISABLE_EXTRA_USAGE_COMMAND
Feature toggles
—
Documented
Extra usage display
DISABLE_FEEDBACK_COMMAND
Feature toggles
—
Documented
/feedback command
DISABLE_GROWTHBOOK
Feature toggles
—
Documented
—
DISABLE_INSTALLATION_CHECKS
Feature toggles
—
Documented
Installation verification
DISABLE_INSTALL_GITHUB_APP_COMMAND
Feature toggles
—
Documented
GitHub app install command
DISABLE_INTERLEAVED_THINKING
Models and thinking
—
Documented
Interleaved thinking beta
DISABLE_LOGIN_COMMAND
Debugging
—
Documented
/login command
DISABLE_LOGOUT_COMMAND
Debugging
—
Documented
/logout command
DISABLE_MICROCOMPACT
Context and compaction
—Micro-compaction (small context cleanups)
DISABLE_PROMPT_CACHING
Feature toggles
—
Documented
Prompt caching globally
DISABLE_PROMPT_CACHING_FABLE
Models and thinking
—
Documented
—
DISABLE_PROMPT_CACHING_HAIKU
Models and thinking
—
Documented
Prompt caching for Haiku
DISABLE_PROMPT_CACHING_OPUS
Models and thinking
—
Documented
Prompt caching for Opus
DISABLE_PROMPT_CACHING_SONNET
Models and thinking
—
Documented
Prompt caching for Sonnet
DISABLE_TELEMETRY
Telemetry
—
Documented
All telemetry
DISABLE_UPDATES
Feature toggles
—
Documented
Explicitly documented in the v2.1.118 changelog. Prevents Claude Code from auto-checking for or applying npm updates. Intended for environments where updates…
DISABLE_UPGRADE_COMMAND
Feature toggles
—
Documented
/upgrade command
DO_NOT_TRACK
Other
—
Documented
—
ENABLE_BETA_TRACING_DETAILED
Feature toggles
—
Documented
Enable detailed beta tracing
ENABLE_BTW
Feature toggles
—Enable "by the way" suggestions
ENABLE_CLAUDEAI_MCP_SERVERS
MCP
—
Documented
Enable Claude.ai-hosted MCP servers
ENABLE_CLAUDE_CODE_SM_COMPACT
Context and compaction
—Force enable session memory compaction
ENABLE_ENHANCED_TELEMETRY_BETA
Telemetry
—Enable enhanced telemetry (beta)
ENABLE_LSP_TOOL
Shell and tools
—Enable Language Server Protocol tool
ENABLE_MCP_LARGE_OUTPUT_FILES
MCP
—Enable large output files for MCP
ENABLE_PROMPT_CACHING_1H
Feature toggles
—
Documented
—
ENABLE_PROMPT_CACHING_1H_BEDROCK
Cloud providers
—
Documented
Enable 1-hour prompt caching on Bedrock
ENABLE_SESSION_BACKGROUNDING
Sessions
—Enable session backgrounding
ENABLE_TOOL_SEARCH
Shell and tools
—
Documented
Tool search/deferred loading: auto, true, false, or 0–100%
FORCE_AUTOUPDATE_PLUGINS
Plugins and skills
—
Documented
Force auto-update plugins
FORCE_HYPERLINK
Feature toggles
—
Documented
—
FORCE_PROMPT_CACHING_5M
Feature toggles
—
Documented
—
GITHUB_TOKEN
Authentication
—
Documented
—
GIT_CONFIG_COUNT
Other
—
Documented
—
HTTPS_PROXY
Network and proxy
—
Documented
HTTPS proxy server URL
HTTP_PROXY
Network and proxy
—
Documented
HTTP proxy server URL
IS_DEMO
Other
—
Documented
Indicates demo mode
MAX_MCP_OUTPUT_TOKENS
Context and compaction
—
Documented
Max tokens for MCP tool output
MAX_STRUCTURED_OUTPUT_RETRIES
Network and proxy
—
Documented
—
MAX_THINKING_TOKENS
Models and thinking
—
Documented
Likely controlled via API settings now
MCP_CLIENT_SECRET
MCP
—
Documented
Client secret for MCP OAuth
MCP_CONNECTION_NONBLOCKING
Network and proxy
—
Documented
Make MCP connections non-blocking
MCP_CONNECT_TIMEOUT_MS
Network and proxy
—
Documented
—
MCP_DISCOVERY_CACHE
MCP
—
Documented
—
MCP_DISCOVERY_CACHE_MAX_STALE_S
MCP
—
Documented
—
MCP_DISCOVERY_CACHE_STRIKES
MCP
—
Documented
Overrides the strike count that governs the MCP discovery cache (used with MCP_DISCOVERY_CACHE_TTL_S and MCP_DISCOVERY_CACHE_MAX_STALE_S). When set above zero…
MCP_DISCOVERY_CACHE_TTL_S
MCP
—
Documented
—
MCP_OAUTH_CALLBACK_PORT
Authentication
—
Documented
OAuth callback server port
MCP_PROTOCOL_NEGOTIATION
MCP
—
Documented
Accepts legacy or auto (anything else logs a warning and is ignored). In auto, Claude Code probes an MCP server to negotiate a modern protocol revision per…
MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE
Network and proxy
—
Documented
Remote MCP connection batch size
MCP_SDK_GENERATION
MCP
—
Documented
—
MCP_SERVER_CONNECTION_BATCH_SIZE
Network and proxy
—
Documented
Concurrent MCP server connections
MCP_TIMEOUT
Network and proxy
—
Documented
MCP server connection timeout
MCP_TOOL_TIMEOUT
Network and proxy
—
Documented
Individual MCP tool execution timeout
NO_PROXY
Network and proxy
—
Documented
Domains to bypass proxy (comma-separated)
NPM_TOKEN
Authentication
—
Documented
—
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
Telemetry
—
Documented
—
OTEL_LOG_ASSISTANT_RESPONSES
Telemetry
—
Documented
—
OTEL_LOG_MANAGED_SETTINGS
Telemetry
—
Documented
—
OTEL_LOG_RAW_API_BODIES
Telemetry
—
Documented
—
OTEL_LOG_TOOL_CONTENT
Telemetry
—
Documented
Include tool input/output in telemetry
OTEL_LOG_TOOL_DETAILS
Telemetry
—
Documented
Include tool execution details
OTEL_LOG_USER_PROMPTS
Telemetry
—
Documented
Include user prompts in telemetry
OTEL_METRICS_INCLUDE_ACCOUNT_UUID
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_ENTRYPOINT
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_REPOSITORY
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_SESSION_ID
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_VERSION
Telemetry
—
Documented
—
OTEL_RESOURCE_INCLUDE_HOST
Telemetry
—
Documented
When set to true, adds host.name and host.id to the OpenTelemetry resource attributes. Off by default. Named in the 2.1.326 changelog.[1]
PIP_INDEX_URL
Network and proxy
—
Documented
—
SLASH_COMMAND_TOOL_CHAR_BUDGET
Shell and tools
—
Documented
Character budget for slash command tool output
TASK_MAX_OUTPUT_LENGTH
Other
—
Documented
Max output length for Task tool results
USE_BUILTIN_RIPGREP
Other
—
Documented
Force use of built-in ripgrep
VERTEX_REGION_CLAUDE_3_5_HAIKU
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_3_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_3_7_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_0_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_0_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_1_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_5_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_6_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_6_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_7_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_8_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_5_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_FABLE_5
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_FABLE_5_1
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_FABLE_5_2
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_HAIKU_4_5
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_HAIKU_5_5
Cloud providers
—
Documented
—

Frequently asked questions

How many environment variables does Claude Code have?

Claude Code v2.1.332 reads 1327 environment variables that this list tracks, and 110 more were removed in earlier releases. The official reference documents 429 of them; the rest are undocumented and can change or disappear in any release.

Where do I set a Claude Code environment variable?

Export it in the shell before starting claude (export NAME=value), or put it in the "env" object of a settings file such as ~/.claude/settings.json or .claude/settings.json, which applies it to every session started with that settings scope.

Are undocumented Claude Code environment variables safe to use?

They work in the versions that contain them, but they carry no compatibility promise: Anthropic renames and removes them without a changelog entry. Each variable page shows the version it was added in and, if it is gone, the version it was removed in.