Budgethelm

How Gemini CLI cost works

Gemini CLI cost follows the tokens of each model call. Below are Google model prices and how to work out your real usage.

Data as of 2026-10-31

Sign up free Log in

How Gemini CLI cost accrues

Each model call is billed on input tokens, output tokens and input tokens that hit the cache, each with its own price (see the table). Some models are priced differently by prompt length or time period; rows marked * follow the official page.

Budgethelm amounts are estimates, not invoices; your Google bill is authoritative.

Google model prices

Google model prices, USD per 1M tokens
ModelInputOutputCache readChecked (official pricing page)
gemini-3.1-pro-preview$2.00$12.00$0.202026-10-31
gemini-3.8-flash$0.75$3.75$0.0752026-10-31
gemini-2.5-pro$1.25$10.00$0.1252026-10-31
gemini-2.5-flash$0.30$2.50$0.032026-10-31
gemini-3.5-flash-lite$0.30$2.50$0.032026-10-31
gemini-2.5-flash-lite$0.10$0.40$0.012026-10-31

* These rows carry conditions (long-prompt surcharge, peak or promotional pricing). The official page is authoritative.

Each date links to the official pricing page. For other models see the model price comparison and the cost calculator.

How Budgethelm tracks Gemini CLI

Once connected, Budgethelm reads Gemini CLI's own chat logs in the background (the chats folders under ~/.gemini/tmp) and totals tokens and cost by tool, computer and model. Only time, tool, model, token counts and stop records are uploaded.

Note: per the official page Budgethelm checked, Gemini CLI was replaced by Antigravity CLI on 2026-06-18. Antigravity CLI usage is also read, but its log format is not publicly documented, so treat it as approximate.

When Gemini CLI gets stuck

Gemini CLI supports hooks in its settings file. Budgethelm adds a guard hook there, and when the agent keeps hitting the same error it stops the whole loop, including unattended runs such as gemini -p.

Benchmark (a local fake model returning the same error on every step):Gemini CLI (gemini -p),without Budgethelm:31 calls in 10 s;with it:Stopped in 0.7 s。Method and the other tools are on the home page。

FAQ

How much does Gemini CLI cost per month?
There is no single number. It depends on the model, how many runs a day and how long the context is. Use the price table above with the cost calculator and enter your own numbers.
Was Gemini CLI not replaced?
Per the official page, yes: replaced by Antigravity CLI from 2026-06-18. Budgethelm reads usage from both. For hooks, Gemini CLI was tested; no Antigravity hook documentation was found.
Does the amount match my Google bill?
No. It is estimated from the built-in price list and the token counts in the log. Your Google bill is authoritative.