Hey everyone! ![]()
While working on long agentic coding sessions in Google Antigravity, I often found myself wondering how much quota I had left before hitting a 5-hour rolling limit or exhausting my weekly budget—especially when switching between frontier models like Gemini Flash/Pro, Claude 3.7/3.5 Sonnet, and the new Gemini 4 Argon.
To solve this, I built Antigravity Quota Bar, a lightweight native macOS Menu Bar application that lives right next to your system clock and gives you real-time visibility into all your model quotas and reset countdowns.
I wanted to share it with the community here in case anyone else finds it useful!
GitHub Repository: https://github.com/cursoraiht-maker/gemini_antigravity
What it does
Instead of waiting for an agent error to know you’re running low on tokens, this menu bar app connects directly to the local Antigravity background process (agy / language_server) via internal Connect-RPC and tracks:
- Google Gemini Models (Flash & Pro):
- 5-Hour Rolling Window: Percentage available + exact countdown (e.g.
⏳ 1h 28m). - Weekly Budget: Remaining percentage + days/hours until renewal (e.g.
⏳ 2d 2h).
- 5-Hour Rolling Window: Percentage available + exact countdown (e.g.
- Claude & GPT Models (Sonnet, Opus, GPT-OSS):
- Tracks both the 5-hour session and weekly cycles.
- Gemini 4 Argon (New Reasoning Model):
- Tracks its dedicated separate weekly quota bucket.
- Exact Reset Timers:
- Displays the countdown in days and hours (
Reset: in 2 days, 2 hours) along with your local date/time of renewal.
- Displays the countdown in days and hours (
Highlights
- 100% Native & Lightweight: Written in pure Swift with AppKit/Cocoa. No Electron, no heavy dependencies, uses almost zero CPU/RAM.
- Color-Coded Status Emojis:
> 50% available
20% – 50% available
< 20% (low quota warning)
- 10 Display Styles for the Menu Bar:
- Standard with time:
♊ 5h: 78% (1h 28m) · Sem: 38% (2d 2h) - Compact:
♊ 78% | 38% - Argon-only:
🪐 Argon: 1% · ⏳ 5d 17h - Lowest-remaining:
⚠️ Mín: 1% (5d 17h)
- Standard with time:
- Zero Config: Automatically detects your local Antigravity session port and CSRF token—no external API keys or login setup needed.
- Launch at Login: Optional toggle to start automatically on macOS boot.
Quick Installation
Requirements: macOS 13.0+ (Apple Silicon M1/M2/M3/M4 or Intel) and Xcode command line tools (swiftc).
git clone https://github.com/cursoraiht-maker/gemini_antigravity.git
cd gemini_antigravity
chmod +x GeminiQuotaBar/build.sh
./GeminiQuotaBar/build.sh
# Move to Applications and open:
cp -rf GeminiQuotaBar/build/GeminiQuotaBar.app /Applications/
open /Applications/GeminiQuotaBar.app
Hope this helps you manage your token burn and plan heavy agent workflows without getting surprised by rate limits!
Feedback, PRs, and suggestions are welcome on GitHub!