Agent skill

API Quota Monitor

by aAAaqwq in aAAaqwq/AGI-Super-Team

查询监控 API 供应商/服务的额度、余额、消耗情况。支持官方供应商(Gemini/xAI/ZAI/Minimax/OpenRouter等)、中转站(AIXN/Provider-A等)、订阅服务(Brave/Tavily/Serper)。触发词:查额度、查余额、API用量、供应商额度、quota、balance、usage、billing。

MITAuto-check passedProductivity & Automation

Install API Quota Monitor

skills CLI
$ npx skills add aAAaqwq/AGI-Super-Team --skill api-quota-monitor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aAAaqwq/AGI-Super-Team api-quota-monitor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/api-quota-monitor .claude/skills/api-quota-monitor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
api-quota-monitor
GitHub stars
105
Used in
1 other repo
Token cost
~874 tokens
SKILL.md length
135 words
Files
3 (incl. scripts, references)
Skills in repo
167
Repo updated
First seen
Licence
MIT

At a glance

查询监控 API 供应商/服务的额度、余额、消耗情况。支持官方供应商(Gemini/xAI/ZAI/Minimax/OpenRouter等)、中转站(AIXN/Provider-A等)、订阅服务(Brave/Tavily/Serper)。触发词:查额度、查余额、API用量、供应商额度、quota、balance、usage、billing。

  • Works in 3 steps: 检查 ~/.openclaw/auth-session-state.json… → 使用 browser(action='navigate',… → 从 snapshot 提取余额/消耗信息
  • Tasks that involve Model routing and gateways
  • SKILL.md covers 快速使用, 工作流, 供应商分类 and 浏览器查询 (需浏览器抓取的供应商), plus 5 more sections
  • Runs Python scripts from its folder; calls python3; reaches api.newprovider.com; needs ZAI_API_KEY and MINIMAX_API_KEY

What it does

API Quota Monitor is an agent skill from aAAaqwq/AGI-Super-Team. 查询监控 API 供应商/服务的额度、余额、消耗情况。支持官方供应商(Gemini/xAI/ZAI/Minimax/OpenRouter等)、中转站(AIXN/Provider-A等)、订阅服务(Brave/Tavily/Serper)。触发词:查额度、查余额、API用量、供应商额度、quota、balance、usage、billing。

Its SKILL.md is about 870 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/providers.md` and `scripts/query_quota.py`).

It sits in Productivity & Automation, covering Model routing and gateways and Web search. It works with MiniMax, OpenRouter and Tavily. The repository describes itself as: An installable, cross-framework AI organization: C-suite agents, expert subagents, curated skills, independent review, and one-command setup across 18 AI client/runtime adapters. The licence is MIT.

When your agent uses it

  • Tasks that involve Model routing and gateways
  • Tasks that involve Web search

Example prompts

  • “/api-quota-monitor”

Requirements

  • Python 3
  • A credential in ZAI_API_KEY
  • A credential in MINIMAX_API_KEY

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 检查 ~/.openclaw/auth-session-state.json 获取登录状态
  2. 使用 browser(action='navigate', profile='openclaw') 访问控制台
  3. 从 snapshot 提取余额/消耗信息

What it can do on your machine

Read from SKILL.md and the folder at commit 7cefd81. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.newprovider.com

    Also links to:

    • console.x.ai
    • aistudio.google.com
    • console.anthropic.com
    • ai.9w7.cn

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ZAI_API_KEY
    • MINIMAX_API_KEY
    • OPENROUTER_API_KEY
    • XAI_API_KEY
    • GOOGLE_API_KEY
    • ANTHROPIC_API_KEY
    • BRAVE_API_KEY
    • TAVILY_API_KEY
    • SERPER_API_KEY
    • NEW_PROVIDER_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

API Quota Monitor loads about 874 tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 135 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~874
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aAAaqwq/AGI-Super-Team at commit 7cefd81, republished under its MIT licence (© aAAaqwq). 135 words, ~874 tokens.

Download SKILL.mdSave it as .claude/skills/api-quota-monitor/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
api-quota-monitor
description
查询监控 API 供应商/服务的额度、余额、消耗情况。支持官方供应商(Gemini/xAI/ZAI/Minimax/OpenRouter等)、中转站(AIXN/Provider-A等)、订阅服务(Brave/Tavily/Serper)。触发词:查额度、查余额、API用量、供应商额度、quota、balance、usage、billing。
author
Daniel Li

API Quota Monitor

查询监控各类 API 供应商和订阅服务的额度/余额/消耗。

快速使用

bash
# 查询所有已配置的供应商
python3 scripts/query_quota.py

# 查询特定供应商
python3 scripts/query_quota.py xai
python3 scripts/query_quota.py openrouter
python3 scripts/query_quota.py brave

# 只查官方供应商
python3 scripts/query_quota.py --type official

# 只查订阅服务
python3 scripts/query_quota.py --type service

# JSON 输出
python3 scripts/query_quota.py --format json

# 发现已配置的供应商
python3 scripts/query_quota.py --discover

工作流

1. 发现本地已配置的 API/供应商(从环境变量、auth-session-state.json)
   ↓
2. 按类型查询:API 直查 > 浏览器抓取
   ↓
3. 生成报告:供应商 | 消耗 | 总额度 | 状态

供应商分类

官方供应商 (Official)
供应商查询方式环境变量状态
ZAI (智谱)API 直查ZAI_API_KEY✅ 支持
MinimaxAPI 直查MINIMAX_API_KEY + MINIMAX_GROUP_ID✅ 支持
OpenRouterAPI 直查OPENROUTER_API_KEY✅ 支持
xAI (Grok)浏览器XAI_API_KEY🔍 需浏览器
Gemini浏览器GOOGLE_API_KEY🔍 需浏览器
Anthropic浏览器ANTHROPIC_API_KEY🔍 需浏览器
中转站 (Reseller)
平台查询方式状态来源
AIXN浏览器抓 ai.9w7.cnauth-session-state.json
Provider-A浏览器抓 your-provider.example.comauth-session-state.json

中转站查询流程:

  1. 检查 ~/.openclaw/auth-session-state.json 获取登录状态
  2. 使用 browser(action='navigate', profile='openclaw') 访问控制台
  3. 从 snapshot 提取余额/消耗信息
订阅服务 (Services)
服务查询方式环境变量
Brave Search APIAPI 直查BRAVE_API_KEY
Tavily APIAPI 直查TAVILY_API_KEY
Serper APIAPI 直查SERPER_API_KEY

浏览器查询 (需浏览器抓取的供应商)

当供应商没有公开的 usage API 时,使用 browser 工具:

# 1. 导航到控制台页面
browser(action='navigate', profile='openclaw', targetUrl='<console_url>')

# 2. 等待加载后获取快照
browser(action='snapshot', profile='openclaw', compact=true, maxChars=2000)

# 3. 从快照中提取余额/消耗信息
# 查找关键词:余额、balance、usage、消耗、tokens、额度

各供应商控制台 URL:

报告格式

📊 API Quota Report
⏰ 2026-03-15 20:30

━━ 官方供应商 ━━
✅ ZAI (智谱): ¥50.00
✅ Minimax: ¥10.00 CNY
✅ OpenRouter: $45.00 remaining
🔍 xAI (Grok): 需浏览器查询

━━ 订阅服务 ━━
✅ Brave Search: 1500/2000 requests
✅ Tavily: 800 remaining

━━ 中转站 ━━
✅ AIXN: ¥238.81
✅ Provider-A: ¥9.35

扩展新供应商

在 scripts/query_quota.py 中添加新供应商配置:

python
OFFICIAL_PROVIDERS = {
    "new_provider": {
        "name": "New Provider",
        "env_key": "NEW_PROVIDER_API_KEY",
        "api_url": "https://api.newprovider.com/v1/usage",
        "method": "api",  # 或 "browser"
        "extract": lambda data: {
            "balance": data.get("balance", 0),
        }
    },
}

缓存策略

  • API 查询结果可缓存 1-6 小时(避免频繁请求)
  • 缓存文件: ~/.openclaw/quota-cache.json
  • 格式:
json
{
  "openrouter": {
    "queried_at": "2026-03-15T20:00:00",
    "balance": 45.0,
    "cached": true
  }
}

定时监控

可配置 cron 定期检查并推送报告:

bash
# 在 OpenClaw cron 中添加
# 每 6 小时检查一次 API 供应商额度
0 */6 * * * python3 ~/clawd/skills/api-quota-monitor/scripts/query_quota.py --report | newsbot_send

参考文档

详细的 API 端点和响应格式见 references/providers.md

© aAAaqwq, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts, references) in skills/api-quota-monitor of aAAaqwq/AGI-Super-Team.

  • SKILL.md
  • references/providers.md
  • scripts/query_quota.py

Open the folder on GitHubat commit 7cefd81

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aAAaqwq/AGI-Super-Team, which our catalogue first saw on October 7, 2026.

Compare with similar skills

API Quota Monitor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

API Quota Monitor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
API Quota Monitor this skillaAAaqwq/AGI-Super-Team1051 repos~874Automated safety check: PassMIT
Pinme LLMglitternetwork/pinme3.8k—~2.8kAutomated safety check: PassMIT
New Providerfinch-xu/cc-router277—~1.6kAutomated safety check: PassMIT
AI RAG PipelineNeverSight/learn-skills.dev2171 repos~2kAutomated safety check: PassNone
Proxy Mode ReferenceMadAppGang/claude-code285—~1.3kAutomated safety check: PassMIT
Media Toolstherichardngai-code/gpt-image-2-pro-max101—~1.5kAutomated safety check: NotesMIT

Similar skills

  • Pinme LLM

    glitternetwork/pinme

    A skill your agent uses when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat/completions, streaming, or OpenRouter web search.

    3.8k GitHub stars~2.8k tokensUpdated 29 days ago
    AI & LLM EngineeringAuto-check passed
  • New Provider

    finch-xu/cc-router

    用于在 cc-router 仓库新增一个 LLM provider(即在 src-tauri/providers/ 下添加 YAML 描述符并完成配套的同步改动)。当用户说「加 provider」「接入 XX 厂商」「新增订阅源」「provider YAML」「让 cc-router 支持 OpenRouter/Together/Groq/Ollama 之类」时必须触发本…

    277 GitHub stars~1.6k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • AI RAG Pipeline

    NeverSight/learn-skills.dev

    Build RAG (Retrieval Augmented Generation) pipelines with web search and LLMs.

    217 GitHub starsUsed in 1 repo~2k tokens
    AI & LLM EngineeringAuto-check passed
  • Proxy Mode Reference

    MadAppGang/claude-code

    Reference guide for using external AI models via claudish CLI.

    285 GitHub stars~1.3k tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed
  • Media Tools

    therichardngai-code/gpt-image-2-pro-max

    Two CLI tools for image generation + vision analysis using goclaw's provider-chain pattern.

    101 GitHub stars~1.5k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Research Lookup

    davila7/claude-code-templates

    Look up current research information using Perplexity's Sonar Pro Search or Sonar Reasoning Pro models through OpenRouter.

    33k GitHub starsUsed in 9 repos~5k tokens
    Research & ScienceAuto-check: notes

More from aAAaqwq/AGI-Super-Team

All 167 skills in this repo
  • Content Creator

    aAAaqwq/AGI-Super-Team

    Create SEO-optimized marketing content with consistent brand voice.

    105 GitHub starsUsed in 3 repos~1.9k tokens
    Auto-check passed
  • Financial Calculator

    aAAaqwq/AGI-Super-Team

    Advanced financial calculator with future value tables, present value, discount calculations, markup pricing, and compound interest.

    105 GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Bankr Signals

    aAAaqwq/AGI-Super-Team

    Transaction-verified trading signals on Base blockchain. An agent skill from aAAaqwq/AGI-Super-Team.

    105 GitHub starsUsed in 2 repos~3.3k tokens
    Auto-check passed
  • Erc 8004

    aAAaqwq/AGI-Super-Team

    Register AI agents on Ethereum mainnet using ERC-8004 (Trustless Agents).

    105 GitHub starsUsed in 2 repos~1.2k tokens
    Auto-check passed
  • Frontend Design Ultimate

    aAAaqwq/AGI-Super-Team

    Create distinctive, production-grade static sites with React, Tailwind CSS, and shadcn/ui — no mockups needed.

    105 GitHub starsUsed in 2 repos~2.7k tokens
    Auto-check passed
  • Zsxq Smart Publish

    aAAaqwq/AGI-Super-Team

    Publish and manage content on 知识星球 (zsxq.com). An agent skill from aAAaqwq/AGI-Super-Team.

    105 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed

Questions about API Quota Monitor

What does API Quota Monitor do?

查询监控 API 供应商/服务的额度、余额、消耗情况。支持官方供应商(Gemini/xAI/ZAI/Minimax/OpenRouter等)、中转站(AIXN/Provider-A等)、订阅服务(Brave/Tavily/Serper)。触发词:查额度、查余额、API用量、供应商额度、quota、balance、usage、billing。. API Quota Monitor is an agent skill from aAAaqwq/AGI-Super-Team.

When should I use API Quota Monitor?

API Quota Monitor fits situations like: tasks that involve Model routing and gateways; tasks that involve Web search.

How do I install API Quota Monitor in Claude Code?

Run `npx skills add aAAaqwq/AGI-Super-Team --skill api-quota-monitor -a claude-code`. Or copy the skill folder (skills/api-quota-monitor in aAAaqwq/AGI-Super-Team) into .claude/skills/api-quota-monitor in your project. Claude Code loads it when a task matches its description.

How do I install API Quota Monitor in Codex?

Run `npx skills add aAAaqwq/AGI-Super-Team --skill api-quota-monitor -a codex`. Or copy the skill folder (skills/api-quota-monitor in aAAaqwq/AGI-Super-Team) into .agents/skills/api-quota-monitor in your project. Codex loads it when a task matches its description.

Can I use API Quota Monitor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aAAaqwq/AGI-Super-Team --skill api-quota-monitor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-quota-monitor, .gemini/skills/api-quota-monitor, .github/skills/api-quota-monitor and .opencode/skills/api-quota-monitor in your project.

What does API Quota Monitor need to run?

Going by SKILL.md and its folder, API Quota Monitor needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named ZAI_API_KEY, MINIMAX_API_KEY, OPENROUTER_API_KEY and XAI_API_KEY. Our summary lists: Python 3; A credential in ZAI_API_KEY; A credential in MINIMAX_API_KEY.

Does API Quota Monitor access the network?

SKILL.md names 5 domains. In commands or code: api.newprovider.com; the agent is likely to contact it when it follows the instructions. As links in the text: console.x.ai, aistudio.google.com, console.anthropic.com and ai.9w7.cn. This is read from the text; nothing was executed.

Is API Quota Monitor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does API Quota Monitor use?

API Quota Monitor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does API Quota Monitor use?

About 874 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.

What are the alternatives to API Quota Monitor?

Skills that share tags, products or a category with API Quota Monitor: Pinme LLM (glitternetwork/pinme, 3.8k stars), New Provider (finch-xu/cc-router, 277 stars), AI RAG Pipeline (NeverSight/learn-skills.dev, 217 stars) and Proxy Mode Reference (MadAppGang/claude-code, 285 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains API Quota Monitor?

aAAaqwq (a GitHub user) maintains it in aAAaqwq/AGI-Super-Team, which has 105 GitHub stars. The repository holds 167 skills in this directory. The repository was last updated on October 8, 2026.

Source: aAAaqwq/AGI-Super-Team on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.