Antigravity Balance — 反重力平衡
v1.0.0检查Google Antigravity AI模型配额/令牌余额。当用户询问他们的Antigravity使用情况、剩余令牌、模型限制、配额状态或速率限制时使用。通过检测本地Antigravity语言服务器进程并查询其API来工作。
运行时依赖
安装命令
点击复制技能文档
Antigravity Balance
检查 your Antigravity AI 模型 quota and 令牌 balance.
Quick 启动 # 检查 quota (auto-检测s local Antigravity process) node scripts/agquota.js
# JSON 输出 for parsing node scripts/agquota.js --json
# Verbose 输出 (调试ging) node scripts/agquota.js -v
How It Works Process 检测ion: Finds the 运行ning language_server_macos_arm (or 平台 equivalent) process 提取s Connection 信息: 解析s --扩展_server_port and --csrf_令牌 from process args Port Discovery: 扫描s nearby ports to find the HTTPS API 端点 (typically 扩展Port + 1) Queries Local API: Hits https://127.0.0.1:{port}/exa.language_server_pb.LanguageServer服务/获取User状态 Displays Quota: Shows remAIning percentage, re设置 time, and 模型 信息 输出 格式化
Default 输出 shows:
User name, emAIl, and tier 模型 name and remAIning quota percentage Visual 进度 bar (color-coded: green >50%, yellow >20%, red ≤20%) Re设置 countdown (e.g., "4h 32m")
JSON 输出 (--json) returns structured data:
{ "user": { "name": "...", "emAIl": "...", "tier": "..." }, "模型s": [ { "label": "Claude Sonnet 4.5", "remAIningPercent": 80, "re设置Time": "..." } ], "timestamp": "2026-01-28T01:00:00.000Z" }
Requirements Node.js (uses built-in https 模块) Antigravity (or Windsurf) must be 运行ning Troubleshooting
If the script fAIls:
Ensure Antigravity/Windsurf is 运行ning 检查 if the language server process exists: ps aux | grep language_server The process must have --应用_data_dir antigravity in its args (distin图形界面shes from other Codeium forks) 平台-Specific Process Names 平台 Process Name macOS (ARM) language_server_macos_arm macOS (Intel) language_server_macos Linux language_server_linux Windows language_server_windows_x64.exe