4 pages for anthropic_foundry_auth_token.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Environment variables
Claude Code CLI · in the page
env-vars
…| | `ANTHROPIC_FOUNDRY_AUTH_TOKEN` | Bearer token for Microsoft Foundry authentication, such as a Microsoft En…
Error reference
Claude Code CLI · in the page
errors
…soft Foundry authentication failed · refresh your Foundry credential (ANTHROPIC_FOUNDRY_AUTH_TOKEN, ANTHROPIC_FOUNDRY_API_KEY, Azure sign-in for Entra, or your proxy token) and retry · if credentials…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…`x-api-key` header. A gateway that expects a bearer token can take [`ANTHROPIC_FOUNDRY_AUTH_TOKEN`](/docs/en/env-vars) instead. Claude Code sends that value as the `Authorization: Bearer` header, and…
Claude Code on Microsoft Foundry
Claude Code CLI · in the page
microsoft-foundry
…process obtains a Microsoft Entra ID access token and you pass it in `ANTHROPIC_FOUNDRY_AUTH_TOKEN` > [!NOTE] > > When using Microsoft Foundry, the `/logout` command is unavailable since authenticati…