AI Gateway Bookkeeping for the Self-Hosted and Suspicious
It exists to stop your AI gateway from quietly burning through quotas, cash, and expired OAuth tokens without leaving a paper trail.

What it does
CPA Manager Plus is a management panel and monitoring server for CLIProxyAPI, an OpenAI-compatible AI gateway. It turns the gateway’s usage queue into a local SQLite ledger and surfaces a React dashboard for live request tracking, historical search, and long-running analytics. If you don’t need the database, you can also drop in a single-file panel that talks directly to an existing CPA instance.
The interesting bit
The project treats gateway operations as an accounting problem, not just a routing one. It syncs model pricing from LiteLLM and OpenRouter to estimate spend, automatically disables Codex accounts that hit usage limits and revives them at reset time, and flags stale auth files or revoked OAuth tokens before they silently fail. That is unusually thorough lifecycle management for a self-hosted tool.
Key highlights
- Breaks down cost, tokens, cache usage, latency, and failures by model, provider, account, API key alias, project, and time window.
- Codex-specific health checks cover quota windows, 401 reauth needs, deactivated workspaces, and safe enable/disable/delete suggestions.
- Account-pool safeguards distinguish between auto-disabled limits and manual bans, so automation does not override human intent.
- Ships as a single-file
management.html, Docker images, or native binaries for Linux, macOS, and Windows onamd64andarm64. - Manager Server mode encrypts the CPA Management Key and gates access behind an admin key; CPA panel mode stays lightweight for existing setups.
Verdict
Worth a look if you self-host CPA or another OpenAI-compatible gateway and are tired of guessing why bills spiked or which auth file died. Skip it if you already have enterprise observability covering AI spend down to the per-account level.
Frequently asked
- What is seakee/CPA-Manager-Plus?
- It exists to stop your AI gateway from quietly burning through quotas, cash, and expired OAuth tokens without leaving a paper trail.
- Is CPA-Manager-Plus open source?
- Yes — seakee/CPA-Manager-Plus is open source, released under the MIT license.
- What language is CPA-Manager-Plus written in?
- seakee/CPA-Manager-Plus is primarily written in TypeScript.
- How popular is CPA-Manager-Plus?
- seakee/CPA-Manager-Plus has 953 stars on GitHub.
- Where can I find CPA-Manager-Plus?
- seakee/CPA-Manager-Plus is on GitHub at https://github.com/seakee/CPA-Manager-Plus.