skyzhao1223/dsh-agent-token-stats ↗★ 0
dsh-agent-token-stats
Cross-agent local LLM token usage dashboard for the DSH web GUI: scans Claude Code / OpenCode / Cursor IDE / DSH / OpenClaw / QClaw / CodeWhale / WorkBuddy / WPS Claude / Hermes logs (plus Codex/Gemini/Cline/Pi parsers on standby), keeps a persistent ratchet ledger in ~/.agent-token-stats, and serves a sidebar analytics panel with cache-hit rate, cost estimation, period comparison, day drill-down and CSV export. 适合使用多种AI工具、需要统一监控和统计Token消耗的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:skyzhao1223/dsh-agent-token-statsドキュメント
README 全文を読む ↗Configuration (all optional, all in ~/.agent-token-stats/)
| File | Purpose |
|---|---|
config.json | {"budgets":{"dailyTokens":0,"monthlyTokens":0,"dailyCost":0,"monthlyCost":0}} — budget alert thresholds |
pricing.json | {"rules":[{"pat":"model-substr","i":3,"o":15,"cr":0.3,"cw":3.75}]} — USD per 1M tokens, overrides built-in prices |
quota.json | {"deepseek":{"apiKey":"sk-..."},"kimi":{"apiKey":"..."}} — balance queries (env DEEPSEEK_API_KEY / MOONSHOT_API_KEY also work) |
export-*.csv | CSV exports land here |