LLM API Guide

Codex "Selected Model Is at Capacity": OpenAI Load or Your Account?

Diagnose whether Codex's "Selected model is at capacity" error stems from OpenAI server load or an account routing lock, and safely resume your session.

Summary

  1. Run a one-line ephemeral CLI test across models to tell regional serving-slot congestion apart from an account-level routing lock.
  2. Understand why Codex receives an in-stream server_is_overloaded JSON error inside an HTTP 200 OK response without a Retry-After header.
  3. Resume interrupted sessions safely after checking git diff, or flush stuck account tokens using a global logout and 2FA claim refresh.

When Codex stops mid-task and prints Selected model is at capacity. Please try a different model., the message points to a shortage of inference slots on OpenAI's servers. In the open-source client (codex-rs/protocol/src/error.rs), this exact text is rendered when the client maps an upstream ServerOverloaded condition—specifically the server_is_overloaded error code defined in the OpenAI API Error Codes documentation.

In practice, that single message hides two completely different problems. Sometimes a high-demand model like gpt-6.1-sol or gpt-5.6-sol genuinely runs out of regional compute slots for twenty minutes. Other times, your account gets pinned to a degraded backend routing pool or flagged by automated rate-defense rules, causing every major model to throw the exact same capacity error for days while your usage dashboard still shows 0% used.

Before you throw away your active thread or waste hours reinstalling the CLI, you need to know whether you are looking at genuine OpenAI cluster load or an account-level lock.

On this page

Is It OpenAI Server Load or Your Account?

When I hit this error repeatedly, I stopped trusting the OpenAI Status page as my first check. Global status incidents only appear when an entire cluster drops for hours—such as the 196-minute Codex capacity outage on June 16, 2026, the 58-minute multi-model routing failure on July 9, or the 203-minute gpt-5.6-sol overload on July 17. Regional slot exhaustion and account-level routing locks both happen while the status page stays completely green.

Instead, I separate genuine server congestion from an account lock by comparing how different models and accounts behave on the same machine:

Diagnostic Signal Genuine OpenAI Server Load Account-Level Routing Lock
Model Scope Hits one or two heavy models (gpt-6.1-sol, gpt-6-sol, gpt-5.6-sol); switching to gpt-6-luna or gpt-5.6-terra works right away. Hits all primary models (gpt-6-astra, gpt-6.1-sol, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5). Only fallback tiers like gpt-5.4-mini or codex-5.3 answer.
Quota & Allowance Happens at any usage level during peak regional hours. Fails 100% of the time even right after a reset (used_percent: 0, limit_reached: false, allowed: true).
Duration Clears or fluctuates within 5 to 45 minutes. Persists across 24 to 72+ hours, including off-peak overnight hours.
Second Account on Same IP A second Plus or Pro account on the same machine fails on the same model. A second account on the exact same machine, IP, and CLI binary runs every model without issue.
Minimal Prompt Behavior Long multi-file agent loops fail mid-turn, but a single-word prompt often slips through. Even a zero-context, tool-free Reply OK command fails instantly.

The 30-Second CLI Isolation Test

Local session state, bloated repository context, or broken MCP server configurations can make troubleshooting messy. To strip away every local variable, run this ephemeral one-liner in your terminal:

shell
codex exec \
  --ignore-user-config \
  --ephemeral \
  --skip-git-repo-check \
  -C /tmp \
  -s read-only \
  -m gpt-6-astra \
  -c 'model_reasoning_effort="low"' \
  --json \
  'Reply with exactly OK. Do not use tools.'

Every flag here serves a specific purpose. --ignore-user-config and --ephemeral bypass your local profile and saved history, -C /tmp and --skip-git-repo-check prevent Codex from indexing your project tree, and -c 'model_reasoning_effort="low"' asks for the smallest possible compute reservation.

Run that command once with -m gpt-6-astra, then repeat it with -m gpt-6-luna and -m gpt-5.6-sol. If gpt-5.6-sol fails with Selected model is at capacity while gpt-6-luna prints OK, OpenAI is simply short on serving slots for that specific model in your region.

