-
-
Notifications
You must be signed in to change notification settings - Fork 205
Recipe Audit an Expensive Session
Use when: a session or time window shows unexpectedly high tokens or estimated cost.
-
Freeze the time range, timezone, provider, model, project, and source filters.
-
Identify top contributing sessions:
npx ccam cost npx ccam analytics npx ccam cost --session <session-id> npx ccam session <session-id>
-
Confirm usage events exist for the full session and are not duplicated through two collection paths.
-
Check the normalized model name against the active pricing rule. Unmatched models are estimated at zero and reported as warnings.
-
Separate input, output, cache read/write, fast-mode, introductory pricing, and any server-tool surcharges.
-
Inspect workflow shape: retries, repeated context reads, compactions, deep subagent fan-out, and long loops.
-
Compare with one similar successful session rather than a project-wide average alone.
-
Export evidence before editing pricing or alert thresholds.
CCAM estimates from recorded usage and configured rates. Provider invoices may differ because of rounding, billing periods, provider-specific adjustments, or missing categories. Explain the reconciliation gap; do not force the dashboard to match an invoice by corrupting raw usage.
- Correct a specific pricing rule if model matching is wrong.
- Add a realistic token-threshold alert.
- Adjust workflow practices if repeated orchestration is the driver.
- Fix collection identity if duplication is proven.
Start Here · Localized product Wiki · Repository · Releases · Security · Report an issue
Guidance tracks the current master branch. For a deployed release, consult the repository documentation at that release tag before changing configuration.
CCAM Handbook
Use CCAM
- Read the dashboard
- Sessions and agents
- Kanban and tasks
- Tokens and costs
- Run agents
- Personal settings
Operate CCAM
- Deployment guide
- Hook health
- Security
- Backups and retention
- Prometheus and Grafana
- Remote machines
- Upgrades and rollback
- Incident runbooks
Automate and extend
- CLI patterns
- MCP workflows
- Alerts and webhooks
- Dynamic workflows
- Skills and plugins
- Safe config explorer
- Integration patterns
Help