dsh-plugin-usage

用量统计:DeepSeek Harness 的用量与参考成本面板,含今日 / 近 7 天 / 近 30 天 / 全部 / 自定义范围并按小时或天聚合;模型筛选与按模型明细(请求数、输入/输出 Token、缓存、参考成本、占比);按总 Token 显示前 4 个模型、其余归入「其它」的模型占比卡;参考价目由 opencode Zen 与 DeepSeek 官方定价生成,DeepSeek 型号按北京时间工作日高峰/空闲与法定节假日分档计价;未匹配的模型可在「定价匹配」里指定参考模型或手填单价;参考成本可在 ¥ / $ 间按固定汇率 1 USD = 7 CNY 切换;年度热力图只用主题变量绘制,不引第三方图表库。

插件介绍

用量统计:DeepSeek Harness 的用量与参考成本面板,含今日 / 近 7 天 / 近 30 天 / 全部 / 自定义范围并按小时或天聚合;模型筛选与按模型明细(请求数、输入/输出 Token、缓存、参考成本、占比);按总 Token 显示前 4 个模型、其余归入「其它」的模型占比卡;参考价目由 opencode Zen 与 DeepSeek 官方定价生成,DeepSeek 型号按北京时间工作日高峰/空闲与法定节假日分档计价;未匹配的模型可在「定价匹配」里指定参考模型或手填单价;参考成本可在 ¥ / $ 间按固定汇率 1 USD = 7 CNY 切换;年度热力图只用主题变量绘制,不引第三方图表库。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-plugin-usage

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:bennett-dsh/dsh-plugin-usage

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

第三方安装实测

安装测试结果
安装与注册通过
实测 Harness 版本
0.2.0-rc.2
实测插件版本
未记录
测试日期