dinhkarate

Cpa Quota API Extension — Data skill for Claude Code

Data community

Native CLIProxyAPI plugin exposing provider-neutral, machine-readable quota data for the full credential pool.

How to install Cpa Quota API Extension

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dinhkarate/cpa-quota-api-extension and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cpa Quota API Extension does

Native CLIProxyAPI plugin exposing provider-neutral, machine-readable quota data for the full credential pool.

Alternatives in Data

  • Check Daily — Check the daily pipeline's state — last run, today's report files, Sonnet quota, recent failures 355 ★
  • Agent Loop Skills — Loop until it's better — drop-in agentic loops (autoresearch, scientific writing, data analysis, code/SQL/prom 155 ★
  • Octo Agent — Open-source, single-binary, self-hosted AI agent — your models and data stay on your machine 99 ★

README

CPA Quota API Extension

A native [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI) plugin that exposes sanitized, machine-readable quota data for the full credential pool through authenticated HTTP endpoints.

Use it to monitor CLIProxyAPI accounts from external dashboards and automation such as:

  • Homepage / gethomepage
  • Übersicht
  • Grafana JSON/API data sources
  • Home Assistant REST sensors
  • health-check scripts, alerting jobs, and internal monitoring services

The plugin runs inside CLIProxyAPI. It does not start another daemon or open another port.

Dashboard / monitoring client
        │
        │ HTTPS + CLIProxyAPI management key
        ▼
CLIProxyAPI :8317
        │
        └── CPA Quota API Extension
              ├── enumerates the credential pool
              ├── queries supported provider quota APIs
              ├── caches results for 30 minutes
              └── returns sanitized JSON

Features

  • Exports every eligible physical credential through a versioned JSON API.
  • Supports Codex, Gemini CLI, Antigravity, and Claude OAuth quota sources.
  • Keeps unsupported providers visible instead of silently dropping them.
  • Refreshes quota only when requested; no cron job or background polling.
  • Caches snapshots for 30 minutes by default.
  • Deduplicates concurrent refreshes so multiple dashboards share one upstream scan.
  • Tracks account-level pool health from CLIProxyAPI runtime state and completed request outcomes.
  • Classifies accounts as healthy, degraded, disabled, unauthorized, forbidden, rate_limited, unavailable, or unknown.
  • Exports total, routable, lost, and degraded pool capacity for monitoring and alerting.
  • Persists sanitized incidents and capacity history in a bounded SQLite database.
  • Sends optional pool-level breach, reminder, and recovery webhooks without account identity or credentials.
  • Isolates provider failures per account