Agent Cost & Token Tracker
Analyzes and visualizes agent token consumption, wall-clock time, and optional financial costs across Claude Code sessions, projects, and teams.
Agent Cost & Token Tracker (ds-cost) aggregates telemetry data from agentic workflows to produce detailed rollups of token usage (input, output, cache creation, cache read) and wall-clock execution time. It enables granular cost visibility across individual sessions, specific tasks, full projects, developer teams, and cross-project operator logs. With optional user-defined pricing configurations, it accurately translates token metrics into dollar figures without estimating or inventing pricing rates, making it an essential observability tool for tracking agentic development expenses.
主な機能
01Opt-in accurate dollar pricing calculations via custom YAML rate configuration files
0212 GitHub stars
03Multi-tier scoping across sessions, tasks, local projects, team commits, and global operator environments
04JSON output support for automated reporting and CI/CD observability pipelines
05Aggregate token metrics (input, output, cache creation, cache reads) and wall-clock duration by agent role
06Historical retro rollups using Git logs and GitHub PR telemetry for pre-instrumented repositories
ユースケース
01Benchmarking efficiency and execution time across different specialized agent roles like engineer, skeptic, and QA
02Generating team-wide and cross-project AI spending and productivity rollups for engineering leadership
03Auditing token usage and computing LLM operational expenses across autonomous coding agent sessions