← 返回列表
D

dsh-tokenledger

v0.1.0 · 2 天前发布

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

dsh-plugindeepseek-harnesstoken-usagebillingnewapisub2apidsh-bundlecordis-plugin

README

TokenLedger

![License](LICENSE)
![DSH](https://github.com/deepseek-ai/deepseek-harness)

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

Token-usage accounting for the DeepSeek Harness Web GUI (dsh web), attributed
to the relay site that served each request. Zero configuration.

!TokenLedger 面板

展示图使用演示数据与本机模拟中转站;面板上的每个数字都由真实代码路径算出,只是数据是造的。插件不会把 API Key 或上游原始响应发送到浏览器。

一眼看懂 / At a glance

| | 能力 | 说明 |
| --- | --- | --- |
| 🎯 | 中转站归属 | 按 provider 的 baseURL 归一化 origin 分组——同一站的多把 key 合成一行,站名就是域名,不是你自己起的路由别名 |
| 🔍 | 零配置发现 | 从宿主的 provider 配置里读出中转站,不用你再填一遍。只读 baseURL

查看完整 README →

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
dsh-tokenledger
Repo
git+https://github.com/zh667/TokenLedger.git
Engines
{"node":">=22"}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-primitives"]}}