{"version":"2.1.319","anchor":"anthropic-custom-headers-and-claude-code-extra-body-collecte","canonical_anchor":"anthropic-custom-headers-and-claude-code-extra-body-collecte","heading":"ANTHROPIC_CUSTOM_HEADERS and CLAUDE_CODE_EXTRA_BODY are now grouped together","tier":"internal","area":"Environment Variables","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/anthropic-custom-headers-and-claude-code-extra-body-collecte","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### `ANTHROPIC_CUSTOM_HEADERS` and `CLAUDE_CODE_EXTRA_BODY` are now grouped together\n\nClaude Code now keeps `ANTHROPIC_CUSTOM_HEADERS` and `CLAUDE_CODE_EXTRA_BODY` on a shared list of their own\n\n**Unclear.** What Claude Code does with the list, and whether it changes how these variables apply, is not stated.\n\n**What**\n\nAn environment variable is a named value you set in your shell before starting a program. Claude Code now keeps a list holding two of them, so it can handle them together:\n\n- `ANTHROPIC_CUSTOM_HEADERS`, which adds your own headers to the requests Claude Code sends.\n\n- `CLAUDE_CODE_EXTRA_BODY`, which adds your own fields to the body of each request.\n\n**Why**\n\nBoth variables let you change what Claude Code sends to the model provider, so they are sensitive. Grouping them suggests Claude Code now gives them special treatment.\n\n- Area: Environment Variables\n- Names: `ANTHROPIC_CUSTOM_HEADERS`, `CLAUDE_CODE_EXTRA_BODY`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: no"}