⌨️ANTHROPIC_FOUNDRY_RESOURCE
Also known as ANTHROPIC_FOUNDRY_RESOURCE environment variable, ANTHROPIC_FOUNDRY_BASE_URL
It names the Foundry resource Claude Code uses.
Think of it like
It is like the name of your branch, not the full street address.
Example
Emma copies her Foundry address into this variable, and Claude Code refuses it. She puts in just the resource name, and it connects.
Why it matters
It is the one thing Claude Code needs to find your Claude models on Foundry.
Definition
Example code
bash
export CLAUDE_CODE_USE_FOUNDRY=1
export ANTHROPIC_FOUNDRY_RESOURCE=my-resource
claudeCommon mistake
Key takeaways
- 1Name only. Not a URL.
- 2Or the base URL. One of the two.
- 3Needs USE_FOUNDRY. To matter.