api-quota-monitor

api-quota-monitor is a skill for Claude Code from aAAaqwq/AGI-Super-Team. It costs 91 tokens per session (1,374 once invoked), scanned A, original, MIT.

A tool for checking balances, limits, and usage across configured AI API providers and subscription services. It can discover local configuration and produce a report or JSON output.

In plain words
What is it for?
Use it to inspect API quotas, balances, and consumption for services such as Gemini, xAI, OpenRouter, Brave, Tavily, and Serper.
Why use it?
It removes the need to check each provider separately when you want to know how much service capacity or credit remains.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the agi-super-team plugin — 194 skills, 1 agent shipped together

Good fit Use it to inspect API quotas, balances, and consumption for services such as Gemini, xAI, OpenRouter, Brave, Tavily, and Serper.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aaaaqwq/agi-super-team/api-quota-monitor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aAAaqwq/AGI-Super-Team --skill api-quota-monitor
Clone the repo
git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team

Made for: Claude Code.

Or install agi-super-team, the plugin that ships this one along with the rest of its 194 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-quota-monitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/api-quota-monitor/github.svg)](https://agentmods.dev/skills/aaaaqwq/agi-super-team/api-quota-monitor)
Your own site
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/api-quota-monitor"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/api-quota-monitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-quota-monitor

Your own site · 80×15
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/api-quota-monitor"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/api-quota-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 130
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.01374
Opus 5 $0.00046 $0.00687
Sonnet 5 $0.00018 $0.00275
Haiku 4.5 $0.00009 $0.00137

Measured 7d ago against content hash de32ab96099c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

api-quota-monitor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/query_quota.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/api-quota-monitor/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Quota Monitor

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

快速使用

# 查询所有已配置的供应商
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 ✅ 支持
Minimax API 直查 MINIMAX_API_KEY + MINIMAX_GROUP_ID ✅ 支持
OpenRouter API 直查 OPENROUTER_API_KEY ✅ 支持
xAI (Grok) 浏览器 XAI_API_KEY 🔍 需浏览器
Gemini 浏览器 GOOGLE_API_KEY 🔍 需浏览器
Anthropic 浏览器 ANTHROPIC_API_KEY 🔍 需浏览器

中转站 (Reseller)

平台 查询方式 状态来源
AIXN 浏览器抓 ai.9w7.cn auth-session-state.json
Provider-A 浏览器抓 your-provider.example.com auth-session-state.json

中转站查询流程:

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

订阅服务 (Services)

服务 查询方式 环境变量
Brave Search API API 直查 BRAVE_API_KEY
Tavily API API 直查 TAVILY_API_KEY
Serper API API 直查 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:

Read the full file on GitHub · 167 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 167 lines · 91 tokens per session scan A de32ab96099c

Subscribe to this mod's changes

api-quota-monitor is a skill published in the GitHub repository aAAaqwq/AGI-Super-Team (92 stars, last pushed yesterday), licensed MIT. It adds 91 tokens to every session and 1,374 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

guidance

Add, edit, or audit guidance docs. Default writes guidance for Claude (.claude/guidance/, Markdown, moflo universal rules). -h writes for human readers (docs/, lighter ruleset). --html emits HTML with a minimal default stylesheet instead of Markdown. -a audits the .claude/guidance/ directory.

eric-cielo/moflo · 70 tokens

deslop

The optimization pass, defined - delete before you add, one smell class per pass, behaviour pinned by a test that ran BEFORE the edit. Lints a SKILL.md and prose by the same instinct. Use for the per-story optimization pass or when code has grown noisy without growing capable.

jjanczur/tyran · 58 tokens

eldar

Consult the Eldar — audit a project's moflo + Claude Code setup for portable, high-leverage gaps and guide remediation. Default mode is read-only audit with severity-ranked findings; --fix presents an interactive triage menu and walks the user through each chosen fix (healer, missing CLAUDE.md, sparse guidance…

eric-cielo/moflo · 115 tokens

root-cause

Find the mechanism behind a failure instead of patching its symptom - reproduce first, one variable per experiment with the prediction written before the run, exit by naming the mechanism and pinning it with a failing test. Use for a bug, an unexplained red test, or a failure that will not reproduce.

jjanczur/tyran · 61 tokens

memory-worktree

Verify, customize, or opt out of moflo's AUTOMATIC durable-learning sharing across git worktrees / Conductor workspaces on one machine. As of the worktree-auto-sharing change this is on by default — learnings converge across a repo's worktrees with no setup. Use when the user asks "is memory shared across my…

eric-cielo/moflo · 134 tokens

code-tour

Maintain docs/code-tour.md — the annotated guided reading of Aigon's core logic. Use when you have changed code the tour quotes, added a subsystem a new reader would need, or the user says "update the code tour", "the tour is stale", "add X to the code tour", or asks to review/refresh the code examples doc.

jayvee/aigon · 74 tokens