{"name":"ANTHROPIC_FOUNDRY_AUTH_TOKEN","slug":"anthropic-foundry-auth-token","family":"env","title":"Environment variables","noun":"environment variable","description":"Bearer token for Microsoft Foundry authentication, such as a Microsoft Entra access token. Claude Code sends it as the `Authorization: Bearer` header. Takes precedence over `ANTHROPIC_FOUNDRY_API_KEY` and over the Azure default credential chain. See [Microsoft Foundry](\/docs\/en\/microsoft-foundry). Requires Claude Code v2.1.203 or later","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.203","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":94,"mined_builds":149,"first_cited":{"version":"2.1.203","released_at":"2026-07-07 17:40:17","spans":1}},"aliases":[],"entries":[{"version":"2.1.203","anchor":"anthropic-foundry-auth-token-environment-variable","heading":"ANTHROPIC_FOUNDRY_AUTH_TOKEN Environment Variable","line":null,"released_at":"2026-07-07 17:40:17","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"errors","title":"Error reference","documented":false},{"source":"claude-code","path":"llm-gateway-connect","title":"Connect Claude Code to an LLM gateway","documented":false},{"source":"claude-code","path":"microsoft-foundry","title":"Claude Code on Microsoft Foundry","documented":false}],"docs_total":4,"gates":[],"related":[{"name":"ANTHROPIC_FOUNDRY_API_KEY","slug":"anthropic-foundry-api-key","description":"API key for Microsoft Foundry authentication (see [Microsoft Foundry](\/docs\/en\/microsoft-foundry))"},{"name":"ANTHROPIC_FOUNDRY_BASE_URL","slug":"anthropic-foundry-base-url","description":"Full base URL for the Microsoft Foundry resource (for example, `https:\/\/my-resource.services.ai.azure.com\/anthropic`). Alternative to `ANTHROPIC_FOUNDRY_RESOURCE` (see [Microsoft Foundry](\/docs\/en\/microsoft-foundry))"},{"name":"ANTHROPIC_FOUNDRY_RESOURCE","slug":"anthropic-foundry-resource","description":"Microsoft Foundry resource name (for example, `my-resource`). Required if `ANTHROPIC_FOUNDRY_BASE_URL` is not set (see [Microsoft Foundry](\/docs\/en\/microsoft-foundry))"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/anthropic-foundry-auth-token","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}