CLI tool to check Antigravity AI usage quotas
Project description
agcheck ๐
A simple CLI tool to check your Antigravity AI usage quotas directly from the terminal.
Based on CodexBar implementation.
Installation
pip install agcheck
Requirements
- Python 3.7+
- macOS (uses
lsoffor port detection) - Antigravity app must be running
Usage
# Check your current usage
agcheck
# Watch mode - live updates every 5 seconds
agcheck -w
# Watch mode with custom interval (10 seconds)
agcheck -w -i 10
# Compact output format
agcheck -c
# JSON output for scripting
agcheck --json
# Disable colors (useful for piping)
agcheck --no-color
What it shows
- Account email and plan name
- Usage quotas for each AI model (Claude, Gemini, GPT, etc.)
- Visual progress bars with color coding:
- ๐ข Green: >70% remaining
- ๐ก Yellow: 30-70% remaining
- ๐ด Red: <30% remaining
- Reset time countdown for each model
Example output
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ ANTIGRAVITY TOKEN USAGE CHECKER โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Account: user@example.com
Plan: Pro
Updated: 14:30:25
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Model Quotas:
Claude Sonnet 4.5
[โโโโโโโโโโโโโโโโโโโโ] 80.0% remaining | 20.0% used โป 4h 25m
Gemini 3 Flash
[โโโโโโโโโโโโโโโโโโโโ] 100.0% remaining | 0.0% used โป 4h 26m
How it works
- Detects the Antigravity language server process
- Extracts the CSRF token from the process command line
- Discovers listening TCP ports using
lsof - Connects to the local API (HTTPS with self-signed cert)
- Fetches and displays quota information
Development
# Clone the repository
git clone https://github.com/matiasfernandez/agcheck.git
cd agcheck
# Install in development mode
pip install -e .
# Run
agcheck
License
MIT License - see LICENSE for details.
Credits
- Inspired by CodexBar by @steipete
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agcheck-1.0.0.tar.gz
(8.2 kB
view details)
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 agcheck-1.0.0.tar.gz.
File metadata
- Download URL: agcheck-1.0.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd75853f4e53fc8365238b8e770d8e02fc86f335fde52e05ae278fc1c804d352
|
|
| MD5 |
87d6cb5b1c37a832b1758aa0b0e30a49
|
|
| BLAKE2b-256 |
dec48266760bd8b119a5e11e96600e430ac888fbebf8a7043b17968698db9339
|
File details
Details for the file agcheck-1.0.0-py3-none-any.whl.
File metadata
- Download URL: agcheck-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97694aa6cb9b9d3f63ed08b398505e93b4b8a5ad5b2909cb937929a39447e252
|
|
| MD5 |
dccb441cbe24c5c1cec68857507a0f86
|
|
| BLAKE2b-256 |
f1d143145e0241517a7e31f49c654eb16cd7347ee560bc0c08bcb352c583109c
|