dsh-usage-meter

by cute-baobao

开发与运行时github收录于 08-23

DeepSeek Harness 用量统计插件:自动记录模型调用的 token 用量,按「模型 × 小时」聚合,在 Web GUI 设置页以堆叠柱状图展示(每小时一根柱子,按模型分色)。

DeepSeek Harness usage stats plugin: records model-call token usage, aggregates by model × hour, and renders stacked bar charts in the Web GUI settings page.

安装

dsh plugin --profile web add github:cute-baobao/dsh-usage-meter

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DeepSeek Harness 用量统计插件:自动记录模型调用的 token 用量,按「模型 × 小时」聚合,在 Web GUI 设置页以堆叠柱状图展示(每小时一根柱子,按模型分色)。

🌐 English · 中文

用量统计仪表盘

安装

pnpm dsh plugin --profile web add @dsh-usage-meter/usage

刚发布当天若解析失败,显式钉版本(如 @dsh-usage-meter/usage@0.3.0)即可。

重启 dsh web,设置 → 用量统计 即可查看。

卸载

pnpm dsh plugin --profile web remove @dsh-usage-meter/usage

数据

记录在 $DSH_HOME/usage-meter/usage.jsonl,启动时按小时重新聚合;界面中英双语,跟随 GUI 语言。

许可

MIT

原始 README: https://github.com/cute-baobao/dsh-usage-meter/blob/main/README.md ↗