{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "wiziscool-oh-my-cpa--track-request-cost-and-usage",
 "repo": "WizisCool/oh-my-cpa",
 "repo_url": "https://github.com/WizisCool/oh-my-cpa",
 "repo_slug": "wiziscool-oh-my-cpa",
 "title": "Track request volume, tokens and cost per model",
 "page_title": "How to track request volume, tokens and cost per model with Oh My Cpa",
 "summary": "See which models, providers and client keys drive usage and spend across CPA requests.",
 "who": "An operator running CLIProxyAPI for a team who needs to know what each model and client costs.",
 "problem": "CPA routes requests to many providers, and without a record of each request it is hard to tell where usage and cost come from.",
 "outcome": "A dashboard with request volume, token throughput, cache hit rate and cost, plus filterable request records for any time range.",
 "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 the `CPA_MANAGEMENT_KEY` value 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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/wiziscool-oh-my-cpa/track-request-cost-and-usage/",
 "md": "https://dedupedai.com/use-cases/wiziscool-oh-my-cpa/track-request-cost-and-usage/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/wiziscool-oh-my-cpa--track-request-cost-and-usage.json",
 "api_version": "v1"
}
