← 返回 Skills 市场
finderstrategy-cyber

Antigravity Balance

作者 finderstrategy-cyber · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
2816
总下载
2
收藏
7
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

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

Platform Process Name
macOS (ARM) language_server_macos_arm
macOS (Intel) language_server_macos
Linux language_server_linux
Windows language_server_windows_x64.exe
安全使用建议
This skill appears coherent and does what it claims: it searches your process list, extracts the Antigravity server port and CSRF token from the process command line, then queries a localhost HTTPS endpoint to show quota. That behavior is necessary for the stated purpose but is sensitive because it reads tokens from process command lines. Before installing or running: (1) review the included script (scripts/agquota.js) yourself — the full source is present; (2) only run it on machines you trust (don't run on shared CI runners or untrusted hosts); (3) note it executes ps on Unix or a PowerShell query on Windows; (4) it only communicates with 127.0.0.1 (no remote exfiltration in the code), and it has no external install steps. If you are uncomfortable with a tool that extracts tokens from process args, do not install or run it.
功能分析
Type: OpenClaw Skill Name: antigravity-balance Version: 1.0.0 The skill is designed to check the local Antigravity AI model quota. It achieves this by inspecting command-line arguments of local processes (`ps` or `powershell`) to find the Antigravity language server's port and a local CSRF token. It then uses these details to make HTTPS requests to a local API endpoint (`127.0.0.1`) to retrieve user status and quota information. All network communication is confined to the local host, and the extracted token is used solely for local API authentication. There is no evidence of data exfiltration to external parties, malicious execution, persistence mechanisms, or prompt injection attempts against the agent. The observed behaviors are directly aligned with the stated purpose and do not exhibit intentional harmful behavior.
能力评估
Purpose & Capability
The name/description (check local Antigravity quota) align with what is implemented: the script searches for a language_server process, extracts --extension_server_port and --csrf_token, scans local ports, and queries a local HTTPS endpoint to get user status. All requested actions are relevant to the stated purpose.
Instruction Scope
SKILL.md and the script limit actions to detecting a local process (ps / PowerShell) and making HTTPS requests to 127.0.0.1. There are no instructions to read unrelated files, call remote APIs, or exfiltrate data. The script does parse process command lines to extract the CSRF token — this is necessary for the local API query but is the most sensitive operation it performs.
Install Mechanism
There is no install spec (instruction-only with an included node script). No external archives or third-party packages are downloaded during install. The only runtime dependency is Node.js, which is declared in SKILL.md.
Credentials
The skill requests no environment variables or external credentials. It does read the system process list and parses command-line arguments to extract a CSRF token from the Antigravity process — this is proportional to querying the local service, but it is sensitive because process command lines can contain secrets. This access is justified by the skill's purpose but worth highlighting to users.
Persistence & Privilege
No persistent installation or 'always' privilege is requested. The skill does not modify other skills or system-wide agent settings. The agent can invoke it normally (default), which is expected.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install antigravity-balance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /antigravity-balance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: check Antigravity AI model quota and token balance
元数据
Slug antigravity-balance
版本 1.0.0
许可证
累计安装 7
当前安装数 7
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2816 次。

如何安装 Antigravity Balance?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install antigravity-balance」即可一键安装,无需额外配置。

Antigravity Balance 是免费的吗?

是的,Antigravity Balance 完全免费(开源免费),可自由下载、安装和使用。

Antigravity Balance 支持哪些平台?

Antigravity Balance 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Antigravity Balance?

由 finderstrategy-cyber(@finderstrategy-cyber)开发并维护,当前版本 v1.0.0。

💬 留言讨论