Awesome-openclaw-skills antigravity-balance
Check Google Antigravity AI model quota/token balance. Use when a user asks about their Antigravity usage, remaining tokens, model limits, quota status, or rate limits. Works by detecting the local Antigravity language server process and querying its API.
install
source · Clone the upstream repo
git clone https://github.com/sundial-org/awesome-openclaw-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/antigravity-balance" ~/.claude/skills/sundial-org-awesome-openclaw-skills-antigravity-balance && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/antigravity-balance" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-antigravity-balance && rm -rf "$T"
manifest:
skills/antigravity-balance/SKILL.mdsource content
Antigravity Balance
Check your Antigravity AI model quota and token balance.
Quick Start
# Check quota (auto-detects local Antigravity process) node scripts/agquota.js # JSON output for parsing node scripts/agquota.js --json # Verbose output (debugging) node scripts/agquota.js -v
How It Works
- Process Detection: Finds the running
(or platform equivalent) processlanguage_server_macos_arm - Extracts Connection Info: Parses
and--extension_server_port
from process args--csrf_token - Port Discovery: Scans nearby ports to find the HTTPS API endpoint (typically extensionPort + 1)
- Queries Local API: Hits
https://127.0.0.1:{port}/exa.language_server_pb.LanguageServerService/GetUserStatus - Displays Quota: Shows remaining percentage, reset time, and model info
Output Format
Default output shows:
- User name, email, and tier
- Model name and remaining quota percentage
- Visual progress bar (color-coded: green >50%, yellow >20%, red ≤20%)
- Reset countdown (e.g., "4h 32m")
JSON output (
--json) returns structured data:
{ "user": { "name": "...", "email": "...", "tier": "..." }, "models": [ { "label": "Claude Sonnet 4.5", "remainingPercent": 80, "resetTime": "..." } ], "timestamp": "2026-01-28T01:00:00.000Z" }
Requirements
- Node.js (uses built-in
module)https - Antigravity (or Windsurf) must be running
Troubleshooting
If the script fails:
- Ensure Antigravity/Windsurf is running
- Check if the language server process exists:
ps aux | grep language_server - The process must have
in its args (distinguishes from other Codeium forks)--app_data_dir antigravity
Platform-Specific Process Names
| Platform | Process Name |
|---|---|
| macOS (ARM) | |
| macOS (Intel) | |
| Linux | |
| Windows | |