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
Metadata
Release files for agcheck 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agcheck-1.0.0.tar.gz | 8.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agcheck-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / agcheck-1.0.0.tar.gz
| Download URL | agcheck-1.0.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd75853f4e53fc8365238b8e770d8e02fc86f335fde52e05ae278fc1c804d352
|
|
BLAKE2b-256 checksum How to use checksums |
dec48266760bd8b119a5e11e96600e430ac888fbebf8a7043b17968698db9339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / agcheck-1.0.0-py3-none-any.whl
| Download URL | agcheck-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97694aa6cb9b9d3f63ed08b398505e93b4b8a5ad5b2909cb937929a39447e252
|
|
BLAKE2b-256 checksum How to use checksums |
f1d143145e0241517a7e31f49c654eb16cd7347ee560bc0c08bcb352c583109c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for agcheck 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.