Antigravity CLI and Gemini CLI token usage
Antigravity CLI (agy) and Gemini CLI both record the tokens of every model call on disk, in two different formats. The AgentsTrack collector reads both and reports them together under Antigravity.
Where Antigravity CLI keeps its usage
- One SQLite database per conversation, under
~/.gemini/antigravity-cli/conversations/. - The live file is never opened in place. A changed conversation is copied to a private temporary folder, read there, and the copy is deleted.
- Token counts come from each planner response, and the model name from the generation record it belongs to.
- A headless
agy -pconversation records no workspace, so it is shown without a project rather than with a guessed one.
Where Gemini CLI keeps its usage
- Chat logs in
~/.gemini/tmp/<project>/chats/.GEMINI_CLI_HOMEis honoured. - A message is written again under the same id whenever it changes, so events are keyed on the message id and a repeat is never billed twice.
- A rewind removes messages from the history you can resume, but those tokens were still spent, so they stay counted.
- Older releases wrote a single JSON document per session. Those are not read.
What is counted
- Input, cache read, output and thinking tokens, plus cache writes where Antigravity records them.
- Thinking tokens are shown, but they are part of output, so they are never billed twice.
- A model with no rate entry reports zero rather than a guess.
Cost, and what it is not
- Neither store names a plan, so cost is ESTIMATED at published list rates, on a paid Google plan too. It is what the tokens would cost through the API, not a bill.
- See cost basis for what each label promises.
- This page is about tokens and cost. To check an Antigravity quota or when it resets, use Agents Usage Watch, which shows plan limits in the Mac menu bar.
What leaves your machine
- Redaction runs on your machine before anything is queued for upload.
- What travels depends on your privacy mode. The default adds a title, usually your prompt’s first line, and secret-redacted commands;
metadatasends counts, timings and identifiers, with file paths and repository names. The full table is in what your admin can see.
Read on
See what your Antigravity sessions cost
14 days of Pro, no card. Three commands, and your first session lands in the dashboard.