skyzhao1223/dsh-agent-token-stats ↗★ 0

dsh-agent-token-stats

扫描多款Agent日志,提供本地Token使用量仪表盘。 适合使用多种AI工具、需要统一监控和统计Token消耗的用户。

包名
dsh-agent-token-stats
兼容性
待验证
版本
1.1.0
许可证
MIT
最近更新
2026年9月22日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:skyzhao1223/dsh-agent-token-stats

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