Who it is forAn operator running CLIProxyAPI for a team who needs to know what each model and client costs.
The problemCPA routes requests to many providers, and without a record of each request it is hard to tell where usage and cost come from.
The outcomeA dashboard with request volume, token throughput, cache hit rate and cost, plus filterable request records for any time range.
What you need first
- Docker Engine with the Compose plugin and CLIProxyAPI v8.0.0 or later, or a native executable with CPA installed separately
- A Linux or macOS shell with curl and openssl for the Docker path
- A place to keep the .env file, since OMCPA_MASTER_KEY encrypts the database and cannot be recovered without it
Steps
- Save the Compose file from the install guide in a new directory, then run
docker compose up -d. - Open
http://127.0.0.1:8080/omc/and sign in with theCPA_MANAGEMENT_KEYvalue from.env. - On the Dashboard, pick a preset from 15 minutes to 90 days, the all-time window, or a custom range.
- Open Request records and filter by model, provider, key or status to find the requests behind a cost spike.
Prompt for your agent
Use the Oh My CPA console at http://127.0.0.1:8080/omc/ in the <deployment-directory> directory to find the three models with the highest cost over the last 7 days. Report each model with its request count and cost. Verify the totals match the Request records filter for the same range.
Caveat. CPA hands each usage record to a single reader, so if another usage tracker reads the same CPA, stop it or set OMCPA_USAGE_INGEST_MODE to "off" for management only.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for WizisCool/oh-my-cpa and "Track request volume, tokens and cost per model"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer