Antigravity CLI usage and quota monitor
Project description
agy-usage
Antigravity CLI usage and quota monitor. It mirrors the small ccusage,
gemini-cli-usage, and codex-cli-usage tools: dependency-free Python,
terminal output, JSON output, statusline output, and a cache-refresh daemon.
Example output
Project: agy-usage
Model: Gemini 3.5 Flash (High)
gemini-3.5-flash-high 12.4% used resets 1h05m
History: 24 entries, latest 2026-06-29T22:53:01+00:00
Statusline:
q:12.4% reset:1h05m model:Gemini_3.5_Flash_(High)
Install
uv tool install agy-usage
For local development from a checkout:
uv tool install .
Commands
| Command | Description |
|---|---|
agy-usage |
Show current usage |
agy-usage status |
Same as above |
agy-usage json |
Print raw JSON |
agy-usage statusline |
Compact statusline output |
agy-usage refresh |
Force a fresh fetch, rewrite cache, and print status |
agy-usage daemon [-i SECS] |
Keep the cache fresh in the foreground |
agy-usage install |
Print setup instructions |
Data sources
- Antigravity settings:
~/.gemini/antigravity-cli/settings.json - Antigravity OAuth token:
~/.gemini/antigravity-cli/antigravity-oauth-token - Antigravity command history:
~/.gemini/antigravity-cli/history.jsonl - Cache written by this tool:
~/.gemini/antigravity-cli/usage-limits.json
Quota lookup uses the same Code Assist quota flow Antigravity logs mention:
loadCodeAssist followed by retrieveUserQuota.
Options
usage: agy-usage [-h] [--root ROOT] [-i INTERVAL] [--max-age MAX_AGE]
[--refresh]
{status,json,daemon,statusline,refresh,install}
--root ROOT: inspect a different project root instead of the current directory--max-age MAX_AGE: cache TTL forstatusline--refresh: ignore the cache and rebuild fresh data where applicable
Environment overrides:
AGY_USAGE_FILE: alternate cache pathAGY_ACCESS_TOKEN: provide an access token instead of reading Antigravity stateAGY_CODE_ASSIST_BASE_URL: alternate Code Assist base URL
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agy_usage-0.1.0.tar.gz.
File metadata
- Download URL: agy_usage-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ade1615fe93c8ef5972c60302d02a85d2486153d90847c811b3bd48749e3aa5
|
|
| MD5 |
2056be5cb35eab6463736514a9ffcf73
|
|
| BLAKE2b-256 |
e62d0ea590572821d429f84cca8bafd299a261aef202f5e75f9717c46866201e
|
File details
Details for the file agy_usage-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agy_usage-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c983ab691cc043b641758619ee0d7719b75490aa6ff3396fbb11c6341841617
|
|
| MD5 |
e9eef2b7ceb2113eb27b802f52458c55
|
|
| BLAKE2b-256 |
2fdedcb83fe1c1e0e1f47e6679c9cc0262c990e5f8edc07062d8a6a3a2f3285f
|