← 返回
开发者工具 中文

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.
查询 Google Antigravity AI 模型的配额或令牌余额。当用户询问 Antigravity 使用情况、剩余令牌、模型限制、配额状态或速率限制时使用。通过检测本地 Antigravity 语言服务器进程并查询其 API 来工作。
finderstrategy-cyber
开发者工具 clawhub v1.0.0 1 版本 99638.4 Key: 无需
★ 2
Stars
📥 3,267
下载
💾 167
安装
1
版本
#latest

概述

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

  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:

{
  "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:

  1. Ensure Antigravity/Windsurf is running
  2. Check if the language server process exists: ps aux | grep language_server
  3. 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 11:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,902
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,937
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,755