H1a3x/dsh-token-stats0

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 分析

核心用途是提供极度详尽的 Token 消耗与费用统计可视化。适合需要精确监控 API 成本、分析缓存命中率和使用历史的 DSH 用户。

パッケージ
dsh-token-stats
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/08/13

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

安装

npx dsh-token-stats install

安装器会自动完成以下操作(幂等,可重复运行):

  1. 将包安装到 $DSH_HOME/profiles/node_modules/dsh-token-stats(dsh 插件解析根,真实目录)
  2. 将组合行写入 $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/)