{"version":"2.1.287","anchor":"self-hosted-remote-environment-and-custom-header-auth-parsin","canonical_anchor":"self-hosted-remote-environment-and-custom-header-auth-parsin","heading":"Custom Authorization headers read through a shared parser; a self-hosted remote type","tier":"internal","area":"API","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287\/e\/self-hosted-remote-environment-and-custom-header-auth-parsin","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287","markdown":"### Custom Authorization headers read through a shared parser; a self-hosted remote type\n\nAn Authorization header set in ANTHROPIC_CUSTOM_HEADERS is now read by a shared parser, and a self_hosted remote environment type is recognised\n\n**Unclear.** What Claude Code does differently when the remote environment type is self_hosted is not shown.\n\n**What**\n\n`ANTHROPIC_CUSTOM_HEADERS` is an environment variable for adding your own headers to Claude Code's requests. Claude Code already read an `Authorization` header from it. It now reads that header through the same shared parser it uses for the rest of the variable.\n\nClaude Code also treats `CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE` set to `self_hosted` as a special case.\n\n**Why**\n\nThis lays groundwork for remote sessions that run on infrastructure you host yourself.\n\n- Area: API\n- Names: `ANTHROPIC_CUSTOM_HEADERS`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5"}