Skip to content

Codex Subscription and API Quotas Used Simultaneously

Quick fix

Update CC Switch and Codex to the latest versions; version 4.0 rewrote Codex provider switching to prevent official login credentials from being sent in…

Error output
26号下午更新codex版本后,发生订阅与api同时消耗额度。订阅的额度在消耗,同时api后台也显示消耗记录
English translation

After updating Codex on the afternoon of the 26th, both the subscription and API quotas started being consumed. The subscription quota was decreasing, and the API dashboard also showed usage records.

The maintainer explained that version 4.0 rewrote Codex switching: when switching to a third-party provider, the Key is written only to that provider’s own configuration table, while the official ChatGPT login is kept locally and is not sent with third-party requests. Writes are rejected if the configuration would send official login information to a third-party address. The maintainer speculated that login information left over from an older version might cause both the subscription and API to be charged, but the issue remains open and the cause has not been confirmed.

Another issue reported that the logged-in account’s quota was still being consumed in API mode, but the maintainer marked it as a duplicate of #3596. This corpus does not contain the main issue’s content or final fix details.

  1. Update CC Switch to the latest version and try again; the maintainer said version 4.0 rewrote Codex provider switching logic.

  2. If the problem persists, provide the CC Switch and Codex versions, whether you are using the official login or a third-party provider, and the [model_providers] section of ~/.codex/config.toml; redact the Key before submitting.

ToolCodex
Version3.2.0、3.16.3(issue 报告版本;4.0 切换逻辑变更)
PlatformsmacOSWindows
Is this a CC Switch issue or a Codex issue?
The corpus does not confirm the root cause. The maintainer said login information left over from an older version might cause both quotas to be consumed and recommended updating to the latest version. If the issue still reproduces, provide the versions and a redacted configuration excerpt for troubleshooting.
Has there been any progress on investigating this issue?
The maintainer said version 4.0 rewrote Codex switching logic and recommended updating and trying again; this issue contains no further confirmation that it has been resolved.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.