Deploy Now

SaaS Alternative

OpenRouter Helicone LiteLLM Langfuse

Stars

1,310

Forks

190

Watchers

1

Developer links

CPA Usage Keeper

Somewhere between the third coding agent and the fifth model subscription, nobody can say where the tokens went. CPA Usage Keeper keeps the receipts for a CLIProxyAPI gateway, saving every request locally with scheduled backups so history survives restarts. The Overview page shows requests, success rate, tokens, cache hit rate, and estimated cost with sparklines and a calendar heatmap, and Realtime plots time to first token against total latency and shows rolling cache levels and model speed. Analysis breaks usage down by API key, model, credential, or provider with donut charts and ranked lists. The Request Events log filters by model, source, and status, adjusts its columns, and exports records. Credentials cards show success rates, remaining five-hour and weekly quotas, priorities, and enable switches, and quota history charts how many tokens and dollars each percentage point costs over a cycle. Individual API keys can be given a read-only usage view. Deployment uses a Docker Compose file that bundles CPA with Keeper or runs Keeper beside an existing gateway, and the interface switches between English and Chinese and between light and dark themes. Check the dashboard before the invoice arrives and see exactly who spent what. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

CPA Usage Keeper
CPA Usage Keeper
CPA Usage Keeper
CPA Usage Keeper
CPA Usage Keeper

Benefits

  • Usage History That Survives Restarts
  • Every request lands in a local SQLite database with scheduled backups, so months of token and cost records stay available after upgrades and gateway restarts.
  • Know Where Money Goes
  • Estimated costs and cache savings are broken down by model, API key, credential, and provider, which makes expensive habits and wasteful prompts easy to spot.
  • Spot Slow Or Failing Requests
  • Latency charts, time to first token, success rates, and a filterable event log show which model or credential is degrading before users complain about it.
  • Share Access Without Sharing Control
  • Give a teammate or client a read-only view limited to their own API key, and keep the full dashboard and the gateway behind the admin login.

Features

  • Overview And Activity Heatmaps
  • Cards for requests, tokens, cache rate, and cost with sparklines, plus day, week, month, and year activity and health timelines.
  • Realtime Latency Diagnostics
  • Scatter plots of time to first token versus latency, a token share flow diagram, model speed comparisons, and rolling cache levels.
  • Request Event Log
  • Filter by model, source, and status, choose visible columns, inspect token and cache details per request, and export the records.
  • Credential Quota Tracking
  • Monitor each credential's five-hour and weekly quotas, refresh them on demand, edit priorities, and toggle accounts on or off.
  • Quota Cycle History
  • Chart tokens and dollars consumed per percentage point of quota across completed and current cycles, with full-quota estimates.

Apps Similar to CPA Usage Keeper