dsh-agent-token-stats: Cross-Agent Local Token Usage Dashboard

dsh-agent-token-stats is a DSH client plugin maintained by skyzhao1223, targeting the web profile. It incrementally scans local conversation logs from 10+ tools—including Claude Code, OpenCode, Cursor, and DSH—into `~/.agent-token-stats/ledger.json`. Rescans avoid double-counting, and history is retained even after source logs are deleted. The sidebar provides input/output/reasoning/cache breakdowns, cache hit rates, reported and estimated cost columns, trend and per-day drill-downs, session browsing, and CSV/Markdown export. Installation: run `dsh plugin --profile web add dsh-agent-token-stats`, then restart `dsh web`. Requires sqlite3, jq, zstd, and DSH >= 0.1.5-rc. Optional `config.json`, `pricing.json`, and `quota.json` files configure budgets and pricing. MIT 1.2.0.

Read More