The check deciding whether the system prompt block may be marked cacheable used to only require that experimental betas were not disabled. It now also requires a known provider and endpoint: Bedrock, Vertex and Mantle qualify only when ANTHROPIC_BEDROCK_BASE_URL, ANTHROPIC_VERTEX_BASE_URL and ANTHROPIC_BEDROCK_MANTLE_BASE_URL are unset, and Foundry only when ANTHROPIC_FOUNDRY_BASE_URL is unset or its hostname ends in .services.ai.azure.com. Behind a proxy or custom gateway, the system block stops being cached.
- First-party and Anthropic-on-AWS paths still have to pass the existing beta and base-URL checks.
- No feature flag; the outcome is decided entirely by the provider and those environment variables, and it is live for everyone on this build.
.services.ai.azure.com
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
* **Amazon Bedrock or Agent Platform format**: the developer sets `CLAUDE_CODE_USE_BEDROCK=1` with `ANTHROPIC_BEDROCK_BASE_URL`, or `CLAUDE_CODE_USE_VERTEX=1` with `ANTHROPIC_VERTEX_BASE_URL`, pointing at your gateway. Claude Code uses tha…llm-gateway-protocol see the edit
* **Amazon Bedrock or Agent Platform format**: the developer sets `CLAUDE_CODE_USE_BEDROCK=1` with `ANTHROPIC_BEDROCK_BASE_URL`, or `CLAUDE_CODE_USE_VERTEX=1` with `ANTHROPIC_VERTEX_BASE_URL`, pointing at your gateway. Claude Code uses tha…llm-gateway-protocol see the edit
To send Microsoft Foundry traffic through a gateway or proxy you operate, such as Azure API Management in front of the resource, set `inferenceFoundryBaseUrl` (**Azure AI Foundry base URL**) to the gateway's base URL including any path, fo…third-party/claude-desktop/foundry see the edit
Claude Code constructs the endpoint URL from the AWS region, resolved with the same precedence as [Amazon Bedrock above](#3-configure-claude-code). To override the URL for a custom endpoint or gateway, set `ANTHROPIC_BEDROCK_MANTLE_BASE_UR…amazon-bedrock see the edit
Anthropic's documentation has since written up ANTHROPIC_BEDROCK_MANTLE_BASE_URL, on Claude Code on Amazon Bedrock.