CPA Usage Keeper gives existing CLIProxyAPI operators persistent usage history, estimated costs and credential quota views. Use it if you want to investigate requests and account limits without building your own CPA dashboard. Skip it if your immediate need is a new gateway or a shared employee leaderboard with proven privacy controls. Our October source run built successfully but its test command failed; the newer quick-start attempt never reached the application.
What people use cpa-usage-keeper for
Keeper stores CPA usage in SQLite and puts request history, cost estimates and credential quotas in a separate dashboard. That separation matters: you keep operating CLIProxyAPI as the gateway, while Keeper reads its usage and management data. The versioned project README describes request exports, filters by model and API key, provider breakdowns and quota refresh. If your question is which credential is running out or which model accounts for a bill estimate, those are the right kinds of views.
I would choose it for investigating a CPA deployment I already intended to keep. Installing a second service makes less sense while you are still deciding how to route requests. Cost estimates also deserve the word "estimated": maintaining model pricing and interpreting upstream usage are part of the job. The alias and fallback reports below explain why a successful request and a plausible dashboard total deserve separate checks.
Company administrators report employee usage analysis, while an account operator reports clearer weekly limits after updating the credential view. These are named users describing their own deployments, rather than customer counts inferred from repository stars.
| Who used it | What they did | What happened |
|---|---|---|
| JadeQin and chai-j, discussing their companies | Analyzed employee usage by API key | JadeQin found masking hard to read. Chai-j wanted colleagues to compare usage without revealing everybody's keys. Company-use discussion |
| tedcy | Updated the credential view for several accounts | Reported that the accounts' weekly limits became immediately clear. Credential-view discussion |
| vvanglro | Embedded Keeper in a fork of CPA's frontend | Reported working integration in Chrome. Another participant described an iframe height problem in Firefox. Frontend integration discussion |
| xyonium, using Vertex AI credentials | Called a model alias while retaining both alias and original names | Reported that setting prices on the original model displayed prices correctly, though configuration was cumbersome. Alias-pricing discussion |
On X, geekbb preferred CLIProxyAPI plus Keeper after trying sub2api, EasyCLIProxyAPI, new-api and opencodex. The same post said TokenHub was still on the list to try. That is a useful recommendation from someone comparing setups, but it supplies neither a controlled comparison nor a reason detailed enough to predict your result. Read geekbb's post.
What happened when we ran it
Our November 16 quick-start attempt stopped at an invalid Go module path before Keeper could run. The hands-on record names commit 5c97bee91678 and an unprivileged container with no published ports or secrets. The harness generated go install cpa-usage-keeper/...@latest from the manifest rather than following a documented install command. Go returned malformed module path "cpa-usage-keeper": missing dot in first path element. That is a failure of the attempted installation route, not a dashboard crash.
The finding record says the run stopped at installation, and the teardown record reports successful cleanup. There was no subsequent browser task in that attempt. It would be misleading to turn this into a claim that the recommended Compose deployment fails. The README explicitly recommends Compose and also documents release binaries and Homebrew.
Our October 20 source run at fc8cbde installed in 25 seconds and built in 66 seconds, but the test command exited 1 after 684 seconds. The recorded sandbox configuration was 3 CPUs, 8 GB RAM and image golang:1.24-bookworm. That image label identifies the configuration; the actual runtime and operating-system versions require the raw toolchain logs.
| Recorded source step | Result | Meaning |
|---|---|---|
| Install | Succeeded in 25 seconds; 55 dependencies recorded | The recorded dependency step completed. |
| Build | Succeeded in 66 seconds | The recorded build completed for this checkout. |
| Go tests | Failed, exit 1, in 684 seconds; summary: 31 passed, 3 failed of 34 | The suite did not pass. The tail names three failing packages. |
The failures were internal/quota/test, internal/repository/migration/test and internal/repository/test. Each reports roughly 360 seconds in the supplied tail. Other packages, including release checks, latency storage and token processing, report ok. The summary is package-oriented output, so the 34 entries should not become a claim about 34 individual assertions. The tail locates the failures but gives no underlying exception from which to diagnose them.
The checkout scan found seven CI workflow files and a Dockerfile. Its "no tests directory" flag plainly doesn't mean no tests exist: the command output names test packages under internal/. For a contributor, the failed quota and repository packages are the starting point for investigation. For an operator, the successful source build is useful evidence about that October checkout, with a different scope from a live collection test.
Where people get stuck: collection can stop across a CPA upgrade
Keeper v1.8.1 users reported collection failures after upgrading CPA to v7.1.17, with ERR RESP AUTH disabled; use mTLS in the log. In issue #128, the maintainer later reported that CPA v7.1.18 fixes Redis connectivity and instructed users to restart Keeper after updating. That is a specific historical version pairing and remedy. It is not advice to install those old versions today.
The revealing detail is the fallback. A user said their records had stopped even though HTTP fallback existed. The maintainer explained that, after selecting Redis at startup, that version would not automatically switch modes. Restarting let it choose again. An interface full of yesterday's records can therefore look reassuring while today's collection has stopped. Check for a new request arriving after a gateway update, rather than treating a dashboard that loads as proof of collection.
| Report | What the thread supports | Practical response |
|---|---|---|
| CPA v7.1.17 Redis AUTH failure, #128 | Maintainer reported a CPA v7.1.18 fix and a required Keeper restart | Match the remedy to the affected versions and inspect fresh usage after updating. |
| Redis timeouts and intermittent freezes, #47 | Users reported improvement after an unspecified update or a Windows reinstall | Inspect the actual connection error and container reachability before changing settings. |
| CPAMC iframe login trouble | Plugin docs identify third-party cookie and cookie-setting conflicts | Prefer the same browser origin, with Keeper under a subpath. |
In issue #47, Docker and WSL users described timeouts and intermittent CPA freezes. One reported improvement after an update. Another reported resolution after reinstalling Windows 25H2, while saying the cause was unknown. The maintainer suggested an explicit REDIS_QUEUE_ADDR during troubleshooting. These are accounts of individual recoveries, not grounds to prescribe an operating-system reinstall for every Redis error.
Backup frequency can matter as much as retention
Foo-fugui's backup-directory report traced the number of files to an inherited hourly schedule, even after retention was reduced to seven days. In issue #219, the user described Keeper v1.10.7 on Docker Compose, roughly 4,000 to 8,000 daily Codex requests and backup files approaching 3 GB. These are the operator's observations, not a throughput or storage benchmark from our lab.
The exchange started with retention and possible historical data. Later, the maintainer spotted that backups were happening hourly and advised omitting backup overrides to use the daily default. Foo-fugui recognized a setting carried forward from an older example. Reducing retention had addressed how long files survived, while leaving the frequency problem in place. The reported file size was a separate question throughout the discussion.
For an existing deployment, inspect the saved backup interval before copying somebody else's retention advice. Count the retained files, look at their individual sizes and inspect the live database separately. Changing a schedule can reduce how many copies you keep without explaining why each copy is large. The current README lists a daily backup interval and seven-day retention, but an old deployment keeps the settings you supplied. Current configuration reference.
Price and speed figures depend on upstream records
Xyonium reported that a failed Gemini attempt followed by a successful Vertex request could still appear as a failure with zero tokens in Keeper. The alias discussion, issue #35, later describes recovered usage and a pricing workaround: retain both alias and original model names, call the alias, and configure prices against the original. This matters if you route a friendly model name across several providers. One visible outcome may conceal several attempts.
The maintainer subsequently said alias-based pricing could confuse tool-call names with configured aliases and announced a return to real-model pricing, falling back to aliases when unmatched. Read that as the maintainer's stated change, rather than proof from the closed label that every attribution case is settled. Before using estimates to allocate costs, reconcile a successful fallback request with its recorded provider and model name.
MiniMax generation-speed complaints also concern the inputs to a calculation. In issue #200, the maintainer described speed as output tokens minus one divided by total latency minus TTFT, converted to seconds. TTFT means time to first token. When those two time values are close, the denominator is small and the displayed speed grows. The maintainer suspected the upstream timing values in the reported case.
Issue #101 records the addition of generation speed using the available values, alongside disagreement over whether output includes reasoning tokens. A visible-output rate and a rate including reasoning answer different questions. Keep the provider, token definition and timing fields attached to any comparison. A tokens-per-second column alone is a poor reason to switch providers.
Login protection does not encrypt your backups
The current README says login protection is enabled by default, while the SQLite database and its unencrypted backups contain original data. Browser API redaction protects a different surface from files on disk. Set a private LOGIN_PASSWORD and control access to the work directory and backup destination. If you expose the service publicly, the README calls for HTTPS at the reverse proxy. Project security notes.
Employee sharing needs a separate decision. JadeQin wanted full keys to identify employees whose names were embedded in short keys. Chai-j wanted coworkers to compare usage without seeing each other's credentials. In issue #189, the maintainer recommended aliases and individual API-key login, then asked for another issue for the requested configuration. An individual read-only view doesn't answer chai-j's request for a shared comparison page. I would keep employee access scoped until that exact sharing arrangement has been checked.
Choose the release line before upgrading
The Homebrew tap's default formula can move to a newer major release, while cpa-usage-keeper@1 stays on the v1 maintenance line. Its migration instructions give the formulas separate configuration, data and log paths. Both services default to port 8080, so running both also requires different ports. Installing the v1 formula doesn't transfer existing data for you.
For a still-v1 installation, the tap says to stop the service, back up its configuration and complete work directory, install the v1 formula, then copy the stopped data and adjust its configuration. It explicitly warns against pointing v1 at a database already migrated by v2 or later. The current README also warns against opening a partially migrated database with v1 after a failed upgrade. Preserve a recoverable database copy before crossing release lines, rather than expecting a package downgrade to reverse a schema migration.
English documentation exists; operator discussions often need translation
The repository offers English and Simplified Chinese documentation, and the supplied operational issue discussions are largely Chinese. The current English README gives deployment paths and configuration details, while the backup, pricing and employee-sharing exchanges above contain the more revealing operator stories. An English-speaking maintainer should expect to translate those discussions when an error outgrows the quick start. Project README.
Repository attention supplies less evidence of adoption than those stories. GitHub's anonymous API reported 1,318 stars and a last push on November 15, 2026. The issue records show a maintainer responding to collection, storage and display questions. Together these support describing an actively changing project, not a support guarantee. The named company users are still self-reports, rather than independently audited deployments. GitHub repository facts.
cpa-usage-keeper vs sub2api, LiteLLM and Grafana
Keeper is the focused choice when you intend to keep CLIProxyAPI and want its usage and credential data in a dashboard. The alternatives change different parts of that decision. LiteLLM documents virtual keys, spend tracking and load balancing. Grafana documents querying and visualizing metrics across data sources. Those projects address gateway controls and broader dashboards respectively. LiteLLM README, Grafana README.
| Alternative | Why consider it | What the comparison actually supports |
|---|---|---|
| sub2api | Reconsider the gateway and per-credential reporting together | A requester used its per-credential statistics as the reference for desired Codex spend views in Keeper. Issue #2 |
| LiteLLM | You are choosing the gateway and need virtual keys, spend controls or load balancing | The earlier review recommends considering it for those needs, rather than treating it as a drop-in CPA quota dashboard. Comparison source |
| Grafana | You want dashboards alongside other services and have a suitable data source | The earlier review makes this conditional on supplying data. It doesn't document automatic Keeper database ingestion. Comparison source |
Geekbb's preference for CPA plus Keeper over several gateway projects is encouraging if your setup resembles theirs. It doesn't turn this table into a measured ranking. TokenHub belongs on that user's future evaluation list, not in a comparison they completed. Start with whether you are keeping CPA: that settles more than a broad list of dashboard features.
What the other reviews get wrong
The 6erSkills directory labels Keeper a Codex skill, although the project describes an independently deployed persistence and analytics service. That category can send a reader toward the wrong installation model. The directory record and the project README describe the same entity with different labels. Keeper runs beside CPA and has its own storage and login.
The Mino-dev-ceo fork README's disabled-auth default is also unsafe to carry into current upstream instructions. Both the supplied v1.15.6 README and current documentation say login protection is enabled by default. Its Go 1.22+ and Node.js 22+ development prerequisites differ from the newer supplied README's Go 1.26+ and Node.js 24+ requirements. Those are source-development requirements; the recommended container deployment needs neither local development toolchain. Fork snapshot, newer README.
The older plugin instructions require a registry update after publishing. The newer package documentation says CPA reads the latest release and registry edits are only needed when listing information changes. Finally, our previous review's v1.14.8 header is a dated snapshot. The anonymous release API now returns v2.1.1, published November 15, 2026. None of those release labels changes the October commit we measured. Plugin documentation, release API.
Questions people ask
CPA Usage Keeper adds persistent SQLite usage history, cost estimates and credential quota views to CLIProxyAPI. It is a separate service that reads CPA data, with its own dashboard and authentication. Versioned README.
What is cpa-usage-keeper, and what does it add to CLIProxyAPI?
Keeper supplies the persistent records and analytics views around a running CPA gateway. The README lists request exports, model and API-key breakdowns, cost estimates and credential quota refresh. You continue to configure model access in CPA. Project description.
How do I install and use cpa-usage-keeper?
Use the documented Docker Compose path for either CPA plus Keeper or Keeper alone. Set a reachable CPA_BASE_URL, the CPA management key and a Keeper login password, enable CPA usage statistics, then generate a request and check its arrival. Use the configuration for your release: the current README names CPA v8.0.12+ and a nested usage-statistics setting. Current quick start.
Why is Keeper's backup directory consuming so much disk space?
An inherited hourly schedule explained the excess file count in foo-fugui's report. Inspect backup frequency separately from retention days and individual file size. The maintainer advised using the daily default in that case. Backup discussion.
Can Keeper be integrated into CPA's built-in management frontend?
Yes: the CPAMC plugin embeds Keeper v1.12.2 or later in an iframe. Keeper still authenticates users itself, and the plugin documentation recommends the same browser origin, preferably a subpath, to avoid cross-site login trouble. It provides no token bridge. Plugin documentation.
Why did Keeper stop collecting usage after upgrading CPA to v7.1.17?
That version disabled the Redis RESP AUTH path used by the reported Keeper v1.8.1 setup. The maintainer reported a fix in CPA v7.1.18 and required a Keeper restart to return to Redis collection. This is the historical incident from issue #128. Collection report and response.
Why is Keeper failing to connect to Redis, and is my configuration wrong?
A connection failure alone doesn't identify a configuration mistake. Issue #47 includes Docker and WSL reports, an explicit queue-address suggestion and user-reported recoveries after different changes. Match your error and network layout to the report before adopting its workaround. Redis troubleshooting thread.
Can I disable API-key masking to identify employees in usage analysis?
The maintainer recommended key aliases in response to JadeQin's identification problem and discussed a reveal control in settings. That exchange is narrower than a promise of a global switch that reveals keys safely throughout the dashboard. Use employee-readable aliases as the starting point. Employee-identification discussion.
Can employees compare usage without seeing everyone's API keys?
Chai-j asked for that shared view, and individual API-key login did not satisfy their request. The documented read-only view is scoped to one key. Treat shared comparison and individual access as different requirements when choosing the deployment. Sharing discussion, scoped-view documentation.
Why are MiniMax generation-speed figures implausible?
The maintainer pointed to a small difference between TTFT and total latency in the reported calculation, which can inflate speed. They suspected CPA timing data rather than demonstrating a completed remedy in the supplied exchange. Check those fields before comparing providers. MiniMax speed discussion.
Can request details show tokens per second and average generation speed?
The maintainer reported adding generation speed using the available values in issue #101. The request also discussed averages and several possible formulas, so an added speed value should not be taken as evidence that every proposed metric shipped. Generation-speed request.
Does output-token count include reasoning tokens when calculating generation speed?
The discussion itself disputes how provider output and reasoning fields should combine. The maintainer described an adjustment for Gemini, while another participant showed reasoning exceeding output. Keep provider-specific semantics attached to the figure instead of assuming all displayed rates have the same numerator. Token-semantics discussion, formula discussion.
Can Keeper show five-hour and seven-day spend for each Codex credential?
A requester asked for those spend views using sub2api as a reference. Tedcy's later report confirms clearer weekly quota visibility, which is a different result from reconciled per-credential spend. Don't equate a remaining-quota view with an invoice calculation. Spend request, weekly-quota report.
What we have not tested yet
We have not tested current-version live collection, browser interactions, invoice accuracy or large-history performance. The October source run and November malformed-path attempt answer narrower questions. The supplied older page's August run is historical evidence, not another measurement of the October checkout. No current-version supported deployment completed in the supplied hands-on record, so setup ease stays unassessed.
The failing Go packages need their underlying errors and a targeted rerun before we can diagnose an environment, dependency or product cause. The closed backup thread does not establish a reduction in individual backup size. The alias thread does not demonstrate every announced pricing change landing, and the speed complaints do not supply a completed cross-provider accuracy check. Employee sharing and iframe behavior also need tests on the intended release and browsers.
The supplied YouTube and Bilibili results provide no relevant Keeper demonstration, so they add no product-use evidence. The referenced capacity report is project-authored and its measurements are absent from the supplied records. We have not independently audited security, restored backups across release lines or compared the alternatives on the same workload. The next useful result is a supported deployment where a known CPA request reaches Keeper with the expected provider, tokens and price, followed by a restore from its backup.


