Agent Skills › meshery/meshery › quota-axi

quota-axi

GitHub

用于查询本地AI代理(Claude、Copilot等)的配额剩余量、重置时间及状态。在用户询问用量、速率限制或需评估是否继续消耗配额时触发,提供只读数据以辅助决策。

.agents/skills/quota-axi/SKILL.md meshery/meshery

Trigger Scenarios

用户询问API使用量或速率限制 检查特定提供商的剩余配额 比较多个本地提供商的配额余量

Install

npx skills add meshery/meshery --skill quota-axi -g -y
More Options

Non-standard path

npx skills add https://github.com/meshery/meshery/tree/master/.agents/skills/quota-axi -g -y

Use without installing

npx skills use meshery/meshery@quota-axi

指定 Agent (Claude Code)

npx skills add meshery/meshery --skill quota-axi -a claude-code -g -y

安装 repo 全部 skill

npx skills add meshery/meshery --all -g -y

预览 repo 内 skill

npx skills add meshery/meshery --list

SKILL.md

Frontmatter
{
    "name": "quota-axi",
    "author": "Kun Chen (kunchenguid)",
    "metadata": {
        "hermes": {
            "tags": [
                "quota",
                "rate-limits",
                "claude",
                "codex",
                "cursor",
                "copilot",
                "grok",
                "cli"
            ],
            "category": "observability"
        }
    },
    "description": "Report local Claude, Codex, Cursor, GitHub Copilot, and Grok quota windows via the quota-axi CLI - remaining percentages, reset times, and provider status read from local auth sources, with no routing, recommendation, or provider mutation. Use before deciding whether it is safe to keep spending a provider's quota, when the user asks about usage, rate limits, or remaining quota, or when comparing local provider headroom.",
    "user-invocable": false
}

quota-axi

Report local agent-provider quota windows for routing-aware agents.

You do not need quota-axi installed globally - invoke it with npx -y quota-axi.

quota-axi is data only: it never routes, recommends, proxies, intercepts, logs in, imports browser cookies, or mutates provider state. It reads local provider auth sources and calls first-party provider quota, usage, billing, or entitlement endpoints; it never launches the Claude CLI, so it cannot spend the quota it measures.

When to use

Use quota-axi whenever you need local quota headroom before deciding whether it is safe to keep working on a provider, when the user asks about usage, rate limits, or remaining quota, or when comparing supported local provider headroom side by side.

Workflow

  1. Run npx -y quota-axi for compact TOON output covering supported providers' quota windows.
  2. Scope to one provider with --provider claude or to a subset with --provider cursor,copilot,grok.
  3. Pass --json for the normalized machine-readable model instead of TOON.
  4. Pass --full to include account identity and per-source attempt details.
  5. Run npx -y quota-axi auth to check local auth-source availability without printing secret values.
  6. On macOS, Claude Keychain value reads are skipped by default until the user grants access once. If quota output reports reason: keychain_access_required, tell your user to run quota-axi --allow-keychain-prompt once and approve Keychain access ("Always Allow"). After that successful grant, plain quota-axi calls reuse the existing Keychain access marker to refresh live Claude quota without requiring the flag.
  7. For a managed Codex installation, set QUOTA_AXI_CODEX_BINARY to its absolute executable path. quota-axi uses that exact executable for auth inspection and the read-only app-server fallback, and fails closed if the override is invalid.

Usage

usage: quota-axi [auth] [flags]
commands[2]:
  (none)=quota, auth
flags[6]:
  --provider <claude,codex,cursor,copilot,grok>, --json, --full, --allow-keychain-prompt, --help, -v/--version
examples:
  quota-axi
  quota-axi --provider claude
  quota-axi --provider cursor,copilot,grok
  quota-axi --json
  quota-axi --full
  quota-axi auth

Tips

  • Output is TOON-encoded and token-efficient by default; pass --json only when you need the normalized schema.
  • Exit code 0 means at least one provider returned data (fresh or stale); exit code 1 means every provider failed; exit code 2 means a usage error.
  • Percentages are not comparable across providers - quota-axi never claims one provider's percentage equals another's.
  • Claude --full output exposes the authoritative OAuth profile account.uuid as account.accountId when Anthropic returns one; otherwise the account identity is explicitly marked unverified rather than inferred.
  • The quota cache at ~/.cache/quota-axi/quotas.json only ever holds normalized non-secret snapshots. Fresh provider reports with no windows clear stale provider snapshots instead of caching empty quota. The Claude Keychain access marker lives alongside it and contains no credential values.

Version History

  • 2e666fd Current 2026-08-20 16:24

Same Skill Collection

.agents/skills/agent-md-refactor/SKILL.md
.agents/skills/api-doc/SKILL.md
.agents/skills/chrome-devtools-axi/SKILL.md
.agents/skills/command-creator/SKILL.md
.agents/skills/database-schema-designer/SKILL.md
.agents/skills/gen-relationship/SKILL.md
.agents/skills/gen-test/SKILL.md
.agents/skills/gepetto/SKILL.md
.agents/skills/gh-axi/SKILL.md
.agents/skills/gnhf/SKILL.md
.agents/skills/iterate-pr/SKILL.md
.agents/skills/lavish/SKILL.md
.agents/skills/qa-test-planner/SKILL.md
.agents/skills/reducing-entropy/SKILL.md
.agents/skills/cut-release/SKILL.md
.agents/skills/find-skills/SKILL.md

Metadata

Files
0
Version
382820f
Hash
ce3ce2b9
Indexed
2026-08-20 16:24

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-26 06:04
浙ICP备14020137号-1