# Atlas with Azure OpenAI (gateway) in 2026: The GPT-5 Codex Line Under Enterprise IAM

> Azure OpenAI (gateway) gives Atlas the full GPT-5 lineup, including gpt-5.3-codex, with context up to 1.05M on the GPT-5.4+ line.

Azure OpenAI (gateway) puts the whole GPT-5 family, including the Codex line, under Azure IAM and your existing enterprise agreement, and Atlas resolves Azure deployments through the Responses API, falling back to chat completions. Context varies by model, up to 1.05M on the GPT-5.4+ line, and pricing is passthrough at Azure rates, broadly matching OpenAI's direct pricing. The friction is deployments: you must create a named deployment per model in the Azure portal before Atlas can call it.

## Key takeaways

- The full GPT-5 lineup on Azure includes gpt-5.3-codex, gpt-5.1-codex-max, and gpt-5.1-codex-mini, so the coding models are not enterprise-gated.
- Context varies by model, up to 1.05M on the GPT-5.4+ line, at passthrough Azure rates matching OpenAI's direct pricing.
- Data stays in your chosen Azure region under your existing enterprise agreement, which is usually the whole reason to choose it.
- Atlas's Azure loader tries `sdk.responses(modelID)` first and falls back to `sdk.chat(modelID)`, so older deployments keep working.
- You must create a named deployment per model in the Azure portal; the model existing in the catalog is not enough.

## What is Azure OpenAI best at inside Atlas?

Azure OpenAI (gateway) is best inside Atlas at delivering the coding-specialized GPT-5 models to an enterprise. The full GPT-5 lineup on Azure includes gpt-5.3-codex, gpt-5.1-codex-max, and gpt-5.1-codex-mini, so the Codex models are not enterprise-gated behind a separate agreement.

The Codex line is the reason to reach for Azure OpenAI (gateway) inside Atlas rather than any other enterprise gateway. gpt-5.3-codex and gpt-5.1-codex-max are tuned for exactly what Atlas asks a model to do: read AST-indexed declarations returned by hybrid semantic and keyword retrieval, plan a change, and emit edits that Atlas turns into a unified diff for approval before writing. gpt-5.1-codex-mini is the cheap slot for titles and summaries. All three run inside your Azure region under your existing enterprise agreement, so the security review that already covered Azure covers them.

## Why does Atlas need an Azure deployment before it sees a model?

Azure OpenAI (gateway) requires a named deployment per model in the Azure portal before Atlas can call it, so a GPT-5 model existing in the catalog is not enough. Create the deployment, then run `atlas models azure` to confirm Atlas actually sees it.

Azure's deployment model is the single most common Azure OpenAI (gateway) surprise for Atlas users. On a direct API, a model ID is enough. On Azure, a model is a catalog entry and a deployment is an instance of it in your resource, and only the deployment is callable. If `atlas models azure` shows nothing, the fix is in the Azure portal, not in atlas.json. Once the deployment exists, Atlas resolves it, and Atlas's Azure loader tries `sdk.responses(modelID)` first and falls back to `sdk.chat(modelID)`, so older deployments keep working alongside new ones.

## How do you point Atlas at an Azure OpenAI resource?

Point Atlas at Azure OpenAI (gateway) with 2 environment variables: set `AZURE_RESOURCE_NAME=my-resource` and `AZURE_API_KEY=...`, and Atlas builds the baseURL as `https://<resource>.cognitiveservices.azure.com/openai`. If your resource sits behind a different endpoint, set an explicit `baseURL` in the azure provider block in atlas.json.

Two environment variables get Azure OpenAI (gateway) working with Atlas in most cases: `AZURE_RESOURCE_NAME` and `AZURE_API_KEY`. Atlas derives the endpoint from the resource name, producing `https://<resource>.cognitiveservices.azure.com/openai`. Private endpoints, custom domains, and non-default sovereign clouds all break that derivation, which is why the azure provider block in atlas.json accepts an explicit `baseURL` override. Set it once and the rest of the flow is identical: create the deployment, run `atlas models azure`, and select the model from `/models`. Atlas lets you switch the active model and provider on the fly with favorites and recents.

