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.

Feature 1

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 ~/.zshrc

Step 3: Restart Claude Code

Step 4: Verify

claude -p "Say hello" --output-format text

If you get a response, you're connected to Foundry.

Rollback: Remove the 2 Foundry lines from ~/.zshrc and restart.

Restart Claude Code..
API Key
Feature 2

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

  1. Ctrl+Shift+P

  2. Type "Preferences: Open User Settings (JSON)"

  3. Add:

"Claude Code: Environment Variables": {   "ANTHROPIC_BASE_URL": "https://haute-apim-v2.azure-api.net/v2/anthropic",   "ANTHROPIC_API_KEY": "YOUR_KEY_HERE" }
  1. Save, restart Claude Code.

API key
Feature 3

Get Started

## VS Code (Mac or Windows)

VS Code (any OS):

  1. Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)

  2. Type "Preferences: Open User Settings (JSON)"

  3. 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>>"
}

  1. Save, restart Claude Code.


API Key