ANTHROPIC_API_KEYAuthentication | — Documented | Primary API key for Claude API |
ANTHROPIC_AUTH_TOKENAuthentication | — Documented | Alternative bearer token; takes priority over API key |
ANTHROPIC_AWS_API_KEYCloud providers | — Documented | — |
ANTHROPIC_AWS_BASE_URLCloud providers | — Documented | — |
ANTHROPIC_AWS_WORKSPACE_IDCloud providers | — Documented | — |
ANTHROPIC_BASE_URLNetwork and proxy | — Documented | Custom endpoint for Anthropic services |
ANTHROPIC_BEDROCK_BASE_URLCloud providers | — Documented | Alternative Bedrock endpoint (alias) |
ANTHROPIC_BEDROCK_MANTLE_BASE_URLCloud providers | — Documented | — |
ANTHROPIC_BEDROCK_REGION_PREFIXCloud 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_TIERCloud providers | — Documented | — |
ANTHROPIC_BETASOther | — Documented | Comma-separated beta feature headers |
ANTHROPIC_CUSTOM_HEADERSOther | — Documented | Custom HTTP headers (newline-separated Key: Value) |
ANTHROPIC_CUSTOM_MODEL_OPTIONModels and thinking | — Documented | — |
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTIONModels and thinking | — Documented | — |
ANTHROPIC_CUSTOM_MODEL_OPTION_NAMEModels and thinking | — Documented | — |
ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIESModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_FABLE_MODELModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTIONModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_FABLE_MODEL_NAMEModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_FABLE_MODEL_SUPPORTED_CAPABILITIESModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_HAIKU_MODELModels and thinking | — Documented | Override Haiku model ID |
ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTIONModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_HAIKU_MODEL_NAMEModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIESModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_MODELModels 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_MODELModels and thinking | — Documented | Override Opus model ID |
ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTIONModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_OPUS_MODEL_NAMEModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIESModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_SONNET_MODELModels and thinking | — Documented | Override Sonnet model ID |
ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTIONModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_SONNET_MODEL_NAMEModels and thinking | — Documented | — |
ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIESModels and thinking | — Documented | — |
ANTHROPIC_FEDERATION_RULE_IDOther | — Documented | — |
ANTHROPIC_FOUNDRY_API_KEYCloud providers | — Documented | Foundry API key |
ANTHROPIC_FOUNDRY_AUTH_TOKENCloud providers | — Documented | — |
ANTHROPIC_FOUNDRY_BASE_URLCloud providers | — Documented | Custom Foundry endpoint |
ANTHROPIC_FOUNDRY_RESOURCECloud providers | — Documented | Foundry resource name |
ANTHROPIC_GOOGLE_CLOUD_BASE_URLCloud providers | — Documented | — |
ANTHROPIC_GOOGLE_CLOUD_LOCATIONCloud providers | — Documented | — |
ANTHROPIC_GOOGLE_CLOUD_PROJECTCloud providers | — Documented | — |
ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_IDCloud providers | — Documented | — |
ANTHROPIC_LOGDebugging | — | SDK internal logging level |
ANTHROPIC_MODELModels and thinking | — Documented | Override the default Claude model |
ANTHROPIC_ORGANIZATION_IDOther | — Documented | — |
ANTHROPIC_PROFILEDebugging | — Documented | — |
ANTHROPIC_SMALL_FAST_MODELModels and thinking | — Documented | Override small/fast model for quick operations |
ANTHROPIC_SMALL_FAST_MODEL_AWS_REGIONCloud providers | — Documented | AWS region for small fast model on Bedrock |
ANTHROPIC_VERTEX_BASE_URLCloud providers | — Documented | — |
ANTHROPIC_VERTEX_PROJECT_IDCloud providers | — Documented | Google Cloud project ID |
ANTHROPIC_WORKSPACE_IDOther | — Documented | — |
API_FORCE_IDLE_TIMEOUTNetwork and proxy | — Documented | — |
API_TIMEOUT_MSNetwork and proxy | — Documented | Request timeout in milliseconds |
AWS_BEARER_TOKEN_BEDROCKCloud providers | — Documented | Bearer token for Bedrock authentication |
BASH_DEFAULT_TIMEOUT_MSNetwork and proxy | — Documented | — |
BASH_MAX_OUTPUT_LENGTHShell and tools | — Documented | Max bash output character length |
BASH_MAX_TIMEOUT_MSNetwork and proxy | — Documented | — |
BETA_TRACING_ENDPOINTOther | — Documented | Custom endpoint for beta tracing |
CCR_FORCE_BUNDLEFeature toggles | — Documented | — |
CLAUDECODEOther | — Documented | Set to 1 in child shell processes (auto-set) |
CLAUDE_AFK_COUNTDOWN_MSOther | Added between v2.1.143 and v2.1.212 | Milliseconds 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_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 | Milliseconds of inactivity before the away-from-keyboard timeout fires; setting it also enables the idle countdown display. |
CLAUDE_AFTER_LAST_COMPACTContext and compaction | Present since v2.1.69 or earlier | Request only conversation logs after last compaction |
CLAUDE_AGENTAgents and subagents | Added between v2.1.118 and v2.1.123 | Short-form identifier for the current agent, used in inter-agent messaging and log attribution. |
CLAUDE_AGENTS_AUTO_RELAUNCHED_ATAgents and subagents | Added between v2.1.118 and v2.1.123 | Timestamp set when the agent fleet was automatically relaunched after a crash. Downstream consumers can detect state that predates the relaunch and invalidate… |
CLAUDE_AGENTS_SELECTAgents and subagents | Added between v2.1.118 and v2.1.123 | Selects 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_APPAgents and subagents | Present since v2.1.69 or earlier | Client application name |
CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTSAgents and subagents | Present since v2.1.69 or earlier Documented | Disable built-in agent types |
CLAUDE_AGENT_SDK_DISABLE_MCP_MANIFESTSAgents and subagents | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_AGENT_SDK_MCP_NO_PREFIXAgents and subagents | Present since v2.1.69 or earlier Documented | Don't prefix MCP tool names with server name |
CLAUDE_AGENT_SDK_VERSIONAgents and subagents | Present since v2.1.69 or earlier | Agent SDK version sent in User-Agent header |
CLAUDE_AI_AUTHORIZE_URLAuthentication | Present since v2.1.69 or earlier | Authorization URL endpoint |
CLAUDE_AI_HOSTOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_AI_IMPORT_SHAPEOther | Removed between v2.1.252 and v2.1.266 | — |
CLAUDE_AI_INFERENCE_SCOPEOther | Present since v2.1.69 or earlier | — |
CLAUDE_AI_OAUTH_SCOPESAuthentication | Removed between v2.1.269 and v2.1.283 | — |
CLAUDE_AI_ORIGINOther | Added in v2.1.84 | Overrides 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_SCOPEPlugins and skills | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_AI_PRIVACY_CONSENTS_WRITE_SCOPEOther | Added between v2.1.321 and v2.1.323 | — |
CLAUDE_AI_PROFILE_SCOPEDebugging | Present since v2.1.69 or earlier | — |
CLAUDE_AI_PROJECTS_READ_SCOPEOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_AI_PROJECTS_WRITE_SCOPEOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_AI_SESSIONS_SCOPESessions | Added in v2.1.300 | — |
CLAUDE_AI_SIGN_IN_STEPOther | Added in v2.1.324 | — |
CLAUDE_API_KEYAuthentication | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_API_SKILL_DESCRIPTIONPlugins and skills | Removed between v2.1.252 and v2.1.266 | Registration 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_GRANTOther | Added between v2.1.269 and v2.1.283 | Supplies 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_MSNetwork 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_OVERRIDEContext and compaction | Present since v2.1.69 or earlier Documented | Set when auto-compaction triggers (percentage threshold) |
CLAUDE_AUTO_BACKGROUND_TASKSSessions | Present since v2.1.69 or earlier Documented | Enable automatic background task execution |
CLAUDE_AX_ANNOUNCEMENT_HOLD_MSTerminal and UI | Added in v2.1.288 | Milliseconds to hold a screen reader announcement when a hold is requested; defaults to 1000 and is capped at 10000. |
CLAUDE_AX_PREPARK_MSTerminal and UI | Added between v2.1.229 and v2.1.234 Documented | — |
CLAUDE_AX_REWRITE_HELD_ANNOUNCEMENTTerminal and UI | Added in v2.1.288 | — |
CLAUDE_AX_SCREEN_READERTerminal and UI | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_AX_STARTUP_QUIET_MSTerminal 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_BASEOther | Added in v2.1.92 | Likely 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_DIRShell and tools | Present since v2.1.69 or earlier Documented | Maintain consistent working directory across commands |
CLAUDE_BASH_NO_LOGINShell and tools | — | Replaced by CLAUDE_CODE_SHELL_PREFIX |
CLAUDE_BG_AUTH_SNAPSHOT_PATHAuthentication | Added between v2.1.138 and v2.1.143 | Path 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_OFFMemory and CLAUDE.md | Added in v2.1.285 | — |
CLAUDE_BG_BACKENDSessions | Added between v2.1.108 and v2.1.114 | Set 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_SHA256Sessions | Added in v2.1.293 | — |
CLAUDE_BG_CLAIM_AUTHAuthentication | Added between v2.1.143 and v2.1.212 | Held 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_JUDGEDSessions | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_BG_DISPATCHER_RATE_LIMIT_TIERSessions | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPESessions | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_BG_DISPATCH_ENTRYPOINTSessions | Added in v2.1.321 | In 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_ROUTEDSessions | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_BG_GATEWAY_WITHHELDSessions | Added between v2.1.301 and v2.1.303 | Carries 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_ISOLATIONSessions | Added between v2.1.118 and v2.1.123 | Isolation 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_OFFMemory and CLAUDE.md | Added between v2.1.143 and v2.1.212 | When set to 1 in a background session, turns memory off for that session. |
CLAUDE_BG_POST_CLEAR_RESPAWNSessions | Added between v2.1.143 and v2.1.212 | Marks 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_AUTHAuthentication | Added between v2.1.143 and v2.1.212 | Carries 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_SOCKSessions | Added between v2.1.118 and v2.1.123 | Socket 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_AUTHAuthentication | Added between v2.1.143 and v2.1.212 | Carries 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_CREDENTIALAuthentication | Added between v2.1.321 and v2.1.323 | Supplies 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_RULESPermissions and sandbox | Added between v2.1.143 and v2.1.212 | In 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_MSNetwork and proxy | Added in v2.1.315 | — |
CLAUDE_BG_SOCKET_TOKENS_PATHAuthentication | Added between v2.1.143 and v2.1.212 | Path 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_PEERSSessions | Added in v2.1.315 | — |
CLAUDE_BG_SOURCESessions | Added between v2.1.118 and v2.1.123 | Tags 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_MSSessions | Added between v2.1.128 and v2.1.138 | Startup 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_DISCLAIMEDSessions | Added between v2.1.138 and v2.1.143 | macOS TCC (Transparency, Consent, and Control) permission disclaimer state for background sessions. Background agents without a controlling terminal need… |
CLAUDE_BG_WORKSPACE_TRUSTEDSessions | Added between v2.1.269 and v2.1.283 | Set 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_URLNetwork and proxy | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_BRIDGE_OAUTH_TOKENAuthentication | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_BRIDGE_REATTACH_GROUPINGSessions | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_BRIDGE_REATTACH_NO_BACKFILLSessions | Added between v2.1.224 and v2.1.227 | — |
CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLYSessions | Added between v2.1.143 and v2.1.212 | Set 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_ACCTSessions | Added between v2.1.224 and v2.1.227 | — |
CLAUDE_BRIDGE_REATTACH_OWNER_ORGSessions | Added between v2.1.224 and v2.1.227 | — |
CLAUDE_BRIDGE_REATTACH_SEQSessions | Added in v2.1.118 | Sequence 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_SESSIONSessions | Added in v2.1.118 | Session 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_URLNetwork and proxy | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_BRIDGE_USE_CCR_V2Sessions | Removed between v2.1.143 and v2.1.212 | Toggle 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_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_COther | Removed between v2.1.245 and v2.1.247 | — |
CLAUDE_CHROME_CLASSIFIER_FLOOROther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CHROME_PAIRED_DEVICE_IDOther | Added between v2.1.266 and v2.1.269 | Specifies the browser extension device id to pair with; ignored with a warning if it is not a valid extension device id. |
CLAUDE_CHROME_PERMISSION_MODEPermissions and sandbox | Present since v2.1.69 or earlier | Permission mode for Claude for Chrome |
CLAUDE_CHROME_TAB_GROUP_KEYOther | Added in v2.1.286 | Sets 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_FILEOther | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_3P_PROBE_WROTE_HAIKU_DEFAULTModels and thinking | Added in v2.1.285 | — |
CLAUDE_CODE_3P_PROBE_WROTE_OPUS_DEFAULTModels and thinking | Added between v2.1.143 and v2.1.212 | Records 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_DEFAULTModels and thinking | Added between v2.1.143 and v2.1.212 | Records 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_DEFAULTModels and thinking | Added in v2.1.285 | Records 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_DEFAULTModels and thinking | Added in v2.1.285 | Records 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_ACCESSIBILITYTerminal and UI | Present since v2.1.69 or earlier Documented | Enable accessibility mode; disables cursor hiding |
CLAUDE_CODE_ACCOUNT_TAGGED_IDOther | Added between v2.1.77 and v2.1.79 | Stores 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_UUIDOther | Present since v2.1.69 or earlier | Pre-configured account UUID |
CLAUDE_CODE_ACTIONOther | Present since v2.1.69 or earlier | Indicates running as GitHub Action |
CLAUDE_CODE_ACT_DONT_REDERIVEOther | Added between v2.1.143 and v2.1.212 | Toggles 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_MDMemory and CLAUDE.md | Present since v2.1.69 or earlier Documented | Additional directories to scan for CLAUDE.md files (colon-separated) |
CLAUDE_CODE_ADDITIONAL_PROTECTIONOther | Present since v2.1.69 or earlier | Add additional protection header to API requests |
CLAUDE_CODE_ADOPT_UNDERIVABLE_PARKED_PERMISSIONPermissions and sandbox | Removed in v2.1.307 | In 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_AGENTAgents and subagents | Added between v2.1.118 and v2.1.123 | Full 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_PROCESSAgents and subagents | Added in v2.1.311 | — |
CLAUDE_CODE_AGENT_COST_STEERAgents and subagents | Removed between v2.1.138 and v2.1.143 | Controls 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_MESSAGESAgents and subagents | Removed between v2.1.143 and v2.1.212 | An early agent-listing toggle, made obsolete by the Agent View and coordinator surfaces that now own how agents are shown. |
CLAUDE_CODE_AGENT_PROGRESS_SUMMARIESAgents and subagents | Added in v2.1.296 | Enables agent progress summaries when set, for clients that support them. |
CLAUDE_CODE_AGENT_PROXY_GH_SHIMNetwork and proxy | Added between v2.1.143 and v2.1.212 | When set, installs a gh CLI shim so GitHub CLI calls route through the agent proxy's governed git. |
CLAUDE_CODE_AGENT_PROXY_GIT_CONFIGNetwork and proxy | Added between v2.1.143 and v2.1.212 | When set, appends a governed git config so git operations route through the agent proxy. |
CLAUDE_CODE_AGENT_PROXY_GIT_HOSTSNetwork and proxy | Added between v2.1.269 and v2.1.283 | Comma-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_DISABLEDAgents and subagents | Present since v2.1.69 or earlier | Disable agent rules |
CLAUDE_CODE_AGENT_SWARMSAgents and subagents | — | Replaced by CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS |
CLAUDE_CODE_AGENT_VIEW_RELAUNCHAgents and subagents | Added between v2.1.138 and v2.1.143 | Force-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_WICKETOther | Removed in v2.1.218 | — |
CLAUDE_CODE_ALLOW_OTHER_MODELSModels and thinking | Added between v2.1.301 and v2.1.303 | Set 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_TEXTOther | Added between v2.1.143 and v2.1.212 | Controls 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_REPAINTTerminal and UI | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_ALWAYS_ENABLE_EFFORTModels 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_ASTROLABEOther | Added between v2.1.215 and v2.1.217 | — |
CLAUDE_CODE_API_BASE_URLNetwork and proxy | Present since v2.1.69 or earlier | Custom Claude Code API base URL for proxies |
CLAUDE_CODE_API_KEY_FILE_DESCRIPTORAuthentication | Present since v2.1.69 or earlier | File descriptor to read API key from |
CLAUDE_CODE_API_KEY_HELPER_TTL_MSAuthentication | Present since v2.1.69 or earlier Documented | Cache TTL for API key helper |
CLAUDE_CODE_APPEND_PROMPT_HEADOther | Added in v2.1.284 | Designates 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_SHAPEOther | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_CODE_ARTIFACTOther | Added between v2.1.143 and v2.1.212 | Turns 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_URLNetwork and proxy | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_ARTIFACTS_API_TOKENAuthentication | Added between v2.1.219 and v2.1.221 | Auth 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_FIRSTOther | Added in v2.1.310 | — |
CLAUDE_CODE_ARTIFACT_ASSETSOther | Added between v2.1.229 and v2.1.234 | Turns artifact asset support on or off; when unset, falls back to whether the agent declares the assets capability. |
CLAUDE_CODE_ARTIFACT_ASSET_BASE_URLNetwork and proxy | Added between v2.1.219 and v2.1.221 | — |
CLAUDE_CODE_ARTIFACT_AUTO_OPENOther | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_ARTIFACT_COMMENTSOther | 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_AUTOREACTOther | 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_ACKOther | Added between v2.1.229 and v2.1.234 | Enables a quick acknowledgement reply to artifact comments before the work is finished; defaults to off. |
CLAUDE_CODE_ARTIFACT_COMMENT_FAST_ACK_FIXEDOther | Added between v2.1.234 and v2.1.237 | When fast acknowledgement of artifact comments is on, selects the fixed set of acknowledgement messages; defaults to off. |
CLAUDE_CODE_ARTIFACT_COMMENT_RESPONDEROther | Added between v2.1.224 and v2.1.227 | Turns 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_DBOther | Added between v2.1.222 and v2.1.224 | Enables the artifact database feature; on by default. Set to false to disable it. |
CLAUDE_CODE_ARTIFACT_DB_STR_REPLACEOther | Added between v2.1.252 and v2.1.266 | When the artifact database is enabled, turns on string-replace edits for it; defaults to off. |
CLAUDE_CODE_ARTIFACT_DELETEOther | Added between v2.1.238 and v2.1.241 | Enables 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_UPLOADOther | Removed between v2.1.238 and v2.1.241 | Forced artifacts to use the direct inline upload path when set; read until v2.1.238. |
CLAUDE_CODE_ARTIFACT_FDOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_ARTIFACT_FIVE_CLASS_ASKSOther | Removed in v2.1.295 | Enabled the five-class artifact permission ask mode; defaulted to off, read until v2.1.292. |
CLAUDE_CODE_ARTIFACT_FRESH_READOther | Added between v2.1.269 and v2.1.283 | Controls fresh reads of artifact content from the docs store; stays on unless set to false. |
CLAUDE_CODE_ARTIFACT_HOTOther | Added between v2.1.266 and v2.1.269 | Enables hot updates for artifacts when no frozen hot-update value overrides it; defaults to off. |
CLAUDE_CODE_ARTIFACT_INHERITED_TYPE_GRANTOther | Added between v2.1.269 and v2.1.283 | Enables inherited type grants for artifacts; latched once per session and defaults to off. |
CLAUDE_CODE_ARTIFACT_LIVE_BASE_URLNetwork and proxy | Added between v2.1.219 and v2.1.221 | — |
CLAUDE_CODE_ARTIFACT_LIVE_WATCHOther | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_ARTIFACT_MCPMCP | Added between v2.1.143 and v2.1.212 | Enables MCP runtime-capability support for artifacts; on by default. Set to false to disable it. |
CLAUDE_CODE_ARTIFACT_MULTI_FILEOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_ARTIFACT_OPENING_PREFETCHOther | Added between v2.1.269 and v2.1.283 | Controls prefetching when an artifact opens; prefetch is disabled when this is set to false. |
CLAUDE_CODE_ARTIFACT_OPEN_ACTIONOther | Added between v2.1.252 and v2.1.266 | Enables the artifact open action; defaults to off when neither this nor its feature flag is set. |
CLAUDE_CODE_ARTIFACT_PATH_PINOther | Added between v2.1.269 and v2.1.283 | Enables path pinning for artifacts, requiring files be read before they are replaced or removed; on by default. |
CLAUDE_CODE_ARTIFACT_PINOther | Added between v2.1.252 and v2.1.266 | Enables pinning and unpinning artifacts; on by default, and unavailable in some cloud sessions. |
CLAUDE_CODE_ARTIFACT_PRESENCEOther | Added between v2.1.247 and v2.1.252 | Enables live presence for artifacts so open sessions share connection state; defaults to off. |
CLAUDE_CODE_ARTIFACT_PREVIEWOther | Added between v2.1.245 and v2.1.247 | Turned 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_EMULATOROther | Added in v2.1.292 | Pins 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_EDITSOther | Added in v2.1.299 Documented | — |
CLAUDE_CODE_ARTIFACT_QUICKSTARTOther | Added between v2.1.269 and v2.1.283 | Enables the artifact quickstart; on by default. Set to false to disable it. |
CLAUDE_CODE_ARTIFACT_REPLOther | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_ARTIFACT_ROOMOther | Added in v2.1.238 | — |
CLAUDE_CODE_ARTIFACT_SHAREOther | Added in v2.1.286 | Set to true to enable artifact sharing in supported desktop or cloud sessions; off otherwise. |
CLAUDE_CODE_ARTIFACT_SHARE_PROBE_REUSE_MSOther | Added between v2.1.307 and v2.1.309 | Maximum 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_KITOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_ARTIFACT_SYNC_BASE_URLNetwork and proxy | Added in v2.1.238 | — |
CLAUDE_CODE_ARTIFACT_TEXT_VARIANTOther | Removed in v2.1.296 | Selected 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_TOOLSETShell and tools | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_ARTIFACT_TYPESOther | Added between v2.1.234 and v2.1.237 | — |
CLAUDE_CODE_ARTIFACT_TYPE_CATALOGDebugging | Added between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_ARTIFACT_TYPE_CLOUD_CREATEOther | Added between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_ARTIFACT_VERIFYOther | Added in v2.1.238 | — |
CLAUDE_CODE_ARTIFACT_VERSIONSOther | Added in v2.1.292 | When 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_URLNetwork and proxy | Added in v2.1.229 | Sets 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_PATHOther | Added in v2.1.300 | When 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_DATAOther | Added in v2.1.301 | Off 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_ANNOUNCEMENTOther | Added between v2.1.266 and v2.1.269 | When 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_HEADEROther | Present since v2.1.69 or earlier Documented | API billing header in system prompt |
CLAUDE_CODE_ATTRIBUTION_PROJECTOther | Added in v2.1.304 | Sets 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_MSNetwork and proxy | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_AUTH_FAIL_EXIT_MSAuthentication | Added between v2.1.143 and v2.1.212 | In 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_ROOTSOther | 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_HOSTOther | Added in v2.1.295 | When 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_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 | For 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_SECONDSSessions | 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_WINDOWContext 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_IDENetwork and proxy | Present since v2.1.69 or earlier Documented | Auto-connect to IDE on startup |
CLAUDE_CODE_AUTO_MODE_ARTIFACT_CONSENT_RULEPermissions and sandbox | Added between v2.1.245 and v2.1.247 | — |
CLAUDE_CODE_AUTO_MODE_CANDIDATE_WORDINGPermissions and sandbox | Removed in v2.1.286 | Chose 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_OVERLAPPermissions and sandbox | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_AUTO_MODE_CLASSIFIER_QUEUEPermissions and sandbox | Removed between v2.1.219 and v2.1.221 | — |
CLAUDE_CODE_AUTO_MODE_CLASSIFY_ASK_USER_QUESTIONPermissions and sandbox | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_CODE_AUTO_MODE_CLASSIFY_EDITSPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Turns 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_RULEContext and compaction | Added in v2.1.299 | When 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_REMOVALPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Governs 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_CAPPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Caps 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_TURNPermissions and sandbox | Added in v2.1.305 | When 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_TURNPermissions and sandbox | Added in v2.1.305 | Set 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_PERMISSIONSPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Hands 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_CONTEXTContext and compaction | Added in v2.1.315 | — |
CLAUDE_CODE_AUTO_MODE_GIT_STATUSPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Feeds 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_LIMITPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Bounds 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_UPLOADSPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Controls 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_ROWSPermissions and sandbox | Added in v2.1.286 | — |
CLAUDE_CODE_AUTO_MODE_MODELModels 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_CODESPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Structured 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_CONTEXTContext and compaction | Added between v2.1.143 and v2.1.212 | Feeds 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_BROWSERPermissions and sandbox | Added in v2.1.304 | — |
CLAUDE_CODE_AUTO_MODE_REPO_VISIBILITYPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Lets 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_TRANSCRIPTPermissions and sandbox | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_AUTO_MODE_SERVERPermissions and sandbox | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_AUTO_MODE_SIBLING_CONTEXTContext and compaction | Removed between v2.1.219 and v2.1.221 | Includes 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_TEMPERATUREPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Temperature 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_HELDPermissions and sandbox | Added in v2.1.307 | — |
CLAUDE_CODE_AUTO_MODE_THREAD_ASK_OWN_WORKPermissions and sandbox | Added between v2.1.315 and v2.1.317 | In 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_TIERPermissions and sandbox | Added in v2.1.286 | — |
CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MSCloud providers | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_BASALT_COVEOther | Added between v2.1.143 and v2.1.212 | An 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_REFOther | Present since v2.1.69 or earlier | Git base ref for diff operations |
CLAUDE_CODE_BASE_REFSOther | — | 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_DIFFShell 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_NOTEShell and tools | Added between v2.1.234 and v2.1.237 | — |
CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATORPermissions and sandbox | Present since v2.1.69 or earlier | Show indicator when bash runs in sandbox |
CLAUDE_CODE_BENCH_LIVE_COUNTSOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_BG_CLASSIFIER_MODELModels and thinking | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_BG_TASKS_REPORT_RUNNINGSessions | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_BISON_CAIRNOther | Added between v2.1.215 and v2.1.217 | When 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_OVERRIDETerminal and UI | Present since v2.1.69 or earlier | Override token limit for input blocking |
CLAUDE_CODE_BREEZY_HORIZONOther | Added between v2.1.245 and v2.1.247 | Set 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_ARTIFACTSessions | Added between v2.1.266 and v2.1.269 | In a bridge child, counts like CLAUDE_CODE_ARTIFACT so artifact handling is not turned off by the SDK default. |
CLAUDE_CODE_BRIDGE_CHILD_AUTO_DEFAULTSessions | Added between v2.1.266 and v2.1.269 | Makes 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_ENTRYPOINTSessions | Added in v2.1.314 | — |
CLAUDE_CODE_BRIDGE_CHILD_HELD_TO_AUTOSessions | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_BRIDGE_CHILD_MACHINE_SETTINGSSessions | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_BRIDGE_CHILD_PROJECTS_ENTRYPOINTSessions | Added in v2.1.304 | — |
CLAUDE_CODE_BRIDGE_CHILD_START_DIRSessions | Added in v2.1.321 | Holds 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_CARRIERMCP | Added between v2.1.238 and v2.1.241 | — |
CLAUDE_CODE_BRIDGE_OWNER_ACCOUNT_UUIDSessions | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_CODE_BRIDGE_OWNER_ORG_UUIDSessions | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_CODE_BRIDGE_PROMPT_SHA256Sessions | Added between v2.1.238 and v2.1.241 | Holds 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_IDSessions | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_BRIDGE_SETTINGS_BINDINGSessions | Added in v2.1.321 | Binds 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_DIRSessions | Added in v2.1.286 | — |
CLAUDE_CODE_BRIEFOther | Added between v2.1.70 and v2.1.72 | Toggle brief/concise output mode — shorter responses from Claude. Useful for scripted workflows or agents that don't need verbose explanations. |
CLAUDE_CODE_BRIEF_UPLOADOther | Added between v2.1.70 and v2.1.72 | Brief mode specifically for upload operations. Likely suppresses progress details when uploading files or context to the session. |
CLAUDE_CODE_BS_AS_CTRL_BACKSPACEOther | 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_BUBBLEWRAPPermissions and sandbox | Present since v2.1.69 or earlier | Set to 1 when running in bubblewrap sandbox (Linux) [6] |
CLAUDE_CODE_BYOC_ENABLE_DATADOGTelemetry | Added between v2.1.128 and v2.1.138 | Opt-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_MOCHIOther | Added in v2.1.290 | Accepts '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_SLATEOther | Removed between v2.1.266 and v2.1.269 | Set to true to enable a static system prompt; off by default. Read until v2.1.266. |
CLAUDE_CODE_CCR_AFFINITY_KEYOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_CCR_EARLY_HYDRATE_PREFETCHOther | Added between v2.1.252 and v2.1.266 | When a remote SDK session is being resumed, triggers early remote work that prefetches and hydrates reads before initialization finishes. |
CLAUDE_CODE_CCR_EARLY_PLUGINS_SYNCPlugins and skills | Added in v2.1.286 | Enables 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_CONNECTNetwork and proxy | Added between v2.1.269 and v2.1.283 | Set 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_SYNCPlugins and skills | Added in v2.1.287 | Enables 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_REFUSALOther | Added in v2.1.305 | When 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_POLICYOther | Added in v2.1.305 | — |
CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCANOther | Added in v2.1.287 | When 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_HYDRATEAgents and subagents | Removed between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_CCR_LONG_POLLOther | Added in v2.1.314 | — |
CLAUDE_CODE_CCR_ONE_PLUGIN_LOAD_PER_RELOADPlugins and skills | Added in v2.1.315 | — |
CLAUDE_CODE_CCR_OWN_CONNECTION_POOLNetwork and proxy | Added between v2.1.307 and v2.1.309 | — |
CLAUDE_CODE_CCR_REQUESTS_BY_FETCHOther | Added in v2.1.321 | When set and running as a hosted worker, routes axios requests that use no proxy through Bun's fetch. |
CLAUDE_CODE_CCR_SKIP_FRESH_MIGRATIONSFeature toggles | Added in v2.1.287 | When 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_TIPFeature toggles | Added in v2.1.319 | When 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_READSFeature toggles | Removed between v2.1.326 and v2.1.331 | When 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_WATCHPlugins and skills | Added between v2.1.315 and v2.1.317 | Takes effect only in remote mode; when both this and remote mode are set, slow-skills watching is enabled. |
CLAUDE_CODE_CCR_SURFACEOther | Added between v2.1.252 and v2.1.266 | Set 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_SOCKETOther | Added in v2.1.299 | Comma-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_STOREAuthentication | 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_REFUSEDOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_CHILD_NOTES_DIROther | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_CHILD_SESSIONSessions | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_CHROME_LATE_MCP_SERVERMCP | Added in v2.1.311 | When true, loads the alternate late Claude-in-Chrome MCP server module and skips installing the Chrome native host early. |
CLAUDE_CODE_CHROME_MCP_ORG_DENIEDMCP | Added between v2.1.252 and v2.1.266 | When 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_PANELTerminal and UI | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_CLASSIFIER_SUMMARYOther | Added between v2.1.118 and v2.1.123 | Carries 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_CERTAuthentication | Present since v2.1.69 or earlier Documented | Path to client certificate for mTLS |
CLAUDE_CODE_CLIENT_DATA_URLNetwork and proxy | Added between v2.1.269 and v2.1.283 | URL 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_KEYAuthentication | Present since v2.1.69 or earlier Documented | Path to client private key |
CLAUDE_CODE_CLIENT_KEY_PASSPHRASEAuthentication | Present since v2.1.69 or earlier Documented | Passphrase for encrypted client key |
CLAUDE_CODE_CLOUD_SESSION_IDSessions | Added between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_COLD_COMPACTContext and compaction | Added between v2.1.123 and v2.1.126 | — |
CLAUDE_CODE_COMMIT_BETWEEN_KEYSOther | Removed in v2.1.284 | — |
CLAUDE_CODE_COMMIT_LOGDebugging | Removed between v2.1.224 and v2.1.227 | Likely 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_ACORNOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_CONFIG_LOCK_WAIT_MSOther | 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_PROBEOther | Added in v2.1.286 | Marks the run as an IDE config probe; when set, the AWS and GCP auth refreshes are skipped. |
CLAUDE_CODE_CONFIG_WATCH_EVENTSOther | Added in v2.1.288 | On Linux, when set, watches config files with filesystem events instead of interval polling; ignored on other platforms. |
CLAUDE_CODE_CONNECT_TIMEOUT_MSNetwork and proxy | Added between v2.1.266 and v2.1.269 Documented | — |
CLAUDE_CODE_CONSENT_POINTERLESSOther | Removed between v2.1.326 and v2.1.331 | For an MCP elicitation that requests no input fields, when set the consent prompt no longer defaults to accept. |
CLAUDE_CODE_CONTAINER_IDOther | Present since v2.1.69 or earlier | Container/pod identifier sent in HTTP headers |
CLAUDE_CODE_COORDINATOR_EXTRA_TOOLSAgents and subagents | Added between v2.1.143 and v2.1.212 | Comma-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_MODELAgents and subagents | Added between v2.1.247 and v2.1.252 | When set, subagent workers ignore any model parameter and inherit the session model; the model option is dropped before launch. |
CLAUDE_CODE_COORDINATOR_MODEAgents and subagents | Added between v2.1.143 and v2.1.212 | Runs 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_MEMORYAgents and subagents | Added between v2.1.143 and v2.1.212 | When 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_GUIDANCEAgents and subagents | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_COORDINATOR_WORKER_CHECKIN_SECONDSAgents and subagents | Removed between v2.1.269 and v2.1.283 | Set the interval in seconds between coordinator worker check-ins, converted to milliseconds; read until v2.1.269. |
CLAUDE_CODE_COUNT_GARBAGE_COLLECTIONSOther | Added in v2.1.311 | When 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_ARTIFACTSOther | Added in v2.1.228 | — |
CLAUDE_CODE_COWORK_PLUGIN_SKILLPlugins and skills | Added in v2.1.319 | Enables the built-in plugin-building skill when set, provided another check does not already disable it. |
CLAUDE_CODE_COWORK_SHELL_CHECKShell and tools | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_COZY_TEAPOTOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_CRYPTIC_HORIZONOther | Added in v2.1.319 | — |
CLAUDE_CODE_CURRIED_TRINKETOther | Added in v2.1.290 | Selects 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_URLAuthentication | Present since v2.1.69 or earlier | Custom OAuth endpoint URL |
CLAUDE_CODE_DAEMON_COLD_STARTOther | Added between v2.1.118 and v2.1.123 | Set 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_CUPCAKEOther | Added in v2.1.301 | — |
CLAUDE_CODE_DAPPER_LAGOONOther | Removed between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MSTelemetry | Present since v2.1.69 or earlier | Datadog metrics flush interval (ms) |
CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MSTelemetry | Added between v2.1.143 and v2.1.212 | Sets the interval in milliseconds for flushing batched error-tracking logs to Datadog; defaults to 30000. |
CLAUDE_CODE_DEBUG_LOGS_DIRDebugging | Present since v2.1.69 or earlier Documented | Custom directory for debug logs |
CLAUDE_CODE_DEBUG_LOG_LEVELDebugging | 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_REPAINTSDebugging | Added between v2.1.79 and v2.1.83 | Enables debug logging for terminal repaint operations. This release fixes several rendering issues — screen flashing blank after idle, scrollback jumping when… |
CLAUDE_CODE_DECSTBMOther | Removed between v2.1.324 and v2.1.326 | Enables 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_TWILIGHTOther | Added between v2.1.315 and v2.1.317 | — |
CLAUDE_CODE_DESIGN_OAUTH_CLIENT_IDAuthentication | Added between v2.1.143 and v2.1.212 | Overrides 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_VERSIONOther | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_DESKTOP_CONNECTOR_NAMESNetwork and proxy | Added in v2.1.310 | Carries 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_CARDOther | Added between v2.1.321 and v2.1.323 | In desktop mode, and when not reattaching a bridge session, enables the desktop message card. |
CLAUDE_CODE_DESKTOP_MODE_FROM_RECORDOther | Added between v2.1.321 and v2.1.323 | In desktop mode, enables setting the desktop mode from a record. |
CLAUDE_CODE_DESKTOP_PLUGIN_INSTALL_FRAMESPlugins and skills | Added between v2.1.321 and v2.1.323 | When plugins are enabled, turns on desktop plugin install frames, then removes the variable from the environment. |
CLAUDE_CODE_DESKTOP_RESULT_FIRSTOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_DESKTOP_SKILLS_PLUGIN_DIRPlugins and skills | Added between v2.1.301 and v2.1.303 | Holds 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_SWITCHESPlugins and skills | Added in v2.1.293 | — |
CLAUDE_CODE_DESKTOP_WORKFLOW_LIMIT_WAITAgents and subagents | Added in v2.1.319 | When 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_URLNetwork and proxy | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_DIAGNOSTICS_FILEOther | Present since v2.1.69 or earlier | Path to write diagnostics output |
CLAUDE_CODE_DIFF_COPY_ROOTOther | Added in v2.1.307 | A 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_ARCHIVEOther | Removed between v2.1.245 and v2.1.247 | Enabled the archive engine of directory sync, keeping archived copies alongside synced files; read until v2.1.245. |
CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORINGFeature toggles | Removed in v2.1.285 | — |
CLAUDE_CODE_DIR_SYNC_ENGINEOther | Removed in v2.1.285 | Took 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_FFWDOther | Removed in v2.1.285 | — |
CLAUDE_CODE_DIR_SYNC_GITOther | Removed in v2.1.285 | Enabled 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_OVERLAYOther | Removed between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_DIR_SYNC_STREAMNetwork and proxy | Removed in v2.1.285 | — |
CLAUDE_CODE_DISABLE_1M_CONTEXTContext and compaction | Present since v2.1.69 or earlier Documented | Disable extended 1M token context window |
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKINGModels and thinking | Present since v2.1.69 or earlier Documented | Disable adaptive thinking mode |
CLAUDE_CODE_DISABLE_ADMIN_ENV_UNIONFeature toggles | Added between v2.1.222 and v2.1.224 | When 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_TOOLShell 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_FLEETAgents and subagents | Removed between v2.1.138 and v2.1.143 | Kill 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_SUMMARIESAgents and subagents | Added in v2.1.318 | Set 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_VIEWAgents 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_SCREENTerminal 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_ARTIFACTFeature toggles | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_ATTACHMENTSFeature toggles | Present since v2.1.69 or earlier Documented | File/image attachments |
CLAUDE_CODE_DISABLE_ATTRIBUTION_BASELINE_REUSEFeature toggles | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_DISABLE_ATTRIBUTION_CROSS_REPOFeature toggles | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_DISABLE_AUTH_REFRESH_LOCKAuthentication | 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_MEMORYMemory and CLAUDE.md | Present since v2.1.69 or earlier Documented | Disable automatic memory (MEMORY.md) |
CLAUDE_CODE_DISABLE_AWAITING_USER_IDLEFeature toggles | Added between v2.1.252 and v2.1.266 | When 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_TASKSSessions | Present since v2.1.69 or earlier Documented | Disable background tasks entirely |
CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_DEFAULTCloud providers | Added between v2.1.238 and v2.1.241 Documented | — |
CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARDCloud providers | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFFSessions | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAPShell and tools | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_BG_STABLE_PATHSessions | 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_SKILLSPlugins and skills | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_CFC_PROMPTFeature toggles | Added between v2.1.252 and v2.1.266 Documented | — |
CLAUDE_CODE_DISABLE_CLAUDE_API_SKILLPlugins and skills | Added between v2.1.88 and v2.1.89 | Disables 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_SKILLPlugins and skills | Added between v2.1.143 and v2.1.212 | When set to true, registers the built-in Claude Code skill as disabled so it is not available. |
CLAUDE_CODE_DISABLE_CLAUDE_MDSMemory and CLAUDE.md | Present since v2.1.69 or earlier Documented | Disable loading CLAUDE.md files |
CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECKFeature toggles | Removed between v2.1.88 and v2.1.89 | Previously 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_CRONFeature 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_TIMEOUTNetwork and proxy | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUMEShell 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_SHIPFeature toggles | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_DISABLE_DIR_SYNCFeature toggles | Removed in v2.1.285 | Turns 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_GUARDFeature toggles | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_DISABLE_EMPTY_CLASSIC_DISPATCH_SKIPFeature toggles | Added in v2.1.311 | When 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_BETASFeature toggles | Present since v2.1.69 or earlier Documented | Experimental beta API features |
CLAUDE_CODE_DISABLE_EXPLORE_INHERIT_CAPFeature toggles | Added between v2.1.215 and v2.1.217 | Lets 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_AGENTSAgents and subagents | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_EXPORTED_VARIABLE_PROMPTFeature toggles | Added in v2.1.324 | When 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_MODEModels 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_FLAGSFeature 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_SURVEYTelemetry | Present since v2.1.69 or earlier Documented | Survey prompts |
CLAUDE_CODE_DISABLE_FILE_CHECKPOINTINGFeature toggles | Present since v2.1.69 or earlier Documented | Git-based file checkpointing/backup |
CLAUDE_CODE_DISABLE_FILE_MENTIONSFeature 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_INSTRUCTIONSFeature toggles | Present since v2.1.69 or earlier Documented | — |
CLAUDE_CODE_DISABLE_HELD_MESSAGE_RECOGNITIONFeature toggles | Added in v2.1.315 | — |
CLAUDE_CODE_DISABLE_HOME_SETTINGS_SEEDFeature toggles | Added between v2.1.241 and v2.1.245 | When set, prevents the startup worker from seeding settings into the home .claude config directory. |
CLAUDE_CODE_DISABLE_HOOK_FORWARDINGFeature toggles | Added between v2.1.238 and v2.1.241 | When set, disables forwarding this machine's hooks to cloud and remote sessions. |
CLAUDE_CODE_DISABLE_HTTPS_AGENT_KEEPINGAgents and subagents | Added in v2.1.315 | — |
CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPTShell 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_INFeature toggles | Added in v2.1.307 | When set, the launcher sign-in path reports switched_off and does not offer launcher sign-in. |
CLAUDE_CODE_DISABLE_LAUNCH_COMPOSERFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_DISABLE_LAYOUT_CHECKFeature toggles | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAPModels and thinking | Present since v2.1.69 or earlier Documented | — |
CLAUDE_CODE_DISABLE_LONE_SEC_DEFAULT_SHORTCUTFeature toggles | Added in v2.1.311 | When 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_DROPAuthentication | Added in v2.1.315 | Keeps 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_COUNTMCP | Added between v2.1.324 and v2.1.326 | Setting 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_TASKSMCP | Added between v2.1.315 and v2.1.317 | When 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_BACKGROUNDMCP | 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_INFLATEMemory and CLAUDE.md | Added between v2.1.143 and v2.1.212 | When set, skips the bulk inflate that exports the whole memory store at once, so it is not attempted. |
CLAUDE_CODE_DISABLE_MEMORY_MASS_DELETE_HOLDMemory and CLAUDE.md | Added in v2.1.218 | When 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_RESYNCMemory and CLAUDE.md | Added between v2.1.143 and v2.1.212 | When 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_NOTICEMemory and CLAUDE.md | Added between v2.1.241 and v2.1.245 | Set to skip the scan that warns about unsaved writes in read-only memory mounts; read until v2.1.307. |
CLAUDE_CODE_DISABLE_MEMORY_STREAM_LISTNetwork and proxy | Added between v2.1.143 and v2.1.212 | Turns 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_FALLBACKModels 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_PROMPTFeature 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_MOUSETerminal 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_CLICKSTerminal 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_CONNECTIONNetwork and proxy | Added between v2.1.229 and v2.1.234 Documented | — |
CLAUDE_CODE_DISABLE_NESTED_CHAIN_IDLEFeature toggles | Added between v2.1.143 and v2.1.212 | When set, disables idle tracking for nested blocked prompt chains, so a blocking nested chain is not counted toward idle. |
CLAUDE_CODE_DISABLE_NESTED_SESSION_IDSessions | Added between v2.1.315 and v2.1.317 | Set 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_REPAIRFeature toggles | Added in v2.1.238 | When 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_TRAFFICFeature toggles | Present since v2.1.69 or earlier Documented | Non-critical network requests |
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACKNetwork 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_CHECKFeature toggles | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALLPlugins and skills | Present since v2.1.69 or earlier Documented | Disable automatic plugin installation from marketplace |
CLAUDE_CODE_DISABLE_ORG_MEMORYMemory and CLAUDE.md | Added between v2.1.143 and v2.1.212 | Kill switch. Turns the whole org-memory sync off regardless of the above. |
CLAUDE_CODE_DISABLE_OTEL_EVENT_SKIPTelemetry | Added in v2.1.311 | When 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_HOOKSPermissions and sandbox | Added between v2.1.229 and v2.1.234 Documented | — |
CLAUDE_CODE_DISABLE_PLUGIN_FORWARDINGPlugins and skills | Added between v2.1.238 and v2.1.241 | When set, disables forwarding this machine's enabled plugins to cloud and remote sessions and hides the cloud-plugins setting. |
CLAUDE_CODE_DISABLE_POLICY_SKILLSPlugins 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_LIMITNetwork and proxy | Added in v2.1.314 | — |
CLAUDE_CODE_DISABLE_POWERSHELL_ALIAS_SHADOW_CHECKShell and tools | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENYShell and tools | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_DISABLE_POWERSHELL_LIBRARY_LOAD_GUARDShell and tools | Added in v2.1.332 | Turns 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_SKIPContext and compaction | Present since v2.1.69 or earlier | Disable skipping pre-compaction checks |
CLAUDE_CODE_DISABLE_PROACTIVITYFeature toggles | Added in v2.1.290 | Turns 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_REPAIRNetwork and proxy | Added between v2.1.326 and v2.1.331 Documented | — |
CLAUDE_CODE_DISABLE_QUIET_BACKGROUND_WAITSessions | Added in v2.1.311 | When 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_CHECKFeature toggles | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_DISABLE_REDIRECT_DENY_RECHECKFeature toggles | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_DISABLE_REFUSAL_FALLBACKFeature 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_RETRYNetwork and proxy | Added between v2.1.269 and v2.1.283 | When set, disables the automatic retry of a response that stopped with a refusal. |
CLAUDE_CODE_DISABLE_RESPONSE_COMPARISONFeature toggles | Added in v2.1.314 | — |
CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSIONFeature 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_SKIPSessions | Added in v2.1.319 | Set 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_DROPAuthentication | Added in v2.1.315 | Keeps 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_STARTShell and tools | Added between v2.1.326 and v2.1.331 Documented | — |
CLAUDE_CODE_DISABLE_SHIPFeature toggles | Added between v2.1.326 and v2.1.331 Documented | — |
CLAUDE_CODE_DISABLE_STARTUP_WORK_GATEFeature toggles | Added between v2.1.269 and v2.1.283 | When 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_MESSAGESFeature toggles | Added in v2.1.318 | Set 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_OUTPUTSFeature 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_HANDBACKAgents and subagents | Added between v2.1.315 and v2.1.317 | When 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_PROMPTFeature toggles | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_DISABLE_TERMINAL_TITLETerminal and UI | Present since v2.1.69 or earlier Documented | Stop Claude Code from setting the terminal title |
CLAUDE_CODE_DISABLE_THINKINGModels and thinking | Present since v2.1.69 or earlier Documented | Completely disable extended thinking |
CLAUDE_CODE_DISABLE_TRANSCRIPT_READ_AHEADFeature toggles | Added in v2.1.318 | Set to skip transcript read-ahead; when unset, an SDK-URL session reads the transcript ahead and can abort before continuing. |
CLAUDE_CODE_DISABLE_TURN_HANDOFFFeature toggles | Added between v2.1.269 and v2.1.283 | Set to disable the turn-handoff admission between sessions; read until v2.1.309. |
CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECKFeature 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_ULTRATHINKFeature 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_ENFORCEMENTModels and thinking | Added between v2.1.222 and v2.1.224 Documented | — |
CLAUDE_CODE_DISABLE_VIRTUAL_SCROLLTerminal 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_EMITTERFeature toggles | Added between v2.1.238 and v2.1.241 | Set to disable the guest vitals emitter; when set, the vitals emitter process is not launched. |
CLAUDE_CODE_DISABLE_WEB_FETCHShell 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_LAUNCHERShell and tools | Added between v2.1.266 and v2.1.269 Documented | — |
CLAUDE_CODE_DISABLE_WORKFLOWSAgents and subagents | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_DISABLE_WORKING_SYNCFeature toggles | Added between v2.1.143 and v2.1.212 | Set to stop the synced file syncer from starting in remote sessions; read until v2.1.310. |
CLAUDE_CODE_DISABLE_WORKING_SYNC_WATCHFeature toggles | Added in v2.1.311 | On Linux, set to disable the working-sync file watcher; without it the watcher is used. |
CLAUDE_CODE_DISPATCH_V2DOther | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_CODE_DISPATCH_V2SOther | Added in v2.1.219 | — |
CLAUDE_CODE_DONT_INHERIT_ENVOther | Present since v2.1.69 or earlier | Start shell with empty environment |
CLAUDE_CODE_DOWNLOAD_DEADLINE_MS_FOR_TESTINGOther | Added between v2.1.143 and v2.1.212 | Set the download deadline in milliseconds; defaulted to 600000. Read until v2.1.309. |
CLAUDE_CODE_DROP_UNAVAILABLE_DEFERRED_TOOLShell 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_FLUSHOther | Present since v2.1.69 or earlier | Eagerly flush output buffers |
CLAUDE_CODE_EDITOR_CODELIVERYOther | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_CODE_EFFORT_LEVELModels 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_MEADOWOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_ELEGANT_MISTOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_EMIT_SESSION_STATE_EVENTSSessions | 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_TIMINGOther | Added between v2.1.269 and v2.1.283 | When set, emits startup timing phase metrics, which are also emitted in remote mode; otherwise they are not reported. |
CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIESShell and tools | Present since v2.1.69 or earlier | Emit tool use summary events |
CLAUDE_CODE_EMIT_USER_PROMPT_SUBMIT_HOOK_EVENTSOther | Added in v2.1.311 | When 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_PROMPTAgents and subagents | Added between v2.1.108 and v2.1.114 | Authorizes 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_MODEPermissions 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_SUMMARYFeature 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_REFRESHPlugins 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_CFCFeature toggles | Present since v2.1.69 or earlier Documented | Enable Claude for Chrome browser automation |
CLAUDE_CODE_ENABLE_CONFIG_MISSING_READ_GUARDFeature toggles | Removed in v2.1.318 | When 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_SYNCFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOLShell and tools | Added between v2.1.108 and v2.1.114 | Enables 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_OTELTelemetry | 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_STREAMINGNetwork and proxy | Present since v2.1.69 or earlier Documented | Enable fine-grained (eager) input streaming for tools |
CLAUDE_CODE_ENABLE_FUNCTION_HOOKSFeature toggles | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERYModels 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_COMPOSERFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_ENABLE_MENU_KIND_LANESFeature toggles | Added between v2.1.143 and v2.1.212 | When set, groups slash-command menu entries into kind lanes, overriding the default gate. |
CLAUDE_CODE_ENABLE_MORNING_BRIEFFeature toggles | Removed between v2.1.212 and v2.1.215 | Set to enable the morning brief in cowork or remote sessions; read until v2.1.212. |
CLAUDE_CODE_ENABLE_NARRATIONFeature toggles | Removed in v2.1.284 | Set 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_MODEModels and thinking | Added between v2.1.128 and v2.1.138 Documented | — |
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTIONFeature 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_HELPERAuthentication | Added between v2.1.108 and v2.1.114 | Set 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_TOOLSMCP | Added between v2.1.143 and v2.1.212 | Enables 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_RECAPSessions | Added between v2.1.143 and v2.1.212 | When set, enables the remote recap at turn end, overriding the default gate; when off, the recap does not start. |
CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTINGFeature toggles | Present since v2.1.69 or earlier | Enable file checkpointing in SDK mode |
CLAUDE_CODE_ENABLE_SHARE_BUNDLEFeature toggles | Added in v2.1.299 Documented | — |
CLAUDE_CODE_ENABLE_TASKSFeature toggles | Present since v2.1.69 or earlier Documented | Enable the task system |
CLAUDE_CODE_ENABLE_TELEMETRYTelemetry | Present since v2.1.69 or earlier Documented | Enable telemetry collection |
CLAUDE_CODE_ENABLE_TODO_TOOLSShell 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_ATTACHMENTAuthentication | Present since v2.1.69 or earlier | Attach token usage info to messages |
CLAUDE_CODE_ENABLE_WRAP_UPFeature toggles | Added between v2.1.315 and v2.1.317 | Enables 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_XAAFeature toggles | Added between v2.1.79 and v2.1.83 | Enables 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_BETATelemetry | Present since v2.1.69 or earlier | Enable enhanced telemetry (beta) |
CLAUDE_CODE_ENTRYPOINTOther | Present since v2.1.69 or earlier | Application entry point; auto-set based on context (e.g. cli, vscode, sdk-py) [7] |
CLAUDE_CODE_ENTRYPOINT_ON_REQUESTSOther | Added in v2.1.305 | Sets 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_KINDOther | Present since v2.1.69 or earlier | Environment: byoc, anthropic_cloud, bridge |
CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSIONOther | Added between v2.1.143 and v2.1.212 | Environment runner version |
CLAUDE_CODE_EVAL_ALLOW_ARTIFACT_PUBLISHOther | Added between v2.1.229 and v2.1.234 | Set 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_OVERRIDESTerminal and UI | Added between v2.1.229 and v2.1.234 | Comma-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_DIROther | Added between v2.1.229 and v2.1.234 | — |
CLAUDE_CODE_EVAL_CONFINEDOther | Added between v2.1.247 and v2.1.252 | Set 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_SESSIONSessions | Added between v2.1.229 and v2.1.234 | When set, marks an eval interview session and suppresses the default auto-publishing of the eval report. |
CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONSPermissions 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_EXECPATHOther | Added in v2.1.92 | Overrides 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_RENDEROther | Present since v2.1.69 or earlier | Exit after first UI render (testing) |
CLAUDE_CODE_EXIT_AFTER_STOP_DELAYOther | Present since v2.1.69 or earlier Documented | Delay before exit after stop signal (ms) |
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSAgents 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_MODEOther | 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_RESTARTOther | Added in v2.1.318 | Signals 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_FROMOther | Added in v2.1.318 | Records the prior state the experimental code mode was restarted from; it is read into the restart tracking and then cleared. |
CLAUDE_CODE_EXPERIMENTAL_OBSERVER_AGENTSAgents and subagents | Added between v2.1.143 and v2.1.212 | Agents 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_BODYOther | Present since v2.1.69 or earlier Documented | Additional JSON merged into API request bodies |
CLAUDE_CODE_EXTRA_METADATAOther | Added between v2.1.77 and v2.1.79 | Passes 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_MSNetwork and proxy | Removed between v2.1.234 and v2.1.237 | Set 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_INITOther | Added between v2.1.321 and v2.1.323 | — |
CLAUDE_CODE_FEATURE_FLAGS_KICK_ON_WARM_CACHEOther | Added between v2.1.321 and v2.1.323 | — |
CLAUDE_CODE_FEATURE_FLAGS_REFRESH_INTERVAL_MSOther | Added between v2.1.321 and v2.1.323 | — |
CLAUDE_CODE_FEDERATION_CACHE_DIROther | Added between v2.1.241 and v2.1.245 | Points 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_CONFIGURATIONOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENSContext and compaction | Present since v2.1.69 or earlier Documented | Max tokens for file read output |
CLAUDE_CODE_FILE_READ_MAX_PDF_PAGES_PER_MESSAGEOther | Added in v2.1.300 | Caps 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_TURNOther | Added in v2.1.300 | Caps 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_TITLESModels and thinking | Added between v2.1.324 and v2.1.326 | Set 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_GROVEOther | Added between v2.1.315 and v2.1.317 | When 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_MSOther | Added between v2.1.266 and v2.1.269 | Milliseconds to wait for the feature-flag fetch to return before giving up; defaults to 3000. |
CLAUDE_CODE_FLEETVIEW_SIMPLEOther | Added between v2.1.215 and v2.1.217 | Forces the simplified FleetView layout, the multi-agent monitoring surface. First shipped v2.1.216; undocumented. |
CLAUDE_CODE_FLEET_PAST_SESSIONSSessions | Added between v2.1.143 and v2.1.212 | Set to true to show past sessions in fleet view; otherwise a server flag decides, defaulting to off. |
CLAUDE_CODE_FOOTER_INDICATOROther | Added between v2.1.269 and v2.1.283 | Sets custom text shown in the status footer indicator; control characters are stripped and the text is trimmed. |
CLAUDE_CODE_FORCE_BRIDGESessions | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_FORCE_EVALUATE_MEMORYMemory and CLAUDE.md | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_FORCE_FIRST_LAUNCHFeature toggles | Added between v2.1.245 and v2.1.247 | Forces the first-launch flow; the value is used as a pretend last-seen marker so first-run behavior replays. |
CLAUDE_CODE_FORCE_FULLSCREEN_UPSELLTerminal and UI | Added between v2.1.108 and v2.1.114 | Forces the fullscreen TUI upsell prompt past the normal fullscreenUpsellSeenCount cap and the tengu_ochre_hollow gate. Internal test/demo affordance. |
CLAUDE_CODE_FORCE_FULL_LOGODebugging | Removed between v2.1.245 and v2.1.247 | Force full ASCII logo display on startup |
CLAUDE_CODE_FORCE_GLOBAL_CACHEShell and tools | Removed between v2.1.87 and v2.1.88 | Previously forced use of a global cache directory. Likely superseded by improved cache management that no longer needs a manual override. |
CLAUDE_CODE_FORCE_MEMORY_SURVEYMemory and CLAUDE.md | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_FORCE_MID_CONVERSATION_SYSTEMFeature toggles | Added between v2.1.143 and v2.1.212 | Set to force mid-conversation system messages on, overriding the per-model and server-flag decision. |
CLAUDE_CODE_FORCE_RC_LONG_TURN_NUDGEFeature toggles | Added between v2.1.143 and v2.1.212 | Set 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_SANDBOXPermissions and sandbox | Removed in v2.1.300 | — |
CLAUDE_CODE_FORCE_SESSION_PERSISTENCESessions | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_FORCE_STRIKETHROUGHFeature toggles | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_FORCE_SYNC_OUTPUTFeature 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_IMAGESTerminal and UI | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_FORCE_TIP_IDFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_FORCE_WINDOWS_CREDMANFeature toggles | Added between v2.1.143 and v2.1.212 | Forces credential storage through the Windows Credential Manager. A FORCE_ override in the credential-backend family next to… |
CLAUDE_CODE_FORK_SUBAGENTAgents 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_TEXTAgents 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_INTENTOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_FOUND_REPOSITORY_GITOther | Added in v2.1.307 | — |
CLAUDE_CODE_FRAME_TIMING_LOGDebugging | Added between v2.1.77 and v2.1.79 | Enable 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_EVERYOther | Added between v2.1.143 and v2.1.212 | When 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_LINKOther | 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_HEADERSOther | 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_MSNetwork 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_TOKENAuthentication | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_GATEWAY_TOKEN_FILE_DESCRIPTORAuthentication | Added between v2.1.252 and v2.1.266 | Gives 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_KESTRELOther | Removed between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_GB_BASE_URLNetwork and proxy | Present since v2.1.69 or earlier | An 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_OFFTelemetry | Added between v2.1.143 and v2.1.212 | Opts 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_MSOther | Removed between v2.1.321 and v2.1.323 | — |
CLAUDE_CODE_GENTLE_PARASOLOther | Added between v2.1.247 and v2.1.252 | — |
CLAUDE_CODE_GIT_BASH_PATHShell and tools | Present since v2.1.69 or earlier Documented | Git Bash executable path (Windows) |
CLAUDE_CODE_GIT_CHECK_ONLY_IN_REPOSITORYOther | Added in v2.1.321 | When set, marks that git checks run only inside a repository, after which the count of checks skipped outside one becomes available. |
CLAUDE_CODE_GLOB_HIDDENShell and tools | Present since v2.1.69 or earlier Documented | Include hidden files in globs |
CLAUDE_CODE_GLOB_NO_IGNOREShell and tools | Present since v2.1.69 or earlier Documented | Ignore .gitignore rules in globs |
CLAUDE_CODE_GLOB_TIMEOUT_SECONDSNetwork and proxy | Present since v2.1.69 or earlier Documented | Timeout for glob operations; default 20s (WSL: 60s) |
CLAUDE_CODE_GOAL_CHECKIN_MINUTESOther | 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_PLOVEROther | Added in v2.1.218 | Enabled 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_INITOther | Added in v2.1.287 | When set, starts the GrowthBook feature-flag fetch during initialization. |
CLAUDE_CODE_GROWTHBOOK_KICK_ON_WARM_CACHEOther | Added in v2.1.288 | When set, triggers an early GrowthBook feature-flag fetch even when the cache is already warm. |
CLAUDE_CODE_GZIP_CCR_REQUEST_BODIESNetwork and proxy | Added between v2.1.245 and v2.1.247 | Controls whether request bodies sent by the ccr worker are gzip-compressed. |
CLAUDE_CODE_GZIP_DATADOG_LOGSTelemetry | Added in v2.1.288 | Controls 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_BODIESNetwork and proxy | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_GZIP_REQUEST_BODY_BLOCKSNetwork and proxy | Added in v2.1.287 | Selects 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_LEVELNetwork and proxy | Added between v2.1.269 and v2.1.283 | Sets the gzip compression level for request bodies as an integer from 1 to 9; values outside that range disable compression. |
CLAUDE_CODE_HANDBACK_PROVENANCEOther | Added between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_HARBOR_KITEOther | Added between v2.1.222 and v2.1.224 | Set to a boolean to enable or disable cross-session messaging, overriding the platform and server-flag defaults. |
CLAUDE_CODE_HARBOR_KITE_CLOUDOther | Added between v2.1.229 and v2.1.234 | Set 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_OFFOther | Added between v2.1.234 and v2.1.237 | Turns off outbound request pacing when set; pacing is on by default. |
CLAUDE_CODE_HARMONIC_RIDDLEOther | Added in v2.1.290 | Sets 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_TALLOWOther | Removed in v2.1.229 | — |
CLAUDE_CODE_HFI_BEARER_TOKENAuthentication | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_HIDE_CWDTerminal 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_NAMETerminal and UI | Added in v2.1.300 | When 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_HINTTerminal and UI | Added between v2.1.143 and v2.1.212 | Hides 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_INITOther | Added between v2.1.238 and v2.1.241 | Reported 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_PERMISSIONPermissions and sandbox | Removed between v2.1.269 and v2.1.283 | Held 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_MSNetwork and proxy | Added between v2.1.238 and v2.1.241 | Maximum 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_MSNetwork and proxy | Added between v2.1.238 and v2.1.241 | Maximum 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_THREADOther | Added between v2.1.241 and v2.1.245 | Runs plugin hooks on the same thread instead of in a worker when set; the default is worker. |
CLAUDE_CODE_HOOK_HEARTBEAT_INTERVAL_MSOther | Added between v2.1.321 and v2.1.323 | Interval 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_DESKTOPOther | Added in v2.1.290 | — |
CLAUDE_CODE_HOST_ALLOW_RESETS_DENIAL_STREAKOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_HOST_ARTIFACT_TYPE_COMMANDSOther | Added between v2.1.321 and v2.1.323 | Names 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_STARTAuthentication | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_HOST_AUTH_ENV_VARAuthentication | Added between v2.1.143 and v2.1.212 | Names 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_MSAuthentication | Added between v2.1.143 and v2.1.212 | Timeout in milliseconds for the host authentication token refresh request. |
CLAUDE_CODE_HOST_CHECKED_FOLDEROther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_HOST_CREDS_FILEOther | Added between v2.1.143 and v2.1.212 | Path 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_LINEAGEOther | Added between v2.1.269 and v2.1.283 | Marked 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_MCPMCP | Added in v2.1.312 | On 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_PORTNetwork and proxy | Present since v2.1.69 or earlier | HTTP proxy port for host |
CLAUDE_CODE_HOST_HYBRID_ORGANIZATION_UUIDOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_HOST_OWNED_CONFIG_DIROther | Added in v2.1.321 | Names 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_ENVOther | Added between v2.1.324 and v2.1.326 | When 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_PLATFORMOther | Present since v2.1.69 or earlier | Override platform detection: win32, darwin, linux |
CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORDOther | Added in v2.1.285 | — |
CLAUDE_CODE_HOST_READS_NO_BASH_EDIT_DIFFShell and tools | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_HOST_SCHEDULED_RUNOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_HOST_SESSION_IDSessions | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_HOST_SHORT_SCRATCHPADOther | Added in v2.1.332 | — |
CLAUDE_CODE_HOST_SHORT_TEMP_DIRSOther | Added between v2.1.315 and v2.1.317 | Controls 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_NOTICENetwork and proxy | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_HOST_SKILL_CATALOGPlugins and skills | Added in v2.1.292 | A 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_PORTNetwork and proxy | Present since v2.1.69 or earlier | SOCKS proxy port for host |
CLAUDE_CODE_HOST_STARTED_AHEADOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_HOST_WORKTREEOther | Added in v2.1.288 | Declares the git worktree the host is operating in; the path is validated against the current working directory. |
CLAUDE_CODE_HOST_WORKTREE_FENCEOther | Added in v2.1.288 | Declares the boundary (fence) path for the host worktree; it is validated so it does not extend wider than the declared worktree. |
CLAUDE_CODE_HOVER_RESTOther | Added in v2.1.238 | Pins the v5 storage backend from the environment at startup when its value resolves to pinned. |
CLAUDE_CODE_HTTPS_PROXYNetwork and proxy | Added between v2.1.114 and v2.1.117 | Claude-namespaced HTTPS proxy URL. See CLAUDE_CODE_HTTP_PROXY above. |
CLAUDE_CODE_HTTP_PROXYNetwork and proxy | Added between v2.1.114 and v2.1.117 | Claude-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_HAMMOCKOther | Added between v2.1.252 and v2.1.266 | Forces whether tool-use inputs are echoed back over the wire, overriding the server default. |
CLAUDE_CODE_IDE_HOST_OVERRIDETerminal and UI | Present since v2.1.69 or earlier Documented | Custom host address for IDE communication |
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALLTerminal and UI | Present since v2.1.69 or earlier Documented | Skip automatic IDE extension install |
CLAUDE_CODE_IDE_SKIP_VALID_CHECKTerminal and UI | Present since v2.1.69 or earlier Documented | Bypass IDE extension validation checks |
CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENSContext 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_MINUTESOther | Added in v2.1.84 | Sets 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_THRESHOLDAuthentication | Added in v2.1.84 | Works 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_TRUSTOther | Added in v2.1.307 | When 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_MESSAGESOther | Present since v2.1.69 or earlier | Include partial/streaming messages in output |
CLAUDE_CODE_INCREMENTAL_REQUEST_BODYOther | Added in v2.1.311 | Enables 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_SALAMANDEROther | Added in v2.1.332 | — |
CLAUDE_CODE_INLINE_TOOLSShell and tools | Added between v2.1.269 and v2.1.283 | Enables inline tools; set it to false to turn them off, otherwise when unset the feature follows the server flag. |
CLAUDE_CODE_INSTALLED_VIA_NPM_WRAPPEROther | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_INTRO_FRAMEOther | Removed in v2.1.295 | Armed the intro frame when set to a truthy value, overriding the server flag; read until v2.1.294. |
CLAUDE_CODE_INVESTIGATE_FIRSTOther | Removed between v2.1.222 and v2.1.224 | Instructs 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_SKILLSPlugins and skills | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_IS_COWORKOther | Present since v2.1.69 or earlier | Indicates running in cowork (multi-agent) mode |
CLAUDE_CODE_I_ACCEPT_CROSS_ORG_DATA_RISKOther | Added in v2.1.319 | — |
CLAUDE_CODE_JIT_POLICY_AFTER_STARTUPOther | Added in v2.1.299 | Sets the Bun JIT policy applied shortly after startup; the number is passed to the runtime and defaults to 1. |
CLAUDE_CODE_JSONL_TRANSCRIPTOther | Removed between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_JUNIPER_SUNDIALOther | Added in v2.1.218 | Sets the number of turns between maintenance passes; defaults to 10 when unset. |
CLAUDE_CODE_KB_COHESION_FIXESOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_LANTERN_PRISMOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_LARCH_CISTERNOther | Added between v2.1.215 and v2.1.217 | — |
CLAUDE_CODE_LAUNCHED_BY_SESSION_IDSSessions | Added between v2.1.324 and v2.1.326 | A 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_HELPERAuthentication | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_LAZY_ENV_GETTERSOther | Removed between v2.1.315 and v2.1.317 | — |
CLAUDE_CODE_LAZY_WORKTREEOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_LEGACY_BUNDLEOther | Added between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_LINKED_SPINDLEOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_LOOP_KEEPALIVEOther | 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_PERSISTENTOther | Added between v2.1.128 and v2.1.138 | Persist 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_WHISTLEOther | Removed between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_MAIN_REPLY_HOLD_MSOther | Added in v2.1.318 | Number 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_PREFETCHOther | Added in v2.1.292 | Turns 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_PATHOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_MARKETPLACE_NAMEPlugins and skills | Added in v2.1.238 | — |
CLAUDE_CODE_MARKETPLACE_URLNetwork and proxy | Added in v2.1.238 | Set 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_CORMORANTOther | Removed between v2.1.222 and v2.1.224 | — |
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTSAgents 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_TOKENSContext 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_REMINDERModels and thinking | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTHMCP | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_MAX_OUTPUT_TOKENSContext and compaction | Present since v2.1.69 or earlier Documented | Maximum output tokens; validated per-model |
CLAUDE_CODE_MAX_RETRIESNetwork and proxy | Present since v2.1.69 or earlier Documented | Maximum API request retries |
CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSIONAgents 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_DEPTHAgents 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_CONCURRENCYShell and tools | Present since v2.1.69 or earlier | Max concurrent tool executions; default 10 |
CLAUDE_CODE_MAX_TURNSOther | 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_SESSIONShell 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_ENVMCP | 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_INPUTMCP | Added in v2.1.299 | — |
CLAUDE_CODE_MCP_APPS_HOSTMCP | Added between v2.1.269 and v2.1.283 | Set 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_ROUTEMCP | Added in v2.1.324 | When 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_MSMCP | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MSNetwork and proxy | Added between v2.1.269 and v2.1.283 | Milliseconds 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_LISTINGSMCP | Removed in v2.1.312 | Set to "0" to disable MCP handed listings so none are passed through; any other value keeps them enabled. |
CLAUDE_CODE_MCP_INSTR_DELTAMCP | Removed in v2.1.91 | Delta/incremental MCP instruction updates. Instead of sending full MCP server instructions every turn, this likely enables sending only changes — reducing… |
CLAUDE_CODE_MCP_MEMORY_CGROUPMCP | Added between v2.1.238 and v2.1.241 | When 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_REFUSALMCP | Added in v2.1.315 | After 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_SERVERSMCP | Added in v2.1.286 | — |
CLAUDE_CODE_MCP_PREWAIT_SERVERS_MSMCP | Added in v2.1.286 | — |
CLAUDE_CODE_MCP_PREWAIT_SERVERS_MS_BY_NAMEMCP | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_MCP_REGISTRY_FETCH_AT_STARTUPMCP | Added in v2.1.311 | Forces 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_NAMEMCP | Added in v2.1.85 | Added 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_URLNetwork and proxy | Added in v2.1.85 | The 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_TOKENAuthentication | Added between v2.1.252 and v2.1.266 | Set 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_PLUGINSMCP | Added in v2.1.304 | Lists 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_COLLECTIONSMCP | Added in v2.1.321 | Controls 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_VERSIONMCP | Added in v2.1.299 | Sets 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_PLUGINSMCP | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_MCP_SERVE_MEMORY_WALKS_DEADLINE_MSMCP | Removed in v2.1.332 | Deadline in milliseconds for memory walks while serving an MCP tool; defaults to 2000. |
CLAUDE_CODE_MCP_SERVE_SETTINGSMCP | Added in v2.1.285 | Provides 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_OUTPUTMCP | Added in v2.1.287 | When true, enables the experimental MCP serve tool-output path, which validates and attaches tool deny rules; off otherwise. |
CLAUDE_CODE_MCP_SERVE_TUNNEL_BINARY_FRAMESMCP | Added in v2.1.318 | — |
CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOTMCP | Added between v2.1.301 and v2.1.303 | Used 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_RELISTMCP | Added in v2.1.315 | — |
CLAUDE_CODE_MCP_STARTUP_WAIT_MSMCP | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUTNetwork and proxy | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_MEMORY_API_BASE_URLNetwork and proxy | Added between v2.1.224 and v2.1.227 | Base 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_TOKENAuthentication | Added between v2.1.224 and v2.1.227 | Bearer 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_WAITContext and compaction | Added in v2.1.314 | — |
CLAUDE_CODE_MEMORY_PUSH_DELETE_MODEMemory and CLAUDE.md | Added between v2.1.143 and v2.1.212 | Controls 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_APPENDAgents and subagents | Added between v2.1.269 and v2.1.283 | When 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_TTLOther | Added in v2.1.300 | Set 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_SOCKETOther | 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_TOKENAuthentication | 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_SYSTEMOther | Removed between v2.1.143 and v2.1.212 | Inject 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_SETTINGSSessions | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_MOCK_TRIALOther | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_MODEL_CAPABILITIESModels and thinking | Added between v2.1.266 and v2.1.269 | Overrides 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_CATALOGModels and thinking | Added between v2.1.247 and v2.1.252 | Forces 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_URLNetwork and proxy | Added between v2.1.252 and v2.1.266 | Sets 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_CHOSEModels and thinking | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_MORNING_BRIEF_PROMPTOther | Removed between v2.1.212 and v2.1.215 | Set 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_KESTRELOther | Added between v2.1.143 and v2.1.212 | Windows-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_BUNDLEOther | Added in v2.1.319 | — |
CLAUDE_CODE_NATIVE_CURSORTerminal 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_INITOther | 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_RENDEREROther | Added between v2.1.324 and v2.1.326 | Sets whether the new renderer is enabled; when it is unset, the default comes from a server-side setting. |
CLAUDE_CODE_NONBLOCKING_STDOUTOther | Added between v2.1.252 and v2.1.266 Documented | — |
CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIESNetwork 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_CACHEOther | Added in v2.1.319 | Set 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_VERIFYOther | Added in v2.1.319 | — |
CLAUDE_CODE_NOTIFICATIONS_HOSTOther | Added in v2.1.321 | — |
CLAUDE_CODE_NO_FLICKERTerminal 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_FALLBACKModels and thinking | Added between v2.1.212 and v2.1.215 | When 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_MSAuthentication | Added between v2.1.143 and v2.1.212 | Sets 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_IDAuthentication | Present since v2.1.69 or earlier | Custom OAuth client ID |
CLAUDE_CODE_OAUTH_REFRESH_TOKENAuthentication | Present since v2.1.69 or earlier Documented | OAuth refresh token |
CLAUDE_CODE_OAUTH_SCOPESAuthentication | Present since v2.1.69 or earlier Documented | OAuth scopes for refresh token |
CLAUDE_CODE_OAUTH_TOKENAuthentication | Present since v2.1.69 or earlier Documented | Pre-configured OAuth access token |
CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTORAuthentication | Present since v2.1.69 or earlier | File descriptor to read OAuth token from |
CLAUDE_CODE_OFF_PERSONS_MACHINEOther | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDEModels 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_UUIDOther | Present since v2.1.69 or earlier | Organization UUID |
CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTHTelemetry | 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_STDERRTelemetry | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MSTelemetry | Present since v2.1.69 or earlier Documented | OpenTelemetry flush timeout; default 5000ms |
CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MSTelemetry | Present since v2.1.69 or earlier Documented | Debounce for OTEL headers helper |
CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MSTelemetry | Present since v2.1.69 or earlier Documented | OpenTelemetry shutdown timeout; default 2000ms |
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MSNetwork 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_MSNetwork 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_MSNetwork and proxy | Added between v2.1.321 and v2.1.323 | Maximum 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_DATETerminal and UI | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_OWNERSHIP_FRAMEOther | Removed between v2.1.215 and v2.1.217 | — |
CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATEOther | 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_FERNOther | Removed in v2.1.285 | — |
CLAUDE_CODE_PARKED_PERMISSION_WAIT_MSPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Sets how long in milliseconds to wait for a parked permission prompt's answer; defaults to 2000. |
CLAUDE_CODE_PARKED_RUN_BEFORE_CLEAROther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_PARKED_STOP_RETIRESOther | Added between v2.1.238 and v2.1.241 | — |
CLAUDE_CODE_PARSED_WILLOWOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_PEPPY_STARLIGHTOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_PERFETTO_TRACETelemetry | Present since v2.1.69 or earlier | Enable Perfetto trace output to file path (server-gated) |
CLAUDE_CODE_PERFETTO_WRITE_INTERVAL_STelemetry | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_PERFORCE_MODEOther | 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_FIXOther | Added in v2.1.304 | — |
CLAUDE_CODE_PERSONAL_HOOKS_OFFOther | Added between v2.1.315 and v2.1.317 | Turns 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_TIMINGOther | Added between v2.1.269 and v2.1.283 | When set, enables per-turn timing for models that support it; without it the feature stays off. |
CLAUDE_CODE_PEWTER_OWLOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_PEWTER_OWL_TOOLShell and tools | Added between v2.1.143 and v2.1.212 | When 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_WRITEOther | Added between v2.1.315 and v2.1.317 | Takes 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_PATHOther | Added in v2.1.311 | When 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_SOURCEOther | Added between v2.1.315 and v2.1.317 | When 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_ARTIFACTSOther | Removed in v2.1.238 | — |
CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASEOther | Removed between v2.1.143 and v2.1.212 | Enable interview phase in plan mode |
CLAUDE_CODE_PLAN_MODE_REQUIREDOther | Present since v2.1.69 or earlier | Require agents to use plan mode for all tasks |
CLAUDE_CODE_PLAN_V2_AGENT_COUNTAgents and subagents | Present since v2.1.69 or earlier | Number of agents in Plan v2 mode (1–10) |
CLAUDE_CODE_PLAN_V2_EXPLORE_AGENT_COUNTAgents and subagents | Present since v2.1.69 or earlier | Exploration agents in Plan v2 (1–10) |
CLAUDE_CODE_PLUGIN_ARCHIVE_URLNetwork and proxy | Added in v2.1.238 | Set 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_ATTRIBUTIONPlugins and skills | Added between v2.1.245 and v2.1.247 | Provides 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_ASSETSPlugins and skills | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_PLUGIN_CACHE_DIRPlugins and skills | Present since v2.1.69 or earlier Documented | Local cache directory for downloaded plugins |
CLAUDE_CODE_PLUGIN_DIRSPlugins and skills | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_PLUGIN_DIR_WATCHPlugins and skills | Added between v2.1.252 and v2.1.266 Documented | — |
CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MSNetwork and proxy | Present since v2.1.69 or earlier Documented | Git clone timeout for plugin installation |
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILUREPlugins 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_DIRMCP | Added in v2.1.324 | Sets 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_NAMEPlugins and skills | Added in v2.1.238 | — |
CLAUDE_CODE_PLUGIN_PREFER_HTTPSPlugins 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_HINTMCP | Added between v2.1.321 and v2.1.323 | A comma-separated list of host patterns, with wildcards like *. allowed, naming the reachable hosts for remote plugin MCP servers. |
CLAUDE_CODE_PLUGIN_SEED_DIRPlugins and skills | Present since v2.1.69 or earlier Documented | Seed directory for pre-installed plugins |
CLAUDE_CODE_PLUGIN_USE_ZIP_CACHEPlugins and skills | Present since v2.1.69 or earlier | Use zip-based caching instead of git |
CLAUDE_CODE_POLICY_HELPER_PS1_PATHOther | Added between v2.1.229 and v2.1.234 | — |
CLAUDE_CODE_POLICY_HELPER_PSMODULEPATHOther | Added between v2.1.229 and v2.1.234 | — |
CLAUDE_CODE_POLISHED_DEWDROPOther | Added between v2.1.252 and v2.1.266 | Sets 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_EVENTSOther | Added between v2.1.234 and v2.1.237 | — |
CLAUDE_CODE_POLL_EVENT_DECLARATIONSOther | Added in v2.1.287 | — |
CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2Sessions | Removed between v2.1.219 and v2.1.221 | Use POST-based session ingress v2 |
CLAUDE_CODE_POST_TURN_MEMORYMemory and CLAUDE.md | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_POST_TURN_MEMORY_CONFIGMemory and CLAUDE.md | Added between v2.1.266 and v2.1.269 | Holds 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_SYNCMemory and CLAUDE.md | Added between v2.1.266 and v2.1.269 | When 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_POLICYShell 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_ONBOARDINGOther | Added between v2.1.143 and v2.1.212 | Forces 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_MSSessions | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_PRINT_ENGINE_LOOPOther | Removed between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_PROACTIVEOther | Added in v2.1.128 | — |
CLAUDE_CODE_PROCESS_WRAPPEROther | 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_QUERYDebugging | Added between v2.1.143 and v2.1.212 | Likely merged into general profiling |
CLAUDE_CODE_PROFILE_STARTUPDebugging | Present since v2.1.69 or earlier | Enable startup profiling; set to 1 |
CLAUDE_CODE_PROGRAM_USE_CASE_IDOther | Added between v2.1.315 and v2.1.317 | Sets 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_STAMPEDOther | Added in v2.1.318 | Selects 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_FLAGSOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_PROJECTS_SESSIONSessions | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_PROJECT_DIR_NAMEOther | 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_MSNetwork and proxy | Added between v2.1.321 and v2.1.323 | Timeout in milliseconds for the project document hash lookup; on expiry the lookup is aborted. Defaults to a built-in value. |
CLAUDE_CODE_PROMPT_CACHE_TTLOther | 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_TRACEPARENTOther | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOSTTerminal 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_AUTHENTICATEAuthentication | Added between v2.1.108 and v2.1.114 | Carries 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_MSAuthentication | Added between v2.1.108 and v2.1.114 | Cache TTL for helper-returned credentials. Parsed as integer milliseconds; zero or negative falls back to default. |
CLAUDE_CODE_PROXY_HOSTNetwork and proxy | Added between v2.1.108 and v2.1.114 | Proxy hostname, passed alongside the URL so helpers that route credentials by hostname don't need to re-parse. |
CLAUDE_CODE_PROXY_RESOLVES_HOSTSNetwork and proxy | Present since v2.1.69 or earlier Documented | Proxy handles DNS resolution (skip local DNS) |
CLAUDE_CODE_PROXY_URLNetwork and proxy | Added between v2.1.108 and v2.1.114 | Full 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_MSNetwork and proxy | Added in v2.1.85 | Sets 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_EXTENDEDOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_QUESTION_OPTIONAL_DESCRIPTIONSOther | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_QUESTION_PREVIEW_FORMATOther | Present since v2.1.69 or earlier | Format for permission question previews |
CLAUDE_CODE_QUEUED_NOTIFICATIONS_BY_POLLOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_RATE_LIMIT_TIEROther | Added between v2.1.114 and v2.1.117 | Rate-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_NUDGEPermissions and sandbox | Added between v2.1.143 and v2.1.212 | Overrides 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_ALLOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_RELAUNCH_BYPASS_SWITCHOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_RELAUNCH_HOME_TRUSTOther | Added in v2.1.284 | Carries 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_BASELINEOther | Added in v2.1.290 | Passes 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_DECIDEDTerminal and UI | Added in v2.1.290 | — |
CLAUDE_CODE_RELAUNCH_PROACTIVITY_EVER_ONOther | Added in v2.1.290 | — |
CLAUDE_CODE_RELAUNCH_PROACTIVITY_LEVELOther | Added in v2.1.290 | — |
CLAUDE_CODE_RELAUNCH_RESUME_HINT_FLAGSSessions | Added between v2.1.315 and v2.1.317 | Holds 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_HOLDPermissions and sandbox | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_RELAUNCH_SEAT_LAUNCHOther | Added in v2.1.332 | — |
CLAUDE_CODE_RELAUNCH_TERMINAL_SIZETerminal and UI | Added between v2.1.143 and v2.1.212 | Restores 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_REMOTESessions | Present since v2.1.69 or earlier Documented | Indicates running in remote/server mode |
CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPESessions | Present since v2.1.69 or earlier | Remote environment type sent in telemetry |
CLAUDE_CODE_REMOTE_HERMETIC_MODESessions | Added between v2.1.143 and v2.1.212 | When combined with remote mode, runs in hermetic mode, which skips reading the enabled-plugins configuration and loads no named plugins. |
CLAUDE_CODE_REMOTE_MCP_CONFIGMCP | Added in v2.1.299 | Path 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_DIRMemory and CLAUDE.md | Present since v2.1.69 or earlier | Memory directory for remote sessions |
CLAUDE_CODE_REMOTE_RAW_EVENTS_FILESessions | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_REMOTE_SDK_URLNetwork and proxy | Added in v2.1.290 | Holds the URL of the remote SDK endpoint; when set and valid, it becomes the SDK connection URL. |
CLAUDE_CODE_REMOTE_SEND_KEEPALIVESSessions | Present since v2.1.69 or earlier | Send keepalive pings in remote mode |
CLAUDE_CODE_REMOTE_SESSION_IDSessions | Present since v2.1.69 or earlier Documented | Remote session identifier |
CLAUDE_CODE_REMOTE_SESSION_ORIGINSessions | Added between v2.1.215 and v2.1.217 | Provenance tag for cloud/remote sessions, checked against the value "review". First shipped v2.1.217; undocumented. |
CLAUDE_CODE_REMOTE_SESSION_UUIDSessions | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_CODE_REMOTE_SETTINGS_PATHSessions | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_REMOTE_SETTINGS_POLL_MSSessions | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_REMOTE_STALL_CHECK_INTERVAL_MSSessions | Added between v2.1.315 and v2.1.317 | In 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_MCPMCP | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_REMOTE_TOOLS_ASK_SEATSShell and tools | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_REMOTE_TOOLS_CALLER_SESSIONS_MAXShell and tools | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_REMOTE_TOOLS_DESKTOP_APP_HOSTShell and tools | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_REMOTE_TOOLS_FORWARDShell and tools | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_REMOTE_TOOLS_HOST_ALLOWS_UNATTENDEDShell and tools | Added in v2.1.290 | — |
CLAUDE_CODE_REMOTE_TOOLS_HOST_IDLE_RELEASE_MINUTESShell and tools | Added in v2.1.312 | Minutes 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_QUEUEShell and tools | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_REMOTE_TOOLS_PIN_STORED_LOGINShell and tools | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_REMOTE_TOOLS_POLICYShell and tools | Added between v2.1.247 and v2.1.252 | Selects 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_SERVEShell and tools | Added between v2.1.245 and v2.1.247 | Controls serving of remote tools; serving is enabled by default, and setting it to a false value turns serving off. |
CLAUDE_CODE_REMOTE_TOOLS_SESSION_CHANNELShell and tools | Added between v2.1.245 and v2.1.247 | — |
CLAUDE_CODE_REMOTE_TOOLS_SPECULATIVE_CLASSIFIERShell and tools | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_REMOVE_PROMPT_STRINGSOther | Added in v2.1.290 | Takes 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_REPLOther | Added between v2.1.87 and v2.1.88 | Boolean 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_POLICYOther | Added in v2.1.318 | Carries 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_FINDINGSOther | Added between v2.1.143 and v2.1.212 | Set 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_PROVENANCEOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_REPO_CHECKOUTSOther | Added between v2.1.104 and v2.1.107 | Specifies 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_HOLDPlugins and skills | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_RESTRICTEDPermissions and sandbox | Added between v2.1.247 and v2.1.252 Documented | — |
CLAUDE_CODE_RESTRICT_PERSONAL_CONFIGOther | Added in v2.1.295 | Limits 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_NONCEOther | Added in v2.1.285 | Supplies a nonce value that is attached as the nonce field on emitted command results. |
CLAUDE_CODE_RESUME_CACHE_WARMSessions | Added in v2.1.318 | In 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_SESSIONSessions | Added between v2.1.104 and v2.1.107 | Instructs 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_COMMANDSessions | 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_TURNSessions | Present since v2.1.69 or earlier Documented | Resume an interrupted agent turn |
CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MSSessions | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_RESUME_PROMPTSessions | 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_REASONSessions | Added between v2.1.266 and v2.1.269 | Sets 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_MSSessions | Added in v2.1.296 | Milliseconds 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_CALLSSessions | Added between v2.1.307 and v2.1.309 Documented | — |
CLAUDE_CODE_RESUME_SOURCE_ALIVESessions | Added between v2.1.143 and v2.1.212 | Carries 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_MINUTESSessions | Added between v2.1.88 and v2.1.89 | Sets 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_THRESHOLDAuthentication | Added between v2.1.88 and v2.1.89 | Sets 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_APPENDSContext and compaction | Added between v2.1.241 and v2.1.245 | Set 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_SEEDSContext and compaction | Added in v2.1.290 | Set 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_PERMISSIONPermissions and sandbox | Removed between v2.1.269 and v2.1.283 | Set 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_WATCHDOGNetwork 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_MSNetwork and proxy | Added in v2.1.301 | Bounds 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_MSNetwork 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_SCOPENetwork and proxy | Added in v2.1.310 | Read 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_MSNetwork 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_TULIPOther | Added in v2.1.290 | Overrides 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_SOCKETModels and thinking | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_RUNNER_START_NOTESOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_RUSTLING_PIXELOther | Added between v2.1.269 and v2.1.283 | Controls 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_THRUSHOther | Removed between v2.1.247 and v2.1.252 | Set 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_MODEOther | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_SANDBOXEDPermissions and sandbox | Added in v2.1.94 | Indicates 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_WINPermissions and sandbox | Added in v2.1.299 | Set 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_ALONEPermissions and sandbox | Added in v2.1.299 | On 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_CONTEXTContext and compaction | Removed between v2.1.96 and v2.1.100 | Extra context passed to save hooks |
CLAUDE_CODE_SCRATCHPAD_DIROther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SCRIPT_CAPSOther | 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_SPEEDTerminal 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_REFRESHAuthentication | Added between v2.1.143 and v2.1.212 | When 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_REFRESHAuthentication | Added between v2.1.100 and v2.1.104 | Signals to the Claude Code runtime that the SDK caller has already provided an OAuth refresh token. |
CLAUDE_CODE_SDK_HAS_SESSIONS_OAUTH_REFRESHAuthentication | Added in v2.1.311 | — |
CLAUDE_CODE_SDK_MCP_TOOL_IDLE_TIMEOUTNetwork and proxy | Added between v2.1.321 and v2.1.323 | Sets the idle timeout in milliseconds for SDK MCP tools, then removes the variable from the environment. |
CLAUDE_CODE_SDK_READS_SESSION_STATESessions | Added in v2.1.284 | When 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_MARKSOther | Added in v2.1.304 | When set and the output format is stream-json, writes startup marker records to stdout for the SDK to read. |
CLAUDE_CODE_SEARCH_HINTS_IN_LISTOther | Removed between v2.1.87 and v2.1.88 | Controlled whether search hints appeared in list views. The feature was probably either made default or removed as the UI evolved. |
CLAUDE_CODE_SENDMESSAGE_HANDBACKOther | Added between v2.1.266 and v2.1.269 | Overrode 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_SERVICESessions | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SEND_FEEDBACKOther | 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_PATHSOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SERVED_SCHEMA_VERSIONOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MSNetwork 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_TOKENAuthentication | Added in v2.1.311 | — |
CLAUDE_CODE_SESSION_ACCESS_TOKENAuthentication | Present since v2.1.69 or earlier | Session-scoped access token |
CLAUDE_CODE_SESSION_ATTENDEDSessions | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_SESSION_BEGAN_AS_COPYSessions | Added in v2.1.315 | — |
CLAUDE_CODE_SESSION_CREATED_AT_MSSessions | Added between v2.1.321 and v2.1.323 | — |
CLAUDE_CODE_SESSION_IDSessions | 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_KINDSessions | Added between v2.1.118 and v2.1.123 | Classifies 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_LOGSessions | Added between v2.1.118 and v2.1.123 | Path 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_NAMESessions | Added between v2.1.118 and v2.1.123 | Human-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_ORIGINSessions | Added between v2.1.252 and v2.1.266 | Records 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_PROMPTSessions | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_SETTLE_TOUCHED_FILESOther | Removed in v2.1.305 | — |
CLAUDE_CODE_SHELLShell and tools | Present since v2.1.69 or earlier Documented | Override shell for Bash tool (must be bash or zsh) |
CLAUDE_CODE_SHELL_HANDOVER_KEYShell and tools | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SHELL_HANDOVER_PATHShell and tools | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SHELL_LAUNCHER_SCRIPTShell and tools | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_SHELL_MCP_SERVERSMCP | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SHELL_PREFIXShell and tools | Present since v2.1.69 or earlier Documented | Prefix command for shell execution |
CLAUDE_CODE_SHELL_PREFIXI50Shell and tools | Removed between v2.1.229 and v2.1.234 | — |
CLAUDE_CODE_SHINY_FOUNTAINOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SHOWN_PLUGINS_DIRPlugins and skills | Added between v2.1.321 and v2.1.323 | Sets 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_CHARACTERSOther | Added between v2.1.324 and v2.1.326 | Sets whether hidden characters are shown; when it is unset, the default comes from a server-side setting. |
CLAUDE_CODE_SILENT_TURN_REMINDEROther | Added between v2.1.234 and v2.1.237 | Toggles 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_SECONDSOther | Added in v2.1.290 | Set 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_TEXTOther | Added in v2.1.238 | Overrides 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_TURNSOther | Added between v2.1.234 and v2.1.237 | Sets how many silent turns pass before the reminder fires. Falls back to the tengu_hushed_lark gate, defaulting to 5 turns. |
CLAUDE_CODE_SIMPLEOther | Present since v2.1.69 or earlier Documented | Simplified mode; disables CLAUDE.md and attachments (renamed from CLAUDE_CODE_SIMPLETON) |
CLAUDE_CODE_SIMPLETONOther | — | Renamed to CLAUDE_CODE_SIMPLE |
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPTOther | 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_USAGENetwork and proxy | Added in v2.1.92 | Simulates 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_ATTRIBUTIONPlugins and skills | Added between v2.1.252 and v2.1.266 | Supplies 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_DESCRIPTIONPlugins and skills | Removed between v2.1.212 and v2.1.215 | — |
CLAUDE_CODE_SKILL_DESC_REFRAMEPlugins and skills | Removed between v2.1.215 and v2.1.217 | Set 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_NAMEPlugins and skills | Removed between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_SKILL_PROPOSALSPlugins and skills | Added between v2.1.229 and v2.1.234 | Enables 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_AUTHCloud 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_AUTHCloud 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_CACHECloud providers | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_SKIP_BEDROCK_AUTHCloud providers | Present since v2.1.69 or earlier Documented | Skip Bedrock authentication |
CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORSModels 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_CHECKModels 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_AUTHCloud providers | Present since v2.1.69 or earlier Documented | Skip Foundry authentication |
CLAUDE_CODE_SKIP_HFI_VERSION_CHECKFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_SKIP_MANTLE_AUTHCloud 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_FILESMCP | Added in v2.1.311 | When set to true, skips writing MCP server debug messages to their per-server log files. |
CLAUDE_CODE_SKIP_MODEL_ACCESS_MEMORYModels and thinking | Added in v2.1.285 Documented | — |
CLAUDE_CODE_SKIP_PLUGIN_LOCAL_MCP_SERVERSMCP | Added in v2.1.304 | — |
CLAUDE_CODE_SKIP_PLUGIN_MCP_BUNDLESMCP | Added in v2.1.304 | — |
CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERSMCP | Added between v2.1.143 and v2.1.212 | When 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_EXCEPTMCP | Added between v2.1.143 and v2.1.212 | Comma-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_LOADContext and compaction | — | Optimize large session file loading |
CLAUDE_CODE_SKIP_PROJECT_BACKFILLFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_SKIP_PROMPT_HISTORYFeature toggles | Present since v2.1.69 or earlier Documented | Disable prompt history saving |
CLAUDE_CODE_SKIP_REPO_UPLOADFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_SKIP_VERTEX_AUTHCloud providers | Present since v2.1.69 or earlier Documented | Skip Vertex AI authentication |
CLAUDE_CODE_SLACK_TAG_TOKENAuthentication | Added between v2.1.229 and v2.1.234 | — |
CLAUDE_CODE_SLEEPY_SNOWFLAKEOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_CODE_SLEEP_COMPACTContext and compaction | Added in v2.1.295 | When set, enables sleep compaction, which compacts the conversation while the session sits idle. |
CLAUDE_CODE_SLEEP_COMPACT_AFTER_MSContext and compaction | Added in v2.1.296 | Milliseconds to wait after a turn before idle sleep compaction runs, clamped between 60000 and 210000; defaults to 150000. |
CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MSOther | Present since v2.1.69 or earlier | Threshold for slow filesystem operation warnings |
CLAUDE_CODE_SNAPPY_PELICANOther | Added in v2.1.296 | When enabled, keeps a request's relative effort value (lower or higher) instead of stripping it; defaults to the server flag value. |
CLAUDE_CODE_SORTED_OTTEROther | Added in v2.1.315 | — |
CLAUDE_CODE_SPARE_DEFER_ALL_MCPMCP | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_SPARE_KEEPS_BOOT_SESSION_IDSessions | Removed between v2.1.326 and v2.1.331 | When set, keeps the boot session ID so a spare process does not claim a new session when none was provided. |
CLAUDE_CODE_SPAWNED_BY_SERVEROther | Present since v2.1.69 or earlier | Was 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_MSOther | Added between v2.1.143 and v2.1.212 | Integer 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_PROJECTOther | Added in v2.1.332 | — |
CLAUDE_CODE_SQUISHY_NEWTOther | Removed in v2.1.301 | — |
CLAUDE_CODE_SSE_PORTOther | Present since v2.1.69 or earlier | Server-Sent Events port |
CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTINGNetwork and proxy | Present since v2.1.69 or earlier | Set 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_FILENetwork and proxy | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_STARTUP_FAILURE_RESULTSOther | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_STELLAR_DRIFTOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_STOP_HOOK_BLOCK_CAPOther | 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_PROFILEDebugging | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_STREAMED_BUMBLEBEENetwork and proxy | Added in v2.1.290 | When 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_TEXTNetwork and proxy | Added in v2.1.290 | Custom 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_TEXTNetwork and proxy | Removed between v2.1.73 and v2.1.76 | Likely 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_MSNetwork and proxy | Added in v2.1.314 | — |
CLAUDE_CODE_STREAM_EVENT_MAX_LINE_BYTESNetwork and proxy | Added in v2.1.314 | — |
CLAUDE_CODE_STREAM_EVENT_NO_SUBSCRIBER_HOLD_MSNetwork and proxy | Added in v2.1.319 | Milliseconds 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_MSNetwork and proxy | Added in v2.1.318 | Sets 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_PROMPTShell 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_EVICTAgents and subagents | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_SUBAGENT_CONFIG_WARNINGAgents and subagents | Added in v2.1.295 | Set to a truthy value to enable the subagent configuration warning or a falsy value to disable it, overriding the server default. |
CLAUDE_CODE_SUBAGENT_EFFORTAgents 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_HISTORYAgents 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_MODELAgents and subagents | Present since v2.1.69 or earlier Documented | Force a specific model for sub-agent operations |
CLAUDE_CODE_SUBAGENT_MODELUAgents 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_FORCEAgents and subagents | Added between v2.1.252 and v2.1.266 Documented | — |
CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTLAgents 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_SNAPSHOTAgents and subagents | Added in v2.1.290 | Set to force a subagent to snapshot its system prompt, overriding the configured option; read until v2.1.309. |
CLAUDE_CODE_SUBPROCESS_ENV_SCRUBPermissions 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_TYPEOther | Added between v2.1.114 and v2.1.117 | Current 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_SUPERVISEDOther | Added between v2.1.138 and v2.1.143 | Mark 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_ATTRIBUTIONSessions | Added between v2.1.143 and v2.1.212 | Set to suppress session attribution, so no session URL or ID is attached to the session. |
CLAUDE_CODE_SYNC_PLUGINSPlugins and skills | Added between v2.1.143 and v2.1.212 | Set to turn on plugin syncing, pulling the organization's plugins into the local install. |
CLAUDE_CODE_SYNC_PLUGINS_BUFFERED_DOWNLOADPlugins and skills | Added between v2.1.143 and v2.1.212 | Set to download synced plugins as a single buffered request instead of a stall-monitored stream. |
CLAUDE_CODE_SYNC_PLUGINS_DOWNLOAD_CONCURRENCYPlugins and skills | Added between v2.1.307 and v2.1.309 | Maximum number of plugin downloads to run in parallel during sync; defaults to 6. |
CLAUDE_CODE_SYNC_PLUGINS_DOWNLOAD_STALL_MSPlugins and skills | Added between v2.1.143 and v2.1.212 | Milliseconds a plugin download stream may stall before it is aborted; defaults to 60000. |
CLAUDE_CODE_SYNC_PLUGINS_INSTALL_TIMEOUT_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 | Timeout in milliseconds for installing a synced plugin; defaults to 30000. |
CLAUDE_CODE_SYNC_PLUGINS_MCP_TIMEOUT_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 | Timeout in milliseconds for a synced plugin's MCP connection; defaults to 10000. |
CLAUDE_CODE_SYNC_PLUGIN_INSTALLPlugins and skills | Present since v2.1.69 or earlier Documented | Install plugins synchronously (block until done) |
CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MSNetwork and proxy | Present since v2.1.69 or earlier Documented | Timeout for synchronous plugin install |
CLAUDE_CODE_SYNC_REUSE_WITHIN_MSOther | Added between v2.1.266 and v2.1.269 | Number 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_REFSSessions | Added between v2.1.143 and v2.1.212 | Enables 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_SKILLSPlugins and skills | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_SYNTAX_HIGHLIGHTOther | Present since v2.1.69 or earlier Documented | Disable syntax highlighting when set to false |
CLAUDE_CODE_SYSTEM_PROMPT_FEATURE_FLAGOther | Added between v2.1.321 and v2.1.323 | In remote mode, names the feature flag whose non-empty string value replaces the default system prompt. |
CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATUREOther | Added between v2.1.108 and v2.1.114 | Names 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_TAGSOther | Present since v2.1.69 or earlier | Custom tags for telemetry events |
CLAUDE_CODE_TAG_ISMETA_MESSAGESOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_TASK_LIST_IDOther | Present since v2.1.69 or earlier Documented | Task list ID for agent coordination |
CLAUDE_CODE_TEAMMATE_COMMANDAgents and subagents | Present since v2.1.69 or earlier | Command for teammate/cowork functionality |
CLAUDE_CODE_TEAM_ONBOARDINGAgents and subagents | Removed between v2.1.143 and v2.1.212 | Replaced by newer onboarding paths (CLAUDE_CODE_POWERUP_ONBOARDING, /doctor's CLAUDE.md-trimming check). |
CLAUDE_CODE_TEAM_TEARDOWN_PARK_TIMEOUT_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_TEE_SDK_STDOUTOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_TELEPORT_MOVEOther | Added in v2.1.318 | Set 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_TOOLSMCP | Added between v2.1.143 and v2.1.212 | Comma-separated list of MCP tool names treated as terminal tools; when empty, the related check is skipped. |
CLAUDE_CODE_TERMINAL_RECORDINGTerminal and UI | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_TEST_ALLOW_REAL_NETWORKOther | Removed between v2.1.326 and v2.1.331 | Set to allow a test runtime to make real non-loopback network requests, which are otherwise refused; loopback is always allowed. |
CLAUDE_CODE_TEST_FIXTURES_ROOTOther | Removed between v2.1.326 and v2.1.331 | Root directory for test fixtures |
CLAUDE_CODE_TEST_FORCE_DENYFeature toggles | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_TEST_NO_GIT_BASHShell and tools | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_TEST_NO_PWSHOther | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_TETHER_LIVEOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_CODE_THINKING_DISPLAY_UPDATESModels and thinking | Added between v2.1.238 and v2.1.241 | Overrides 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_RESUMPTIONModels and thinking | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_THISTLE_GREBEOther | Added between v2.1.212 and v2.1.215 | Set to default, no_nudges or counter_steer to choose the steering mode, overriding the server and model settings. |
CLAUDE_CODE_THREAD_CPU_ONE_INOther | Added in v2.1.319 | Runs 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_SONICOther | Added between v2.1.219 and v2.1.221 | — |
CLAUDE_CODE_TICKLISH_WHISPEROther | Added between v2.1.245 and v2.1.247 | — |
CLAUDE_CODE_TICKLISH_WHISPER_TIMEOUT_MSNetwork and proxy | Added between v2.1.245 and v2.1.247 | — |
CLAUDE_CODE_TMPDIROther | Present since v2.1.69 or earlier Documented | Temp directory for operations |
CLAUDE_CODE_TMUX_PREFIXTerminal and UI | Present since v2.1.69 or earlier | Tmux prefix key shown in detach instructions |
CLAUDE_CODE_TMUX_PREFIX_CONFLICTSTerminal and UI | Present since v2.1.69 or earlier | Show prefix twice when key conflicts in tmux |
CLAUDE_CODE_TMUX_SESSIONTerminal and UI | Present since v2.1.69 or earlier | Tmux session name shown in UI header |
CLAUDE_CODE_TMUX_TRUECOLORTerminal 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_THIMBLEOther | Added between v2.1.234 and v2.1.237 | — |
CLAUDE_CODE_TODO_REMINDER_MODEOther | Added between v2.1.143 and v2.1.212 | Set to override the todo reminder mode; off turns the reminders off, otherwise baseline is used. |
CLAUDE_CODE_TOOL_CONTAINER_PLUGINS_NAMEDPlugins and skills | Removed in v2.1.311 | — |
CLAUDE_CODE_TOOL_MEMORY_CGROUP_EXCLUDEShell and tools | Added between v2.1.245 and v2.1.247 Documented | — |
CLAUDE_CODE_TOOL_MEMORY_LIMITShell 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_SERVERSShell and tools | Added in v2.1.321 | Comma-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_IDShell and tools | Added between v2.1.266 and v2.1.269 | — |
CLAUDE_CODE_TOTAL_TOKENS_REMINDERContext and compaction | Added between v2.1.143 and v2.1.212 | Set to control the total-tokens reminder mode, taking priority over the stored setting. |
CLAUDE_CODE_TOTAL_TOKENS_REMINDER_AFTER_USER_TURNContext and compaction | Added between v2.1.143 and v2.1.212 | Toggles the remaining-tokens reminder shown to the model after each user turn; defaults to on. |
CLAUDE_CODE_TOTAL_TOKENS_REMINDER_BUDGETContext and compaction | Added between v2.1.143 and v2.1.212 | Sets the token budget used for the remaining-tokens reminder; must be a positive number, otherwise the configured default applies. |
CLAUDE_CODE_TRANSCRIPT_LOCAL_GCOther | 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_RESULTSShell and tools | Added in v2.1.299 | In 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_LOADOther | Added in v2.1.319 | — |
CLAUDE_CODE_TRIGGER_IDOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_TUI_ASKEDOther | Added between v2.1.324 and v2.1.326 | Holds 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_SWITCHEDOther | Added between v2.1.108 and v2.1.114 | Set 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_TRIALOther | Added between v2.1.234 and v2.1.237 | Set to fullscreen to put the terminal UI into fullscreen mode; any other value leaves it off. |
CLAUDE_CODE_TURN_UPDATESOther | Added in v2.1.229 | When enabled, switches the user-communication instructions to the turn-updates variant. |
CLAUDE_CODE_TWO_STAGE_CLASSIFIEROther | Added between v2.1.70 and v2.1.72 | Added 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_RECORDOther | Added in v2.1.318 | Path 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_FIXTUREOther | Removed between v2.1.326 and v2.1.331 | Points 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_MERGEDOther | Added in v2.1.321 | When 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_FIXTUREOther | Removed between v2.1.326 and v2.1.331 | Supplies 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_FILEOther | Added between v2.1.321 and v2.1.323 | Points 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_MSOther | Added in v2.1.311 | Number of milliseconds to hold streamed replies for unwatched contexts (subagent, auxiliary, compaction); defaults to 0, meaning no hold. |
CLAUDE_CODE_UPFRONT_TOOLSShell and tools | Added in v2.1.314 | — |
CLAUDE_CODE_USER_DELEGATED_SESSIONSessions | Added between v2.1.321 and v2.1.323 | — |
CLAUDE_CODE_USER_DELEGATED_SESSION_ALLOWED_CHECK_MODELSModels and thinking | Added in v2.1.321 | Sets 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_PROVIDERSTerminal and UI | Added in v2.1.321 | — |
CLAUDE_CODE_USER_DELEGATED_SESSION_ANY_CHECK_MODELModels and thinking | Added between v2.1.321 and v2.1.323 | When 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_APISessions | Added in v2.1.321 | When 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_PROVIDERSTerminal and UI | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_USER_DIALOG_TIMEOUT_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 Documented | — |
CLAUDE_CODE_USER_EMAILOther | Present since v2.1.69 or earlier | Pre-configured user email |
CLAUDE_CODE_USE_ANTHROPIC_AWSCloud 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_CLOUDCloud 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_BEDROCKCloud providers | Present since v2.1.69 or earlier Documented | Use Amazon Bedrock as backend |
CLAUDE_CODE_USE_CCR_V2Other | Present since v2.1.69 or earlier | Use Claude Code Router v2 for cowork sessions |
CLAUDE_CODE_USE_COWORK_PLUGINSPlugins and skills | Present since v2.1.69 or earlier | Use cowork_plugins directory instead of default |
CLAUDE_CODE_USE_FOUNDRYCloud providers | Present since v2.1.69 or earlier Documented | Use Anthropic Foundry as backend |
CLAUDE_CODE_USE_GATEWAYOther | Added between v2.1.143 and v2.1.212 | Routes 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_MANTLECloud 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_SEARCHOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_CODE_USE_POWERSHELL_TOOLShell 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_VERTEXCloud providers | Present since v2.1.69 or earlier Documented | Use Google Vertex AI as backend |
CLAUDE_CODE_VERIFY_PROMPTOther | Removed between v2.1.143 and v2.1.212 | The verify flow was reworked; the standalone prompt override no longer maps to how verification runs. |
CLAUDE_CODE_VERSIONOther | Added between v2.1.128 and v2.1.138 | Exposes 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_TYPEDOther | Added between v2.1.138 and v2.1.143 | Stream interim voice transcription results as you speak rather than waiting for the final transcript. |
CLAUDE_CODE_WALNUT_SPIREOther | Removed between v2.1.266 and v2.1.269 | Set 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_GIBOther | Added in v2.1.304 Documented | — |
CLAUDE_CODE_WARN_MEMORY_FREE_GIBMemory and CLAUDE.md | Added in v2.1.304 Documented | — |
CLAUDE_CODE_WATCHED_SLEEPOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MSShell 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_MSShell 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_TOOLMCP | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_CODE_WEBFETCH_USE_CCR_PROXYNetwork and proxy | Added between v2.1.143 and v2.1.212 | On first-party accounts, routes WebFetch requests through the CCR proxy when set. |
CLAUDE_CODE_WEBSEARCH_CITATIONSShell and tools | Added in v2.1.295 | Returns 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_DECLAREDShell and tools | Removed in v2.1.299 | — |
CLAUDE_CODE_WEBSEARCH_USE_CCR_PROXYNetwork and proxy | Added between v2.1.143 and v2.1.212 | On first-party accounts, routes WebSearch requests through the CCR proxy when set. |
CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTORAuthentication | Present since v2.1.69 or earlier | File descriptor for WebSocket credentials |
CLAUDE_CODE_WEB_FETCH_AGENTAgents and subagents | Added between v2.1.229 and v2.1.234 | When set, enables the web-fetch agent; when unset it follows the server flag, which is off by default. |
CLAUDE_CODE_WEB_SEARCH_FAST_ARGShell and tools | Added between v2.1.269 and v2.1.283 | When 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_HOURShell 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_ELEPHANTOther | Added in v2.1.284 | — |
CLAUDE_CODE_WILLOW_TERNOther | Added between v2.1.245 and v2.1.247 | — |
CLAUDE_CODE_WISE_COMETOther | Added between v2.1.252 and v2.1.266 | Overrides 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_EVENTSOther | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_CODE_WITTY_DEWDROPOther | Added in v2.1.307 | — |
CLAUDE_CODE_WORKER_CHECKIN_SCHEDULEOther | Added between v2.1.269 and v2.1.283 Documented | — |
CLAUDE_CODE_WORKER_EPOCHOther | Present since v2.1.69 or earlier | Worker epoch for versioning internal state |
CLAUDE_CODE_WORKER_EPOCHIF0Other | Removed between v2.1.229 and v2.1.234 | — |
CLAUDE_CODE_WORKFLOWSAgents and subagents | Added between v2.1.143 and v2.1.212 | Set 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_SHA256Agents and subagents | Added between v2.1.241 and v2.1.245 | — |
CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTSAgents 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_MSAgents and subagents | Added in v2.1.229 Documented | — |
CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCEAgents and subagents | Added between v2.1.241 and v2.1.245 | Toggles whether the automated-trigger provenance preamble is added to workflow prompts; defaults to on. |
CLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTSAgents and subagents | Added between v2.1.143 and v2.1.212 | Set 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_TOKENSContext and compaction | Added between v2.1.143 and v2.1.212 | Token count above which the workflow-size warning fires; falls back to the server-provided value, then a built-in default. |
CLAUDE_CODE_WORKFLOW_SUBAGENT_MODELAgents and subagents | Added in v2.1.296 | Runs 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_PATHSOther | Added between v2.1.77 and v2.1.79 | Specifies 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_SENDOther | Added in v2.1.321 | — |
CLAUDE_CODE_YOU_SHOULD_KNOW_DEBUGDebugging | Added in v2.1.286 Documented | — |
CLAUDE_CONFIG_DIROther | Present since v2.1.69 or earlier Documented | Custom config directory |
CLAUDE_CONTEXT_COLLAPSEContext and compaction | Removed between v2.1.269 and v2.1.283 | Collapses 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_MODELContext and compaction | Removed between v2.1.269 and v2.1.283 | — |
CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINESTerminal and UI | Added between v2.1.77 and v2.1.79 | Injects additional memory guidelines into cowork (teammate) sessions. In multi-agent "cowork" mode — where a leader spawns teammate Claude sessions in split… |
CLAUDE_COWORK_MEMORY_GUIDELINESTerminal and UI | Added between v2.1.118 and v2.1.123 | Policy 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_CONTENTMemory and CLAUDE.md | Added between v2.1.118 and v2.1.123 | Content 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_OVERRIDETerminal and UI | Present since v2.1.69 or earlier | Sets an override directory for cowork memory; providing it also stops auto-memory from being disabled in a remote session. |
CLAUDE_DEBUGDebugging | Present since v2.1.69 or earlier | Enable debug logging |
CLAUDE_DEV_MODS_DIROther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_DISABLE_ADOPTFeature toggles | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_EFFORTModels 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_WATCHDOGNetwork 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_BEDROCKCloud 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_WATCHDOGNetwork and proxy | Present since v2.1.69 or earlier Documented | Enable stream health monitoring |
CLAUDE_ENV_FILEOther | Present since v2.1.69 or earlier Documented | Path to environment file for session variables |
CLAUDE_FORCE_DISPLAY_SURVEYFeature toggles | Present since v2.1.69 or earlier | Force feedback survey display |
CLAUDE_GATEWAY_ALLOW_LOOPBACKOther | Added between v2.1.143 and v2.1.212 | Set 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_MSNetwork and proxy | Added between v2.1.269 and v2.1.283 | Milliseconds the gateway gives in-flight requests to finish during shutdown before closing them; defaults to 25000. |
CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAMENetwork and proxy | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_GATEWAY_LOG_FORMATDebugging | Added in v2.1.319 | Set to json to write gateway logs as JSON; any other value keeps the plain text format. |
CLAUDE_GATEWAY_LOG_LEVELDebugging | Added between v2.1.143 and v2.1.212 | Set 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_BOUNDARYNetwork and proxy | Added between v2.1.269 and v2.1.283 | Set 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_CONTEXTContext and compaction | Added between v2.1.229 and v2.1.234 | — |
CLAUDE_IMPORT_CONVERSATIONSOther | Added between v2.1.143 and v2.1.212 | Enables the import-conversations feature; without it the command reports that import-conversations is not enabled. |
CLAUDE_INTERNAL_ASSISTANT_TEAM_NAMEAgents and subagents | Added in v2.1.108 | Passes 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_OVERRIDESTerminal and UI | Added between v2.1.118 and v2.1.123 | Internal 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_IDSessions | Added in v2.1.311 | Carries 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_TOOLShell and tools | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_IN_CHROME_MANAGED_MCP_REFUSALMCP | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_IN_CHROME_MCP_SERVER_NAMEMCP | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_IN_CHROME_TOOL_PREFIXShell and tools | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_IN_SLACK_V2Other | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_JOB_DIROther | 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_BASEAuthentication | Added in v2.1.85 | Overrides 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_BASEAuthentication | Added in v2.1.85 | Overrides 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_BASEAuthentication | Added in v2.1.86 | Overrides 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_ROWOther | Removed in v2.1.324 | — |
CLAUDE_MEMORY_STORESMemory and CLAUDE.md | Added between v2.1.138 and v2.1.143 | Configure 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_429Other | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_MOD_MADEOther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_NAMESOther | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_OPUS_4_8Models and thinking | Removed between v2.1.252 and v2.1.266 | — |
CLAUDE_PIDOther | 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_DATAPlugins and skills | Added between v2.1.77 and v2.1.79 | Provides a filesystem path where plugins can store persistent state that survives plugin updates and reinstalls. Previously, plugin data lived alongside the… |
CLAUDE_PLUGIN_FEATURE_FLAGSPlugins 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_ROOTPlugins and skills | Present since v2.1.69 or earlier | Root directory for plugins |
CLAUDE_PREVIEW_CLASSIFIER_FLOOROther | Removed between v2.1.241 and v2.1.245 | — |
CLAUDE_PROJECT_DIROther | Present since v2.1.69 or earlier | Override project directory |
CLAUDE_PROJECT_UUIDOther | Added between v2.1.143 and v2.1.212 | Holds the project UUID used to fetch project context and detail; when it is unset no project context is requested. |
CLAUDE_PTY_HEARTBEAT_MSOther | Added between v2.1.143 and v2.1.212 | Interval 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_EXECOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_PTY_HOST_NO_STABLE_PATHOther | Added in v2.1.295 | On 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_MSOther | Added between v2.1.143 and v2.1.212 | Interval 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_RECORDOther | Added between v2.1.118 and v2.1.123 | Enables 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_DIRSSessions | Added between v2.1.269 and v2.1.283 | — |
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIXSessions | 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_URLNetwork and proxy | Added between v2.1.224 and v2.1.227 | Overrides the base URL of the remote tools device bridge; when unset the URL is chosen from the OAuth environment. |
CLAUDE_REMOTE_WORKFLOW_ARGSAgents and subagents | Added between v2.1.143 and v2.1.212 | Provides JSON-encoded arguments passed to the environment-delivered remote workflow script; it must be valid JSON within a size limit. |
CLAUDE_REMOTE_WORKFLOW_SCRIPTAgents and subagents | Added between v2.1.143 and v2.1.212 | Names the workflow script run as the deterministic entry point for a remote session; the command errors when it is not set. |
CLAUDE_REPL_MODEOther | Removed between v2.1.96 and v2.1.100 | Sets 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_MODE0Other | — | Prototype naming for the REPL mode configuration. Replaced by the properly named CLAUDE_REPL_MODE in this release. |
CLAUDE_REPL_VARIANTOther | Removed between v2.1.269 and v2.1.283 | Selects 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_VERBOSEOther | Removed between v2.1.269 and v2.1.283 | — |
CLAUDE_RUNNER_ACCOUNT_EMAILOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_ACCOUNT_IDOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_ACTIVITY_FDOther | Added between v2.1.143 and v2.1.212 | File 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_MSOther | Added between v2.1.307 and v2.1.309 | Interval 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_URLNetwork and proxy | Added between v2.1.222 and v2.1.224 | Provides the API base URL for code-signing when ANTHROPIC_BASE_URL and SESSION_INGRESS_URL are unset; trailing slashes are stripped. |
CLAUDE_RUNNER_ATTEMPTOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_CHECKOUT_PATHOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_CLAUDE_BINOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_CLIENT_PLATFORMOther | Added in v2.1.229 | — |
CLAUDE_RUNNER_CORRELATION_IDOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_DEBUG_LOG_PATHDebugging | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_DISABLE_AWAITING_ACTION_OVERRIDETerminal and UI | Added between v2.1.143 and v2.1.212 | When 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_WARNINGFeature toggles | Added in v2.1.319 | When set, skips creating the session renewal warning poster; by default that poster is set up to warn about renewal. |
CLAUDE_RUNNER_DISABLE_START_HEARTBEATSFeature toggles | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_RUNNER_DISABLE_TURN_BEGAN_BEFORE_INITFeature toggles | Added between v2.1.307 and v2.1.309 | Set 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_REASONOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_FAIL_FAST_FETCHOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_FETCH_DEPTHOther | Added between v2.1.143 and v2.1.212 | Sets 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_MSOther | Added in v2.1.295 | On 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_URLNetwork and proxy | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_OFFERS_NEW_MACHINEOther | Added in v2.1.319 | — |
CLAUDE_RUNNER_ORDER_IDOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_ORDER_SERVER_TIMEOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_POOL_IDOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_PRIMARY_REPO_REVISIONOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_PRIMARY_REPO_URLNetwork and proxy | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_REPO_REFOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_REPO_SOURCESOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_REPO_URLNetwork and proxy | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_SESSION_IDSessions | Added between v2.1.222 and v2.1.224 | Session 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_UUIDSessions | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_SKIP_GIT_VERIFYFeature toggles | Added between v2.1.222 and v2.1.224 | Set 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_REASONOther | Added in v2.1.318 | — |
CLAUDE_RUNNER_STALL_GIVEUPOther | Added between v2.1.241 and v2.1.245 | — |
CLAUDE_RUNNER_START_FOLDEROther | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_RUNNER_TRUST_CANONICAL_PREWARMOther | Added between v2.1.222 and v2.1.224 | Set 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_BINOther | Added in v2.1.307 | — |
CLAUDE_RUNNER_USE_GIT_PROXYNetwork and proxy | Added between v2.1.222 and v2.1.224 | Set 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_PATHSOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_RUNNER_WORK_ORDER_FILEOther | Added between v2.1.222 and v2.1.224 | — |
CLAUDE_SCRIPT_HOOK_ACKOther | Added between v2.1.252 and v2.1.266 | — |
CLAUDE_SDK_AGENT_IN_PROCESS_SERVERAgents and subagents | Added between v2.1.326 and v2.1.331 | — |
CLAUDE_SDK_CAN_USE_TOOL_SHADOWEDShell and tools | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_SDK_MCP_SERVERS_ARGV_DEPRECATEDMCP | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_SDK_MCP_SERVERS_NOT_APPLIEDMCP | Added between v2.1.324 and v2.1.326 | — |
CLAUDE_SECURESTORAGE_CONFIG_DIROther | Added between v2.1.143 and v2.1.212 | Sets 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_MSNetwork and proxy | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_SESSION_IDSessions | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_SESSION_INGRESS_TOKEN_FILEAuthentication | Added between v2.1.79 and v2.1.83 | Path to the file the session ingress token is read from; a well-known path is used when unset. |
CLAUDE_SESSION_SURFACESessions | Added in v2.1.295 | — |
CLAUDE_SKILL_DIRPlugins and skills | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_SLOW_FIRST_BYTE_MSOther | Added between v2.1.108 and v2.1.114 | Default 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_SNIPOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_SONNET_4_6Models and thinking | Removed between v2.1.247 and v2.1.252 | — |
CLAUDE_SSH_DAEMON_CHILDOther | Added in v2.1.299 | — |
CLAUDE_SSH_LOCAL_BINARYOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_SSH_RUN_DIROther | Added in v2.1.299 | — |
CLAUDE_SSH_VERSIONOther | Added between v2.1.143 and v2.1.212 | — |
CLAUDE_STAGE_FILE_ROOTOther | Added between v2.1.143 and v2.1.212 | Sets 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_MSNetwork 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_MSNetwork 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_STROKEOther | Removed between v2.1.247 and v2.1.252 | — |
CLAUDE_SUBAGENT_BG_SHELL_MAX_MSAgents 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_BACKGROUNDSessions | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_TEST_ESSENTIAL_TRAFFICOther | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_TEST_HEADEDOther | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_TEST_LISTENOther | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_TEST_NO_OPENOther | Removed between v2.1.326 and v2.1.331 | Set to any value to stop automatically opening a browser; the open check then returns false and reports that it is set. |
CLAUDE_TEST_PROJECT_DIROther | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_TEST_SANDBOXPermissions and sandbox | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_TEST_USER_SETTINGSOther | Removed between v2.1.326 and v2.1.331 | — |
CLAUDE_TMPDIROther | Present since v2.1.69 or earlier | Alternative temp directory; fallback for CLAUDE_CODE_TMPDIR |
CLAUDE_TRUSTED_DEVICE_TOKENAuthentication | Added in v2.1.86 | Stores a token that marks the current device as trusted, likely enabling persistent authentication sessions without repeated re-authorization. |
CLAUDE_WORKFLOW_NAME_ONLYAgents and subagents | Added between v2.1.143 and v2.1.212 | Restricts 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_PROGRESSOther | Removed in v2.1.312 | Set to false to disable the workshop authoring-progress hook, which otherwise ran when available; read until v2.1.309. |
DATABASE_URLNetwork and proxy | — Documented | — |
DEBUGDebugging | — Documented | — |
DISABLE_AUTOUPDATERFeature toggles | — Documented | Automatic update checker |
DISABLE_AUTO_COMPACTContext and compaction | — Documented | Disable automatic compaction only (manual /compact still works) |
DISABLE_AUTO_MIGRATE_TO_NATIVEFeature toggles | — | Native installer migration |
DISABLE_BUG_COMMANDFeature toggles | — | /bug command |
DISABLE_CLAUDE_CODE_SM_COMPACTContext and compaction | — | Disable session memory compaction |
DISABLE_COMPACTContext and compaction | — Documented | Disable all compaction (manual + auto) |
DISABLE_COST_WARNINGSFeature toggles | — Documented | API cost warnings |
DISABLE_DOCTOR_COMMANDFeature toggles | — Documented | /doctor diagnostic command |
DISABLE_ERROR_REPORTINGFeature toggles | — Documented | Automatic error reporting |
DISABLE_EXTRA_USAGE_COMMANDFeature toggles | — Documented | Extra usage display |
DISABLE_FEEDBACK_COMMANDFeature toggles | — Documented | /feedback command |
DISABLE_GROWTHBOOKFeature toggles | — Documented | — |
DISABLE_INSTALLATION_CHECKSFeature toggles | — Documented | Installation verification |
DISABLE_INSTALL_GITHUB_APP_COMMANDFeature toggles | — Documented | GitHub app install command |
DISABLE_INTERLEAVED_THINKINGModels and thinking | — Documented | Interleaved thinking beta |
DISABLE_LOGIN_COMMANDDebugging | — Documented | /login command |
DISABLE_LOGOUT_COMMANDDebugging | — Documented | /logout command |
DISABLE_MICROCOMPACTContext and compaction | — | Micro-compaction (small context cleanups) |
DISABLE_PROMPT_CACHINGFeature toggles | — Documented | Prompt caching globally |
DISABLE_PROMPT_CACHING_FABLEModels and thinking | — Documented | — |
DISABLE_PROMPT_CACHING_HAIKUModels and thinking | — Documented | Prompt caching for Haiku |
DISABLE_PROMPT_CACHING_OPUSModels and thinking | — Documented | Prompt caching for Opus |
DISABLE_PROMPT_CACHING_SONNETModels and thinking | — Documented | Prompt caching for Sonnet |
DISABLE_TELEMETRYTelemetry | — Documented | All telemetry |
DISABLE_UPDATESFeature 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_COMMANDFeature toggles | — Documented | /upgrade command |
DO_NOT_TRACKOther | — Documented | — |
ENABLE_BETA_TRACING_DETAILEDFeature toggles | — Documented | Enable detailed beta tracing |
ENABLE_BTWFeature toggles | — | Enable "by the way" suggestions |
ENABLE_CLAUDEAI_MCP_SERVERSMCP | — Documented | Enable Claude.ai-hosted MCP servers |
ENABLE_CLAUDE_CODE_SM_COMPACTContext and compaction | — | Force enable session memory compaction |
ENABLE_ENHANCED_TELEMETRY_BETATelemetry | — | Enable enhanced telemetry (beta) |
ENABLE_LSP_TOOLShell and tools | — | Enable Language Server Protocol tool |
ENABLE_MCP_LARGE_OUTPUT_FILESMCP | — | Enable large output files for MCP |
ENABLE_PROMPT_CACHING_1HFeature toggles | — Documented | — |
ENABLE_PROMPT_CACHING_1H_BEDROCKCloud providers | — Documented | Enable 1-hour prompt caching on Bedrock |
ENABLE_SESSION_BACKGROUNDINGSessions | — | Enable session backgrounding |
ENABLE_TOOL_SEARCHShell and tools | — Documented | Tool search/deferred loading: auto, true, false, or 0–100% |
FORCE_AUTOUPDATE_PLUGINSPlugins and skills | — Documented | Force auto-update plugins |
FORCE_HYPERLINKFeature toggles | — Documented | — |
FORCE_PROMPT_CACHING_5MFeature toggles | — Documented | — |
GITHUB_TOKENAuthentication | — Documented | — |
GIT_CONFIG_COUNTOther | — Documented | — |
HTTPS_PROXYNetwork and proxy | — Documented | HTTPS proxy server URL |
HTTP_PROXYNetwork and proxy | — Documented | HTTP proxy server URL |
IS_DEMOOther | — Documented | Indicates demo mode |
MAX_MCP_OUTPUT_TOKENSContext and compaction | — Documented | Max tokens for MCP tool output |
MAX_STRUCTURED_OUTPUT_RETRIESNetwork and proxy | — Documented | — |
MAX_THINKING_TOKENSModels and thinking | — Documented | Likely controlled via API settings now |
MCP_CLIENT_SECRETMCP | — Documented | Client secret for MCP OAuth |
MCP_CONNECTION_NONBLOCKINGNetwork and proxy | — Documented | Make MCP connections non-blocking |
MCP_CONNECT_TIMEOUT_MSNetwork and proxy | — Documented | — |
MCP_DISCOVERY_CACHEMCP | — Documented | — |
MCP_DISCOVERY_CACHE_MAX_STALE_SMCP | — Documented | — |
MCP_DISCOVERY_CACHE_STRIKESMCP | — 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_SMCP | — Documented | — |
MCP_OAUTH_CALLBACK_PORTAuthentication | — Documented | OAuth callback server port |
MCP_PROTOCOL_NEGOTIATIONMCP | — 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_SIZENetwork and proxy | — Documented | Remote MCP connection batch size |
MCP_SDK_GENERATIONMCP | — Documented | — |
MCP_SERVER_CONNECTION_BATCH_SIZENetwork and proxy | — Documented | Concurrent MCP server connections |
MCP_TIMEOUTNetwork and proxy | — Documented | MCP server connection timeout |
MCP_TOOL_TIMEOUTNetwork and proxy | — Documented | Individual MCP tool execution timeout |
NO_PROXYNetwork and proxy | — Documented | Domains to bypass proxy (comma-separated) |
NPM_TOKENAuthentication | — Documented | — |
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMITTelemetry | — Documented | — |
OTEL_LOG_ASSISTANT_RESPONSESTelemetry | — Documented | — |
OTEL_LOG_MANAGED_SETTINGSTelemetry | — Documented | — |
OTEL_LOG_RAW_API_BODIESTelemetry | — Documented | — |
OTEL_LOG_TOOL_CONTENTTelemetry | — Documented | Include tool input/output in telemetry |
OTEL_LOG_TOOL_DETAILSTelemetry | — Documented | Include tool execution details |
OTEL_LOG_USER_PROMPTSTelemetry | — Documented | Include user prompts in telemetry |
OTEL_METRICS_INCLUDE_ACCOUNT_UUIDTelemetry | — Documented | — |
OTEL_METRICS_INCLUDE_ENTRYPOINTTelemetry | — Documented | — |
OTEL_METRICS_INCLUDE_REPOSITORYTelemetry | — Documented | — |
OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTESTelemetry | — Documented | — |
OTEL_METRICS_INCLUDE_SESSION_IDTelemetry | — Documented | — |
OTEL_METRICS_INCLUDE_VERSIONTelemetry | — Documented | — |
OTEL_RESOURCE_INCLUDE_HOSTTelemetry | — 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_URLNetwork and proxy | — Documented | — |
SLASH_COMMAND_TOOL_CHAR_BUDGETShell and tools | — Documented | Character budget for slash command tool output |
TASK_MAX_OUTPUT_LENGTHOther | — Documented | Max output length for Task tool results |
USE_BUILTIN_RIPGREPOther | — Documented | Force use of built-in ripgrep |
VERTEX_REGION_CLAUDE_3_5_HAIKUCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_3_5_SONNETCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_3_7_SONNETCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_0_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_0_SONNETCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_1_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_5_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_5_SONNETCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_6_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_6_SONNETCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_7_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_4_8_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_5_5_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_5_5_SONNETCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_5_OPUSCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_5_SONNETCloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_FABLE_5Cloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_FABLE_5_1Cloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_FABLE_5_2Cloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_HAIKU_4_5Cloud providers | — Documented | — |
VERTEX_REGION_CLAUDE_HAIKU_5_5Cloud providers | — Documented | — |