If all three models return {"type":"error","message":"Selected model is at capacity. Please try a different model."} on a fresh /tmp call—and your usage page confirms you have quota left—your account session is locked into a bad backend state. When I tested this exact command across two ChatGPT Pro 20x accounts on the same macOS machine and network interface, the affected account failed every single model at 0% weekly usage while the second Pro account returned OK on all of them in under two seconds.

What Actually Happens on the Wire (And Why Retries Break)

The reason this error behaves so strangely in automated pipelines and custom proxies comes down to how Codex communicates with OpenAI's backend.

When you use Codex with a ChatGPT account login, requests go to https://chatgpt.com/backend-api/codex/responses. In a standard REST API, an overloaded cluster rejects requests at the HTTP layer with 503 Service Unavailable or 429 Too Many Requests along with a Retry-After header.

Codex's backend does not do that. It accepts the connection, returns HTTP 200 OK, opens the Server-Sent Events (SSE) stream, and then injects an error JSON object inside the stream before closing:

json
{
  "type": "error",
  "error": {
    "type": "service_unavailable_error",
    "code": "server_is_overloaded",
    "message": "Our servers are currently overloaded. Please try again later."
  }
}

Because the HTTP status code is 200 OK and no Retry-After header is ever sent, standard HTTP health checks and proxy retry middleware think the request succeeded. Inside the Codex client, recent CLI and Desktop builds do include an automatic retry timer (often starting around 117 seconds and backing off on consecutive hits), but because the client has no server-supplied Retry-After window, it is guessing when a slot will open up.

How to Recover When It Is Real OpenAI Server Load

When your isolation test shows that only one specific model is congested, you do not need to touch your account settings or start a new task from scratch.

1. Check git diff Before Resuming the Same Thread

The word "capacity" makes many developers think they blew past the model's context window. You did not. Context compaction has nothing to do with this error, and your thread history is still intact.

However, because the SSE stream died mid-turn, the agent may have executed a shell command or edited a file right before the next model call was rejected. Before telling Codex to continue, check your working tree in a separate terminal:

shell
git status
git diff

Once you know which files were already written to disk, go back to your existing Codex thread and send a direct recovery prompt:

text
Continue the previous task. Check the current file state first so you do not repeat completed edits, then resume from the unfinished step.

In interactive sessions where a transient spike dropped a single turn, this resumes the run without losing your accumulated context.

If you are using the Codex Desktop app on Windows or macOS, watch the Goal status bar when an auto-retry finishes. Even when the retry succeeds and the model replies, the Desktop UI frequently leaves the Goal stuck in a paused state or flips it to blocked without an update_goal call—even though the rollout logs show full_context_window_limit_reached=false and token_limit_reached=false. Sending the manual continue prompt above forces the thread out of that paused state.

2. Lower model_reasoning_effort or Switch Models via /model

OpenAI's scheduler allocates compute slots partly based on how long a turn is expected to hold the GPU. Requests running at xhigh or high reasoning effort get shed first during regional traffic spikes.

If you want to stay on the same model family without getting dropped every five minutes, step down the reasoning effort in your CLI flags or config—for example, moving from high to medium. You can see how much accuracy and token overhead changes across each tier in my GPT-6 Astra reasoning_effort API cost and benchmark breakdown.

If the model is completely saturated, type /model inside the Codex CLI (or use the model picker below the input box in the Desktop app and VS Code extension, as covered in the official Codex Models guide) and switch from the -sol variant to -luna or -terra to finish the current file.

One caveat if you run Codex against a third-party OpenAI-compatible gateway instead of a direct ChatGPT login: switching models mid-session can cause Codex to send caching or effort parameters that the target upstream model rejects. If switching models trades your capacity error for an HTTP 400, see my guide on fixing prompt_cache_retention is not supported on this model gateway 400 errors.

How to Fix an Account-Level Capacity Lock

