{"skill":{"slug":"antigravity-balance","displayName":"Antigravity Balance","summary":"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.","description":"---\nname: antigravity-balance\ndescription: 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.\n---\n\n# Antigravity Balance\n\nCheck your Antigravity AI model quota and token balance.\n\n## Quick Start\n\n```bash\n# Check quota (auto-detects local Antigravity process)\nnode scripts/agquota.js\n\n# JSON output for parsing\nnode scripts/agquota.js --json\n\n# Verbose output (debugging)\nnode scripts/agquota.js -v\n```\n\n## How It Works\n\n1. **Process Detection**: Finds the running `language_server_macos_arm` (or platform equivalent) process\n2. **Extracts Connection Info**: Parses `--extension_server_port` and `--csrf_token` from process args\n3. **Port Discovery**: Scans nearby ports to find the HTTPS API endpoint (typically extensionPort + 1)\n4. **Queries Local API**: Hits `https://127.0.0.1:{port}/exa.language_server_pb.LanguageServerService/GetUserStatus`\n5. **Displays Quota**: Shows remaining percentage, reset time, and model info\n\n## Output Format\n\nDefault output shows:\n- User name, email, and tier\n- Model name and remaining quota percentage\n- Visual progress bar (color-coded: green >50%, yellow >20%, red ≤20%)\n- Reset countdown (e.g., \"4h 32m\")\n\nJSON output (`--json`) returns structured data:\n```json\n{\n  \"user\": { \"name\": \"...\", \"email\": \"...\", \"tier\": \"...\" },\n  \"models\": [\n    { \"label\": \"Claude Sonnet 4.5\", \"remainingPercent\": 80, \"resetTime\": \"...\" }\n  ],\n  \"timestamp\": \"2026-01-28T01:00:00.000Z\"\n}\n```\n\n## Requirements\n\n- Node.js (uses built-in `https` module)\n- Antigravity (or Windsurf) must be running\n\n## Troubleshooting\n\nIf the script fails:\n1. Ensure Antigravity/Windsurf is running\n2. Check if the language server process exists: `ps aux | grep language_server`\n3. The process must have `--app_data_dir antigravity` in its args (distinguishes from other Codeium forks)\n\n## Platform-Specific Process Names\n\n| Platform | Process Name |\n|----------|--------------|\n| macOS (ARM) | `language_server_macos_arm` |\n| macOS (Intel) | `language_server_macos` |\n| Linux | `language_server_linux` |\n| Windows | `language_server_windows_x64.exe` |\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":3369,"installsAllTime":126,"installsCurrent":8,"stars":2,"versions":1},"createdAt":1769563664027,"updatedAt":1778485863829},"latestVersion":{"version":"1.0.0","createdAt":1769563664027,"changelog":"Initial release: check Antigravity AI model quota and token balance","license":null},"metadata":null,"owner":{"handle":"finderstrategy-cyber","userId":"s17340b4y6n7x0rt08zdm84na1884n3g","displayName":"finderstrategy-cyber","image":"https://avatars.githubusercontent.com/u/257629367?v=4"},"moderation":null}