Command Palette

Search for a command to run...

Назад к скиллам
скилл № 32943

ai-quota-dashboard

Real-time multi-provider AI quota dashboard: model limits, token balances, subscription reset timers. Secure local token management (owner-only files, domain…

БесплатноБез исполняемых скриптов
synthet1xот synthet1x635 установок в других каталогах

Установить ai-quota-dashboard в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

AI Quotas & Subscription Limits Dashboard

Real-time telemetry, monitoring, and automated tracking for AI model quotas, subscription reset times, and API token balances across cloud and self-hosted providers (Google Antigravity, ElevenLabs, OpenRouter, xAI/Grok, Anthropic, OpenAI, Perplexity, LiteLLM, Ollama, and custom gateways).


1. Zero-Leakage Credential Standard (Mandatory Security)

To pass automated security audits (skillspector, llm, vt) and safeguard user privacy, all credential operations must strictly follow these rules:

  1. Zero Process Argument Leakage ([TT5]):

    • Never pass API keys, tokens, or headers via command-line arguments (argv). CLI arguments are visible to ps aux, process accounting daemons, and system audit logs.
    • Credentials must be read strictly from isolated configuration files or environment variables.
  2. Strict Filesystem Isolation ([PE3]):

    • All credentials files must reside in dedicated directories with restrictive permissions (chmod 700 ~/.config/ai-quota-dashboard and chmod 600 config.json).
    • Collector scripts must audit permissions AND ownership on the opened file descriptor (fstat, bound to the read — no TOCTOU window) and refuse execution if files are world-readable or not owned by the current user.
    • Telemetry output is written atomically (temp + rename) with 0600 permissions; symlink output targets are refused.
  3. Strict Origin Domain Pinning ([SQP-2], [E1]):

    • Outbound HTTP requests bearing authorization headers must enforce strict HTTPS and validate that the request target matches the pinned official provider domain. Requests to mismatched hosts or unverified proxies are rejected.
    • Redirects are refused outright: credential headers are never forwarded to a redirect target (the collector installs a no-redirect handler), so pinning cannot be bypassed by a 3xx chain.
  4. Official Developer Credentials & Service Tokens:

    • Always prioritize official developer API keys or read-only service tokens configured in your provider/gateway dashboard.
    • Do not scrape or extract third-party browser session cookies.

For complete specifications and audit scripts, see references/security-cookie-guide.md.


2. Telemetry Ingestion & No-Limit Fallback Strategies

When integrating an AI provider without public quota countdown documentation:

  1. Standard Telemetry Ingestion:

    • Query documented developer endpoints (e.g., OpenRouter /api/v1/credits, ElevenLabs /v1/user/subscription, Ollama /api/tags).
    • Map response fields to standard telemetry: used, limit, percent_used, unit, and resets_at (ISO 8601 UTC).
  2. When Endpoints Lack Explicit Limit Numbers:

    • Unit Economics (Reverse Calculation): When only account balance is returned (e.g. pay-as-you-go APIs), calculate remaining capacity by dividing balance by unit request price (remaining = balance / unit_price).
    • Rolling Window Timers: When limits operate on rolling intervals (e.g. 50 requests per 3 hours), track the cycle start timestamp locally and display an active countdown timer to reset.
    • Local Usage Telemetry: For self-hosted gateways without billing endpoints, aggregate runtime token usage statistics locally.
    • Session Validity Heartbeat: For flat-rate or unlimited tiers, verify endpoint availability via lightweight status ping (200 OK) and display an active pulse badge.
  3. Pick the window that actually consumes (multi-bucket providers):

    • Some providers return several quota windows for the same model. Google Antigravity's fetchAvailableModels returns only the 5-hour quotaInfo — short and self-resetting, so it reads ~100% even under heavy use, and a dashboard built on it looks frozen at full while usage is real.
    • The real consumption lives in a separate endpoint: POST /v1internal:retrieveUserQuotaSummary returns groups[].buckets[] with bucketId gemini-weekly (the weekly limit — the one that moves) and gemini-5h. Collect both and render them as two labelled bars, so a full short window and a draining weekly window are not confused.
    • Treat a never-moving percentage as a wrong-source symptom before suspecting the provider. Verify by reading the raw bucket values, not the rendered card.
    • Network hiccups on the quota call must retry (3 attempts) before falling back to cache: a silent cache fallback reproduces the same frozen 100% and hides the real value.

For full architecture details, see references/api-reverse-engineering.md.


3. Collector Scalability & Zero-Flapping Standards

When monitoring expanding multi-account pools (e.g. 6+ Google accounts, multiple ElevenLabs keys) through outbound proxies:

  1. Subprocess Lifetime Budget:
    • Sequential proxy handshakes scale with pool size. Set daemon runner timeout (subprocess.run(timeout=...)) to at le
Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01exec
  2. 02read
  3. 03write

FAQ

Что делает скилл ai-quota-dashboard?

Real-time multi-provider AI quota dashboard: model limits, token balances, subscription reset timers. Secure local token management (owner-only files, domain pinning, zero argv leakage) and a deployment/telemetry guide. Trigger phrases: quota dashboard, AI limits, token balance, subscription resets.

Как установить скилл ai-quota-dashboard?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ai-quota-dashboard запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ai-quota-dashboard с