DSH Plugin Store
Back to home

cute-baobao

dsh-usage-meter

DeepSeek Harness plugin: per-model daily token usage recorder (input/output/cache hits) with a Web GUI dashboard.

Stars
1
Language
TypeScript
Created
Aug 13, 2026
Updated
Aug 13, 2026
Other
GitHub repo

Introduction

dsh-usage-meter

DeepSeek Harness 用量统计插件:自动记录每次模型调用的 token 用量,按「模型 × 天」聚合,在 Web GUI 设置页展示。

🌐 English · 中文

用量统计仪表盘

功能

  • 记录每次模型调用的输入 / 输出 / 缓存命中 / 缓存写入,按模型 × 天聚合
  • 设置页「用量统计」展示累计与每日明细(调用次数、计费合计等)
  • 数据持久化到 $DSH_HOME/usage-meter/usage.jsonl
  • 中英双语,跟随 Web GUI 语言设置

安装

npx -p @deepseek-ai/dsh dsh plugin --profile web add @dsh-usage-meter/usage-bundle @dsh-usage-meter/usage-host@0.1.1 @dsh-usage-meter/usage-ui@0.1.1 --registry=https://registry.npmjs.org/

与官方 npx @deepseek-ai/dsh web 同源的安装方式;如果你是用源码跑 dsh(pnpm dsh web),把开头的 npx -p @deepseek-ai/dsh dsh 换成 pnpm dsh 即可。

钉版本是因为 profile 的 pnpm 供应链策略会静默跳过发布不足 1 天的版本,可能装到有 bug 的 0.1.0

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

卸载

dsh plugin --profile web remove @dsh-usage-meter/usage-bundle @dsh-usage-meter/usage-host @dsh-usage-meter/usage-ui

许可

MIT