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消耗的用户。

パッケージ
dsh-agent-token-stats
互換性
未検証
バージョン
1.1.0
ライセンス
MIT
最終更新
2026/09/22

インストール

$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/)

FilePurpose
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-*.csvCSV exports land here