{"name":"ANTHROPIC_FOUNDRY_BASE_URL","slug":"anthropic-foundry-base-url","family":"env","title":"Environment variables","noun":"environment variable","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))","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.251","released_at":"2026-08-28 15:34:26","spans":2}},"aliases":[],"entries":[{"version":"2.1.293","anchor":"foundry-gateway-base-url-anthropic-foundry-base-url-in-des","heading":"Desktop app admins can set a Microsoft Foundry base URL for Claude Code sessions","line":"Desktop enterprise settings gain a Microsoft Foundry base URL, passed to Claude Code sessions as `ANTHROPIC_FOUNDRY_BASE_URL`","released_at":"2026-10-07 17:18:04","reason":"found in this entry's text, named in this entry"},{"version":"2.1.284","anchor":"anthropic-foundry-resource-is-validated-and-passed-to-the-fo","heading":"ANTHROPIC_FOUNDRY_RESOURCE must now be a resource name, not a URL","line":"Without `ANTHROPIC_FOUNDRY_BASE_URL`, Claude Code rejects a URL or host name in `ANTHROPIC_FOUNDRY_RESOURCE` with a clear error","released_at":"2026-09-28 17:11:59","reason":"found in this entry's text, named in this entry"},{"version":"2.1.251","anchor":"foundry-and-bedrock-mantle-appear-in-the-provider-base-url-c","heading":"Foundry and Bedrock Mantle appear in the provider base-URL checks","line":"Base-URL safety checks now group Foundry and Bedrock Mantle with the other providers.","released_at":"2026-08-28 15:34:26","reason":"found in this entry's text"},{"version":"2.1.237","anchor":"system-prompt-caching-now-requires-a-recognised-endpoint","heading":"System prompt caching now requires a recognised endpoint","line":"If you point Claude at a proxy or custom gateway, the system prompt is no longer cached.","released_at":"2026-08-19 23:57:54","reason":"named in this entry, found in this entry's text"}],"entries_total":4,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"api","path":"build-with-claude\/claude-in-microsoft-foundry","title":"claude-in-microsoft-foundry","documented":false},{"source":"claude-code","path":"llm-gateway-connect","title":"Connect Claude Code to an LLM gateway","documented":false},{"source":"claude-code","path":"llm-gateway-protocol","title":"Claude Code gateway compatibility guide","documented":false},{"source":"claude-code","path":"llm-gateway-rollout","title":"Roll out an LLM gateway for your organization","documented":false},{"source":"claude-code","path":"microsoft-foundry","title":"Claude Code on Microsoft Foundry","documented":false},{"source":"claude-code","path":"third-party-integrations","title":"Enterprise deployment overview","documented":false},{"source":"claude-docs","path":"cowork\/changelog","title":"Changelog","documented":false},{"source":"claude-docs","path":"office-agents\/third-party-platforms","title":"Use Claude for M365 with third-party platforms","documented":false},{"source":"claude-docs","path":"third-party\/claude-desktop\/configuration","title":"Configuration reference","documented":false}],"docs_total":11,"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_AUTH_TOKEN","slug":"anthropic-foundry-auth-token","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"},{"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-base-url","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}