DSH 用量与成本统计
LaoYueHanNi/dsh-token-usage · 工具
按日期和模型统计 Token 用量与成本,并提供趋势图、摘要卡和模型定价明细。
★ 5GitHub 星标
1分支
2026-08-15最近更新
TypeScript开发语言
—许可证
项目简介
云端 feed 格式(currency 须为 RMB;modelId 与 aliases 都会展开为可匹配的键;timeRules / contextTiers / dailySlots 全部参与计费):
pricing.json 的扁平格式(键为模型 id、与记录中的 model 完全一致;inputPerMillion、outputPerMillion 必填,cacheReadPerMillion / cacheWritePerMillion 可选、缺省按输入价计费):
插件会从 profile 移除并停止加载。数据文件($DSHHOME/token-usage/)会保留,需要时手动删除。 开发
安装命令
dsh plugin --profile web add github:LaoYueHanNi/dsh-token-usage