Windows Desktop: custom CPA provider blocked by ChatGPT quota; gate still present in 26.1103.60933
What version of the Codex App are you using (From “About Codex” dialog)?
26.1103.60933 (build 25894), prod channel; updater reported up_to_date on 2026-11-10. Windows package 26.1103.7773.0. Running backend: 0.167.0-alpha.3.2.
What subscription do you have?
ChatGPT account sign-in retained in the affected workflow; exact subscription tier not recorded in this report.
What platform is your computer?
Windows 11 x64, OS build 10.0.26300.
What issue are you seeing?
Following up on #48369, #48650 and #48816 with evidence from the currently installed Windows build.
The affected workflow uses CLIProxyAPI (CPA), configured through CC Switch, while retaining the official ChatGPT sign-in for desktop features. Once the signed-in ChatGPT account exhausts its Codex allowance, the desktop prevents message submission even though the configured custom provider has independent available capacity. The Send control becomes unusable instead of attempting the custom-provider request.
The important distinction is between the desktop sign-in identity and the provider actually serving inference. Keeping the desktop signed in should not make an independently authorized provider inherit the signed-in account's inference allowance.
Evidence boundary: the workflow above is the behavior being reported. The November 10 investigation below is static inspection of the installed build, not a newly forced quota-exhaustion test or a captured provider-side HTTP 429. The current diagnostic session's auth configuration is not presented as a fresh reproduction of the retained-login state.
What steps can reproduce the bug?
- Retain official ChatGPT sign-in in Codex Desktop.
- Configure a custom OpenAI-compatible Responses provider through CC Switch/CPA, with its own endpoint and provider-scoped credentials.
- Reach the signed-in ChatGPT account's Codex usage limit while the custom provider still has available capacity.
- Select the custom-provider model and enter a non-empty prompt in a local chat.
- Attempt to send, including from a new local chat.
- Observe that desktop submission is blocked by the ChatGPT usage state.
Schematic affected provider configuration; all endpoint/token values below are placeholders:
model_provider = "custom"
[model_providers.custom]
name = "custom"
base_url = "https://provider.example/v1"
wire_api = "responses"
requires_openai_auth = true
experimental_bearer_token = "<redacted-provider-token>"
No session ID, exact quota percentages, or context-window reading was captured for this report. Please do not interpret the static inspection as a newly submitted turn.
What is the expected behavior?
Evaluate submission availability against the effective thread provider and its authentication context. An independently authorized custom provider should remain usable when the unrelated ChatGPT subscription inference allowance is exhausted. Keep the actual OpenAI limits enforced for requests that use that allowance.
If some desktop execution feature has a separate required quota, explain that requirement explicitly instead of accepting a custom route and silently blocking Send.
Please prioritize triage and confirm whether this is an acknowledged regression, whether a fix is in progress, and which release will contain it. If this report belongs under an existing issue, please consolidate the current-build evidence there and identify the canonical tracking issue.
Additional information
Read-only inspection of the installed app.asar found the same provider-unaware gate described in #48816:
- webview/assets/async/39017.8e35999c14.js, module a6kU, zero-based character offset 140921; SHA-256: 0ffa7144d5b626d9965561ce58c942e49997d5186f5cdb9b94cc6de45313c1da.
- This derived state checks ChatGPT authMethod, matching account/user/plan identity, usage.rate_limit.allowed, reserve/spend exceptions and reset-credit state. The module does not read base_url, model_provider, requiresAuth or requires_openai_auth to distinguish the configured inference route.
- The usage query still calls CodexRequest.safeGet("/wham/usage", ...).
- The local Codex composer consumes this state in webview/assets/async/543778.5a25e48590.js; SHA-256: 568214c9ff522922d78d706edba2dbd94f18a1cca3b5e7f2e22fb6c74cc6c52e.
Exact excerpts from the composer adapter:
A = n("a6kU")
ry = (0, o.Ul)("local" === nq && A.U)
r$ = ry && "usage-limit"
// r$ enters the send-block reason list.
There is also a separate host-level reserve hardBlocked condition. These are static code observations, not proof that every account or route activates the same branch at runtime.
Why simply removing official sign-in is not an equivalent workaround: this workflow needs desktop signed-in capabilities. The previously inspected backend version (0.166.0-alpha.6) also gated image_gen.imagegen registration on provider metadata including requires_openai_auth, so the interaction between CC Switch login preservation, tool availability and desktop quota gating needs a coordinated fix. This report does not claim to have re-tested that older image-generation condition against every newer backend.
Related evidence already reported by others:
- Windows CPA + CC Switch with official login retained, November 6: https://github.com/openai/codex/issues/48369#issuecomment-6678176145
- macOS 26.1103.41825 affected: https://github.com/openai/codex/issues/48369#issuecomment-6713871375
- Still unresolved feedback, November 9: https://github.com/openai/codex/issues/48650#issuecomment-6731945574
No private account IDs, real provider URL, credentials, private chat content, or raw logs are included.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #59376
Powered by Codex Action
Confirming on macOS (ChatGPT/Codex desktop 26.1117.31558, build 29513) with a custom provider. I traced the gate and verified it at runtime, in case it helps.
Same gate, same module. In the renderer bundle (webview/assets/async/911644.2b086ab057.js in this build) the module with id a6kU, the same id you found in 26.1103.60933, exports the atom that adds the "usage-limit" send-block reason. It is true when: ChatGPT auth is in use; the usage payload's account/user/plan match the signed-in account; rate_limit.allowed === false; there are no credits; it is not a workspace account that still has credits; Luna Reserve is not active; and the exhausted windows have not been acknowledged. The composer then computes roughly sendBlocked = (hostId === "local" && thatAtom) || <per-model additional_rate_limits check>.
It never reads model_provider, base_url or requires_openai_auth. The plan_type comparison is a consistency check, not a plan whitelist.
Verified at runtime. I intercepted the GET /wham/usage response in the page (DevTools protocol) and set rate_limit.allowed = true. The send button is enabled and messages go to the custom provider normally. The "You're out of Codex and Work usage / Add Credits" banner comes from server fields in the same payload (rate_limit_upsell, rate_limit_reached_type); it disappears when those are cleared as well. So the lock is purely client-side. It does not change the real quota, and OpenAI-model/cloud requests are still enforced by the server (I did not test sending to an OpenAI model).
A local proxy does not work for the desktop app. With CODEX_API_BASE_URL set to a local proxy, the app refuses to attach credentials to anything except localhost, *.openai.com and *.chatgpt.com. Setting CODEX_API_BASE_URL alone sent nothing through my proxy; adding CODEX_APP_SERVER_CHATGPT_BASE_URL routed many backend requests but never /wham/usage, and the app then failed with "Workspace routing is unavailable" (an HTTPS backend is required).
Suggested fix: apply the usage-limit send block only when the selected model provider is the ChatGPT/OpenAI backend (for example when the thread's effective provider has requires_openai_auth or is openai), and keep the banner informational otherwise.
Write-up with the script and its caveats: https://doer.ee/blog/ai/codex-desktop-locked-after-chatgpt-quota-with-a-custom-provider