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:
loadCodeAssistreturns two tiers.currentTieris the Cloud Code Assist API tier โ alwaysfree-tierfor consumer (non-GCP) accounts, regardless of any Google One AI subscription.paidTiercarries 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 asapi_tier_idin--jsonoutput. Accounts with no Google One AI plan correctly showAntigravity (free-tier).Why "Gemini Models" can sit at
0.0%: on a Google AI Ultra account the Gemini group is effectively unmetered โ the server reportsremainingFractionof exactly1no 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 at0.0% usedafter heavy Antigravity use is expected, not a bug. Genuinely tiny usage (under 0.1%) is shown as<0.1% usedto distinguish it from an untouched0.0%limit, and the rawremaining_fraction(0-1, full precision) is included per bucket in--jsonoutput.
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, callsapi.anthropic.com/api/oauth/usage - Antigravity: Reads Windows Credential Manager (
gemini:antigravity) or~/.gemini/oauth_creds.json, callscloudcode-pa.googleapis.com
No credentials are sent anywhere except the official API endpoints of each tool.
License
MIT
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
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 ai_limit_checker-0.6.0.tar.gz.
File metadata
- Download URL: ai_limit_checker-0.6.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cec0c4a913ce707443322a416c976112be8a1831c99b0cb6825bb967efed0fde
|
|
| MD5 |
5d26c04512c4160a57847de20471de1b
|
|
| BLAKE2b-256 |
b7dd65ddf8fd09273f6272fe50b01a6d50a1a958dee74500b25ab0a2f3e61b1a
|
File details
Details for the file ai_limit_checker-0.6.0-py3-none-any.whl.
File metadata
- Download URL: ai_limit_checker-0.6.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74a7b31e5846388fb0452696f094fc5fbbc9bc634d0fdacd79d67bb2a94619e5
|
|
| MD5 |
86dbb1fcde457d8b290b717a5b418434
|
|
| BLAKE2b-256 |
889f9dd9f0529d77f5470c9b529db0b782d2afb6aeba0e9af3c47238b3a7185b
|