Bundle
@dsh-usage-meter/usage
Per-model hourly token usage for the DeepSeek Harness: automatic recording with a Web GUI dashboard.
- Source
- cute-baobao
- stars
- 3 stars
- License
- MIT
- Updated
- Updated 8 days ago
Readme
# dsh-usage-meter DeepSeek Harness 用量统计插件:自动记录模型调用的 token 用量,按「模型 × 小时」聚合,在 Web GUI 设置页以堆叠柱状图展示(每小时一根柱子,按模型分色)。 [🌐 English](README.en.md) · 中文  ## 安装 ```sh pnpm dsh plugin --profile web add @dsh-usage-meter/usage ``` > 刚发布当天若解析失败,显式钉版本(如 `@dsh-usage-meter/usage@0.3.0`)即可。 重启 `dsh web`,设置 → 用量统计 即可查看。 ## 卸载 ```sh pnpm dsh plugin --profile web remove @dsh-usage-meter/usage ``` ## 数据 记录在 `$DSH_HOME/usage-meter/usage.jsonl`,启动时按小时重新聚合;界面中英双语,跟随 GUI 语言。 ## 许可 MIT
Install
dsh plugin --profile web add github:cute-baobao/dsh-usage-meter
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-usage-meter-usage from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.