Haute Access
Setup Instructions
Sign in using Entra ID.
Click on ... (top right) => Show Keys => Copy the primary key.
Follow the below instructions, replace the <API_PRIMARY_KEY>with copied key above.

Get started
Open Terminal and paste:
echo -e '\n# Foundry AI\nexport ANTHROPIC_BASE_URL=https://haute-apim-v2.azure-api.net/v2/anthropic\nexport ANTHROPIC_API_KEY=YOUR_KEY_HERE' >> ~/.zshrc && source ~/.zshrcStep 3: Restart Claude Code
Step 4: Verify
claude -p "Say hello" --output-format textIf you get a response, you're connected to Foundry.
Rollback: Remove the 2 Foundry lines from ~/.zshrc and restart.
Restart Claude Code..

Get Started
Option 1: PowerShell
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://haute-apim-v2.azure-api.net/v2/anthropic", "User") [System.Environment]::SetEnvironmentVariable("ANTHROPIC_API_KEY", "YOUR_KEY_HERE", "User")Close and reopen VS Code.
Option 2: VS Code
Ctrl+Shift+PType "Preferences: Open User Settings (JSON)"
Add:
"Claude Code: Environment Variables": { "ANTHROPIC_BASE_URL": "https://haute-apim-v2.azure-api.net/v2/anthropic", "ANTHROPIC_API_KEY": "YOUR_KEY_HERE" }Save, restart Claude Code.

Get Started
## VS Code (Mac or Windows)
VS Code (any OS):
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac)Type "Preferences: Open User Settings (JSON)"
Add:
Plain Text
"Claude Code: Environment Variables": {"ANTHROPIC_BASE_URL": "https://haute-apim-v2.azure-api.net/v2/anthropic","ANTHROPIC_API_KEY": "<<YOUR_KEY_HERE>>"}
Save, restart Claude Code.