AI Agent Usage Audit
Audits and aggregates local token consumption across multiple AI coding clients to track agent costs and enforce budget limits.
Usage Audit provides cross-client token and session accounting by parsing the local session stores of Claude Code, Codex, and OpenCode. Operating entirely locally and read-only without uploading telemetry, it unifies fragmented agent metrics into clear breakdowns by model, client, and project. By isolating cache hits from standard input and output tokens and providing configurable token threshold flags, it serves as both an observability tool for historical usage analysis and an automated tripwire for CI/CD pipelines or cron jobs.
Key Features
01Enforces configurable token budget tripwires with exit codes for CI and cron monitoring
020 GitHub stars
03Breaks down token usage by model, client, and project without external telemetry
04Aggregates local token consumption across Claude Code, Codex, and OpenCode
05Exports structured JSON reports and CLI summaries across customizable time windows
06Separately tracks prompt cache tokens from input and output tokens for accurate accounting
Use Cases
01Pinpointing token bloat and runaway consumption across multi-agent workflows
02Consolidating fragmented local agent usage logs into unified project cost reports
03Integrating token budget gates into CI/CD pipelines to fail builds on unexpected token spikes