Claude Code v2.1.336 · 3 Dec 2026
Two more environment variables get special handling: ANTHROPIC_BETAS and proxy simulation
Claude Code now handles ANTHROPIC_BETAS and CLAUDE_CODE_SIMULATE_PROXY_USAGE as special cases when it evaluates environment variables
Under the hood Tier: how much it should matter to you
2 Useful: my rating, 1 to 5
2 Signal: worth watching, 1 to 5
Environment Variables Area: what it touches
Internal Changes Kind: in v2.1.336, 03 Dec 26
Internal Changes Section of the release
Unclear What this special-case list is used for, and so what changes for someone who sets these variables, is not stated.
What
An environment variable is a named value you set before starting a program. Claude Code keeps a short list of environment variables that it handles as special cases when it evaluates them. Two more are now on that list:
Why
If you set either variable, Claude Code now treats it differently from an ordinary variable at this step.
How sure we are
Something disagrees Something we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt What this special-case list is used for, and so what changes for someone who sets these variables, is not stated.
See this entry in the whole of v2.1.336 →
3 Dec 2026 · 517 entries, this one is #379.
Use it now37 You'll notice268 Nothing to try yet65 Under the hood147
Open the release →
Names in this entry
env ANTHROPIC_BETAS Comma-separated list of additional anthropic-beta header values to include in API requests. Claude Code already sends the beta headers it needs; use this to opt into an Anthropic API beta before Claude Code adds native support. Unlike the --betas flag , which requires API key authentication, this variable works with all auth methods including Claude.ai subscription
env CLAUDE_CODE_SIMULATE_PROXY_USAGE Claude Code can present thinking as connector text only, but nothing enables it here.
env CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS Set to 1 to strip Anthropic-specific anthropic-beta request headers and beta tool-schema fields (such as defer_loading and eager_input_streaming) from API requests. Use this when a proxy gateway rejects requests with errors like "Unexpected value(s) for the anthropic-beta header" or "Extra inputs are not permitted". Standard fields (name, description, input_schema, cache_control) are preserved. MCP tool search is disabled and all MCP tools load upfront, even when you set ENABLE_TOOL_SEARCH. On Claude Code v2.1.227 or later, managed settings can keep tool search on. Disable pre-release capabilities covers where the override applies
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 378 of 517
Check for bug-hunting fleet sessions gains an extra first step
Under the hood Fleet
In v2.1.336 Internal Changes release-page order
Next → · 380 of 517
Consent for organization-pushed settings is now decided in three ways instead of two
Under the hood Managed Settings