When the /tmp isolation test proves that every primary model (gpt-6-astra, gpt-6.1-sol, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, and gpt-5.5) returns Selected model is at capacity at 0% quota usage, waiting 15 minutes will not help. Your authentication session is either pinned to a dead backend cell or caught in an automated rate-defense cooldown.

Running through these four steps in order is the most reliable way to flush your account routing state:

  1. Revoke all active sessions globally: Signing out of the CLI alone (codex logout) only deletes your local token; it does not clear server-side session affinity. Log in to your ChatGPT account settings on the web, go to Security, and click Log out of all devices. Then run codex logout in your terminal to wipe local credentials.
  2. Toggle 2FA or reset your password to force a new token claim: When you log back in immediately after a simple logout, OpenAI's auth service can reissue a token tied to the same cached routing profile. Toggling Multi-Factor Authentication (2FA) off and back on—or changing your account password—forces the identity provider to mint a completely fresh JWT claim set.
  3. Kill all background retry scripts for 12 to 24 hours: If you wrapped Codex in an unattended bash loop (while true; do codex ...) that hammered chatgpt.com/backend-api/codex/responses every few seconds during an outage, your account will sit in a silent throttling bucket that returns server_is_overloaded on every frontier model. Stop all automated calls completely for at least 12 hours so the sliding penalty window expires.
  4. Switch off shared datacenter VPNs and MITM proxies: If your traffic exits through a heavily shared commercial VPN IP or a corporate proxy performing TLS certificate inspection, OpenAI's edge routing frequently degrades those connections to low-priority capacity pools. Re-authenticate on a clean residential or office connection first, then re-test using the /tmp isolation command.

When a deadline cannot wait 12 hours for an account lock to clear, I switch my terminal workflow over to direct API billing or a secondary coding agent so one subscription pool cannot block my day. If you are weighing whether to keep an Anthropic or OpenAI API key as your backup, I compared their real-world caching behavior and session costs in Claude vs GPT for Coding: Same List Price, Different Bill.

Telling Capacity Errors Apart from Quota and Plan Limits

Because several Codex errors stop your turn at the exact same moment, it is easy to misread a subscription limit or plan restriction as a capacity bug. Here is how the exact error strings in codex-rs/protocol/src/error.rs map to the underlying limit:

Exact Codex Error String What Actually Ran Out Includes Reset Time? Immediate Fix
Selected model is at capacity. Please try a different model. Regional inference slots for that model (or your account's routing pool). No Resume in the same thread, lower model_reasoning_effort, switch via /model, or run the /tmp test to check for an account lock.
You've hit your usage limit ... or try again at [time]. Your personal 5-hour rolling window or weekly ChatGPT subscription allowance. Yes Wait until the timestamp shown on your Codex usage dashboard, or switch to API-key billing.
You've hit your usage limit for [limit]. Switch to another model now, or try again at [time]. The separate sub-quota for a specific tier (such as pro-tier or deep-reasoning models). Yes Use /model to switch to a standard-tier model that draws from your general pool.
The 'gpt-5.6-sol' model is not supported when using Codex with a ChatGPT account. Account plan entitlement (often appears right after upgrading a plan before entitlements sync). No Run codex logout and sign back in to refresh your plan tier token, or verify your subscription level.
Your workspace is out of credits. Add credits to continue. Shared organization or Team workspace credit balance. No Have a workspace administrator top up credits in the ChatGPT Workspace billing settings.
Quota exceeded. Check your plan and billing details. OpenAI Platform API prepaid balance or monthly hard spend limit (OPENAI_API_KEY mode). No Add funds or raise the monthly spend cap in the OpenAI Developer Platform billing console.

If your error message includes a specific reset timestamp, no amount of model switching or token refreshing will bypass that cap unless you switch from ChatGPT account authentication to an OPENAI_API_KEY. If there is no timestamp and the message reads Selected model is at capacity. Please try a different model., run the /tmp isolation command across two models first—that single check tells you immediately whether to switch models and keep coding or flush your account session.

Sources and checks

  1. OpenAI API Error Codes documentation
  2. OpenAI Status page
  3. official Codex Models guide