Selected model is at capacity. Please try a different model.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of Codex CLI is running?
codex-cli 0.154.0
What subscription do you have?
gpt 20x pro
Which model were you using?
gpt-6-astra/gpt-5.6-sol
What platform is your computer?
windows 11 25H2
What terminal emulator and version are you using (if applicable)?
PowerShell 7.6.3
Codex doctor report
PS C:\Users\Administrator> codex doctor --json
{
"schemaVersion": 1,
"generatedAt": "1789523173s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.154.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\Administrator\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\Administrator\\.codex\\app-server-daemon",
"mode": "ephemeral",
"pid file": "C:\\Users\\Administrator\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\Administrator\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\Administrator\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "C:\\Users\\Administrator\\.codex\\auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "C:\\Users\\Administrator\\.codex",
"active thread overrides": "not inspected",
"config.toml": "C:\\Users\\Administrator\\.codex\\config.toml",
"config.toml parse": "ok",
"configuration load ms": "8",
"configuration scope": "invocation config, including cloud-managed policy",
"cwd": "C:\\Users\\Administrator",
"enabled feature flags": "<redacted>",
"feature flag overrides": "hooks=false",
"feature flags enabled": "48",
"log dir": "C:\\Users\\Administrator\\.codex\\log",
"mcp servers": "8",
"model": "gpt-6-astra",
"model provider": "openai",
"sqlite home": "C:\\Users\\Administrator\\.codex"
},
"remediation": null,
"durationMs": 0
},
"desktop.app.version": {
"id": "desktop.app.version",
"category": "desktop",
"status": "ok",
"summary": "the desktop application is installed",
"details": {
"log directory": "$HOME\\AppData\\Local\\Codex/Logs",
"running": "false",
"version": "26.908.9136.0"
},
"remediation": null,
"durationMs": 0
},
"desktop.app_server.handshake": {
"id": "desktop.app_server.handshake",
"category": "desktop",
"status": "ok",
"summary": "the desktop application is not running",
"details": {},
"remediation": null,
"durationMs": 0
},
"desktop.security.enforcement": {
"id": "desktop.security.enforcement",
"category": "desktop",
"status": "ok",
"summary": "no locally visible recent Codex security enforcement was found",
"details": {},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
"PATH git #1": "D:\\InsertPath\\Git\\cmd\\git.exe",
"PATH git entries": "1",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "false",
"selected git": "D:\\InsertPath\\Git\\cmd\\git.exe"
},
"remediation": null,
"durationMs": 9
},
"git.worktree.dev_drive": {
"id": "git.worktree.dev_drive",
"category": "git",
"status": "ok",
"summary": "no Git worktree is active",
"details": {},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "D:\\InsertPath\\nodejs\\node_global\\codex.cmd",
"current executable": "D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install context": "npm (package D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "true",
"managed by pnpm": "false",
"managed package root": "D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex",
"npm update target": "not inspected (PATH helpers are not executed)"
},
"remediation": null,
"durationMs": 6
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "8",
"disabled servers": "3",
"stdio servers": "5",
"streamable_http servers": "3"
},
"remediation": null,
"durationMs": 46
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, http_proxy, https_proxy, all_proxy, no_proxy",
"respect system proxy": "disabled"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
"desktop assets CDN": "https://persistent.oaistatic.com/codex-app-prod/<redacted> reachable (HTTP 200)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 681
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "1 IPv4, 0 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"provider name": "OpenAI",
"proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, http_proxy, https_proxy, all_proxy, no_proxy",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 808
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install method": "npm (package D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"platform": "windows-x86_64",
"version": "0.154.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search command found (bundled); execution not verified",
"details": {
"search command": "D:\\InsertPath\\nodejs\\node_global\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path\\rg.exe",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "Never",
"codex-linux-sandbox helper": "none",
"denied-read glob rules": "0",
"denied-read restrictions": "false",
"denied-read rules": "0",
"execve wrapper helper": "none",
"filesystem sandbox": "unrestricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "enabled",
"sandbox backend": "elevated",
"sandbox provisioning": "complete"
},
"remediation": null,
"durationMs": 2
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "no supported endpoint protection detected",
"details": {
"endpoint products": "none detected"
},
"remediation": null,
"durationMs": 19
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "C:\\Users\\Administrator\\.codex (dir)",
"active rollout files": "50 files, 24529678 total bytes, 490593 average bytes",
"archived rollout files": "169 files, 884124991 total bytes, 5231508 average bytes",
"goals DB": "C:\\Users\\Administrator\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\Administrator\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\Administrator\\.codex\\log (dir)",
"memories DB": "C:\\Users\\Administrator\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"queue DB": "C:\\Users\\Administrator\\.codex\\queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "C:\\Users\\Administrator\\.codex (dir)",
"state DB": "C:\\Users\\Administrator\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "C:\\Users\\Administrator\\.codex\\thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 742
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "warning",
"summary": "rollout files and state DB thread inventory differ",
"details": {
"default model provider": "openai",
"rollout DB active files": "50",
"rollout DB active rows": "50",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "169",
"rollout DB archived rows": "158",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread id sample": [
"01a03394-c165-72e0-997a-3bedc93b4275",
"01a056ce-3918-7ee0-bf1d-6940a1ba5c02",
"01a08954-6f41-7ea2-b429-4a6bce6e6a8e",
"01a09dbf-473e-7f20-9507-ed7d6fb212c0"
],
"rollout DB duplicate rollout thread ids": "4",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "11",
"rollout DB missing archived sample": [
"C:\\Users\\Administrator\\.codex\\archived_sessions\\rollout-2026-05-01T17-31-58-019de2e1-7053-7881-886a-231dc68e3642.jsonl",
"C:\\Users\\Administrator\\.codex\\archived_sessions\\rollout-2026-05-01T19-09-54-019de33b-1aa3-7b10-ae12-57bbb7d2cc0c.jsonl",
"C:\\Users\\Administrator\\.codex\\archived_sessions\\rollout-2026-05-01T19-15-23-019de340-1d94-7171-9173-3507bf9ba7fd.jsonl",
"C:\\Users\\Administrator\\.codex\\archived_sessions\\rollout-2026-05-06T09-07-16-019dfad3-2a18-7ec1-916b-28a7130eaea9.jsonl",
"C:\\Users\\Administrator\\.codex\\archived_sessions\\rollout-2026-05-06T17-40-11-019dfca8-c314-7212-b329-e76bfa1866fe.jsonl"
],
"rollout DB model providers": "openai=195, deepseek=10, rightcode=3",
"rollout DB rows": "208",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "vscode=97, subagent:other=46, cli=34, subagent:thread_spawn=31",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "0 active, 11 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
},
{
"severity": "warning",
"cause": "duplicate thread inventory entries found",
"measured": "4 duplicate rollout thread ids, 0 duplicate DB paths",
"expected": "one rollout path and thread id per thread",
"remedy": "Attach the doctor report to a bug report so support can inspect samples.",
"fields": []
}
],
"remediation": null,
"durationMs": 180
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (693.5 GiB)",
"details": {
"CODEX_HOME available": "693.5 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "693.5 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language zh-CN",
"details": {
"EDITOR": "not set",
"VISUAL": "not set",
"os": "Windows 10.0.26200 (Windows 11 Professional) [64-bit]",
"os language": "zh-CN",
"os type": "Windows",
"os version": "10.0.26200"
},
"remediation": null,
"durationMs": 0
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"color output": "enabled",
"console input code page": "65001",
"console output code page": "65001",
"stderr console mode": "0x00000007 (VT processing: true)",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout console mode": "0x00000007 (VT processing: true)",
"stdout is terminal": "true",
"terminal": "unknown",
"terminal size": "120x30"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "Administrator",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.154.0",
"check for update on startup": "true",
"last checked at": "2026-09-15T08:26:55.951262200Z",
"latest version": "0.154.0",
"latest version status": "current version is not older",
"npm update target": "not inspected (PATH helpers are not executed)",
"update action": "npm install -g @openai/codex",
"version cache": "C:\\Users\\Administrator\\.codex\\version.json"
},
"remediation": null,
"durationMs": 570
}
}
}
What issue are you seeing?
Subject: Persistent account-level Codex capacity error across Desktop and CLI despite remaining usage
Hello OpenAI Support,
I am experiencing a persistent Codex access issue that appears to be account-level rather than a local device problem.
Since approximately September 12, 2026, Codex has repeatedly returned the following error:
“Selected model is at capacity. Please try a different model.”
I have already performed extensive troubleshooting:
The issue occurs in the Codex Desktop application.
The same issue also occurs in Codex CLI.
I tested the same account on different PCs, and the issue persists.
I tested multiple available models, but switching models does not resolve the problem.
I stopped using Codex for extended periods and retried later, but the problem still returns.
My Codex account still shows remaining usage allowance/quota.
The issue therefore does not appear to be caused by exhausted usage limits or a single computer/client installation.
Because the same error reproduces across multiple PCs, Codex Desktop, Codex CLI, and different models while my account still has remaining usage, I believe this may involve an account-level routing issue, rate-limit restriction, capacity flag, backend account state, or an incorrect automated restriction.
Please escalate this case to the appropriate Codex/account backend team and check:
Whether my account has any abnormal account-level rate limit.
Whether there is any Codex routing or model-capacity flag associated with my account.
Whether an automated abuse/fraud prevention mechanism has incorrectly restricted my Codex access.
Whether my Codex usage entitlement and remaining quota are being recognized correctly by the backend.
Whether there is any other backend restriction preventing my requests from being routed to Codex models.
This is significantly affecting my normal development workflow. Standard local troubleshooting has already been exhausted, since the issue is reproducible on multiple devices and in both Codex Desktop and Codex CLI.
Please do not close this case with standard troubleshooting instructions such as reinstalling the client, restarting the application, changing models, or waiting and retrying, as I have already completed those steps.
I would appreciate an account-level investigation and escalation.
I can provide screenshots showing:
Codex Desktop “Selected model is at capacity” errors
Codex CLI showing the same error
Remaining Codex usage quota
/status output
Multiple affected models
Exact timestamps and timezone
Time zone: UTC+8
Thank you.
What steps can reproduce the bug?
Uploaded thread: 01a0a7da-dafb-7a83-bd35-f781013715a9
What is the expected behavior?
Doesn't show this tip:"Selected model is at capacity. Please try a different model."
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the capacity error with Codex CLI 0.154.0, the gpt-6-astra/gpt-5.6-sol model, and the reported ChatGPT subscription. Check whether the response is provider-side capacity or a CLI handling problem; done means identifying a reproducible CLI issue and a defined change scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100