Claude Code environment variables

Updated by

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

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

1117 of 1117
VariableStatusWhat it does
ANTHROPIC_API_KEY
Authentication
—
Documented
Primary API key for Claude API
ANTHROPIC_AUTH_TOKEN
Authentication
—
Documented
Alternative bearer token; takes priority over API key
ANTHROPIC_AWS_API_KEY
Cloud providers
—
Documented
—
ANTHROPIC_AWS_BASE_URL
Cloud providers
—
Documented
—
ANTHROPIC_AWS_WORKSPACE_ID
Cloud providers
—
Documented
—
ANTHROPIC_BASE_URL
Network and proxy
—
Documented
Custom endpoint for Anthropic services
ANTHROPIC_BEDROCK_BASE_URL
Cloud providers
—
Documented
Alternative Bedrock endpoint (alias)
ANTHROPIC_BEDROCK_MANTLE_BASE_URL
Cloud providers
—
Documented
—
ANTHROPIC_BEDROCK_REGION_PREFIX
Cloud providers
—
Documented
—
ANTHROPIC_BEDROCK_SERVICE_TIER
Cloud providers
—
Documented
—
ANTHROPIC_BETAS
Other
—
Documented
Comma-separated beta feature headers
ANTHROPIC_CUSTOM_HEADERS
Other
—
Documented
Custom HTTP headers (newline-separated Key: Value)
ANTHROPIC_CUSTOM_MODEL_OPTION
Models and thinking
—
Documented
—
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_CUSTOM_MODEL_OPTION_NAME
Models and thinking
—
Documented
—
ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_FABLE_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_HAIKU_MODEL
Models and thinking
—
Documented
Override Haiku model ID
ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_MODEL
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_OPUS_MODEL
Models and thinking
—
Documented
Override Opus model ID
ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_OPUS_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_SONNET_MODEL
Models and thinking
—
Documented
Override Sonnet model ID
ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_SONNET_MODEL_NAME
Models and thinking
—
Documented
—
ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES
Models and thinking
—
Documented
—
ANTHROPIC_FEDERATION_RULE_ID
Other
—
Documented
—
ANTHROPIC_FOUNDRY_API_KEY
Cloud providers
—
Documented
Foundry API key
ANTHROPIC_FOUNDRY_AUTH_TOKEN
Cloud providers
—
Documented
—
ANTHROPIC_FOUNDRY_BASE_URL
Cloud providers
—
Documented
Custom Foundry endpoint
ANTHROPIC_FOUNDRY_RESOURCE
Cloud providers
—
Documented
Foundry resource name
ANTHROPIC_LOG
Debugging
—SDK internal logging level
ANTHROPIC_MODEL
Models and thinking
—
Documented
Override the default Claude model
ANTHROPIC_ORGANIZATION_ID
Other
—
Documented
—
ANTHROPIC_PROFILE
Debugging
—
Documented
—
ANTHROPIC_SMALL_FAST_MODEL
Models and thinking
—
Documented
Override small/fast model for quick operations
ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION
Cloud providers
—
Documented
AWS region for small fast model on Bedrock
ANTHROPIC_VERTEX_BASE_URL
Cloud providers
—
Documented
—
ANTHROPIC_VERTEX_PROJECT_ID
Cloud providers
—
Documented
Google Cloud project ID
ANTHROPIC_WORKSPACE_ID
Other
—
Documented
—
API_FORCE_IDLE_TIMEOUT
Network and proxy
—
Documented
—
API_TIMEOUT_MS
Network and proxy
—
Documented
Request timeout in milliseconds
AWS_BEARER_TOKEN_BEDROCK
Cloud providers
—
Documented
Bearer token for Bedrock authentication
BASH_DEFAULT_TIMEOUT_MS
Network and proxy
—
Documented
—
BASH_MAX_OUTPUT_LENGTH
Shell and tools
—
Documented
Max bash output character length
BASH_MAX_TIMEOUT_MS
Network and proxy
—
Documented
—
BETA_TRACING_ENDPOINT
Other
—
Documented
Custom endpoint for beta tracing
CCR_FORCE_BUNDLE
Feature toggles
—
Documented
—
CLAUDECODE
Other
—
Documented
Set to 1 in child shell processes (auto-set)
CLAUDE_AFK_COUNTDOWN_MS
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_AFK_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_AFTER_LAST_COMPACT
Context and compaction
Present since v2.1.69 or earlierRequest only conversation logs after last compaction
CLAUDE_AGENT
Agents and subagents
Added between v2.1.118 and v2.1.123Short-form identifier for the current agent, used in inter-agent messaging and log attribution.
CLAUDE_AGENTS_AUTO_RELAUNCHED_AT
Agents and subagents
Added between v2.1.118 and v2.1.123Timestamp set when the agent fleet was automatically relaunched after a crash. Downstream consumers can detect state that predates the relaunch and invalidate…
CLAUDE_AGENTS_SELECT
Agents and subagents
Added between v2.1.118 and v2.1.123Selects which agents from a fleet configuration are active for this session or job. Analogous to a feature flag for agents: target a specific agent variant…
CLAUDE_AGENT_SDK_CLIENT_APP
Agents and subagents
Present since v2.1.69 or earlierClient application name
CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS
Agents and subagents
Present since v2.1.69 or earlier
Documented
Disable built-in agent types
CLAUDE_AGENT_SDK_DISABLE_MCP_MANIFESTS
Agents and subagents
Added between v2.1.269 and v2.1.283—
CLAUDE_AGENT_SDK_MCP_NO_PREFIX
Agents and subagents
Present since v2.1.69 or earlier
Documented
Don't prefix MCP tool names with server name
CLAUDE_AGENT_SDK_VERSION
Agents and subagents
Present since v2.1.69 or earlierAgent SDK version sent in User-Agent header
CLAUDE_AI_AUTHORIZE_URL
Authentication
Present since v2.1.69 or earlierAuthorization URL endpoint
CLAUDE_AI_HOST
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_AI_IMPORT_SHAPE
Other
Removed between v2.1.252 and v2.1.266—
CLAUDE_AI_INFERENCE_SCOPE
Other
Present since v2.1.69 or earlier—
CLAUDE_AI_OAUTH_SCOPES
Authentication
Removed between v2.1.269 and v2.1.283—
CLAUDE_AI_ORIGIN
Other
Added in v2.1.84Overrides the base URL for Claude AI authentication endpoints. This complements the existing CLAUDE_CODE_API_BASE_URL (which controls the inference endpoint)…
CLAUDE_AI_PLUGINS_SCOPE
Plugins and skills
Added between v2.1.266 and v2.1.269—
CLAUDE_AI_PROFILE_SCOPE
Debugging
Present since v2.1.69 or earlier—
CLAUDE_AI_PROJECTS_READ_SCOPE
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_AI_PROJECTS_WRITE_SCOPE
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_API_SKILL_DESCRIPTION
Plugins and skills
Removed between v2.1.247 and v2.1.252Registration hook for the built-in "claude-api" skill that bundles Anthropic SDK docs (Python, TypeScript, Java, Go, Ruby, PHP, C#, curl) plus shared…
CLAUDE_ARTIFACT_HOST_GRANT
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS
Network and proxy
Added between v2.1.108 and v2.1.114
Documented
Default 600,000ms (10 minutes). Directly backs v2.1.113's "subagents that stall mid-stream now fail with a clear error after 10 minutes" changelog bullet. Tune…
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE
Context and compaction
Present since v2.1.69 or earlier
Documented
Set when auto-compaction triggers (percentage threshold)
CLAUDE_AUTO_BACKGROUND_TASKS
Sessions
Present since v2.1.69 or earlier
Documented
Enable automatic background task execution
CLAUDE_AX_ANNOUNCEMENT_HOLD_MS
Terminal and UI
Added in v2.1.288—
CLAUDE_AX_PREPARK_MS
Terminal and UI
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_AX_REWRITE_HELD_ANNOUNCEMENT
Terminal and UI
Added in v2.1.288—
CLAUDE_AX_SCREEN_READER
Terminal and UI
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_AX_STARTUP_QUIET_MS
Terminal and UI
Added between v2.1.215 and v2.1.217
Documented
Startup quiet window (milliseconds) for screen-reader mode. First shipped v2.1.217; the changelog names the fix but not the knob.
CLAUDE_BASE
Other
Added in v2.1.92Likely overrides the base URL or base configuration path for Claude Code. This is a compact alternative to the more specific CLAUDE_CODE_API_BASE_URL —…
CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR
Shell and tools
Present since v2.1.69 or earlier
Documented
Maintain consistent working directory across commands
CLAUDE_BASH_NO_LOGIN
Shell and tools
—Replaced by CLAUDE_CODE_SHELL_PREFIX
CLAUDE_BG_AUTH_SNAPSHOT_PATH
Authentication
Added between v2.1.138 and v2.1.143Path for snapshotting background session auth credentials to disk. Fixes the failure mode where a background session lost auth mid-run and corrupted its state…
CLAUDE_BG_AUTO_MEMORY_OFF
Memory and CLAUDE.md
Added in v2.1.285—
CLAUDE_BG_BACKEND
Sessions
Added between v2.1.108 and v2.1.114Set to "daemon" to route background work through a daemon backend. The code path is wrapped around EIO/EPIPE handling — pipe/socket IPC with graceful…
CLAUDE_BG_CLAIM_AUTH
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_BG_DISPATCHER_RATE_LIMIT_TIER
Sessions
Added between v2.1.252 and v2.1.266—
CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPE
Sessions
Added between v2.1.247 and v2.1.252—
CLAUDE_BG_ISOLATION
Sessions
Added between v2.1.118 and v2.1.123Isolation mode for background agent processes — controls how separated the daemon's process space is from the foreground session. Values likely span a…
CLAUDE_BG_MEMORY_TOGGLED_OFF
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212—
CLAUDE_BG_POST_CLEAR_RESPAWN
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_BG_PTY_AUTH
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_BG_RENDEZVOUS_SOCK
Sessions
Added between v2.1.118 and v2.1.123Socket path for the IPC channel between a foreground Claude session and the background daemon. The daemon starts independently and listens; the foreground…
CLAUDE_BG_RV_AUTH
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_BG_SESSION_PERMISSION_RULES
Permissions and sandbox
Added between v2.1.143 and v2.1.212—
CLAUDE_BG_SOCKET_TOKENS_PATH
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_BG_SOURCE
Sessions
Added between v2.1.118 and v2.1.123Tags where a background job originated: CLI, SDK, Remote Control, another agent. Present on the daemon side so it can route, prioritize, or attribute work…
CLAUDE_BG_STARTUP_WEDGE_MS
Sessions
Added between v2.1.128 and v2.1.138Startup jitter for background sessions. When you spawn many agents simultaneously, they can race for the same auth or daemon connections. This introduces a…
CLAUDE_BG_TCC_DISCLAIMED
Sessions
Added between v2.1.138 and v2.1.143macOS TCC (Transparency, Consent, and Control) permission disclaimer state for background sessions. Background agents without a controlling terminal need…
CLAUDE_BG_WORKSPACE_TRUSTED
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_BRIDGE_BASE_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_OAUTH_TOKEN
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_REATTACH_GROUPING
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_REATTACH_NO_BACKFILL
Sessions
Added between v2.1.224 and v2.1.227—
CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_REATTACH_OWNER_ACCT
Sessions
Added between v2.1.224 and v2.1.227—
CLAUDE_BRIDGE_REATTACH_OWNER_ORG
Sessions
Removed between v2.1.245 and v2.1.247—
CLAUDE_BRIDGE_REATTACH_SEQ
Sessions
Added in v2.1.118Sequence number for the bridge reconnection protocol. At-least-once delivery semantics: the daemon replays events the bridge missed since this sequence point.…
CLAUDE_BRIDGE_REATTACH_SESSION
Sessions
Added in v2.1.118Session identity used during bridge reconnection. Pairs with CLAUDE_BRIDGE_REATTACH_SEQ — the bridge presents both to resume exactly where it disconnected.
CLAUDE_BRIDGE_SESSION_INGRESS_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_BRIDGE_USE_CCR_V2
Sessions
Removed between v2.1.143 and v2.1.212Toggle for CCR v2 bridge protocol — companion to the existing CLAUDE_CODE_USE_CCR_V2 introduced in v2.1.69. Suggests the bridge layer (IDE extensions, remote…
CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CHROME_CLASSIFIER_FLOOR
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CHROME_PAIRED_DEVICE_ID
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CHROME_PERMISSION_MODE
Permissions and sandbox
Present since v2.1.69 or earlierPermission mode for Claude for Chrome
CLAUDE_CHROME_TAB_GROUP_KEY
Other
Added in v2.1.286—
CLAUDE_CLIENT_PRESENCE_FILE
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_3P_PROBE_WROTE_OPUS_DEFAULT
Models and thinking
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_3P_PROBE_WROTE_SONNET_DEFAULT
Models and thinking
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_3P_SEEDED_OPUS_DEFAULT
Models and thinking
Added in v2.1.285—
CLAUDE_CODE_ACCESSIBILITY
Terminal and UI
Present since v2.1.69 or earlier
Documented
Enable accessibility mode; disables cursor hiding
CLAUDE_CODE_ACCOUNT_TAGGED_ID
Other
Added between v2.1.77 and v2.1.79Stores a tagged or decorated account identifier, distinct from the existing CLAUDE_CODE_ACCOUNT_UUID. While the UUID is a raw unique identifier, a "tagged" ID…
CLAUDE_CODE_ACCOUNT_UUID
Other
Present since v2.1.69 or earlierPre-configured account UUID
CLAUDE_CODE_ACCOUNT_UUIDI
Other
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_ACTION
Other
Present since v2.1.69 or earlierIndicates running as GitHub Action
CLAUDE_CODE_ACT_DONT_REDERIVE
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD
Memory and CLAUDE.md
Present since v2.1.69 or earlier
Documented
Additional directories to scan for CLAUDE.md files (colon-separated)
CLAUDE_CODE_ADDITIONAL_PROTECTION
Other
Present since v2.1.69 or earlierAdd additional protection header to API requests
CLAUDE_CODE_ADOPT_UNDERIVABLE_PARKED_PERMISSION
Permissions and sandbox
Added in v2.1.238—
CLAUDE_CODE_AGENT
Agents and subagents
Added between v2.1.118 and v2.1.123Full agent descriptor passed into a spawned agent process — likely the agent's frontmatter (tools, allowed/disallowed lists, system prompt path) so the child…
CLAUDE_CODE_AGENT_COST_STEER
Agents and subagents
Removed between v2.1.138 and v2.1.143Controls cost-aware behavior for subagent delegation. As Claude Code's multi-agent architecture matures — named subagents now appear in @ mention typeahead[1]…
CLAUDE_CODE_AGENT_LIST_IN_MESSAGES
Agents and subagents
Removed between v2.1.143 and v2.1.212An early agent-listing toggle, made obsolete by the Agent View and coordinator surfaces that now own how agents are shown.
CLAUDE_CODE_AGENT_PROXY_GH_SHIM
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_AGENT_PROXY_GIT_CONFIG
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_AGENT_PROXY_GIT_HOSTS
Network and proxy
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_AGENT_RULE_DISABLED
Agents and subagents
Present since v2.1.69 or earlierDisable agent rules
CLAUDE_CODE_AGENT_SWARMS
Agents and subagents
—Replaced by CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
CLAUDE_CODE_AGENT_VIEW_RELAUNCH
Agents and subagents
Added between v2.1.138 and v2.1.143Force-relaunches the Agent View UI component when it gets into a bad state. The Agent View is a separate surface from the main session; this is its dedicated…
CLAUDE_CODE_ALDER_WICKET
Other
Removed in v2.1.218—
CLAUDE_CODE_ALTGR_AS_TEXT
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT
Terminal and UI
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_ALWAYS_ENABLE_EFFORT
Models and thinking
Added in v2.1.70
Documented
Force-enable reasoning effort level regardless of other settings. Useful for ensuring CLAUDE_CODE_EFFORT_LEVEL always takes effect, even in contexts where it…
CLAUDE_CODE_AMBER_ASTROLABE
Other
Added between v2.1.215 and v2.1.217—
CLAUDE_CODE_API_BASE_URL
Network and proxy
Present since v2.1.69 or earlierCustom Claude Code API base URL for proxies
CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR
Authentication
Present since v2.1.69 or earlierFile descriptor to read API key from
CLAUDE_CODE_API_KEY_HELPER_TTL_MS
Authentication
Present since v2.1.69 or earlier
Documented
Cache TTL for API key helper
CLAUDE_CODE_APPEND_PROMPT_HEAD
Other
Added in v2.1.284—
CLAUDE_CODE_ARG_KEY_SHAPE
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_ARTIFACT
Other
Removed in v2.1.292Turns on Artifacts, with companions for its API endpoint, direct upload, and MCP exposure. Claude Code can produce a first-class artifact now — and share it…
CLAUDE_CODE_ARTIFACTS_API_BASE_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ARTIFACTS_API_TOKEN
Authentication
Added between v2.1.219 and v2.1.221—
CLAUDE_CODE_ARTIFACT_ASSETS
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_ARTIFACT_ASSET_BASE_URL
Network and proxy
Added between v2.1.219 and v2.1.221—
CLAUDE_CODE_ARTIFACT_AUTO_OPEN
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_ARTIFACT_COMMENTS
Other
Added between v2.1.219 and v2.1.221
Documented
—
CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT
Other
Added between v2.1.219 and v2.1.221
Documented
—
CLAUDE_CODE_ARTIFACT_COMMENT_FAST_ACK
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_ARTIFACT_COMMENT_FAST_ACK_FIXED
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_ARTIFACT_COMMENT_RESPONDER
Other
Added between v2.1.224 and v2.1.227—
CLAUDE_CODE_ARTIFACT_DB
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_CODE_ARTIFACT_DB_STR_REPLACE
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ARTIFACT_DELETE
Other
Added between v2.1.238 and v2.1.241Enables the delete-Artifact path (owner-only, requires confirmation, blocked in plan mode). The gate refuses in remote sessions and otherwise falls back to the…
CLAUDE_CODE_ARTIFACT_DIRECT_UPLOAD
Other
Removed between v2.1.238 and v2.1.241—
CLAUDE_CODE_ARTIFACT_FD
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_FIVE_CLASS_ASKS
Other
Removed in v2.1.293—
CLAUDE_CODE_ARTIFACT_FRESH_READ
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_HOT
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_ARTIFACT_INHERITED_TYPE_GRANT
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_LIVE_BASE_URL
Network and proxy
Added between v2.1.219 and v2.1.221—
CLAUDE_CODE_ARTIFACT_MCP
MCP
Removed in v2.1.293—
CLAUDE_CODE_ARTIFACT_MULTI_FILE
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ARTIFACT_OPENING_PREFETCH
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_OPEN_ACTION
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ARTIFACT_PATH_PIN
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_PIN
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_ARTIFACT_PRESENCE
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_ARTIFACT_PREVIEW
Other
Removed in v2.1.292—
CLAUDE_CODE_ARTIFACT_PREVIEW_EMULATOR
Other
Added in v2.1.292Pins the artifact-preview emulator on (true) or off (false); left unset, a feature flag decides. When on, the emulator checks its skill's files first and stays…
CLAUDE_CODE_ARTIFACT_QUICKSTART
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_REPL
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_ARTIFACT_ROOM
Other
Added in v2.1.238—
CLAUDE_CODE_ARTIFACT_SHARE
Other
Added in v2.1.286—
CLAUDE_CODE_ARTIFACT_START_KIT
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_SYNC_BASE_URL
Network and proxy
Added in v2.1.238—
CLAUDE_CODE_ARTIFACT_TEXT_VARIANT
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_ARTIFACT_TOOLSET
Shell and tools
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ARTIFACT_TYPES
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_ARTIFACT_TYPE_CATALOG
Debugging
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_ARTIFACT_TYPE_CLOUD_CREATE
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_ARTIFACT_VERIFY
Other
Added in v2.1.238—
CLAUDE_CODE_ARTIFACT_VERSIONS
Other
Added in v2.1.292When set, the session can list and read an artifact's earlier versions; without it, a session reports that an artifact's earlier versions are not available.…
CLAUDE_CODE_ARTIFACT_VIEWER_BASE_URL
Network and proxy
Added in v2.1.229—
CLAUDE_CODE_ATTRIBUTION_ANNOUNCEMENT
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_ATTRIBUTION_HEADER
Other
Present since v2.1.69 or earlier
Documented
API billing header in system prompt
CLAUDE_CODE_ATTRIBUTION_STATUS_TIMEOUT_MS
Network and proxy
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_AUTH_FAIL_EXIT_MS
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_AUTO_BACKGROUND_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS
Sessions
Removed between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_AUTO_COMPACT_WINDOW
Context and compaction
Added between v2.1.77 and v2.1.79
Documented
Controls the token window threshold at which automatic context compaction kicks in. Works alongside the existing CLAUDE_AUTOCOMPACT_PCT_OVERRIDE variable but…
CLAUDE_CODE_AUTO_CONNECT_IDE
Network and proxy
Present since v2.1.69 or earlier
Documented
Auto-connect to IDE on startup
CLAUDE_CODE_AUTO_MODE_ARTIFACT_CONSENT_RULE
Permissions and sandbox
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_AUTO_MODE_CANDIDATE_WORDING
Permissions and sandbox
Removed in v2.1.286—
CLAUDE_CODE_AUTO_MODE_CLASSIFIER_OVERLAP
Permissions and sandbox
Removed in v2.1.294—
CLAUDE_CODE_AUTO_MODE_CLASSIFIER_QUEUE
Permissions and sandbox
Removed between v2.1.219 and v2.1.221—
CLAUDE_CODE_AUTO_MODE_CLASSIFY_ASK_USER_QUESTION
Permissions and sandbox
Added between v2.1.222 and v2.1.224—
CLAUDE_CODE_AUTO_MODE_CLASSIFY_EDITS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Turns the classification pass on: every edit runs through the classifier before it touches disk. Every change leaves a recorded decision you can inspect, which…
CLAUDE_CODE_AUTO_MODE_EDIT_REMOVAL
Permissions and sandbox
Added between v2.1.143 and v2.1.212Governs whether Auto mode may delete content as part of an edit. Deletions are the riskiest edit class, so they get their own policy.
CLAUDE_CODE_AUTO_MODE_EDIT_REMOVAL_CAP
Permissions and sandbox
Added between v2.1.143 and v2.1.212Caps how much a single autonomous edit can remove before it's held for a human. A direct answer to the runaway-refactor failure where an agent "simplifies" by…
CLAUDE_CODE_AUTO_MODE_EXTERNAL_PERMISSIONS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Hands permission decisions to an external policy engine instead of the built-in prompt. This is the hook an enterprise needs to enforce its own approval rules…
CLAUDE_CODE_AUTO_MODE_GIT_STATUS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Feeds the working tree's git status into the classifier's context. An edit means something different in a clean repo than in one with forty dirty files.
CLAUDE_CODE_AUTO_MODE_GIT_STATUS_LIMIT
Permissions and sandbox
Added between v2.1.143 and v2.1.212Bounds how much of that status is included, so the classifier prompt doesn't balloon in large or messy repos. Cost and latency control for the gate.
CLAUDE_CODE_AUTO_MODE_GIT_STATUS_UPLOADS
Permissions and sandbox
Added between v2.1.143 and v2.1.212Controls whether git-status context is uploaded to the classification service. A data-governance knob — some orgs don't want file paths and change sets leaving…
CLAUDE_CODE_AUTO_MODE_HEARTH_MEMBER_RELAY_ROWS
Permissions and sandbox
Added in v2.1.286—
CLAUDE_CODE_AUTO_MODE_MODEL
Models and thinking
Added between v2.1.143 and v2.1.212Picks the model that classifies each proposed edit — deliberately separate from the model doing the work. A small, fast model here keeps the safety check cheap…
CLAUDE_CODE_AUTO_MODE_OUTCOME_CODES
Permissions and sandbox
Added between v2.1.143 and v2.1.212Structured outcome codes for the classifier's verdicts instead of free text. Makes autonomous-edit outcomes machine-readable — the basis for telemetry,…
CLAUDE_CODE_AUTO_MODE_PRIOR_ASSISTANT_CONTEXT
Context and compaction
Added between v2.1.143 and v2.1.212Feeds prior assistant turns into the decision, so the classifier can see the reasoning behind an edit. Intent matters — the same diff can be safe or reckless…
CLAUDE_CODE_AUTO_MODE_REPO_VISIBILITY
Permissions and sandbox
Added between v2.1.143 and v2.1.212Lets behavior depend on whether the repo is public or private. Being more conservative in public repos, where a bad edit is instantly visible, is the obvious…
CLAUDE_CODE_AUTO_MODE_SEGMENTED_TRANSCRIPT
Permissions and sandbox
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_AUTO_MODE_SERVER
Permissions and sandbox
—
Documented
—
CLAUDE_CODE_AUTO_MODE_SIBLING_CONTEXT
Context and compaction
Removed between v2.1.219 and v2.1.221Includes sibling files (or sessions) when classifying. Lets the gate reason about consistency across related files instead of judging each change in isolation.
CLAUDE_CODE_AUTO_MODE_TEMPERATURE
Permissions and sandbox
Added between v2.1.143 and v2.1.212Temperature for the classifier. Low values make the safe/hold call deterministic and repeatable — exactly what you want for a gate that fires on every write.
CLAUDE_CODE_AUTO_MODE_TIER
Permissions and sandbox
Added in v2.1.286—
CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS
Cloud providers
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_BASALT_COVE
Other
Added between v2.1.143 and v2.1.212An internal codename — one of five this stretch (PEWTER_OWL, LANTERN_PRISM, WALNUT_SPIRE, and a PEWTER_OWL_TOOL). Named flags with no changelog entry are…
CLAUDE_CODE_BASE_REF
Other
Present since v2.1.69 or earlierGit base ref for diff operations
CLAUDE_CODE_BASE_REFS
Other
—Specifies base git references (branches, tags, or SHAs) for diff comparison when Claude Code operates in a worktree or feature branch. In multi-worktree agent…
CLAUDE_CODE_BASH_EDIT_DIFF
Shell and tools
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_BASH_OUTPUT_AUDIENCE_NOTE
Shell and tools
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR
Permissions and sandbox
Present since v2.1.69 or earlierShow indicator when bash runs in sandbox
CLAUDE_CODE_BENCH_LIVE_COUNTS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_BG_CLASSIFIER_MODEL
Models and thinking
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_BG_TASKS_REPORT_RUNNING
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_BISON_CAIRN
Other
Added between v2.1.215 and v2.1.217—
CLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE
Terminal and UI
Present since v2.1.69 or earlierOverride token limit for input blocking
CLAUDE_CODE_BREEZY_HORIZON
Other
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_BRIDGE_CHILD_ARTIFACT
Sessions
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_BRIDGE_CHILD_AUTO_DEFAULT
Sessions
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_BRIDGE_CHILD_MACHINE_SETTINGS
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_BRIDGE_MCP_CARRIER
MCP
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_BRIDGE_OWNER_ACCOUNT_UUID
Sessions
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_BRIDGE_OWNER_ORG_UUID
Sessions
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_BRIDGE_PROMPT_SHA256
Sessions
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_BRIDGE_SESSION_ID
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_BRIDGE_SOURCE_DIR
Sessions
Added in v2.1.286—
CLAUDE_CODE_BRIEF
Other
Added between v2.1.70 and v2.1.72Toggle brief/concise output mode — shorter responses from Claude. Useful for scripted workflows or agents that don't need verbose explanations.
CLAUDE_CODE_BRIEF_UPLOAD
Other
Added between v2.1.70 and v2.1.72Brief mode specifically for upload operations. Likely suppresses progress details when uploading files or context to the session.
CLAUDE_CODE_BS_AS_CTRL_BACKSPACE
Other
Added between v2.1.108 and v2.1.114
Documented
Treats a bare backspace keypress as Ctrl+Backspace (delete-word). Default: on Windows unless the terminal is mintty or cygwin. Exists because Windows terminals…
CLAUDE_CODE_BUBBLEWRAP
Permissions and sandbox
Present since v2.1.69 or earlierSet to 1 when running in bubblewrap sandbox (Linux) [6]
CLAUDE_CODE_BYOC_ENABLE_DATADOG
Telemetry
Added between v2.1.128 and v2.1.138Opt-in Datadog telemetry for BYOC (Bring Your Own Cloud) Bedrock/Vertex deployments. Route Claude Code operational metrics to Datadog alongside your existing…
CLAUDE_CODE_CALM_MOCHI
Other
Added in v2.1.290—
CLAUDE_CODE_CARVED_SLATE
Other
Removed between v2.1.266 and v2.1.269—
CLAUDE_CODE_CCR_EARLY_HYDRATE_PREFETCH
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_CCR_EARLY_PLUGINS_SYNC
Plugins and skills
Added in v2.1.286—
CLAUDE_CODE_CCR_EARLY_REMOTE_CONNECT
Network and proxy
Removed in v2.1.290—
CLAUDE_CODE_CCR_EARLY_SKILLS_SYNC
Plugins and skills
Added in v2.1.287—
CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN
Other
Added in v2.1.287—
CLAUDE_CODE_CCR_LAZY_SUBAGENT_HYDRATE
Agents and subagents
Removed between v2.1.266 and v2.1.269—
CLAUDE_CODE_CCR_SKIP_FRESH_MIGRATIONS
Feature toggles
Added in v2.1.287—
CLAUDE_CODE_CCR_SURFACE
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_CERT_STORE
Authentication
Added between v2.1.100 and v2.1.104
Documented
Controls which certificate authority store Claude Code uses for TLS verification. The v2.1.101 changelog[1] explains that the OS CA certificate store is now…
CLAUDE_CODE_CHILD_SESSION
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_CHROME_MCP_ORG_DENIED
MCP
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_CLASSIFIER_SUMMARY
Other
Added between v2.1.118 and v2.1.123Carries the output of a prompt classifier as a structured summary. Where CLAUDE_CODE_VERIFY_PROMPT triggers classification, this variable holds the result so…
CLAUDE_CODE_CLIENT_CERT
Authentication
Present since v2.1.69 or earlier
Documented
Path to client certificate for mTLS
CLAUDE_CODE_CLIENT_DATA_URL
Network and proxy
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_CLIENT_KEY
Authentication
Present since v2.1.69 or earlier
Documented
Path to client private key
CLAUDE_CODE_CLIENT_KEYPM
Authentication
Removed between v2.1.245 and v2.1.247—
CLAUDE_CODE_CLIENT_KEY_PASSPHRASE
Authentication
Present since v2.1.69 or earlier
Documented
Passphrase for encrypted client key
CLAUDE_CODE_CLOUD_SESSION_ID
Sessions
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_COLD_COMPACT
Context and compaction
Added between v2.1.123 and v2.1.126—
CLAUDE_CODE_COMMIT_BETWEEN_KEYS
Other
Removed in v2.1.284—
CLAUDE_CODE_COMMIT_LOG
Debugging
Removed between v2.1.224 and v2.1.227Likely controls whether or where Claude Code logs commit operations. This could enable audit trails for automated commits made by agents and sub-agents —…
CLAUDE_CODE_COMPILED_ACORN
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_CONFIG_PROBE
Other
Added in v2.1.286—
CLAUDE_CODE_CONFIG_WATCH_EVENTS
Other
Added in v2.1.288—
CLAUDE_CODE_CONNECT_TIMEOUT_MS
Network and proxy
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_CONTAINER_ID
Other
Present since v2.1.69 or earlierContainer/pod identifier sent in HTTP headers
CLAUDE_CODE_COORDINATOR_EXTRA_TOOLS
Agents and subagents
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_COORDINATOR_FORCE_WORKER_INHERIT_MODEL
Agents and subagents
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_COORDINATOR_MODE
Agents and subagents
Added between v2.1.143 and v2.1.212Runs a session as a coordinator over child agents, with companions for its toolset and whether memory flows down the tree. The agent-teams plumbing that was…
CLAUDE_CODE_COORDINATOR_PROPAGATE_NESTED_MEMORY
Agents and subagents
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_COORDINATOR_SKILL_GUIDANCE
Agents and subagents
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_COORDINATOR_WORKER_CHECKIN_SECONDS
Agents and subagents
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_COWORK_FRAME_ARTIFACTS
Other
Added in v2.1.228—
CLAUDE_CODE_COZY_TEAPOT
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_CURRIED_TRINKET
Other
Added in v2.1.290—
CLAUDE_CODE_CUSTOM_OAUTH_URL
Authentication
Present since v2.1.69 or earlierCustom OAuth endpoint URL
CLAUDE_CODE_DAEMON_COLD_START
Other
Added between v2.1.118 and v2.1.123Set when the daemon starts from a completely cold state rather than resuming warm. Lets the daemon emit different startup telemetry and skip cache-warm…
CLAUDE_CODE_DAPPER_LAGOON
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS
Telemetry
Present since v2.1.69 or earlierDatadog metrics flush interval (ms)
CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MS
Telemetry
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DEBUG_LOGS_DIR
Debugging
Present since v2.1.69 or earlier
Documented
Custom directory for debug logs
CLAUDE_CODE_DEBUG_LOG_LEVEL
Debugging
Added between v2.1.70 and v2.1.72
Documented
Set debug logging verbosity level. More granular than the existing DEBUG=1 boolean — probably accepts levels like "info", "warn", "error", "debug".
CLAUDE_CODE_DEBUG_REPAINTS
Debugging
Added between v2.1.79 and v2.1.83Enables debug logging for terminal repaint operations. This release fixes several rendering issues — screen flashing blank after idle, scrollback jumping when…
CLAUDE_CODE_DECSTBM
Other
Added between v2.1.108 and v2.1.114Enables 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_DESIGN_OAUTH_CLIENT_ID
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DESKTOP_APP_VERSION
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_DESKTOP_SKILL_SWITCHES
Plugins and skills
Added in v2.1.293—
CLAUDE_CODE_DEV_RAW_CHANGELOG_URL
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DIAGNOSTICS_FILE
Other
Removed in v2.1.290Path to write diagnostics output
CLAUDE_CODE_DIR_SYNC_ARCHIVE
Other
Removed between v2.1.245 and v2.1.247—
CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING
Feature toggles
Removed in v2.1.285—
CLAUDE_CODE_DIR_SYNC_ENGINE
Other
Removed in v2.1.285—
CLAUDE_CODE_DIR_SYNC_FFWD
Other
Removed in v2.1.285—
CLAUDE_CODE_DIR_SYNC_GIT
Other
Removed in v2.1.285—
CLAUDE_CODE_DIR_SYNC_OVERLAY
Other
Removed between v2.1.241 and v2.1.245—
CLAUDE_CODE_DIR_SYNC_STREAM
Network and proxy
Removed in v2.1.285—
CLAUDE_CODE_DISABLE_1M_CONTEXT
Context and compaction
Present since v2.1.69 or earlier
Documented
Disable extended 1M token context window
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING
Models and thinking
Present since v2.1.69 or earlier
Documented
Disable adaptive thinking mode
CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION
Feature toggles
Added between v2.1.222 and v2.1.224
Documented
—
CLAUDE_CODE_DISABLE_ADVISOR_TOOL
Shell and tools
Added between v2.1.79 and v2.1.83
Documented
Disables what appears to be an internal advisory tool. The "Advisor" pattern suggests a meta-tool that provides guidance or recommendations to the model during…
CLAUDE_CODE_DISABLE_AGENTS_FLEET
Agents and subagents
Removed between v2.1.138 and v2.1.143Kill switch for the entire agent fleet subsystem — no selection, no auto-relaunch, no fleet coordination. Its existence implies the fleet is on by default for…
CLAUDE_CODE_DISABLE_AGENT_VIEW
Agents and subagents
Added between v2.1.138 and v2.1.143
Documented
Disables Agent View. Renamed successor to CLAUDE_CODE_DISABLE_AGENTS_FLEET (removed this release). If you're managing Claude Code via policy config and aren't…
CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN
Terminal and UI
Added between v2.1.128 and v2.1.138
Documented
Prevents the TUI from using the terminal alternate screen buffer. If Claude Code's UI is eating your terminal history, breaking tmux scrollback, or failing in…
CLAUDE_CODE_DISABLE_ARTIFACT
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_ATTACHMENTS
Feature toggles
Present since v2.1.69 or earlier
Documented
File/image attachments
CLAUDE_CODE_DISABLE_ATTRIBUTION_BASELINE_REUSE
Feature toggles
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_DISABLE_ATTRIBUTION_CROSS_REPO
Feature toggles
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_DISABLE_AUTH_REFRESH_LOCK
Authentication
Added in v2.1.286
Documented
Turns off the lock that coordinates a GCP or AWS credential refresh across processes. With the lock on, one process refreshes and opens a single login browser…
CLAUDE_CODE_DISABLE_AUTO_MEMORY
Memory and CLAUDE.md
Present since v2.1.69 or earlier
Documented
Disable automatic memory (MEMORY.md)
CLAUDE_CODE_DISABLE_AWAITING_USER_IDLE
Feature toggles
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS
Sessions
Present since v2.1.69 or earlier
Documented
Disable background tasks entirely
CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_DEFAULT
Cloud providers
Removed between v2.1.245 and v2.1.247
Documented
—
CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD
Cloud providers
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP
Shell and tools
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_BUNDLED_SKILLS
Plugins and skills
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_CFC_PROMPT
Feature toggles
Added between v2.1.252 and v2.1.266
Documented
—
CLAUDE_CODE_DISABLE_CLAUDE_API_SKILL
Plugins and skills
Removed between v2.1.252 and v2.1.266Disables the built-in Claude API skill. The Claude API skill auto-triggers when code imports anthropic or @anthropic-ai/sdk, providing SDK-aware guidance. In…
CLAUDE_CODE_DISABLE_CLAUDE_CODE_SKILL
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DISABLE_CLAUDE_MDS
Memory and CLAUDE.md
Present since v2.1.69 or earlier
Documented
Disable loading CLAUDE.md files
CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK
Feature toggles
Removed between v2.1.88 and v2.1.89Previously allowed disabling command injection detection. The safety check is now mandatory — no opt-out. This aligns with the changelog's hook hardening:…
CLAUDE_CODE_DISABLE_CRON
Feature toggles
Removed in v2.1.293
Documented
Disable cron/scheduled task functionality. Claude Code recently added /cron for recurring tasks — this lets you turn it off entirely.
CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT
Network and proxy
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_DISABLE_DIR_SYNC
Feature toggles
Removed in v2.1.285—
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS
Feature toggles
Present since v2.1.69 or earlier
Documented
Experimental beta API features
CLAUDE_CODE_DISABLE_EXPLORE_INHERIT_CAP
Feature toggles
Added between v2.1.215 and v2.1.217Lets the built-in Explore search agent run at the parent model instead of a cheaper capped default. First shipped v2.1.217; undocumented.
CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_FAST_MODE
Models and thinking
Present since v2.1.69 or earlier
Documented
Disable the /fast toggle that uses the same model with faster output
CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY
Telemetry
Present since v2.1.69 or earlier
Documented
Survey prompts
CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING
Feature toggles
Present since v2.1.69 or earlier
Documented
Git-based file checkpointing/backup
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS
Feature toggles
Present since v2.1.69 or earlier
Documented
—
CLAUDE_CODE_DISABLE_HOME_SETTINGS_SEED
Feature toggles
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_DISABLE_HOOK_FORWARDING
Feature toggles
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT
Shell and tools
Added in v2.1.288
Documented
Turns off the new prompt that catches a dangerous rm inside an inline bash -c or sh -c script. Left unset, such a command asks before running even under…
CLAUDE_CODE_DISABLE_LAUNCH_COMPOSER
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP
Models and thinking
Present since v2.1.69 or earlier
Documented
—
CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND
MCP
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_DISABLE_MEMORY_BULK_INFLATE
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DISABLE_MEMORY_MASS_DELETE_HOLD
Memory and CLAUDE.md
Added in v2.1.218—
CLAUDE_CODE_DISABLE_MEMORY_PERIODIC_RESYNC
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DISABLE_MEMORY_RO_UNSAVED_NOTICE
Memory and CLAUDE.md
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_DISABLE_MEMORY_STREAM_LIST
Network and proxy
Added between v2.1.143 and v2.1.212Turns off the incremental metadata-streaming path inside multi-store memory sync. That path (gated by the new tengu_memory_stream_list, default on) calls a…
CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK
Models and thinking
Added in v2.1.285
Documented
Present in the v2.1.285 build and absent from that release's notes.
CLAUDE_CODE_DISABLE_MOUSE
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Disables all mouse input handling in the terminal UI. Claude Code captures mouse events for interactive elements like clickable buttons and text selection, but…
CLAUDE_CODE_DISABLE_MOUSE_CLICKS
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Granular mouse click disable, added in v2.1.88. Superseded by the broader CLAUDE_CODE_DISABLE_MOUSE flag. The two-tier mouse control approach lasted one…
CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION
Network and proxy
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_DISABLE_NESTED_CHAIN_IDLE
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_DISABLE_NESTED_USER_REPAIR
Feature toggles
Added in v2.1.238—
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
Feature toggles
Removed in v2.1.287
Documented
Non-critical network requests
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK
Network and proxy
Added between v2.1.79 and v2.1.83
Documented
Disables the fallback path that retries failed streaming requests as non-streaming calls. The changelog explicitly documents this variable.
CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL
Plugins and skills
Present since v2.1.69 or earlier
Documented
Disable automatic plugin installation from marketplace
CLAUDE_CODE_DISABLE_ORG_MEMORY
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212Kill switch for a new organization-scoped memory subsystem. The sync entrypoint returns early — disabled — the moment this variable is set.
CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS
Permissions and sandbox
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_DISABLE_PLUGIN_FORWARDING
Plugins and skills
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_DISABLE_POLICY_SKILLS
Plugins and skills
Added between v2.1.87 and v2.1.88
Documented
Disables policy-enforced skills. Skills in Claude Code are specialized prompt-driven capabilities (like /commit or /review-pr) that can be configured at the…
CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENY
Shell and tools
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP
Context and compaction
Present since v2.1.69 or earlierDisable skipping pre-compaction checks
CLAUDE_CODE_DISABLE_PROACTIVITY
Feature toggles
Added in v2.1.290Turns off the proactivity selector, a behavior gated by tengu_proactivity_selector and on by default. When set, the value is carried into relaunched and…
CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_REFUSAL_RETRY
Network and proxy
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_DISABLE_STARTUP_WORK_GATE
Feature toggles
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS
Feature toggles
Added in v2.1.288
Documented
Turns structured outputs off for gateways or providers (such as Mantle) that reject them. The changelog ties this to session titles, memory recall and prompt…
CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT
Feature toggles
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_DISABLE_TERMINAL_TITLE
Terminal and UI
Present since v2.1.69 or earlier
Documented
Stop Claude Code from setting the terminal title
CLAUDE_CODE_DISABLE_THINKING
Models and thinking
Present since v2.1.69 or earlier
Documented
Completely disable extended thinking
CLAUDE_CODE_DISABLE_TURN_HANDOFF
Feature toggles
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT
Models and thinking
Added between v2.1.222 and v2.1.224
Documented
—
CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL
Terminal and UI
Added between v2.1.70 and v2.1.72
Documented
Disable virtual scrolling in terminal UI. Useful if virtual scroll causes rendering issues in certain terminal emulators or when piping output.
CLAUDE_CODE_DISABLE_VITALS_EMITTER
Feature toggles
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_DISABLE_WEB_FETCH
Shell and tools
Added in v2.1.285
Documented
Turns off the WebFetch tool. An environment variable, so it disables WebFetch without a managed-settings file. Added in v2.1.285.
CLAUDE_CODE_DISABLE_WINDOWS_SHELL_LAUNCHER
Shell and tools
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_DISABLE_WORKFLOWS
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_DISABLE_WORKING_SYNC
Feature toggles
Removed between v2.1.247 and v2.1.252—
CLAUDE_CODE_DISPATCH_V2D
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_DISPATCH_V2S
Other
Removed in v2.1.294—
CLAUDE_CODE_DONT_INHERIT_ENV
Other
Present since v2.1.69 or earlierStart shell with empty environment
CLAUDE_CODE_DOWNLOAD_DEADLINE_MS_FOR_TESTING
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_EAGER_FLUSH
Other
Present since v2.1.69 or earlierEagerly flush output buffers
CLAUDE_CODE_EDITOR_CODELIVERY
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_EFFORT_LEVEL
Models and thinking
Removed in v2.1.284
Documented
Reasoning effort: low, medium, or high (default). Controls adaptive thinking depth [4]
CLAUDE_CODE_ELEGANT_MEADOW
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS
Sessions
Added between v2.1.79 and v2.1.83
Documented
Controls whether Claude Code emits session state change events. This fits the growing SDK and Remote Control infrastructure — external consumers (IDE…
CLAUDE_CODE_EMIT_STARTUP_TIMING
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES
Shell and tools
Present since v2.1.69 or earlierEmit tool use summary events
CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT
Agents and subagents
Added between v2.1.108 and v2.1.114Authorizes SDK callers to append a custom string to a subagent's system prompt via options.appendSubagentSystemPrompt. Without this flag, the option is…
CLAUDE_CODE_ENABLE_AUTO_MODE
Permissions and sandbox
Added between v2.1.143 and v2.1.212
Documented
The master switch. Redundant on Bedrock/Vertex/Foundry now that Auto mode is default-on, but still the toggle everywhere else. It gates everything below.
CLAUDE_CODE_ENABLE_AWAY_SUMMARY
Feature toggles
Added between v2.1.104 and v2.1.107
Documented
Enables generation of a summary when the user returns after being away from an active session.
CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH
Plugins and skills
Removed between v2.1.245 and v2.1.247
Documented
Enables automatic background plugin refresh when the runtime detects updates are needed. Without this, refresh is synchronous and delays session startup.
CLAUDE_CODE_ENABLE_CFC
Feature toggles
Present since v2.1.69 or earlier
Documented
Enable Claude for Chrome browser automation
CLAUDE_CODE_ENABLE_DESIGN_SYNC
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL
Shell and tools
Added between v2.1.108 and v2.1.114Enables the experimental Advisor Tool — a server-side tool with its own advisorModel config option. Requires first-party auth; falls back to the…
CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL
Telemetry
Added between v2.1.128 and v2.1.138
Documented
Re-enables the session quality survey for enterprise deployments with OTEL enabled. Backs the v2.1.136 changelog bullet explicitly. If your org collects Claude…
CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING
Network and proxy
Present since v2.1.69 or earlier
Documented
Enable fine-grained (eager) input streaming for tools
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS
Feature toggles
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY
Models and thinking
Added between v2.1.128 and v2.1.138
Documented
Query available models from a gateway rather than a hardcoded list. For enterprise setups where model availability is controlled centrally — a new model rolls…
CLAUDE_CODE_ENABLE_LAUNCH_COMPOSER
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ENABLE_MENU_KIND_LANES
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ENABLE_MORNING_BRIEF
Feature toggles
Removed between v2.1.212 and v2.1.215—
CLAUDE_CODE_ENABLE_NARRATION
Feature toggles
Removed in v2.1.284—
CLAUDE_CODE_ENABLE_OPUS_4_7_FAST_MODE
Models and thinking
Added between v2.1.128 and v2.1.138
Documented
—
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION
Feature toggles
Present since v2.1.69 or earlier
Documented
Enables a prompt suggestion feature in the Claude Code UI. This likely surfaces contextual follow-up prompts or autocomplete suggestions based on the current…
CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER
Authentication
Added between v2.1.108 and v2.1.114Set to "1" to enable the proxy auth helper subsystem. Lets Claude Code shell out to an external program to fetch proxy credentials dynamically — for…
CLAUDE_CODE_ENABLE_REFRESH_MCP_TOOLS
MCP
Added between v2.1.143 and v2.1.212Enables an on-demand MCP-tool refresh capability, grouped with CLAUDE_CODE_ENABLE_TASKS and CLAUDE_CODE_ENABLE_REMOTE_RECAP. It lets a session re-fetch an MCP…
CLAUDE_CODE_ENABLE_REMOTE_RECAP
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING
Feature toggles
Present since v2.1.69 or earlierEnable file checkpointing in SDK mode
CLAUDE_CODE_ENABLE_TASKS
Feature toggles
Present since v2.1.69 or earlier
Documented
Enable the task system
CLAUDE_CODE_ENABLE_TELEMETRY
Telemetry
Present since v2.1.69 or earlier
Documented
Enable telemetry collection
CLAUDE_CODE_ENABLE_TODO_TOOLS
Shell and tools
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT
Authentication
Present since v2.1.69 or earlierAttach token usage info to messages
CLAUDE_CODE_ENABLE_XAA
Feature toggles
Added between v2.1.79 and v2.1.83Enables an internal feature flagged as "XAA." The acronym is opaque, but the ENABLE_ prefix and proximity to other experimental flags suggest this is an opt-in…
CLAUDE_CODE_ENHANCED_TELEMETRY_BETA
Telemetry
Present since v2.1.69 or earlierEnable enhanced telemetry (beta)
CLAUDE_CODE_ENTRYPOINT
Other
Present since v2.1.69 or earlierApplication entry point; auto-set based on context (e.g. cli, vscode, sdk-py) [7]
CLAUDE_CODE_ENVIRONMENT_KIND
Other
Present since v2.1.69 or earlierEnvironment: byoc, anthropic_cloud, bridge
CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION
Other
Added between v2.1.143 and v2.1.212Environment runner version
CLAUDE_CODE_EVAL_ALLOW_ARTIFACT_PUBLISH
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_EVAL_ALLOW_FLAG_OVERRIDES
Terminal and UI
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_EVAL_ARTIFACT_STUB_DIR
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_EVAL_CONFINED
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_EVAL_INTERVIEW_SESSION
Sessions
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_EXECPATH
Other
Added in v2.1.92Overrides the detected executable path for the Claude Code binary. This matters in environments where the binary is symlinked, wrapped in a shell script, or…
CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER
Other
Present since v2.1.69 or earlierExit after first UI render (testing)
CLAUDE_CODE_EXIT_AFTER_STOP_DELAY
Other
Present since v2.1.69 or earlier
Documented
Delay before exit after stop signal (ms)
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
Agents and subagents
Present since v2.1.69 or earlier
Documented
Enable Agent Teams (the official release of Swarms). Each agent works in an independent Git Worktree [1]
CLAUDE_CODE_EXPERIMENTAL_OBSERVER_AGENTS
Agents and subagents
Added between v2.1.143 and v2.1.212Agents that watch a session rather than act in it. The natural counterpart to autonomy: if agents edit on their own, you want independent observers checking…
CLAUDE_CODE_EXTRA_BODY
Other
Present since v2.1.69 or earlier
Documented
Additional JSON merged into API request bodies
CLAUDE_CODE_EXTRA_METADATA
Other
Added between v2.1.77 and v2.1.79Passes additional metadata to API requests beyond what Claude Code includes by default. This likely attaches custom key-value pairs to the Anthropic API call…
CLAUDE_CODE_FABLE_BRIDGE_DIALOG_TIMEOUT_MS
Network and proxy
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_FEDERATION_CACHE_DIR
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS
Authentication
Present since v2.1.69 or earlier
Documented
Max tokens for file read output
CLAUDE_CODE_FLAG_FETCH_WAIT_MS
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_FLEETVIEW_SIMPLE
Other
Added between v2.1.215 and v2.1.217Forces the simplified FleetView layout, the multi-agent monitoring surface. First shipped v2.1.216; undocumented.
CLAUDE_CODE_FLEET_PAST_SESSIONS
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FOOTER_INDICATOR
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_FORCE_BRIDGE
Sessions
Removed between v2.1.245 and v2.1.247—
CLAUDE_CODE_FORCE_EVALUATE_MEMORY
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_FIRST_LAUNCH
Feature toggles
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_FORCE_FULLSCREEN_UPSELL
Terminal and UI
Added between v2.1.108 and v2.1.114Forces the fullscreen TUI upsell prompt past the normal fullscreenUpsellSeenCount cap and the tengu_ochre_hollow gate. Internal test/demo affordance.
CLAUDE_CODE_FORCE_FULL_LOGO
Debugging
Removed between v2.1.245 and v2.1.247Force full ASCII logo display on startup
CLAUDE_CODE_FORCE_GLOBAL_CACHE
Shell and tools
Removed between v2.1.87 and v2.1.88Previously forced use of a global cache directory. Likely superseded by improved cache management that no longer needs a manual override.
CLAUDE_CODE_FORCE_MEMORY_SURVEY
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_MID_CONVERSATION_SYSTEM
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_RC_LONG_TURN_NUDGE
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_SANDBOX
Permissions and sandbox
Present since v2.1.69 or earlier—
CLAUDE_CODE_FORCE_SESSION_PERSISTENCE
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_FORCE_STRIKETHROUGH
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_FORCE_SYNC_OUTPUT
Feature toggles
Added between v2.1.128 and v2.1.138
Documented
Disable streaming output in favor of synchronous writes. If you're capturing Claude Code output in a script and seeing partial lines or buffering artifacts,…
CLAUDE_CODE_FORCE_TERMINAL_IMAGES
Terminal and UI
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_FORCE_TIP_ID
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_FORCE_WINDOWS_CREDMAN
Feature toggles
Added between v2.1.143 and v2.1.212Forces credential storage through the Windows Credential Manager. A FORCE_ override in the credential-backend family next to…
CLAUDE_CODE_FORK_SUBAGENT
Agents and subagents
Added between v2.1.114 and v2.1.117
Documented
Changelog-confirmed[1]: set to 1 to run subagents as forked processes (v2.1.117 on external builds, v2.1.121 extended to non-interactive SDK/-p sessions).…
CLAUDE_CODE_FORWARD_SUBAGENT_TEXT
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
Includes subagent text and thinking in stream-json output, paired with a new --forward-subagent-text flag. Shipped in v2.1.211 (npm 2026-07-15) and the one…
CLAUDE_CODE_FORWARD_USER_INTENT
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_FRAME_TIMING_LOG
Debugging
Removed between v2.1.269 and v2.1.283Enable per-frame render timing logs in the terminal UI. A diagnostic variable — when set, it likely writes timing data for each UI frame render cycle, useful…
CLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERY
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_GATEWAY_HINT_HEADERS
Other
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS
Network and proxy
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_GATEWAY_TOKEN
Authentication
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_GATEWAY_TOKEN_FILE_DESCRIPTOR
Authentication
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_GAULT_KESTREL
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_GB_BASE_URL
Network and proxy
Present since v2.1.69 or earlierAn internal base URL override, possibly for a "gradebook" or grading service used during internal testing. Its removal suggests the endpoint was consolidated…
CLAUDE_CODE_GB_DISK_CACHE_WHEN_TELEMETRY_OFF
Telemetry
Added between v2.1.143 and v2.1.212Opts GrowthBook (GB) flag data back into the on-disk cache under a telemetry-off profile, where feature-flag caching would otherwise be skipped. Shipped…
CLAUDE_CODE_GB_REFRESH_INTERVAL_MS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_GENTLE_PARASOL
Other
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_GIT_BASH_PATH
Shell and tools
Present since v2.1.69 or earlier
Documented
Git Bash executable path (Windows)
CLAUDE_CODE_GLOB_HIDDEN
Shell and tools
Present since v2.1.69 or earlier
Documented
Include hidden files in globs
CLAUDE_CODE_GLOB_NO_IGNORE
Shell and tools
Present since v2.1.69 or earlier
Documented
Ignore .gitignore rules in globs
CLAUDE_CODE_GLOB_TIMEOUT_SECONDS
Network and proxy
Present since v2.1.69 or earlier
Documented
Timeout for glob operations; default 20s (WSL: 60s)
CLAUDE_CODE_GOAL_CHECKIN_MINUTES
Other
Removed in v2.1.293
Documented
—
CLAUDE_CODE_GORSE_PLOVER
Other
Added in v2.1.218—
CLAUDE_CODE_GROWTHBOOK_KICK_FROM_INIT
Other
Added in v2.1.287—
CLAUDE_CODE_GROWTHBOOK_KICK_ON_WARM_CACHE
Other
Added in v2.1.288—
CLAUDE_CODE_GZIP_CCR_REQUEST_BODIES
Network and proxy
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_GZIP_DATADOG_LOGS
Telemetry
Added in v2.1.288—
CLAUDE_CODE_GZIP_REQUEST_BODIES
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_GZIP_REQUEST_BODY_BLOCKS
Network and proxy
Removed in v2.1.293Selects one of two gzip modes (1 or 2) for API request bodies at least 512KB in size; any other value, and the default, leaves it off. It sits alongside the…
CLAUDE_CODE_GZIP_REQUEST_BODY_LEVEL
Network and proxy
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_HANDBACK_PROVENANCE
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_HARBOR_KITE
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_CODE_HARBOR_KITE_CLOUD
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_HARBOR_KITE_PACING_OFF
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_HARMONIC_RIDDLE
Other
Added in v2.1.290—
CLAUDE_CODE_HERON_TALLOW
Other
Removed in v2.1.229—
CLAUDE_CODE_HFI_BEARER_TOKEN
Authentication
Removed in v2.1.290—
CLAUDE_CODE_HIDE_CWD
Terminal and UI
Added between v2.1.118 and v2.1.123
Documented
Changelog-confirmed[1] (v2.1.119): hides the working directory display in the startup logo. Useful for shared terminals, screen shares, or documentation…
CLAUDE_CODE_HIDE_SETTINGS_HINT
Terminal and UI
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_HOLD_REPORT_PARK_AT_INIT
Other
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_HOLD_UNANSWERED_PARKED_PERMISSION
Permissions and sandbox
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_HOME_SEED_HOLD_TIMEOUT_MS
Network and proxy
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_HOME_SEED_VERDICT_TIMEOUT_MS
Network and proxy
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_HOOKS_SAME_THREAD
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_HOSTED_DESKTOP
Other
Added in v2.1.290—
CLAUDE_CODE_HOST_AUTH_ENV_VAR
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_HOST_AUTH_REFRESH_TIMEOUT_MS
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_HOST_CREDS_FILE
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_HOST_GATEWAY_LINEAGE
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_HOST_HTTP_PROXY_PORT
Network and proxy
Removed between v2.1.245 and v2.1.247HTTP proxy port for host
CLAUDE_CODE_HOST_PLATFORM
Other
Present since v2.1.69 or earlierOverride platform detection: win32, darwin, linux
CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD
Other
Added in v2.1.285—
CLAUDE_CODE_HOST_SCHEDULED_RUN
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_HOST_SESSION_ID
Sessions
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_HOST_SKILL_CATALOG
Plugins and skills
Added in v2.1.292A JSON object ({"skills": [...]}) of 1 to 64 folder names that scopes which synced claude.ai skills a remote session loads. It is read only when a remote…
CLAUDE_CODE_HOST_SOCKS_PROXY_PORT
Network and proxy
Present since v2.1.69 or earlierSOCKS proxy port for host
CLAUDE_CODE_HOST_WORKTREE
Other
Added in v2.1.288—
CLAUDE_CODE_HOST_WORKTREE_FENCE
Other
Added in v2.1.288—
CLAUDE_CODE_HOVER_REST
Other
Added in v2.1.238—
CLAUDE_CODE_HTTPS_PROXY
Network and proxy
Added between v2.1.114 and v2.1.117Claude-namespaced HTTPS proxy URL. See CLAUDE_CODE_HTTP_PROXY above.
CLAUDE_CODE_HTTP_PROXY
Network and proxy
Added between v2.1.114 and v2.1.117Claude-namespaced HTTP proxy URL. Claude-namespacing avoids collisions with system HTTP_PROXY for other tools in the shell that should use a different proxy.…
CLAUDE_CODE_HUMBLE_HAMMOCK
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_IDE_HOST_OVERRIDE
Terminal and UI
Present since v2.1.69 or earlier
Documented
Custom host address for IDE communication
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL
Terminal and UI
Present since v2.1.69 or earlier
Documented
Skip automatic IDE extension install
CLAUDE_CODE_IDE_SKIP_VALID_CHECK
Terminal and UI
Present since v2.1.69 or earlier
Documented
Bypass IDE extension validation checks
CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS
Authentication
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. Idle compaction…
CLAUDE_CODE_IDLE_THRESHOLD_MINUTES
Other
Added in v2.1.84Sets the threshold (in minutes) before a session is considered idle. The changelog describes a new "idle-return prompt" that nudges users returning after 75+…
CLAUDE_CODE_IDLE_TOKEN_THRESHOLD
Authentication
Removed between v2.1.245 and v2.1.247Works 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_INCLUDE_PARTIAL_MESSAGES
Other
Removed between v2.1.245 and v2.1.247Include partial/streaming messages in output
CLAUDE_CODE_INLINE_TOOLS
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_INSTALLED_VIA_NPM_WRAPPER
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_INTRO_FRAME
Other
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_INVESTIGATE_FIRST
Other
Removed between v2.1.222 and v2.1.224Instructs the agent to read and investigate before acting — enforcing "read before write." Converts an agent that might immediately start editing into one that…
CLAUDE_CODE_INVOKED_SKILLS
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_IS_COWORK
Other
Present since v2.1.69 or earlierIndicates running in cowork (multi-agent) mode
CLAUDE_CODE_JSONL_TRANSCRIPT
Other
Removed between v2.1.241 and v2.1.245—
CLAUDE_CODE_JUNIPER_SUNDIAL
Other
Added in v2.1.218—
CLAUDE_CODE_KB_COHESION_FIXES
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_LANTERN_PRISM
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_LARCH_CISTERN
Other
Added between v2.1.215 and v2.1.217—
CLAUDE_CODE_LEGACY_BUNDLE
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_LOOP_KEEPALIVE
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_LOOP_PERSISTENT
Other
Added between v2.1.128 and v2.1.138Persist loop state across session boundaries. Loops don't die when the session restarts — they resume. Turns /loop from a within-session tool into a durable…
CLAUDE_CODE_LUMINOUS_WHISTLE
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_MANAGED_CONFIG_PREFETCH
Other
Added in v2.1.292Turns on a hedged prefetch of the organization's managed settings during startup, so the first managed-settings fetch runs earlier in the launch sequence.…
CLAUDE_CODE_MANAGED_SETTINGS_PATH
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_MARKETPLACE_NAME
Plugins and skills
Removed in v2.1.293—
CLAUDE_CODE_MARKETPLACE_URL
Network and proxy
Added in v2.1.238—
CLAUDE_CODE_MARL_CORMORANT
Other
Removed between v2.1.219 and v2.1.221—
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS
Agents and subagents
Added between v2.1.215 and v2.1.217
Documented
Ceiling on subagents running at once, default 20; when full Claude Code tells the model to stop and the user to raise this variable. Gated by…
CLAUDE_CODE_MAX_CONTEXT_TOKENS
Authentication
Added between v2.1.96 and v2.1.100
Documented
Sets an explicit ceiling on the context window size used during a session. Rather than relying on the model's default maximum, this variable lets operators cap…
CLAUDE_CODE_MAX_EFFORT_REMINDER
Models and thinking
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH
MCP
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_MAX_OUTPUT_TOKENS
Authentication
Present since v2.1.69 or earlier
Documented
Maximum output tokens; validated per-model
CLAUDE_CODE_MAX_RETRIES
Network and proxy
Present since v2.1.69 or earlier
Documented
Maximum API request retries
CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION
Agents and subagents
Added between v2.1.143 and v2.1.212
Documented
Per-session ceiling on subagent spawns (default 200). When the cap is hit, Claude Code injects a prompt — "Subagent spawn limit reached. Complete the remaining…
CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH
Agents and subagents
Removed between v2.1.245 and v2.1.247
Documented
Nesting-depth cap on delegation, default 1 — subagents no longer spawn their own subagents, and the team roster stays flat. Gated by tengu_hazel_trellis. First…
CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY
Shell and tools
Present since v2.1.69 or earlier
Documented
Max concurrent tool executions; default 10
CLAUDE_CODE_MAX_TURNS
Other
Added between v2.1.138 and v2.1.143
Documented
Hard cap on conversation turns. The single most important variable in this release for anyone running unattended agents. Set it to 50, 100, or whatever your…
CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION
Shell and tools
Added between v2.1.143 and v2.1.212
Documented
Per-session ceiling on WebSearch tool calls (default 200), gated by a web_search_session_cap. Its exhaustion string tells the model "this session has used its…
CLAUDE_CODE_MCP_ALLOWLIST_ENV
MCP
Added in v2.1.94
Documented
Specifies an allowlist of environment variables that MCP servers can access. MCP servers run as subprocesses and inherit the parent environment by default,…
CLAUDE_CODE_MCP_APPS_HOST
MCP
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS
MCP
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS
Network and proxy
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_MCP_INSTR_DELTA
MCP
Removed in v2.1.91Delta/incremental MCP instruction updates. Instead of sending full MCP server instructions every turn, this likely enables sending only changes — reducing…
CLAUDE_CODE_MCP_MEMORY_CGROUP
MCP
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_MCP_PREWAIT_SERVERS
MCP
Added in v2.1.286—
CLAUDE_CODE_MCP_PREWAIT_SERVERS_MS
MCP
Added in v2.1.286—
CLAUDE_CODE_MCP_SERVER_NAME
MCP
Added in v2.1.85Added in v2.1.85 to identify which MCP server a helper process was acting on behalf of. Removed after just two versions.
CLAUDE_CODE_MCP_SERVER_URL
Network and proxy
Added in v2.1.85The companion to MCP_SERVER_NAME, providing the server endpoint URL. Also removed. Together these formed a pair for routing MCP requests through a single…
CLAUDE_CODE_MCP_SERVE_AUTH_TOKEN
Authentication
Added in v2.1.285—
CLAUDE_CODE_MCP_SERVE_SETTINGS
MCP
Added in v2.1.285—
CLAUDE_CODE_MCP_SERVE_TOOL_OUTPUT
MCP
Added in v2.1.287—
CLAUDE_CODE_MCP_STARTUP_WAIT_MS
MCP
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_MEMORY_API_BASE_URL
Network and proxy
Added between v2.1.224 and v2.1.227—
CLAUDE_CODE_MEMORY_API_TOKEN
Authentication
Added between v2.1.224 and v2.1.227—
CLAUDE_CODE_MEMORY_PUSH_DELETE_MODE
Memory and CLAUDE.md
Added between v2.1.143 and v2.1.212Controls how deletions propagate when memory is pushed upstream — a delete-mode knob for the memory subsystem that gained account- and organization-scoped sync…
CLAUDE_CODE_MEMORY_SUBAGENT_APPEND
Agents and subagents
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_MESSAGING_SOCKET
Other
Added between v2.1.222 and v2.1.224
Documented
—
CLAUDE_CODE_MESSAGING_TOKEN
Authentication
Added in v2.1.228
Documented
Controls access to the local inbox for cross-session messages. A sender opens the socket named in CLAUDE_CODE_MESSAGING_SOCKET and sends this token first. If…
CLAUDE_CODE_MID_CONVERSATION_SYSTEM
Other
Removed between v2.1.143 and v2.1.212Inject a system message mid-conversation. Your harness can update Claude's constraints, inject new context, or shift behavioral guidelines without ending the…
CLAUDE_CODE_MOCK_REMOTE_SETTINGS
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_MOCK_TRIAL
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_MODEL_CAPABILITIES
Models and thinking
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_MODEL_CATALOG
Models and thinking
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_MODEL_CATALOG_URL
Network and proxy
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_MORNING_BRIEF_PROMPT
Other
Removed between v2.1.212 and v2.1.215—
CLAUDE_CODE_NANKEEN_KESTREL
Other
Added between v2.1.143 and v2.1.212Windows-only sandbox gate. The gate function returns false on any non-Windows OS, true if this variable is set, otherwise defers to the server gate…
CLAUDE_CODE_NATIVE_CURSOR
Terminal and UI
Added between v2.1.128 and v2.1.138
Documented
Use native terminal cursor control. Extension of the terminal-native capabilities that came in with v2.1.113's binary launcher. If cursor positioning looks off…
CLAUDE_CODE_NEW_INIT
Other
Added between v2.1.77 and v2.1.79
Documented
Toggles a refactored initialization path that reduces startup memory usage. The changelog explicitly highlights "~18MB" savings across all scenarios, which is…
CLAUDE_CODE_NONBLOCKING_STDOUT
Other
Added between v2.1.252 and v2.1.266
Documented
—
CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES
Network and proxy
Added in v2.1.285
Documented
Caps how many times a timed-out non-streaming fallback request is re-sent. Added in v2.1.285.
CLAUDE_CODE_NO_FLICKER
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Enables flicker-free alternate-screen rendering. The changelog[1] explicitly documents this as CLAUDE_CODE_NO_FLICKER=1.
CLAUDE_CODE_NO_MODEL_FALLBACK
Models and thinking
Added between v2.1.212 and v2.1.215When set, the availability chain collapses to [primary]: buildAvailabilityFallbackChain() returns only the model you selected, and a tripwire error fires if…
CLAUDE_CODE_OAUTH_401_WAIT_MS
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_OAUTH_CLIENT_ID
Authentication
Present since v2.1.69 or earlierCustom OAuth client ID
CLAUDE_CODE_OAUTH_REFRESH_TOKEN
Authentication
Present since v2.1.69 or earlier
Documented
OAuth refresh token
CLAUDE_CODE_OAUTH_SCOPES
Authentication
Removed in v2.1.293
Documented
OAuth scopes for refresh token
CLAUDE_CODE_OAUTH_TOKEN
Authentication
Present since v2.1.69 or earlier
Documented
Pre-configured OAuth access token
CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR
Authentication
Present since v2.1.69 or earlierFile descriptor to read OAuth token from
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE
Models and thinking
Added between v2.1.138 and v2.1.143
Documented
Pin Fast mode to Opus 4.6. Fast mode upgraded to Opus 4.7 by default in v2.1.142. If you're evaluating 4.7 or have a reproducibility requirement — benchmarks,…
CLAUDE_CODE_ORGANIZATION_UUID
Other
Present since v2.1.69 or earlierOrganization UUID
CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH
Telemetry
Added between v2.1.212 and v2.1.215
Documented
Caps the length of content attributes on OpenTelemetry spans and logs; the truncation function takes the minimum of this value (default 60 KB) and the standard…
CLAUDE_CODE_OTEL_DIAG_STDERR
Telemetry
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS
Telemetry
Present since v2.1.69 or earlier
Documented
OpenTelemetry flush timeout; default 5000ms
CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS
Telemetry
Present since v2.1.69 or earlier
Documented
Debounce for OTEL headers helper
CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS
Telemetry
Removed between v2.1.245 and v2.1.247
Documented
OpenTelemetry shutdown timeout; default 2000ms
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS
Network and proxy
Added in v2.1.292
Documented
Sets the base delay, in milliseconds, for the backoff when a request comes back overloaded (HTTP 529). The retry loop seeds its wait from this value on…
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS
Network and proxy
—
Documented
—
CLAUDE_CODE_OVERRIDE_DATE
Terminal and UI
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_OWNERSHIP_FRAME
Other
Removed between v2.1.215 and v2.1.217—
CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE
Other
Added between v2.1.128 and v2.1.138
Documented
Control whether Claude Code auto-updates itself. If you manage Claude Code versions centrally (fleet policy, pinned version in a Dockerfile, corp registry),…
CLAUDE_CODE_PARCHMENT_FERN
Other
Removed in v2.1.285—
CLAUDE_CODE_PARKED_PERMISSION_WAIT_MS
Permissions and sandbox
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PARKED_RUN_BEFORE_CLEAR
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_PARKED_STOP_RETIRES
Other
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_PARSED_WILLOW
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_PERFETTO_TRACE
Telemetry
Present since v2.1.69 or earlierEnable Perfetto trace output to file path (server-gated)
CLAUDE_CODE_PERFETTO_WRITE_INTERVAL_S
Telemetry
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PERFORCE_MODE
Other
Added between v2.1.96 and v2.1.100
Documented
Activates Perforce VCS integration. The changelog[1] specifies: "when set, Edit/Write/NotebookEdit fail on read-only files with a p4 edit hint instead of…
CLAUDE_CODE_PER_TURN_TIMING
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_PEWTER_OWL
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PEWTER_OWL_TOOL
Shell and tools
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PLAN_ARTIFACTS
Other
Removed between v2.1.234 and v2.1.237—
CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE
Other
Removed between v2.1.143 and v2.1.212Enable interview phase in plan mode
CLAUDE_CODE_PLAN_MODE_REQUIRED
Other
Present since v2.1.69 or earlierRequire agents to use plan mode for all tasks
CLAUDE_CODE_PLAN_V2_AGENT_COUNT
Agents and subagents
Present since v2.1.69 or earlierNumber of agents in Plan v2 mode (1–10)
CLAUDE_CODE_PLAN_V2_EXPLORE_AGENT_COUNT
Agents and subagents
Present since v2.1.69 or earlierExploration agents in Plan v2 (1–10)
CLAUDE_CODE_PLUGIN_ARCHIVE_URL
Network and proxy
Added in v2.1.238—
CLAUDE_CODE_PLUGIN_ATTRIBUTION
Plugins and skills
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_PLUGIN_BINARY_ASSETS
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PLUGIN_CACHE_DIR
Plugins and skills
Present since v2.1.69 or earlier
Documented
Local cache directory for downloaded plugins
CLAUDE_CODE_PLUGIN_DIRS
Plugins and skills
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_PLUGIN_DIR_WATCH
Plugins and skills
Removed in v2.1.292
Documented
—
CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS
Network and proxy
Present since v2.1.69 or earlier
Documented
Git clone timeout for plugin installation
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE
Plugins and skills
Added in v2.1.90
Documented
Preserves the local marketplace plugin cache when git pull fails. Source code shows that without this flag, a failed pull triggers a full delete-and-reclone of…
CLAUDE_CODE_PLUGIN_NAME
Plugins and skills
Added in v2.1.238—
CLAUDE_CODE_PLUGIN_PREFER_HTTPS
Plugins and skills
Added between v2.1.138 and v2.1.143
Documented
Force HTTPS for plugin source resolution. If you're in a network environment where HTTP traffic is intercepted or plugins could be fetched without TLS, this…
CLAUDE_CODE_PLUGIN_SEED_DIR
Plugins and skills
Present since v2.1.69 or earlier
Documented
Seed directory for pre-installed plugins
CLAUDE_CODE_PLUGIN_USE_ZIP_CACHE
Plugins and skills
Present since v2.1.69 or earlierUse zip-based caching instead of git
CLAUDE_CODE_POLICY_HELPER_PS1_PATH
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_POLICY_HELPER_PSMODULEPATH
Other
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_POLISHED_DEWDROP
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_POLL_EVENTS
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_POLL_EVENT_DECLARATIONS
Other
Added in v2.1.287—
CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2
Sessions
Removed between v2.1.219 and v2.1.221Use POST-based session ingress v2
CLAUDE_CODE_POST_TURN_MEMORY
Memory and CLAUDE.md
Removed in v2.1.290—
CLAUDE_CODE_POST_TURN_MEMORY_CONFIG
Memory and CLAUDE.md
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_POST_TURN_MEMORY_SYNC
Memory and CLAUDE.md
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY
Shell and tools
Added between v2.1.138 and v2.1.143
Documented
Restore PowerShell execution policy checks. v2.1.143 made bypass-policy the default to reduce the most common Windows friction. If your environment uses…
CLAUDE_CODE_POWERUP_ONBOARDING
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_PRINT_ENGINE_LOOP
Other
Removed between v2.1.252 and v2.1.266—
CLAUDE_CODE_PROACTIVE
Other
Added in v2.1.128—
CLAUDE_CODE_PROCESS_WRAPPER
Other
Added between v2.1.143 and v2.1.212
Documented
Names an executable that Claude Code must launch itself through. When the CLI spawns a copy of itself — the background daemon, agent-view workers, subagents —…
CLAUDE_CODE_PROFILE_QUERY
Debugging
Added between v2.1.143 and v2.1.212Likely merged into general profiling
CLAUDE_CODE_PROFILE_STARTUP
Debugging
Present since v2.1.69 or earlierEnable startup profiling; set to 1
CLAUDE_CODE_PROJECTS_SESSION
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_PROJECT_DIR_NAME
Other
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_PROMPT_CACHE_TTL
Other
Removed between v2.1.245 and v2.1.247
Documented
—
CLAUDE_CODE_PROPAGATE_TRACEPARENT
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST
Terminal and UI
Added between v2.1.79 and v2.1.83
Documented
Indicates that the API provider configuration is managed by the host application rather than by Claude Code itself.
CLAUDE_CODE_PROXY_AUTHENTICATE
Authentication
Added between v2.1.108 and v2.1.114Carries the WWW-Authenticate challenge from the proxy into the helper. Enables challenge-response schemes by reading what the proxy actually asked for.
CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS
Authentication
Added between v2.1.108 and v2.1.114Cache TTL for helper-returned credentials. Parsed as integer milliseconds; zero or negative falls back to default.
CLAUDE_CODE_PROXY_HOST
Network and proxy
Added between v2.1.108 and v2.1.114Proxy hostname, passed alongside the URL so helpers that route credentials by hostname don't need to re-parse.
CLAUDE_CODE_PROXY_RESOLVES_HOSTS
Network and proxy
Present since v2.1.69 or earlier
Documented
Proxy handles DNS resolution (skip local DNS)
CLAUDE_CODE_PROXY_URL
Network and proxy
Added between v2.1.108 and v2.1.114Full proxy URL, injected into the helper subprocess's environment. Claude-namespaced because the helper protocol is Claude-specific and must not collide with…
CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS
Network and proxy
Added in v2.1.85Sets the timeout for PowerShell command parsing on Windows. The PowerShell tool shipped as a preview in v2.1.84 with CLAUDE_CODE_USE_POWERSHELL_TOOL — this…
CLAUDE_CODE_QUESTION_EXTENDED
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_QUESTION_OPTIONAL_DESCRIPTIONS
Other
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_QUESTION_PREVIEW_FORMAT
Other
Present since v2.1.69 or earlierFormat for permission question previews
CLAUDE_CODE_RATE_LIMIT_TIER
Other
Added between v2.1.114 and v2.1.117Rate-limit bucket for the current session, independent of subscription type. Enterprise customers may have custom limits that differ from their plan defaults —…
CLAUDE_CODE_RC_PERMISSION_NUDGE
Permissions and sandbox
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REFUSAL_FALLBACK_CATCH_ALL
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_RELAUNCH_HOME_TRUST
Other
Added in v2.1.284—
CLAUDE_CODE_RELAUNCH_PROACTIVITY_BASELINE
Other
Added in v2.1.290—
CLAUDE_CODE_RELAUNCH_PROACTIVITY_EVER_ON
Other
Added in v2.1.290—
CLAUDE_CODE_RELAUNCH_PROACTIVITY_LEVEL
Other
Added in v2.1.290—
CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE
Terminal and UI
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE
Sessions
Present since v2.1.69 or earlier
Documented
Indicates running in remote/server mode
CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE
Sessions
Present since v2.1.69 or earlierRemote environment type sent in telemetry
CLAUDE_CODE_REMOTE_HERMETIC_MODE
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE_MEMORY_DIR
Memory and CLAUDE.md
Present since v2.1.69 or earlierMemory directory for remote sessions
CLAUDE_CODE_REMOTE_RAW_EVENTS_FILE
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE_SDK_URL
Network and proxy
Added in v2.1.290—
CLAUDE_CODE_REMOTE_SEND_KEEPALIVES
Sessions
Present since v2.1.69 or earlierSend keepalive pings in remote mode
CLAUDE_CODE_REMOTE_SESSION_ID
Sessions
Present since v2.1.69 or earlier
Documented
Remote session identifier
CLAUDE_CODE_REMOTE_SESSION_ORIGIN
Sessions
Added between v2.1.215 and v2.1.217Provenance tag for cloud/remote sessions, checked against the value "review". First shipped v2.1.217; undocumented.
CLAUDE_CODE_REMOTE_SESSION_UUID
Sessions
Added between v2.1.222 and v2.1.224—
CLAUDE_CODE_REMOTE_SETTINGS_PATH
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE_SETTINGS_POLL_MS
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REMOTE_TOOLS_ADOPT_MCP
MCP
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_REMOTE_TOOLS_ASK_SEATS
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_CALLER_SESSIONS_MAX
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_FORWARD
Shell and tools
Removed in v2.1.284—
CLAUDE_CODE_REMOTE_TOOLS_HOST_ALLOWS_UNATTENDED
Shell and tools
Added in v2.1.290—
CLAUDE_CODE_REMOTE_TOOLS_JUMP_QUEUE
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_PIN_STORED_LOGIN
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOTE_TOOLS_POLICY
Shell and tools
Added between v2.1.247 and v2.1.252—
CLAUDE_CODE_REMOTE_TOOLS_SERVE
Shell and tools
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_REMOTE_TOOLS_SESSION_CHANNEL
Shell and tools
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_REMOTE_TOOLS_SPECULATIVE_CLASSIFIER
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_REMOVE_PROMPT_STRINGS
Other
Added in v2.1.290—
CLAUDE_CODE_REPL
Other
Added between v2.1.87 and v2.1.88Boolean toggle for the new native REPL path introduced by v2.1.113's native-binary launcher. Forces on or off regardless of entrypoint detection — the…
CLAUDE_CODE_REPORT_FINDINGS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_REPO_CHECKOUTS
Other
Added between v2.1.104 and v2.1.107Specifies a directory path (or paths) where Claude Code should create and manage git worktree checkouts. By default, worktrees land in a temporary location…
CLAUDE_CODE_RESTRICTED
Permissions and sandbox
Added between v2.1.247 and v2.1.252
Documented
—
CLAUDE_CODE_RESULT_NONCE
Other
Added in v2.1.285—
CLAUDE_CODE_RESUME_FROM_SESSION
Sessions
Added between v2.1.104 and v2.1.107Instructs Claude Code to bootstrap a new session's context from an existing session ID. Rather than starting fresh, the new session loads key context —…
CLAUDE_CODE_RESUME_INTERRUPTED_TURN
Sessions
Present since v2.1.69 or earlier
Documented
Resume an interrupted agent turn
CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS
Sessions
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_RESUME_PROMPT
Sessions
Added between v2.1.138 and v2.1.143
Documented
Set the prompt injected when resuming a session. If you build on top of Claude Code's resume capability and want Claude to get oriented differently on re-entry…
CLAUDE_CODE_RESUME_PROMPT00
Sessions
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_RESUME_REASON
Sessions
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_RESUME_SOURCE_ALIVE
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_RESUME_THRESHOLD_MINUTES
Sessions
Removed between v2.1.245 and v2.1.247Sets the time window (in minutes) during which a session is eligible for automatic resume. Claude Code already supports --resume for continuing sessions, and…
CLAUDE_CODE_RESUME_TOKEN_THRESHOLD
Authentication
Added between v2.1.88 and v2.1.89Sets the token count threshold for session resume eligibility. Complementing the time-based threshold above, this adds a context-size dimension: if a session's…
CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_APPENDS
Context and compaction
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_RESUME_TOLERATES_CONTEXT_SEEDS
Context and compaction
Added in v2.1.290—
CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION
Permissions and sandbox
Removed between v2.1.269 and v2.1.283—
CLAUDE_CODE_RETRY_WATCHDOG
Network and proxy
Added between v2.1.114 and v2.1.117
Documented
Tunes the retry watchdog that detects API calls silently looping without progress. v2.1.123 fixed an OAuth 401 retry loop when…
CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS
Network and proxy
—
Documented
—
CLAUDE_CODE_RIPPLING_TULIP
Other
Added in v2.1.290—
CLAUDE_CODE_RUSTLING_PIXEL
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_SABLE_THRUSH
Other
Removed between v2.1.247 and v2.1.252—
CLAUDE_CODE_SAFE_MODE
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SANDBOXED
Permissions and sandbox
Added in v2.1.94Indicates or enforces that Claude Code is running in a sandboxed environment. The v2.1.92 changelog[1] restored the apply-seccomp helper for Linux sandbox in…
CLAUDE_CODE_SAVE_HOOK_ADDITIONAL_CONTEXT
Context and compaction
Removed between v2.1.96 and v2.1.100Extra context passed to save hooks
CLAUDE_CODE_SCRIPT_CAPS
Other
Added between v2.1.96 and v2.1.100
Documented
Limits per-session script invocations. The changelog[1] pairs this with subprocess sandboxing via PID namespace isolation on Linux (when…
CLAUDE_CODE_SCROLL_SPEED
Terminal and UI
Added between v2.1.87 and v2.1.88
Documented
Controls the scroll speed within the terminal UI. Default scroll behavior in terminal applications is typically one line per scroll event, which can feel…
CLAUDE_CODE_SCROLL_SPEEDI
Terminal and UI
Removed in v2.1.228—
CLAUDE_CODE_SCROLL_SPEEDI30
Terminal and UI
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_SDK_HAS_HOST_AUTH_REFRESH
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH
Authentication
Added between v2.1.100 and v2.1.104Signals to the Claude Code runtime that the SDK caller has already provided an OAuth refresh token.
CLAUDE_CODE_SDK_READS_SESSION_STATE
Sessions
Added in v2.1.284—
CLAUDE_CODE_SEARCH_HINTS_IN_LIST
Other
Removed between v2.1.87 and v2.1.88Controlled whether search hints appeared in list views. The feature was probably either made default or removed as the UI evolved.
CLAUDE_CODE_SENDMESSAGE_HANDBACK
Other
Added in v2.1.285—
CLAUDE_CODE_SEND_FEEDBACK
Other
Added between v2.1.143 and v2.1.212
Documented
Kill switch for the new /bug feedback relay. The gate function bails if DISABLE_FEEDBACK_COMMAND or DISABLE_BUG_COMMAND is set, requires an…
CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS
Network and proxy
Added between v2.1.77 and v2.1.79
Documented
Set the timeout in milliseconds for hooks that run when a Claude Code session ends. Session-end hooks (like SessionEnd in the hooks config) run cleanup scripts…
CLAUDE_CODE_SESSION_ACCESS_TOKEN
Authentication
Present since v2.1.69 or earlierSession-scoped access token
CLAUDE_CODE_SESSION_ID
Sessions
Added between v2.1.118 and v2.1.123
Documented
Stable identifier for the current session, passed into subprocess environments. Lets subprocess tools — hooks, MCP servers, custom scripts — correlate their…
CLAUDE_CODE_SESSION_KIND
Sessions
Added between v2.1.118 and v2.1.123Classifies the session: interactive, SDK/headless, subagent, background, or Remote Control. Hooks can branch on kind — a hook that opens a browser link makes…
CLAUDE_CODE_SESSION_LOG
Sessions
Added between v2.1.118 and v2.1.123Path to the session's transcript file, surfaced to subprocesses. Lets hooks and post-processing scripts find the transcript without traversing ~/.claude/ or…
CLAUDE_CODE_SESSION_NAME
Sessions
Added between v2.1.118 and v2.1.123Human-readable session name backing the v2.1.121 terminal tab title feature. Hooks and status-line integrations can read it without querying the CLI.
CLAUDE_CODE_SESSION_ORIGIN
Sessions
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_SESSION_START_ANNOUNCEMENTS_BEFORE_PROMPT
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_SHELL
Shell and tools
Present since v2.1.69 or earlier
Documented
Override shell for Bash tool (must be bash or zsh)
CLAUDE_CODE_SHELL_LAUNCHER_SCRIPT
Shell and tools
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_SHELL_PREFIX
Shell and tools
Present since v2.1.69 or earlier
Documented
Prefix command for shell execution
CLAUDE_CODE_SHELL_PREFIXI50
Shell and tools
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_SILENT_TURN_REMINDER
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_SILENT_TURN_REMINDER_SECONDS
Other
Added in v2.1.290—
CLAUDE_CODE_SILENT_TURN_REMINDER_TEXT
Other
Added in v2.1.238—
CLAUDE_CODE_SILENT_TURN_REMINDER_TURNS
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_SIMPLE
Other
Present since v2.1.69 or earlier
Documented
Simplified mode; disables CLAUDE.md and attachments (renamed from CLAUDE_CODE_SIMPLETON)
CLAUDE_CODE_SIMPLETON
Other
—Renamed to CLAUDE_CODE_SIMPLE
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT
Other
Added between v2.1.114 and v2.1.117
Documented
Switches to a reduced system prompt, stripping out the non-essential guidance sections that bulk up the default prompt. Useful in latency-sensitive or…
CLAUDE_CODE_SIMULATE_PROXY_USAGE
Network and proxy
Removed in v2.1.294Simulates proxy-based API routing without an actual proxy. This is a testing tool — it lets developers verify that their Claude Code configuration behaves…
CLAUDE_CODE_SKILL_ATTRIBUTION
Plugins and skills
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_SKILL_DESCRIPTION
Plugins and skills
Removed between v2.1.212 and v2.1.215—
CLAUDE_CODE_SKILL_DESC_REFRAME
Plugins and skills
Removed between v2.1.215 and v2.1.217—
CLAUDE_CODE_SKILL_NAME
Plugins and skills
Removed between v2.1.247 and v2.1.252—
CLAUDE_CODE_SKILL_PROPOSALS
Plugins and skills
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH
Cloud providers
Added in v2.1.90
Documented
Skips credential resolution for the Anthropic AWS provider. Source code shows two effects: (1) passes skipAuth: true to the AnthropicAws client constructor,…
CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH
Cloud providers
Removed in v2.1.290The skip-auth companion to the toggle above, grouped in the auth-bypass list with SKIP_BEDROCK_AUTH, SKIP_VERTEX_AUTH, SKIP_FOUNDRY_AUTH,…
CLAUDE_CODE_SKIP_AWS_CRED_CACHE
Cloud providers
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SKIP_BEDROCK_AUTH
Cloud providers
Present since v2.1.69 or earlier
Documented
Skip Bedrock authentication
CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS
Models and thinking
Added between v2.1.77 and v2.1.79
Documented
Controls whether Claude Code suppresses or bypasses network errors that occur specifically in fast mode. Fast mode uses the same Opus 4.6 model with faster…
CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK
Models and thinking
Removed in v2.1.293
Documented
Disables the organization-level eligibility check for fast mode. Fast mode (toggled via /fast) normally verifies that the user's organization supports it.
CLAUDE_CODE_SKIP_FOUNDRY_AUTH
Cloud providers
Present since v2.1.69 or earlier
Documented
Skip Foundry authentication
CLAUDE_CODE_SKIP_HFI_VERSION_CHECK
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_MANTLE_AUTH
Cloud providers
Added in v2.1.94
Documented
Skips Mantle authentication. This is the escape hatch for environments where Mantle is enabled at the org level but a specific workflow needs direct API access…
CLAUDE_CODE_SKIP_MODEL_ACCESS_MEMORY
Models and thinking
Added in v2.1.285
Documented
—
CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS
MCP
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS_EXCEPT
MCP
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_PRECOMPACT_LOAD
Context and compaction
—Optimize large session file loading
CLAUDE_CODE_SKIP_PROJECT_BACKFILL
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_PROJECT_BACKFILL_L
Feature toggles
Removed between v2.1.224 and v2.1.227—
CLAUDE_CODE_SKIP_PROMPT_HISTORY
Feature toggles
Present since v2.1.69 or earlier
Documented
Disable prompt history saving
CLAUDE_CODE_SKIP_REPO_UPLOAD
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SKIP_VERTEX_AUTH
Cloud providers
Present since v2.1.69 or earlier
Documented
Skip Vertex AI authentication
CLAUDE_CODE_SLACK_TAG_TOKEN
Authentication
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_SLEEPY_SNOWFLAKE
Other
Added in v2.1.284—
CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS
Other
Present since v2.1.69 or earlierThreshold for slow filesystem operation warnings
CLAUDE_CODE_SPAWNED_BY_SERVER
Other
Present since v2.1.69 or earlierWas used to indicate a server-spawned process. Added in v2.1.69's remote/server mode batch. Removed after just one version — likely internalized or replaced by…
CLAUDE_CODE_SPAWN_TIMESTAMP_MS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SQUISHY_NEWT
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_SSE_PORT
Other
Present since v2.1.69 or earlierServer-Sent Events port
CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING
Network and proxy
Present since v2.1.69 or earlier—
CLAUDE_CODE_STARTUP_FAILURE_RESULTS
Other
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_STELLAR_DRIFT
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_STOP_HOOK_BLOCK_CAP
Other
Added between v2.1.138 and v2.1.143
Documented
Cap how long a stop hook can block session termination. If you've ever hit Ctrl+C and had Claude Code hang before actually closing — this is why, and this is…
CLAUDE_CODE_STREAMED_BUMBLEBEE
Network and proxy
Added in v2.1.290—
CLAUDE_CODE_STREAMED_BUMBLEBEE_TEXT
Network and proxy
Added in v2.1.290—
CLAUDE_CODE_STREAMING_TEXT
Network and proxy
Removed between v2.1.73 and v2.1.76Likely controlled an experimental streaming text mode that has now graduated to being the default behavior. v2.1.78 introduced line-by-line response streaming…
CLAUDE_CODE_SUBAGENT_CACHE_EVICT
Agents and subagents
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SUBAGENT_MODEL
Agents and subagents
Present since v2.1.69 or earlier
Documented
Force a specific model for sub-agent operations
CLAUDE_CODE_SUBAGENT_MODELU
Agents and subagents
—The trailing-U variant flagged as a likely typo in v2.1.84 has been removed. CLAUDE_CODE_SUBAGENT_MODEL (without the U) remains. Clean housekeeping.
CLAUDE_CODE_SUBAGENT_MODEL_FORCE
Agents and subagents
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL
Agents and subagents
Added between v2.1.241 and v2.1.245
Documented
—
CLAUDE_CODE_SUBAGENT_PROMPT_SNAPSHOT
Agents and subagents
Added in v2.1.290—
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB
Permissions and sandbox
Added between v2.1.77 and v2.1.79
Documented
When set to 1, strips Anthropic and cloud provider credentials from subprocess environments — the Bash tool, hooks, and MCP stdio servers. The changelog…
CLAUDE_CODE_SUBSCRIPTION_TYPE
Other
Added between v2.1.114 and v2.1.117Current subscription plan identifier. Lets the process branch on tier without an API call — used by v2.1.118's unified /usage to render plan-specific limits…
CLAUDE_CODE_SUPERVISED
Other
Added between v2.1.138 and v2.1.143Mark a session as supervised — a human is watching. In supervised mode Claude is more likely to surface decisions for human confirmation rather than resolving…
CLAUDE_CODE_SUPPRESS_SESSION_ATTRIBUTION
Sessions
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SYNC_PLUGINS
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SYNC_PLUGINSI3
Plugins and skills
Removed in v2.1.228—
CLAUDE_CODE_SYNC_PLUGINS_BUFFERED_DOWNLOAD
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SYNC_PLUGINS_DOWNLOAD_STALL_MS
Plugins and skills
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SYNC_PLUGINS_INSTALL_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SYNC_PLUGINS_MCP_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_SYNC_PLUGIN_INSTALL
Plugins and skills
Present since v2.1.69 or earlier
Documented
Install plugins synchronously (block until done)
CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS
Network and proxy
Present since v2.1.69 or earlier
Documented
Timeout for synchronous plugin install
CLAUDE_CODE_SYNC_REUSE_WITHIN_MS
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_SYNC_SESSION_REFS
Sessions
Added between v2.1.143 and v2.1.212Enables syncing of session references in remote and child sessions. The gate function is true only when this variable is truthy and a CLAUDE_CODE_SESSION_ID is…
CLAUDE_CODE_SYNC_SKILLS
Plugins and skills
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_SYNTAX_HIGHLIGHT
Other
Removed in v2.1.286
Documented
Disable syntax highlighting when set to false
CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATURE
Other
Added between v2.1.108 and v2.1.114Names a GrowthBook feature flag whose value overrides the system prompt — but only when CLAUDE_CODE_REMOTE is set. Anthropic can A/B-test remote-session…
CLAUDE_CODE_TAGS
Other
Present since v2.1.69 or earlierCustom tags for telemetry events
CLAUDE_CODE_TAG_ISMETA_MESSAGES
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TASK_LIST_ID
Other
Present since v2.1.69 or earlier
Documented
Task list ID for agent coordination
CLAUDE_CODE_TEAMMATE_COMMAND
Agents and subagents
Present since v2.1.69 or earlierCommand for teammate/cowork functionality
CLAUDE_CODE_TEAM_ONBOARDING
Agents and subagents
Removed between v2.1.143 and v2.1.212Replaced by newer onboarding paths (CLAUDE_CODE_POWERUP_ONBOARDING, /doctor's CLAUDE.md-trimming check).
CLAUDE_CODE_TEAM_TEARDOWN_PARK_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_TEE_SDK_STDOUT
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TERMINAL_MCP_TOOLS
MCP
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TERMINAL_RECORDING
Terminal and UI
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TEST_ALLOW_REAL_NETWORK
Other
Added between v2.1.238 and v2.1.241—
CLAUDE_CODE_TEST_FIXTURES_ROOT
Other
Present since v2.1.69 or earlierRoot directory for test fixtures
CLAUDE_CODE_TEST_FORCE_DENY
Feature toggles
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TEST_NO_GIT_BASH
Shell and tools
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TEST_NO_PWSH
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TETHER_LIVE
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_THINKING_DISPLAY_UPDATES
Models and thinking
Added between v2.1.238 and v2.1.241Overrides whether Claude's in-progress thinking and connector text render during a turn. When set it takes precedence over the thinking_display_updates dynamic…
CLAUDE_CODE_THISTLE_GREBE
Other
Added between v2.1.215 and v2.1.217—
CLAUDE_CODE_THRIFTY_SONIC
Other
Added in v2.1.222—
CLAUDE_CODE_TICKLISH_WHISPER
Other
Added in v2.1.284—
CLAUDE_CODE_TICKLISH_WHISPER_TIMEOUT_MS
Network and proxy
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_TMPDIR
Other
Present since v2.1.69 or earlier
Documented
Temp directory for operations
CLAUDE_CODE_TMUX_PREFIX
Terminal and UI
Present since v2.1.69 or earlierTmux prefix key shown in detach instructions
CLAUDE_CODE_TMUX_PREFIX_CONFLICTS
Terminal and UI
Present since v2.1.69 or earlierShow prefix twice when key conflicts in tmux
CLAUDE_CODE_TMUX_SESSION
Terminal and UI
Present since v2.1.69 or earlierTmux session name shown in UI header
CLAUDE_CODE_TMUX_TRUECOLOR
Terminal and UI
Added between v2.1.79 and v2.1.83
Documented
Controls truecolor (24-bit) rendering when running inside tmux. Tmux has historically been tricky with truecolor support — it requires both the terminal…
CLAUDE_CODE_TOASTY_THIMBLE
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_TODO_REMINDER_MODE
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TOOL_MEMORY_CGROUP_EXCLUDE
Shell and tools
Added between v2.1.245 and v2.1.247
Documented
—
CLAUDE_CODE_TOOL_MEMORY_LIMIT
Shell and tools
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_TOOL_USE_ID
Shell and tools
Added between v2.1.266 and v2.1.269—
CLAUDE_CODE_TOTAL_TOKENS_REMINDER
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TOTAL_TOKENS_REMINDER_AFTER_USER_TURN
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TOTAL_TOKENS_REMINDER_BUDGET
Authentication
Removed in v2.1.294—
CLAUDE_CODE_TRANSCRIPT_LOCAL_GC
Other
Added between v2.1.215 and v2.1.217
Documented
Toggles local garbage-collection of on-disk session transcripts, backed by tengu_transcript_local_gc. First shipped v2.1.217; undocumented.
CLAUDE_CODE_TRIGGER_ID
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_TUI_JUST_SWITCHED
Other
Added between v2.1.108 and v2.1.114Set to "fullscreen" immediately after /tui fullscreen. The next render reads it to show a one-time confirmation hint, then clears the flag.
CLAUDE_CODE_TUI_TRIAL
Other
Added between v2.1.234 and v2.1.237—
CLAUDE_CODE_TURN_UPDATES
Other
Added in v2.1.229—
CLAUDE_CODE_TWO_STAGE_CLASSIFIER
Other
Removed between v2.1.245 and v2.1.247Added 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_PREFLIGHT_FIXTURE
Other
Added between v2.1.104 and v2.1.107Points 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_PREFLIGHT_FIXTUREA2
Other
Removed between v2.1.224 and v2.1.227—
CLAUDE_CODE_ULTRAREVIEW_PREFLIGHT_FIXTUREB0
Other
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_ULTRAREVIEW_QUOTA_FIXTURE
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_USER_EMAIL
Other
Present since v2.1.69 or earlierPre-configured user email
CLAUDE_CODE_USE_ANTHROPIC_AWS
Cloud providers
Added in v2.1.90
Documented
Selects "Claude Platform on AWS" as the API provider. Source code confirms this is a distinct provider alongside Bedrock, Vertex, and Foundry — the provider…
CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD
Cloud providers
Added between v2.1.212 and v2.1.215A new provider-backend toggle sitting in Claude Code's exact provider family — beside CLAUDE_CODE_USE_BEDROCK, USE_VERTEX, USE_FOUNDRY, USE_ANTHROPIC_AWS,…
CLAUDE_CODE_USE_BEDROCK
Cloud providers
Present since v2.1.69 or earlier
Documented
Use Amazon Bedrock as backend
CLAUDE_CODE_USE_CCR_V2
Other
Present since v2.1.69 or earlierUse Claude Code Router v2 for cowork sessions
CLAUDE_CODE_USE_COWORK_PLUGINS
Plugins and skills
Present since v2.1.69 or earlierUse cowork_plugins directory instead of default
CLAUDE_CODE_USE_FOUNDRY
Cloud providers
Present since v2.1.69 or earlier
Documented
Use Anthropic Foundry as backend
CLAUDE_CODE_USE_GATEWAY
Other
Added between v2.1.143 and v2.1.212Routes traffic through an Anthropic-operated gateway (with loopback and log-level tuning). Centralized model access for managed fleets, behind the v2.1.206…
CLAUDE_CODE_USE_MANTLE
Cloud providers
Added in v2.1.94
Documented
Activates Mantle-based authentication for Amazon Bedrock. The changelog[1] describes this as "integrated Amazon Bedrock support via Mantle" with…
CLAUDE_CODE_USE_NATIVE_FILE_SEARCH
Other
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_CODE_USE_POWERSHELL_TOOL
Shell and tools
Added between v2.1.79 and v2.1.83
Documented
Enables a PowerShell-specific tool variant for Windows environments. This suggests the team is building first-class PowerShell support rather than routing…
CLAUDE_CODE_USE_VERTEX
Cloud providers
Present since v2.1.69 or earlier
Documented
Use Google Vertex AI as backend
CLAUDE_CODE_VERIFY_PROMPT
Other
Removed between v2.1.143 and v2.1.212The verify flow was reworked; the standalone prompt override no longer maps to how verification runs.
CLAUDE_CODE_VERSION
Other
Added between v2.1.128 and v2.1.138Exposes the CLI version to subprocesses, hooks, and MCP servers. Your hooks and MCP tools can now read CLAUDE_CODE_VERSION directly — gate behavior on minimum…
CLAUDE_CODE_VOICE_FORWARD_INTERIMS_TYPED
Other
Added between v2.1.138 and v2.1.143Stream interim voice transcription results as you speak rather than waiting for the final transcript.
CLAUDE_CODE_WALNUT_SPIRE
Other
Removed between v2.1.245 and v2.1.247—
CLAUDE_CODE_WALNUT_SPIREIO
Other
Removed in v2.1.222—
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS
Shell and tools
Added between v2.1.229 and v2.1.234
Documented
—
CLAUDE_CODE_WEBFETCH_DEADLINE_MS
Shell and tools
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_WEBFETCH_USE_CCR_PROXY
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_WEBSEARCH_USE_CCR_PROXY
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR
Authentication
Present since v2.1.69 or earlierFile descriptor for WebSocket credentials
CLAUDE_CODE_WEB_FETCH_AGENT
Agents and subagents
Added between v2.1.229 and v2.1.234—
CLAUDE_CODE_WEB_SEARCH_FAST_ARG
Shell and tools
Added between v2.1.269 and v2.1.283—
CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR
Shell and tools
Added in v2.1.290
Documented
Sets how many web-search budget refills accrue per hour, overriding the value the feature gate serves. It accepts 0 to 3600 and defaults to 100 when unset; the…
CLAUDE_CODE_WHIMSICAL_ELEPHANT
Other
Added in v2.1.284—
CLAUDE_CODE_WILLOW_TERN
Other
Added between v2.1.245 and v2.1.247—
CLAUDE_CODE_WISE_COMET
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_CODE_WORKER_CHECKIN_SCHEDULE
Other
Added between v2.1.269 and v2.1.283
Documented
—
CLAUDE_CODE_WORKER_EPOCH
Other
Present since v2.1.69 or earlierWorker epoch for versioning internal state
CLAUDE_CODE_WORKER_EPOCHIF0
Other
Removed between v2.1.229 and v2.1.234—
CLAUDE_CODE_WORKFLOWS
Agents and subagents
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_WORKFLOW_LAUNCH_SHA256
Agents and subagents
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS
Agents and subagents
Added between v2.1.266 and v2.1.269
Documented
—
CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS
Agents and subagents
Added in v2.1.229
Documented
—
CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE
Agents and subagents
Added between v2.1.241 and v2.1.245—
CLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTS
Agents and subagents
Removed between v2.1.245 and v2.1.247—
CLAUDE_CODE_WORKFLOW_SIZE_WARNING_TOKENS
Authentication
Added between v2.1.143 and v2.1.212—
CLAUDE_CODE_WORKSPACE_HOST_PATHS
Other
Removed in v2.1.290Specifies 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_DEBUG
Debugging
Added in v2.1.286—
CLAUDE_CONFIG_DIR
Other
Present since v2.1.69 or earlier
Documented
Custom config directory
CLAUDE_CONTEXT_COLLAPSE
Context and compaction
Removed between v2.1.269 and v2.1.283Collapses context on the fly, with a dedicated model to do it. A more aggressive context-management primitive than auto-compact, aimed at keeping long agentic…
CLAUDE_CONTEXT_COLLAPSE_MODEL
Context and compaction
Removed between v2.1.269 and v2.1.283—
CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES
Terminal and UI
Added between v2.1.77 and v2.1.79Injects additional memory guidelines into cowork (teammate) sessions. In multi-agent "cowork" mode — where a leader spawns teammate Claude sessions in split…
CLAUDE_COWORK_MEMORY_GUIDELINES
Terminal and UI
Added between v2.1.118 and v2.1.123Policy document for the CoWork shared memory system — a new abstraction distinct from user memory (~/.claude/) and project memory (CLAUDE.md). Multiple agents…
CLAUDE_COWORK_MEMORY_INDEX_CONTENT
Memory and CLAUDE.md
Added between v2.1.118 and v2.1.123Content of the CoWork memory index. Where guidelines set policy, this carries structured summaries agents use to find relevant prior work without replaying…
CLAUDE_COWORK_MEMORY_PATH_OVERRIDE
Terminal and UI
Present since v2.1.69 or earlier—
CLAUDE_DEBUG
Debugging
Present since v2.1.69 or earlierEnable debug logging
CLAUDE_DISABLE_ADOPT
Feature toggles
Added between v2.1.143 and v2.1.212
Documented
—
CLAUDE_EFFORT
Models and thinking
Added between v2.1.128 and v2.1.138
Documented
Set thinking effort level at spawn time without the interactive /effort picker. Scriptable effort control: run high effort on the architect agent, low effort…
CLAUDE_ENABLE_BYTE_WATCHDOG
Network and proxy
Added between v2.1.104 and v2.1.107
Documented
Activates a byte-level watchdog on API response streams. The v2.1.105 changelog describes a fix for stalled API streams: "streams now abort after 5 minutes of…
CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK
Cloud providers
Added between v2.1.138 and v2.1.143
Documented
Enable the byte watchdog on Bedrock connections. The watchdog fires when a connection opens but produces no bytes within a window — catching silent stalls that…
CLAUDE_ENABLE_STREAM_WATCHDOG
Network and proxy
Present since v2.1.69 or earlier
Documented
Enable stream health monitoring
CLAUDE_ENV_FILE
Other
Present since v2.1.69 or earlier
Documented
Path to environment file for session variables
CLAUDE_FORCE_DISPLAY_SURVEY
Feature toggles
Present since v2.1.69 or earlierForce feedback survey display
CLAUDE_GATEWAY_ALLOW_LOOPBACK
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS
Network and proxy
Added between v2.1.269 and v2.1.283—
CLAUDE_GATEWAY_LOG_LEVEL
Debugging
Removed between v2.1.269 and v2.1.283—
CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY
Network and proxy
Added between v2.1.269 and v2.1.283—
CLAUDE_IMPORT_CONVERSATIONS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_INTERNAL_ASSISTANT_TEAM_NAME
Agents and subagents
Added in v2.1.108Passes the current Agent Teams team name (prefixed assistant-) to a spawned child process. Agent Teams surfaces in the UI as "Agent Teams is not yet available…
CLAUDE_INTERNAL_FC_OVERRIDES
Terminal and UI
Added between v2.1.118 and v2.1.123Internal overrides for function-call (tool-use) behavior. Injects overrides that bypass normal routing — for testing new tool schemas or shadowing production…
CLAUDE_IN_CHROME_DOMAIN_RULE_TOOL
Shell and tools
Added between v2.1.143 and v2.1.212—
CLAUDE_IN_CHROME_MANAGED_MCP_REFUSAL
MCP
Added between v2.1.269 and v2.1.283—
CLAUDE_IN_CHROME_MCP_SERVER_NAME
MCP
Added between v2.1.143 and v2.1.212—
CLAUDE_JOB_DIR
Other
Added between v2.1.118 and v2.1.123
Documented
Working directory for a background job, independent of the daemon's own cwd. Background jobs may target a different directory than the session that spawned…
CLAUDE_LOCAL_OAUTH_API_BASE
Authentication
Added in v2.1.85Overrides the base URL for local OAuth API operations. This extends the auth customization story started by CLAUDE_AI_ORIGIN in v2.1.84, giving operators finer…
CLAUDE_LOCAL_OAUTH_APPS_BASE
Authentication
Added in v2.1.85Overrides the base URL for the local OAuth applications registry. Together with CLAUDE_LOCAL_OAUTH_API_BASE, this completes a two-part override for the OAuth…
CLAUDE_LOCAL_OAUTH_CONSOLE_BASE
Authentication
Added in v2.1.86Overrides the base URL for the OAuth console interface. This is the third piece of the local OAuth override triptych: CLAUDE_LOCAL_OAUTH_API_BASE handles token…
CLAUDE_MEMORY_STORES
Memory and CLAUDE.md
Added between v2.1.138 and v2.1.143Configure which memory backends are active. With the memory system now supporting typed files, project-scoped MEMORY.md indexes, and persistent cross-session…
CLAUDE_MOCK_HEADERLESS_429
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_NAMES
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_PID
Other
Added between v2.1.212 and v2.1.215
Documented
Holds the CLI's own process ID and powers a self-protection shim: the injected shell wrapper around pkill/pgrep refuses to signal any match equal to…
CLAUDE_PLUGIN_DATA
Plugins and skills
Added between v2.1.77 and v2.1.79Provides a filesystem path where plugins can store persistent state that survives plugin updates and reinstalls. Previously, plugin data lived alongside the…
CLAUDE_PLUGIN_OPTION_
Plugins and skills
—A prefix-style variable (note the trailing underscore) for passing configuration options to installed plugins. This follows the pattern of…
CLAUDE_PLUGIN_ROOT
Plugins and skills
Present since v2.1.69 or earlierRoot directory for plugins
CLAUDE_PREVIEW_CLASSIFIER_FLOOR
Other
Removed between v2.1.241 and v2.1.245—
CLAUDE_PROJECT_DIR
Other
Present since v2.1.69 or earlierOverride project directory
CLAUDE_PROJECT_UUID
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_PTY_HEARTBEAT_MS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_PTY_HOST_EXEC
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_PTY_ORPHAN_CHECK_MS
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_PTY_RECORD
Other
Added between v2.1.118 and v2.1.123Enables PTY session recording for a background agent — captures the raw terminal byte stream as a bit-for-bit replay artifact, not just a transcript. Likely…
CLAUDE_RELAUNCH_SESSION_ADD_DIRS
Sessions
Added between v2.1.269 and v2.1.283—
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX
Sessions
Added in v2.1.92
Documented
Sets a prefix for Remote Control session names. The changelog[1] mentions improved session naming for Remote Control — this variable lets teams enforce naming…
CLAUDE_REMOTE_TOOLS_BRIDGE_URL
Network and proxy
Added between v2.1.224 and v2.1.227—
CLAUDE_REMOTE_WORKFLOW_ARGS
Agents and subagents
Added between v2.1.143 and v2.1.212—
CLAUDE_REMOTE_WORKFLOW_SCRIPT
Agents and subagents
Added between v2.1.143 and v2.1.212—
CLAUDE_REPL_MODE
Other
Removed between v2.1.96 and v2.1.100Sets the operating mode for the REPL interface. This likely controls behavior such as output format (JSON vs plain text), verbosity level, or whether the REPL…
CLAUDE_REPL_MODE0
Other
—Prototype naming for the REPL mode configuration. Replaced by the properly named CLAUDE_REPL_MODE in this release.
CLAUDE_REPL_VARIANT
Other
Removed between v2.1.269 and v2.1.283Selects which REPL implementation to load. Multiple variants coexist in the native binary; this key lets Anthropic A/B-test REPL behavior without separate…
CLAUDE_REPL_VERBOSE
Other
Removed between v2.1.269 and v2.1.283—
CLAUDE_RUNNER_ACCOUNT_EMAIL
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ACCOUNT_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ACTIVITY_FD
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_RUNNER_API_BASE_URL
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ATTEMPT
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_CHECKOUT_PATH
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_CLAUDE_BIN
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_CLIENT_PLATFORM
Other
Added in v2.1.229—
CLAUDE_RUNNER_CORRELATION_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_DEBUG_LOG_PATH
Debugging
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_DISABLE_AWAITING_ACTION_OVERRIDE
Terminal and UI
Added between v2.1.143 and v2.1.212—
CLAUDE_RUNNER_EXIT_REASON
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_FAIL_FAST_FETCH
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_FETCH_DEPTH
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_RUNNER_GIT_MOUNT_URL
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ORDER_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_ORDER_SERVER_TIME
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_POOL_ID
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_PRIMARY_REPO_REVISION
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_PRIMARY_REPO_URL
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_REPO_REF
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_REPO_SOURCES
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_REPO_URL
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_SESSION_ID
Sessions
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_SESSION_UUID
Sessions
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_SKIP_GIT_VERIFY
Feature toggles
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_STALL_GIVEUP
Other
Added between v2.1.241 and v2.1.245—
CLAUDE_RUNNER_TRUST_CANONICAL_PREWARM
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_USE_GIT_PROXY
Network and proxy
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_WORKSPACE_PATHS
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_RUNNER_WORK_ORDER_FILE
Other
Added between v2.1.222 and v2.1.224—
CLAUDE_SCRIPT_HOOK_ACK
Other
Added between v2.1.252 and v2.1.266—
CLAUDE_SDK_CAN_USE_TOOL_SHADOWED
Shell and tools
Added between v2.1.143 and v2.1.212—
CLAUDE_SECURESTORAGE_CONFIG_DIR
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_SERVE_DRAIN_TIMEOUT_MS
Network and proxy
Added between v2.1.143 and v2.1.212—
CLAUDE_SESSION_INGRESS_TOKEN_FILE
Authentication
Added between v2.1.79 and v2.1.83—
CLAUDE_SLOW_FIRST_BYTE_MS
Other
Added between v2.1.108 and v2.1.114Default 30,000ms. Logs a "Slow first byte: no stream chunk" observability event when the connection opens but produces no chunks within the window. Complements…
CLAUDE_SNIP
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_SSH_LOCAL_BINARY
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_SSH_VERSION
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_STAGE_FILE_ROOT
Other
Added between v2.1.143 and v2.1.212—
CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS
Network and proxy
Added between v2.1.241 and v2.1.245
Documented
—
CLAUDE_STREAM_IDLE_TIMEOUT_MS
Network and proxy
Added in v2.1.84
Documented
Configures the streaming idle watchdog threshold — the maximum time Claude Code waits for data on an open SSE connection before treating it as stalled. The…
CLAUDE_SUBAGENT_BG_SHELL_MAX_MS
Agents and subagents
Removed between v2.1.252 and v2.1.266
Documented
Time cap for shell commands run by background subagents. A background agent running a full test suite or a slow build command used to be bounded only by the…
CLAUDE_TEST_PROJECT_DIR
Other
Added between v2.1.269 and v2.1.283—
CLAUDE_TMPDIR
Other
Present since v2.1.69 or earlierAlternative temp directory; fallback for CLAUDE_CODE_TMPDIR
CLAUDE_TRUSTED_DEVICE_TOKEN
Authentication
Added in v2.1.86Stores a token that marks the current device as trusted, likely enabling persistent authentication sessions without repeated re-authorization.
CLAUDE_WORKFLOW_NAME_ONLY
Agents and subagents
Added between v2.1.143 and v2.1.212Restricts a remote/headless run to a single named workflow. It appears immediately after CLAUDE_REMOTE_WORKFLOW_SCRIPT and CLAUDE_REMOTE_WORKFLOW_ARGS in the…
CLAUDE_WORKSHOP_PROGRESS
Other
Added between v2.1.224 and v2.1.227—
DATABASE_URL
Network and proxy
—
Documented
—
DEBUG
Debugging
—
Documented
—
DISABLE_AUTOUPDATER
Feature toggles
—
Documented
Automatic update checker
DISABLE_AUTO_COMPACT
Context and compaction
—
Documented
Disable automatic compaction only (manual /compact still works)
DISABLE_AUTO_MIGRATE_TO_NATIVE
Feature toggles
—Native installer migration
DISABLE_BUG_COMMAND
Feature toggles
—/bug command
DISABLE_CLAUDE_CODE_SM_COMPACT
Context and compaction
—Disable session memory compaction
DISABLE_COMPACT
Context and compaction
—
Documented
Disable all compaction (manual + auto)
DISABLE_COST_WARNINGS
Feature toggles
—
Documented
API cost warnings
DISABLE_DOCTOR_COMMAND
Feature toggles
—
Documented
/doctor diagnostic command
DISABLE_ERROR_REPORTING
Feature toggles
—
Documented
Automatic error reporting
DISABLE_EXTRA_USAGE_COMMAND
Feature toggles
—
Documented
Extra usage display
DISABLE_FEEDBACK_COMMAND
Feature toggles
—
Documented
/feedback command
DISABLE_GROWTHBOOK
Feature toggles
—
Documented
—
DISABLE_INSTALLATION_CHECKS
Feature toggles
—
Documented
Installation verification
DISABLE_INSTALL_GITHUB_APP_COMMAND
Feature toggles
—
Documented
GitHub app install command
DISABLE_INTERLEAVED_THINKING
Models and thinking
—
Documented
Interleaved thinking beta
DISABLE_LOGIN_COMMAND
Debugging
—
Documented
/login command
DISABLE_LOGOUT_COMMAND
Debugging
—
Documented
/logout command
DISABLE_MICROCOMPACT
Context and compaction
—Micro-compaction (small context cleanups)
DISABLE_PROMPT_CACHING
Feature toggles
—
Documented
Prompt caching globally
DISABLE_PROMPT_CACHING_FABLE
Models and thinking
—
Documented
—
DISABLE_PROMPT_CACHING_HAIKU
Models and thinking
—
Documented
Prompt caching for Haiku
DISABLE_PROMPT_CACHING_OPUS
Models and thinking
—
Documented
Prompt caching for Opus
DISABLE_PROMPT_CACHING_SONNET
Models and thinking
—
Documented
Prompt caching for Sonnet
DISABLE_TELEMETRY
Telemetry
—
Documented
All telemetry
DISABLE_UPDATES
Feature toggles
—
Documented
Explicitly documented in the v2.1.118 changelog. Prevents Claude Code from auto-checking for or applying npm updates. Intended for environments where updates…
DISABLE_UPGRADE_COMMAND
Feature toggles
—
Documented
/upgrade command
DO_NOT_TRACK
Other
—
Documented
—
ENABLE_BETA_TRACING_DETAILED
Feature toggles
—
Documented
Enable detailed beta tracing
ENABLE_BTW
Feature toggles
—Enable "by the way" suggestions
ENABLE_CLAUDEAI_MCP_SERVERS
MCP
—
Documented
Enable Claude.ai-hosted MCP servers
ENABLE_CLAUDE_CODE_SM_COMPACT
Context and compaction
—Force enable session memory compaction
ENABLE_ENHANCED_TELEMETRY_BETA
Telemetry
—Enable enhanced telemetry (beta)
ENABLE_LSP_TOOL
Shell and tools
—Enable Language Server Protocol tool
ENABLE_MCP_LARGE_OUTPUT_FILES
MCP
—Enable large output files for MCP
ENABLE_PROMPT_CACHING_1H
Feature toggles
—
Documented
—
ENABLE_PROMPT_CACHING_1H_BEDROCK
Cloud providers
—
Documented
Enable 1-hour prompt caching on Bedrock
ENABLE_SESSION_BACKGROUNDING
Sessions
—Enable session backgrounding
ENABLE_TOOL_SEARCH
Shell and tools
—
Documented
Tool search/deferred loading: auto, true, false, or 0–100%
FALLBACK_FOR_ALL_PRIMARY_MODELS
Models and thinking
—
Documented
Enable fallback for all primary models
FORCE_AUTOUPDATE_PLUGINS
Plugins and skills
—
Documented
Force auto-update plugins
FORCE_HYPERLINK
Feature toggles
—
Documented
—
FORCE_PROMPT_CACHING_5M
Feature toggles
—
Documented
—
GITHUB_TOKEN
Authentication
—
Documented
—
GIT_CONFIG_COUNT
Other
—
Documented
—
HTTPS_PROXY
Network and proxy
—
Documented
HTTPS proxy server URL
HTTP_PROXY
Network and proxy
—
Documented
HTTP proxy server URL
IS_DEMO
Other
—
Documented
Indicates demo mode
MAX_MCP_OUTPUT_TOKENS
Authentication
—
Documented
Max tokens for MCP tool output
MAX_STRUCTURED_OUTPUT_RETRIES
Network and proxy
—
Documented
—
MAX_THINKING_TOKENS
Authentication
—
Documented
Likely controlled via API settings now
MCP_CLIENT_SECRET
MCP
—
Documented
Client secret for MCP OAuth
MCP_CONNECTION_NONBLOCKING
Network and proxy
—
Documented
Make MCP connections non-blocking
MCP_CONNECT_TIMEOUT_MS
Network and proxy
—
Documented
—
MCP_DISCOVERY_CACHE
MCP
—
Documented
—
MCP_DISCOVERY_CACHE_MAX_STALE_S
MCP
—
Documented
—
MCP_DISCOVERY_CACHE_STRIKES
MCP
—
Documented
—
MCP_DISCOVERY_CACHE_TTL_S
MCP
—
Documented
—
MCP_OAUTH_CALLBACK_PORT
Authentication
—
Documented
OAuth callback server port
MCP_PROTOCOL_NEGOTIATION
MCP
—
Documented
—
MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE
Network and proxy
—
Documented
Remote MCP connection batch size
MCP_SDK_GENERATION
MCP
—
Documented
—
MCP_SERVER_CONNECTION_BATCH_SIZE
Network and proxy
—
Documented
Concurrent MCP server connections
MCP_TIMEOUT
Network and proxy
—
Documented
MCP server connection timeout
MCP_TOOL_TIMEOUT
Network and proxy
—
Documented
Individual MCP tool execution timeout
NO_PROXY
Network and proxy
—
Documented
Domains to bypass proxy (comma-separated)
NPM_TOKEN
Authentication
—
Documented
—
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
Telemetry
—
Documented
—
OTEL_LOG_ASSISTANT_RESPONSES
Telemetry
—
Documented
—
OTEL_LOG_MANAGED_SETTINGS
Telemetry
—
Documented
—
OTEL_LOG_RAW_API_BODIES
Telemetry
—
Documented
—
OTEL_LOG_TOOL_CONTENT
Telemetry
—
Documented
Include tool input/output in telemetry
OTEL_LOG_TOOL_DETAILS
Telemetry
—
Documented
Include tool execution details
OTEL_LOG_USER_PROMPTS
Telemetry
—
Documented
Include user prompts in telemetry
OTEL_METRICS_INCLUDE_ACCOUNT_UUID
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_ENTRYPOINT
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_REPOSITORY
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_SESSION_ID
Telemetry
—
Documented
—
OTEL_METRICS_INCLUDE_VERSION
Telemetry
—
Documented
—
PIP_INDEX_URL
Network and proxy
—
Documented
—
SLASH_COMMAND_TOOL_CHAR_BUDGET
Shell and tools
—
Documented
Character budget for slash command tool output
TASK_MAX_OUTPUT_LENGTH
Other
—
Documented
Max output length for Task tool results
USE_BUILTIN_RIPGREP
Other
—
Documented
Force use of built-in ripgrep
VERTEX_REGION_CLAUDE_3_5_HAIKU
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_3_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_3_7_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_0_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_0_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_1_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_5_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_6_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_6_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_7_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_4_8_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_5_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_OPUS
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_5_SONNET
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_FABLE_5
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_FABLE_5_1
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_HAIKU_4_5
Cloud providers
—
Documented
—
VERTEX_REGION_CLAUDE_HAIKU_5_5
Cloud providers
—
Documented
—

Frequently asked questions

How many environment variables does Claude Code have?

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

Where do I set a Claude Code environment variable?

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

Are undocumented Claude Code environment variables safe to use?

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