DSH 插件市场DeepSeek Harness 社区插件目录

TokenLedger

已验证 模型与推理 ★ 203 0.1.0

Token usage accounting for DeepSeek Harness, attributed to the relay site that served each request — no configuration, no credentials

一句话定位

Token usage accounting for DeepSeek Harness, attributed to the relay site that served each request — no configuration, no credentials

安装方式

在 DSH 的 web profile 中执行下面的命令;装完刷新页面即可。

$ dsh plugin --profile web add dsh-tokenledger@0.1.0

兼容的 DSH 版本

未声明

作者与热度

zh667 · ★ 203 · 更新于 2026-09-15

关于这个插件

TokenLedger

把 DeepSeek Harness 的 Token 用量算清楚,并归属到实际服务这次请求的中转站——不用配置,不用凭据。

Token-usage accounting for DeepSeek Harness, attributed to the relay site that served each request. The existing Web GUI (dsh web) and renderer-neutral consumers share the same host-owned aggregation. Zero configuration. 展示图使用演示数据与本机模拟中转站;面板上的每个数字都由真实代码路径算出,只是数据是造的。插件不会把 API Key 或上游原始响应发送到浏览器。 一眼看懂 / At a glance 快速安装 / Quick start

需要 DeepSeek Harness web profile(@deepseek-ai/dsh >= 0.1.0-rc.6)。

重启已经在跑的 dsh web,浏览器硬刷新。侧边栏底部会出现「用量账本」入口。

升级或卸载:

重装同一个 spec 会重新解析,所以 add 一遍就能拿到最新的 main(实测过,不是推测)。

要钉某个版本,必须用完整的 40 位 commit SHA。 包管理器把 ref 拿去和 git ls-remote 广播的引用列表比对,而那份列表里只有完整 SHA 和分支/标签名——短 SHA 匹配不到任何东西,会直接报 Could not resolve: 如果 package.json 里已经被写进了一个解析不了的 spec,add 也会失败——它会先解析整份清单。改掉那一行再 install 即可。

装完之后 /tokenledger diagnostics 会打印当前的路由归属和索引里的路由——排查「我的中转站为什么不显示」看这里,不用猜。

装完即可用:没有要填的配置,也不需要任何凭据就能看到全部用量与中转站分布。余额是唯一用到 key 的地方,而那把 key 宿主已经替你存着了。 命令 / Commands

面板能回答的问题,命令行都能回答——两边读的是同一批查询,不存在第二套聚合。

相似插件