dsh plugins中文
← Back to popular plugin directory

DSH Usage and Cost Panel

feiyang-dev/dsh-usage-plugin · skills

DeepSeek Harness usage and consumption plug-in (dsh-usage) - token usage/cache hit statistics for each call, peak and valley billing, balance query, CSV/JSON/PNG export, can be installed with one click on the desktop or.

★ 11GitHub stars
1Forks
2026-08-15Last updated
JavaScriptLanguage
MITLicense

Project overview

一个 npm 包 = host 半(Node 侧 Cordis 插件,负责记录、计费、余额查询、导出,见 lib/index.js)+ client 半(浏览器侧面板,见 lib/client.js,通过 /usage/api 与 host 通信)。

也可以直接跑包内的接线脚本(自动找 profile 并追加,幂等): ⚠️ 行上的 inject 列表不能省略:它让 Cordis 等到 fs / webServer / subprocess / credentials / sandboxPolicy / agents 服务就绪后再激活插件。缺了它,/usage/api 路由不会注册,面板会报 Unexpected end of JSON input。 3. 方法 C:桌面应用

桌面版(如 DeepSeek Harness 桌面版)底层就是同一个 /.dsh/profiles。在任意终端执行方法 A 的命令即可,装完重启应用;应用内启动的是同一个 dsh web,插件自动生效。 4. 重启并验证

Install command

dsh plugin --profile web add github:feiyang-dev/dsh-usage-plugin
View GitHub repository ↗Back to popular plugin directory