finderstrategy-cyber

Antigravity Balance

运维安全v1.0.0
作者:finderstrategy-cyber更新于 2026-05-11antigravity-balance@clawhub_finderstrategy-cyber/antigravity-balance
监控告警DevOps

据 AlphaMoat 统计,截至 2026-09,Antigravity Balance 累计下载 3,984 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 2,576 位,在「运维安全」分类(264 个)中排名第 152 位。

累计安装
167
累计下载
3,984
星标
2
全站排名
#2,576
全站前 51% · 「运维安全」前 58%
平台累计安装累计下载星标评论
ClawHub ↗1283,9842-
SkillHub ↗1673,9422—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该技能通过检测正在运行的 Antigravity 或 Windsurf 语言服务器并查询本地 API,显示账户与模型额度、剩余比例及重置时间。过程会读取本地进程参数并处理 CSRF token;常规检查应避免详细调试输出,并只在可信本机环境使用,确认本地接口目标后再运行。 需要Node.js及带有--app_data_dir antigravity参数的运行中语言服务器;来源将其与其他Codeium分支区分。

资料发布于 2026-10-27

可以用来做什么

  • 查看当前模型额度和重置信息
  • 以普通文本或 JSON 格式查看结果
  • 在本地排查 Antigravity/Windsurf 使用情况

什么时候用

  • 需要查看正在运行的 Antigravity 或 Windsurf 实例的模型额度时
  • 运行前确认本地 API 端点可信;避免详细调试模式,因为命令行数据可能包含敏感信息

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

在可信的本机环境中检查 Antigravity 的模型额度,并先说明会读取哪些本地进程信息;使用常规输出,不要显示敏感参数。

月度数据趋势

累计下载3,984
2,6463,3654,0832026-03 · 累计下载 2,7452026-05 · 累计下载 3,2362026-06 · 累计下载 3,3822026-07 · 累计下载 3,6802026-08 · 累计下载 3,8482026-09 · 累计下载 3,98426-0326-09
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,984—2
2026-083,848+4.6%2
2026-073,680+8.8%2
2026-063,382+4.5%2
2026-053,236—2
2026-032,745—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

2.2 KB · ClawHub v1.0.0
---
name: antigravity-balance
description: 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.
---

# Antigravity Balance

Check your Antigravity AI model quota and token balance.

## Quick Start
展开全部(共 70 行)

```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

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:
```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:
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` |

「运维安全」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。