dsh-token-stats
Floating draggable token usage statistics panel for DeepSeek Harness: totals, cache & hit rate, per-provider and per-model usage, current-month heatmap with per-day view, per-session detail and per-request records.
AI Analysis
核心用途是提供极度详尽的 Token 消耗与费用统计可视化。适合需要精确监控 API 成本、分析缓存命中率和使用历史的 DSH 用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗安装
npx dsh-token-stats install
安装器会自动完成以下操作(幂等,可重复运行):
- 将包安装到
$DSH_HOME/profiles/node_modules/dsh-token-stats(dsh 插件解析根,真实目录) - 将组合行写入
$DSH_HOME/profiles/ /cordis.patch.yml
完成后重启 dsh 并刷新浏览器页面即可看到面板。重启是唯一需要手动完成的步骤——宿主模块与组合在进程内缓存,插件无法安全地重启自己的宿主进程。
可选参数
| 参数 | 说明 |
|---|---|
--profile | 指定目标 profile(默认 web) |
--force | 重新覆盖已安装的包 |
从源码本地安装
git clone https://github.com/H1a3x/dsh-token-stats.git
cd dsh-token-stats
node scripts/install.js --from . --force
从源码本地安装
git clone https://github.com/H1a3x/dsh-token-stats.git
cd dsh-token-stats
node scripts/install.js --from . --force
本地安装验证
npm run install:local
## 来源与版权
本项目 `dsh-token-stats` 由作者 **H1a3x** 个人开发,采用 [MIT](https://github.com/H1a3x/dsh-token-stats/blob/189ddfc3f233bb7d8e3c6fc77201f2f54854de57/LICENSE) 许可证。
- 源码仓库:https://github.com/H1a3x/dsh-token-stats
- npm 包:https://www.npmjs.com/package/dsh-token-stats
迁入第三方代码必须保留原 LICENSE 与署名;活跃且有上游的第三方依赖优先通过 npm 依赖引用,不搬代码。
## 友情链接
- [Linux.do](https://linux.do/)