skyzhao1223/dsh-agent-token-stats ↗★ 0
dsh-agent-token-stats
扫描多款Agent日志,提供本地Token使用量仪表盘。 适合使用多种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 |