## What context window does Azure OpenAI give Atlas?

Context on Azure OpenAI (gateway) varies by model, up to 1.05M on the GPT-5.4+ line. A 1.05M window is enough for Atlas to keep a wide hybrid search result, several files, and an accumulating stack of unified diffs resident through a long refactor without dropping context.

Because Azure OpenAI (gateway) is passthrough at Azure rates, broadly matching OpenAI's direct pricing, the large windows on the GPT-5.4+ line cost the same as they do direct. Inside Atlas, that window is what lets a long autonomous session stay coherent. Atlas fans out work to subagents that can run in the foreground or in parallel background sessions, and Atlas snapshots file changes as git patches so edits can be diffed and rolled back. With 1.05M tokens, the parent session can hold the full picture while subagents work. Confirm the window your specific deployment exposes with `atlas models azure`.

## When should you pick the direct OpenAI API instead of Azure?

Pick the direct OpenAI API over Azure OpenAI (gateway) when you need the newest model immediately. New OpenAI models reach Azure weeks after the direct API, so the newest GPT-5.6 tier may not be available on Azure yet, and every model needs a named deployment first.

The honest calculus on Azure OpenAI (gateway). The reason to choose it is that data stays in your chosen Azure region under your existing enterprise agreement, which is usually the entire reason for choosing it. If that does not apply to you, Azure is pure overhead: a deployment per model, a resource name, and a lag of weeks on new releases. If it does apply, the overhead is the price of shipping at all, and the GPT-5 Codex line is fully available. Atlas supports both, so a team can run Azure for work repositories and the direct API for open-source side projects.

## Setup

1. Set `AZURE_RESOURCE_NAME=my-resource` and `AZURE_API_KEY=...`. Atlas builds the baseURL as `https://<resource>.cognitiveservices.azure.com/openai`.
2. Alternatively, set an explicit `baseURL` in the azure provider block in atlas.json to override the derived one.
3. Create a deployment for the model in the Azure portal, then run `atlas models azure` to confirm Atlas sees it.
4. Select it from `/models` in the Atlas TUI.

## FAQ

### how to connect atlas to azure openai

Set `AZURE_RESOURCE_NAME=my-resource` and `AZURE_API_KEY=...`. Atlas builds the baseURL as `https://<resource>.cognitiveservices.azure.com/openai`. Create the model deployment in the Azure portal, run `atlas models azure`, then select it from `/models`.

### why does atlas models azure show no models

You must create a named deployment per model in the Azure portal before Atlas can call it; the model existing in the catalog is not enough. Create the deployment, then re-run `atlas models azure`.

### can i use gpt-5 codex models on azure openai

Yes. The full GPT-5 lineup on Azure includes gpt-5.3-codex, gpt-5.1-codex-max, and gpt-5.1-codex-mini, so the coding-specialized models are not enterprise-gated behind a separate agreement.

### how much does azure openai cost compared to openai direct

Azure OpenAI is passthrough at Azure rates, broadly matching OpenAI's direct pricing. The value of Azure is that data stays in your chosen Azure region under your existing enterprise agreement, not a lower price.

### what is the context window on azure openai

Context on Azure OpenAI varies by model, up to 1.05M on the GPT-5.4+ line. Run `atlas models azure` to confirm what your specific deployment exposes before pinning it.

### how do i override the azure baseurl in atlas

Set an explicit `baseURL` in the azure provider block in atlas.json to override the one Atlas derives from `AZURE_RESOURCE_NAME`. Use this for private endpoints, custom domains, or sovereign clouds.

### is the newest openai model available on azure

Not always. New OpenAI models reach Azure weeks after the direct API, so the newest GPT-5.6 tier may not be available yet. Use the direct OpenAI API if day-one access to a new release matters.

---

Canonical HTML: https://runatlas.sh/resources/models/azure-openai
Source of truth: aeo_pages row `/resources/models/azure-openai` (segment: Models) (this file is generated from it, never hand-edited).
Licence: Atlas is proprietary with a free core. It is not open source and there is no public source repository.
