Search topic
gemini cli token usage cost
Practical outcome
/stats covers one session; turn Gemini CLI's local logs into a daily token and cost history.
Quick answer
/stats model to see the current session's token usage and quota information. A usage summary also prints when you exit. For a history across sessions, by day and model, with API-equivalent cost, run npx whoburnedmore --local: it reads the session files Gemini CLI keeps under ~/.gemini/tmp/. Note that since June 18, 2026, Gemini CLI only serves Code Assist Standard and Enterprise, paid Gemini API keys and Vertex AI. Free and Google AI Pro/Ultra users now use Antigravity CLI.Google launched Gemini CLI as a free, open-source terminal agent in 2025. On May 19, 2026 Google announced its transition to Antigravity CLI(agy). From June 18, 2026, Gemini CLI stopped serving requests for free Gemini Code Assist for individuals and for Google AI Pro and Ultra subscribers. Gemini CLI is still maintained for Gemini Code Assist Standard and Enterprise, for organizations on Code Assist for GitHub through Google Cloud, and for paid Gemini API and Gemini Enterprise Agent Platform keys. Its README says it is not optimized for Gemini 4+, and Google points Gemini 4 Argon users to Antigravity. Checked against Google's docs on November 8, 2026.
Moved to Antigravity CLI?
whoburnedmore reads Antigravity separately, as its own tool. Since CLI 0.9.25 it counts local token totals from Antigravity's conversation databases, but not remaining quota, older encrypted-only history, or Agent API usage. See Google Antigravity usage limits. Your old Gemini CLI history under~/.gemini/tmp/ is still read as Gemini CLI.What does Gemini CLI show about my usage?
Gemini CLI has a built-in /stats command with four views:
What is missing is history and money. /stats is scoped to the current session, and none of the views convert tokens into dollars. If you pay per token with an API key, the bill is in Google AI Studio or Cloud Billing, and it does not split usage by coding session or put Gemini next to your other agents. Optional OpenTelemetry export (GEMINI_TELEMETRY_ENABLED, with a local file, GCP or OTLP target) is available but off by default.
Auto routing and fallback change the model under you
The default model setting isauto, which routes each request. Gemini CLI can also fall back to another model on quota or server errors, and by default it asks before switching. A long session can therefore mix Pro and Flash models. With an API key, Pro output costs several times Flash output, so check the model split rather than the total. Pin a model with --model, the GEMINI_MODEL environment variable, or model.name in ~/.gemini/settings.json.Where does Gemini CLI store its session logs?
Gemini CLI saves each chat under ~/.gemini/tmp/<project_hash>/chats/, one folder per project directory, as session-<timestamp>-<id>.jsonl files. Checkpoints and shell history sit next to them in the same project folder. User settings are in ~/.gemini/settings.json, and the GEMINI_CLI_HOME environment variable moves the whole home directory. whoburnedmore reads the token counts and model names recorded in those session files:
Gemini CLI
writes sessions locally
~/.gemini/tmp/…/chats/
one folder per project
whoburnedmore
parses + aggregates
Token + cost view
daily & model split
$ ls ~/.gemini/tmp/3f9c1e…/ a7d204…/ e01b9f…/ $ ls ~/.gemini/tmp/3f9c1e…/chats/session-…-….jsonl session-…-….jsonl
What counts as a Gemini CLI token?
Gemini sessions record prompt (input), candidate (output), cached, thought and tool tokens. Thinking tokens are billed at the output rate on Google's price list, so a reasoning-heavy session costs more than its visible output suggests. Cached tokens are billed at about a tenth of the input rate. In long agent sessions that re-send the same repository context, that discount matters.
What does Gemini CLI actually cost?
On a Code Assist Standard or Enterprise seat, usage is covered by the seat up to the daily request quota. On a paid API key you pay per token. whoburnedmore prices your tokens at public API rates either way, so you can see what the work would cost at pay-as-you-go prices:
$ npx whoburnedmore --local Counting your token usage… Local dashboard: file:///Users/you/.config/whoburnedmore/dashboard.html Re-run `npx whoburnedmore --local` to refresh it. Nothing left your machine.
The dashboard shows Gemini CLI as its own tool with a by-model table. If a deprecated model like gemini-2.5-pro still dominates your history, its December 1 redirect to gemini-3.8-flash will change your pay-as-you-go cost. If a model is too new for the price list bundled with ccusage, which reads Gemini CLI for whoburnedmore, it shows tokens with a $0 estimate.
Which Gemini CLI quotas should I watch?
Gemini CLI quotas are requests per user per day, plus an unpublished per-minute limit. When you exceed one, requests fail (typically 429 RESOURCE_EXHAUSTED) until the window resets:
Per-minute limit
Google says requests are limited per user per minute and depend on service availability, without giving a number. A fast tool-call loop can hit it, and the agent then retries or falls back.
Daily limit
Use /stats model for quota information in the current session. Google recommends switching to an API key or Vertex AI for uninterrupted pay-as-you-go access when you run out. For API-key projects, see your active rate limits in AI Studio.
Compare against your other AI tools
Gemini's low Flash pricing can make it look cheap until you see it in the same table as Claude Code and Codex. Runnpx whoburnedmore for the combined view, or see the cross-tool AI usage guide.Running whoburnedmore
- 1
Local-only mode
npx whoburnedmore --localbuilds a private dashboard on your machine and opens it in the browser. Nothing is uploaded. - 2
Dry run to inspect what would be shared
npx whoburnedmore --dry-runprints the exact JSON payload: daily rows of dates, tools, models, token counts and estimated cost, plus usage metadata such as tool names, peak-hour blocks and the CLI version. No prompts or file names. 🛡️ - 3
Standard run (profile + leaderboard)
npx whoburnedmoresigns you in, submits daily totals from every supported tool, and opens your dashboard. Useprivateorremoveto pull it later.
/stats views in Gemini CLI
consumer tiers moved to Antigravity CLI
requests/day on Code Assist seats
Sources checked November 8, 2026: Google Developers Blog, May 19, 2026, Gemini CLI quota and pricing, gemini-cli repository docs, Gemini API pricing, Gemini API rate limits.
Related guides
How to Check Your AI Coding Token Usage
The cross-tool overview: one command that totals your token usage and cost across every AI coding agent you run.
How to Check Codex CLI Usage and Token Cost
Codex shows the current limits; here's how to see your full token history and cost by day.
AI Coding Cost: Claude Code vs Codex vs Gemini
A real cost comparison of the big three — measured from your logs, not marketing.