The worst moment with Google Antigravity is hitting the quota wall halfway through a task. The open-source tool agy-usage is built for exactly that: a small always-on window that shows how much of your Gemini and Claude·GPT quota is left, when each resets, how long your current pace will last, and a desktop alert before you run out. It's MIT licensed, runs on macOS, Windows and Linux, keeps every number on your own machine and needs no account.
What it shows
Antigravity splits quota into two pools, one for Google's Gemini models and one for Claude and GPT, and each pool has a 5-hour and a 7-day window. agy-usage lays all four side by side:
| What you see | Why it helps |
|---|---|
| Percent used and reset time per window | No more digging through settings |
| Pace and run-out forecast | Will you run dry before the reset at this rate? |
| Token and cache stats | Burn rate over the last 5 hours, 24-hour and 7-day trends, a weekly activity heatmap |
| Context growth per session | Spot the conversation that keeps getting more expensive |
| 80% and 95% alerts | Desktop notifications near the limit, and again when quota comes back |
You can view it as a local web dashboard (127.0.0.1:18420), a pill next to the MacBook notch plus a menu-bar app, a small Windows widget, or a terminal status line.
Why it's worth having
Quota rarely vanishes all at once. Usually one long session keeps growing, the cache stops hitting, or several agents run at the same time. Without a monitor you're guessing after the fact. agy-usage breaks usage down by session and time, so you can see what is eating the quota and decide whether to start a fresh session, switch to a cheaper model or wait for the reset.
Getting started
You need Antigravity and Python 3.9+. Hand this to your AI agent:
Install agy-usage (github.com/qiudai0627/agy-usage) so I can monitor my Antigravity quota.
1. Read the README and install script first. Tell me where it installs and whether it goes online, and wait for my OK.
2. Use Homebrew if available (brew install qiudai0627/tap/agy-usage); otherwise the official install script.
3. After installing, run agy-usage doctor to confirm data collection works, then run agy-usage and show me the current quota report.
4. Turn on the 80% / 95% alerts (agy-usage notify on).
5. Give me the local dashboard address so I can open it myself.
Watch out for
- Numbers come from local records: it reads the session logs and status data Antigravity leaves on your machine, and sometimes needs a one-off manual calibration with
record-quota. If it disagrees with the official page, trust the official page. - Small, fast-moving project: new releases land almost daily, so skim the latest notes before installing.
- The install script is piped from curl: if that bothers you, use Homebrew or download and read the script first.
- To make your quota last longer, see this tip: Split the work in Antigravity and your quota lasts longer.


Comments (0)
No comments yet. Start the conversation.