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. 8. 13.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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/)