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
| Setting | Value |
|---|---|
| Upstream URL | You enter your Foundry or Azure OpenAI resource base URL |
| Auth type | Bearer |
| Capabilities | OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Anthropic Models |
Configure
- Sidebar → AI Gateway → Providers → Create.
- Set Provider Type to Microsoft Foundry. Capabilities and auth type fill in from the defaults above.
- Set Upstream URL to the resource base, for example
https://<resource-name>.services.ai.azure.comorhttps://<resource-name>.openai.azure.com. - Paste a Bearer credential the resource accepts (typically the Azure API key).
- Set Allow and Block lists. Use the deployment or model names the Foundry resource exposes.
- 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
| Client | Guide |
|---|---|
| Codex | Setup guide |
| Claude Code | Setup guide |
| OpenCode | Setup guide |
| Open WebUI | Setup guide |
| Claude Desktop | Setup guide |
| OpenClaw | Setup guide |
Was this page helpful?

