Skip to main content

CLI tool to check Antigravity AI usage quotas

Project description

agcheck ๐Ÿš€

PyPI version License: MIT

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 lsof for 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

  1. Detects the Antigravity language server process
  2. Extracts the CSRF token from the process command line
  3. Discovers listening TCP ports using lsof
  4. Connects to the local API (HTTPS with self-signed cert)
  5. 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

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

agcheck-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agcheck-1.0.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

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

Hashes for agcheck-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cd75853f4e53fc8365238b8e770d8e02fc86f335fde52e05ae278fc1c804d352
MD5 87d6cb5b1c37a832b1758aa0b0e30a49
BLAKE2b-256 dec48266760bd8b119a5e11e96600e430ac888fbebf8a7043b17968698db9339

See more details on using hashes here.

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

Hashes for agcheck-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97694aa6cb9b9d3f63ed08b398505e93b4b8a5ad5b2909cb937929a39447e252
MD5 dccb441cbe24c5c1cec68857507a0f86
BLAKE2b-256 f1d143145e0241517a7e31f49c654eb16cd7347ee560bc0c08bcb352c583109c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page