AI Gateway is now available: identity-aware access to any AI provider, eliminate API keys, and tunnel to self-hosted models. Get started

AI GatewayProviders

Microsoft Foundry

Connect Microsoft Foundry as an AI Gateway provider

A Microsoft Foundry provider forwards OpenAI-format and Anthropic-format requests to your Azure AI Foundry (or Azure OpenAI) resource. One Foundry provider can serve both Codex-style clients and Claude Code, because the defaults include Chat Completions, Responses, and Anthropic Messages.

See AI Providers if you haven't created a provider before. Field options are in Provider Configuration.

Defaults

SettingValue
Upstream URLYou enter your Foundry or Azure OpenAI resource base URL
Auth typeBearer
CapabilitiesOpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Anthropic Models

Configure

  1. Sidebar → AI Gateway → Providers → Create.
  2. Set Provider Type to Microsoft Foundry. Capabilities and auth type fill in from the defaults above.
  3. Set Upstream URL to the resource base, for example https://<resource-name>.services.ai.azure.com or https://<resource-name>.openai.azure.com.
  4. Paste a Bearer credential the resource accepts (typically the Azure API key).
  5. Set Allow and Block lists. Use the deployment or model names the Foundry resource exposes.
  6. Save, then attach the provider to an AI Gateway resource.

Leave capabilities at the defaults if you want both OpenAI-compatible and Anthropic-compatible clients on the same resource. Trim them if this Foundry resource only hosts one API family.

Clients

ClientGuide
CodexSetup guide
Claude CodeSetup guide
OpenCodeSetup guide
Open WebUISetup guide
Claude DesktopSetup guide
OpenClawSetup guide

Was this page helpful?

⌘I

On this page