Skip to content

Cannot query usage for an official subscription in the Codex UI - Codex

Quick fix

Enable local route mapping so specific models are counted. Third-party APIs need their own query script; Claude official and Free accounts are unsupported.

Error output
在Codex界面,官方订阅无法查询用量
English translation

Cannot query usage for an official subscription in the Codex UI

Usage queries and statistics fail in cc-switch for two main reasons. 1. Platform and account limits: Claude official does not support usage queries yet, and a third-party API needs you to adapt the query script yourself. A Codex Free account may also simply not show balance information. 2. Missing route interception: without 本地路由映射 (local route mapping) enabled, cc-switch cannot intercept and count requests for certain models (the sol models, for example), so usage is incomplete or does not show at all.

  1. Check platform and account support: Claude official does not support queries yet, and a third-party API needs its own script. On a Codex Free account, the balance may simply not be shown.

  2. Enable 本地路由映射 (local route mapping) in cc-switch so requests for specific models such as sol are intercepted and counted correctly.

  3. Sign in to the official account again: to switch back to an official account to see its quota, sign out in the settings at the top right of the Codex plugin and sign back in.

ToolCodex
VersionUnknown
PlatformsmacOSWindows
Why do third-party APIs and Claude official not support usage queries?
Claude official does not support queries yet, and a third-party API needs you to adapt the query script yourself.
How do I switch back to the official Codex account and use its quota?
Open settings at the top right of the Codex plugin, sign out of your personal account, then sign back in.
Why is usage for models such as sol not counted without local routing on?
Without routing enabled, cc-switch does not record requests for models like sol. Enabling 本地路由映射 (local route mapping) makes the counting work.

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.