Gemini CLI usage data is not counted - CC Switch
Quick fix
The consumer Gemini CLI is retired in favour of Antigravity CLI, so CC Switch no longer supports its usage statistics. For template or Grok problems, upgrade.
Symptom
Section titled “Symptom”在 v3.15.0 中,Gemini CLI 的用量数据完全没有被统计,或者只显示了少量数据On v3.15.0, Gemini CLI usage data is not counted at all, or shows only a small amount
This cluster holds several usage statistics problems. The core one is Gemini CLI usage data going missing, because Google announced the consumer Gemini CLI is migrating to Antigravity CLI and stops serving consumer users from 2026-06-18. CC Switch therefore marked it not planned and prioritised Antigravity CLI.
The cluster also mixes in other usage statistics problems: on v3.14.1, the `{{ apiKey }}` and `{{ baseUrl }}` variables were not resolved when configuring a custom usage query template, fixed in v3.15.0/v3.16.0; and missing native Grok Build usage import and pricing, whose automatic usage import under official OAuth mode was fixed in v3.19.0.
Consumer Gemini CLI users: stop using the original Gemini CLI, migrate to Antigravity CLI, and wait for support in a later CC Switch version.
Enterprise-licensed or paid Gemini API users: if you still need CC Switch to support Gemini CLI usage statistics, reopen the issue on GitHub or file a new one explaining your case.
For custom template variable resolution failing or missing Grok Build usage: upgrade CC Switch to v3.19.0 or newer for the variable resolution fix and native Grok Build usage import.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 4 real issues
- Why are `{{ apiKey }}` and `{{ baseUrl }}` not resolved in my custom usage template?
- A bug in v3.14.1, fixed in later versions. After upgrading, variables resolve, `isValid: false` correctly triggers a failure notice, and the POST body supports a JSON object.
- Grok Build usage data has no native import channel. What now?
- Upgrade to v3.19.0, which natively supports automatic usage import under Grok Build official OAuth mode and adds a Grok Build filter button to the panel.
Related problems
Section titled “Related problems”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.