If you use Google Antigravity CLI (agy) every day, quotas tell you how close you are to a reset — not how your usage actually adds up over a week, which models absorb most of your tokens, or what your cache-hit rate looks like across sessions.
Antigravity already stores that history locally in SQLite databases under ~/.gemini/antigravity-cli/conversations/. I maintain agy-powerline, an open-source statusline for agy (MIT, zero runtime dependencies), and with v2.1.0 and v2.1.1 I added an offline usage dashboard, multi-day estimated USD cost widgets, and full 7-language support for the dashboard itself.
One command to inspect your local usage
On Node.js 22.13+, you can run the dashboard right away:
npx agy-powerline@latest usage # last 90 days (default) npx agy-powerline@latest usage 14d # 7d, 14d, 30d, or 90d You get five cards in one terminal view:
- Today / Last 7d / Last 30d: total tokens, estimated API-equivalent USD cost, input/output split, and cache-hit share.
- Models: tokens, share, and estimated cost per model (
Gemini 4 Hydrogen,Neon,Carbon,Claude Opus 5.5,Sonnet 5.5). Retired models like Gemini 4 Argon and Flash don't clutter the table, while their past tokens still count in totals. - Usage breakdown: kept compact at 7–8 rows (daily over 7d, equal date spans over 14d/30d/90d, or
--weekly/--monthlyrollups). - Activity heatmap: a 155-day weekday heatmap with current and best streaks and your busiest weekday.
- Highlights: any token/cost budgets you configured (with half-cell progress bars), plus daily average, cost per 1M tokens, busiest day, and active days.
Need the numbers in a spreadsheet or script?
npx agy-powerline@latest usage 30d --json npx agy-powerline@latest usage 30d --csv The same dashboard is also available as the read-only Usage (u) tab inside the interactive editor (npx agy-powerline@latest).
Why estimate USD cost on a subscription plan?
Antigravity plans are subscriptions with 5-hour and 7-day quotas, not per-token invoices. Every dollar figure in agy-powerline is prefixed with ~ to keep that clear: it prices your local tokens at public Gemini API and Claude API list rates (separating input, output, cache reads, and cache writes, with optional custom pricing overrides in your config).
Seeing the API-equivalent cost makes two things obvious quickly:
- How much prompt caching is saving you (a 95% cache-hit session behaves very differently from a cold-cache one).
- Which model is actually doing the heavy lifting across a week.
Put the same totals and budgets in your status bar
Every window in the dashboard also exists as a bar widget (tokensToday, tokensWeek, tokensCycle, tokensMonth, and costToday, costWeek, costCycle, costMonth). tokensCycle and costCycle align directly to your active 7-day quota reset boundary rather than a rolling calendar week.
You can attach soft or hard budgets to any of them in ~/.agy-powerline/statusline.config.json (or in the TUI editor):
{ "widgets": [ { "id": "costToday", "budget": 10, "overage": 2 }, { "id": "costWeek", "budget": 50, "budgetMode": "remaining" }, { "id": "costMonth", "budget": 350, "showAbove": 50 } ] } -
budgetMode: "remaining"displays what's left instead of what's spent. -
overagecreates a soft-warning buffer before switching to the danger color. -
showAbovekeeps the widget hidden until you cross a chosen percentage (there is also a new threshold-gatedminimalpreset).
Now in 7 languages (v2.1.1)
In v2.1.1, the usage dashboard follows your bar "language" setting across English, French, Spanish, German, Japanese, Simplified Chinese, and Korean — translating headings, highlights, dates, weekday/month labels, and streak phrasing, keeping CJK full-width columns aligned, and wrapping long notes cleanly in narrow terminals. (Detailed technical docs and the rest of the CLI remain English.)
Local-only, read-only, zero dependencies
- No network calls, no telemetry, zero runtime dependencies.
- Uses Node's built-in
node:sqlite(Node.js 22.13+; the core status line runs on Node.js 20+). - Opens conversation
.dbfiles strictly read-only, reading only token counts, model names, response IDs (for deduplication), and timestamps — never prompts or message text. - Caches per-conversation totals in
.usage-cache.jsonso already-scanned conversations aren't re-read unless they change (--refreshforces a full rescan).
Try it or update
npx agy-powerline@latest usage 14d npx agy-powerline@latest # install or update + open the interactive editor Restart agy once after installing or updating.
- Full guide: Track your Antigravity token usage and cost
- Ready-made configs & browser configurator: agy-powerline.com/configure
- Source code (MIT): github.com/wassim-azi/agy-powerline
Disclosure: I'm the author and maintainer of agy-powerline. What usage metrics or budget views would you want to see next?
