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).

Why "Gemini Models" can sit at 0.0%: on a Google AI Ultra account the Gemini group is effectively unmetered โ€” the server reports remainingFraction of exactly 1 no matter how much you use Gemini (verified against a run that consumed millions of Gemini tokens). Only the third-party group (Claude and GPT) is metered and moves. So a Gemini group stuck at 0.0% used after heavy Antigravity use is expected, not a bug. Genuinely tiny usage (under 0.1%) is shown as <0.1% used to distinguish it from an untouched 0.0% limit, and the raw remaining_fraction (0-1, full precision) is included per bucket in --json output.

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.5.1.tar.gz (16.1 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.5.1-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_limit_checker-0.5.1.tar.gz
  • Upload date:
  • Size: 16.1 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.5.1.tar.gz
Algorithm Hash digest
SHA256 0131e72d80a5309c15086e4f5123a84d037c6b2f96715d8e54e681c34d81acb6
MD5 668c28cfd7d2d397e6fdfb301f8e0f9d
BLAKE2b-256 6721532929171299cbecf4cb6a6d19fc3dfeb3b40f1fafbab05476283d78f6c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ai_limit_checker-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97bfa6831eb1041fc8473b09ca3f13a38d722d0b34dd2e76fd20c62c734705bc
MD5 44d49541c6a9df7c2237105b557faadc
BLAKE2b-256 94aacf5ef92357573d8a0078ae91d7beed60dc89aca9a72691b6d95bd8430219

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