✓ Verified 💻 Development ✓ Enhanced Data

Antigravity Balance

Check Google Antigravity AI model quota/token balance.

Rating
4.3 (144 reviews)
Downloads
10,076 downloads
Version
1.0.0

Overview

Check Google Antigravity AI model quota/token balance.

Complete Documentation

View Source →

Antigravity Balance

Check your Antigravity AI model quota and token balance.

Quick Start

bash
# 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 language_server_macos_arm (or platform equivalent) process
  • Extracts Connection Info: Parses --extension_server_port and --csrf_token from process args
  • 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:
json
{
  "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 https module)
  • 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 --app_data_dir antigravity in its args (distinguishes from other Codeium forks)

Platform-Specific Process Names

PlatformProcess Name
macOS (ARM)language_server_macos_arm
macOS (Intel)language_server_macos
Linuxlanguage_server_linux
Windowslanguage_server_windows_x64.exe

Installation

Terminal bash

openclaw install antigravity-balance
    
Copied!

💻Code Examples

node scripts/agquota.js -v

node-scriptsagquotajs--v.txt
## How It Works

1. **Process Detection**: Finds the running `language_server_macos_arm` (or platform equivalent) process
2. **Extracts Connection Info**: Parses `--extension_server_port` and `--csrf_token` from process args
3. **Port Discovery**: Scans nearby ports to find the HTTPS API endpoint (typically extensionPort + 1)
4. **Queries Local API**: Hits `https://127.0.0.1:{port}/exa.language_server_pb.LanguageServerService/GetUserStatus`
5. **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:
example.sh
# 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
example.json
{
  "user": { "name": "...", "email": "...", "tier": "..." },
  "models": [
    { "label": "Claude Sonnet 4.5", "remainingPercent": 80, "resetTime": "..." }
  ],
  "timestamp": "2026-01-28T01:00:00.000Z"
}

Tags

#devops_and-cloud

Quick Info

Category Development
Model Gemini 2.0
Complexity One-Click
Author finderstrategy-cyber
Last Updated 3/10/2026
🚀
Optimized for
Gemini 2.0
💎

Ready to Install?

Get started with this skill in seconds

openclaw install antigravity-balance