开发者工具dsh-plugin
Stars
6
Forks
1
Open Issues
0
最近 Push
2026年8月17日
最新版本
—
24h Growth
+0
7d Growth
+0
安装
dsh plugin --profile web add github:AKS1st/model-usage-plugin概览
DeepSeek Harness(DSH)Web 插件:按模型统计 tokens 消耗并估算费用,显示 API 账户余额。设置面板提供“模型消耗”页签,支持每模型 token 明细、价格配置、峰谷定价、汇率换算与余额展示。统计、价格与汇率缓存保存在 $DSH_HOME/musage-stats.json,余额 API Key 仅保存在内存。License MIT。
- 按模型统计 tokens(区分缓存命中/未命中/写入)、调用与失败次数,并估算费用。
- 内置主流模型默认价格(国产模型按人民币、海外模型按美元),首次使用自动套用,可随时修改。
- 支持峰谷定价:每个模型可勾选并设置高峰期时间段(HH:MM,支持跨零点)与高峰期价格。
- 费用按目标货币展示(默认人民币);汇率成功获取后连同时间戳缓存,并按需自动刷新。
- 查询 DeepSeek 账户余额,页面顶部大字展示总 Token 与账户余额。
- 设置面板提供“模型消耗”页签,可勾选“仅显示已调用模型”隐藏未使用过的模型。
- 通过 dsh plugin --profile web add github:AKS1st/model-usage-plugin 或本地路径安装;用 dsh plugin --profile web remove model-usage-plugin 卸载。
- 统计、价格与汇率缓存(含时间戳)保存在 $DSH_HOME/musage-stats.json;余额 API Key 仅保存在内存,不写入磁盘。