Skip to main content

Check usage limits for Claude Code and Antigravity CLI from terminal

Project description

AI Limit Checker

Check usage limits for Claude Code and Antigravity CLI from your terminal.

Install

pip install ai-limit-checker

Usage

# Show all limits (one-liner)
aichecker

# JSON output for AI agents
aichecker --json

# Compact one-liner
aichecker --oneline

Example Output

๐Ÿ” AI CLI Usage Checker
2026-06-29 12:00:00

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  Claude Code (Max Plan)
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  โœ… Connected
  5h Window:  1.0% used (99.0% left) โ†’ resets in 4h 56m
  7d Window:  56.0% used (44.0% left) โ†’ resets in 2d 17h

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  Antigravity CLI
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  โœ… Connected
  Tier: Google AI Ultra
  Project: melodic-component-26v41

  Gemini Models
    Weekly Limit:      0.0% used โ†’ resets in 6d 23h
    Five Hour Limit:   0.0% used โ†’ resets in 4h 59m

  Claude and GPT models
    Weekly Limit:     93.0% used โ†’ resets in 2d 20h
    Five Hour Limit:  95.0% used โ†’ resets in 19m

Antigravity usage matches the desktop app's "Weekly Limit" / "Five Hour Limit" readouts. Models are grouped (Gemini vs. Claude/GPT); within a group the weekly and five-hour windows are shared. Reported as % used, like the app.

Tier note: loadCodeAssist returns two tiers. currentTier is the Cloud Code Assist API tier โ€” always free-tier for consumer (non-GCP) accounts, regardless of any Google One AI subscription. paidTier carries the real subscription (e.g. Google AI Ultra) and only appears when one exists, so the tool prefers it. The raw API tier is still available as api_tier_id in --json output. Accounts with no Google One AI plan correctly show Antigravity (free-tier).

JSON Output (for AI agents)

aichecker --json

Returns structured JSON with all limits, remaining percentages, and reset times. AI agents (Hermes, Claude Code, etc.) can parse this to plan task delegation.

Supported Tools

Tool Metrics
Claude Code 5h window, 7d window, Sonnet/Opus breakdown
Antigravity CLI Per-group weekly + five-hour limits, % used, reset time

How It Works

  • Claude Code: Reads ~/.claude/.credentials.json (Windows/Linux) or macOS Keychain, calls api.anthropic.com/api/oauth/usage
  • Antigravity: Reads Windows Credential Manager (gemini:antigravity) or ~/.gemini/oauth_creds.json, calls cloudcode-pa.googleapis.com

No credentials are sent anywhere except the official API endpoints of each tool.

License

MIT

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

ai_limit_checker-0.4.0.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

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

ai_limit_checker-0.4.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file ai_limit_checker-0.4.0.tar.gz.

File metadata

  • Download URL: ai_limit_checker-0.4.0.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ai_limit_checker-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c222188e8316a232a8f4e8ad7c7b39565b8b0dae52e7898e752af596fd0534c4
MD5 c7e2d66c5e6eed96fad9b5cb5b90b61c
BLAKE2b-256 9deda5fd0d315fa80a25a66d0bb1a3bd92c1ff5aa68ec8d53934a08e8a5f7c39

See more details on using hashes here.

File details

Details for the file ai_limit_checker-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_limit_checker-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46a5d830c2084c46dfcc12f78072823ce2d89372358857ee85ca908b60257d14
MD5 8743e60240952f794de715db2126fbe9
BLAKE2b-256 f0e8d255ac5b8bb04220c65284f820d1609a5030f325e958b5c86b8b9626afa3

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