dsh-token-heatmap
Manifest validdsh-token-pulse
English: README.en.md
本地 Token 用量热图插件,GitHub 风格日历视图,内置于 DSH Web 设置页。
环境要求
- Node.js ≥ 23.8(内置
node:zlib的 zstd 解码,无需额外安装);更早版本会回退到外部zstdCLI(sudo apt install zstd/brew install zstd)。 - DSH Web profile(
dsh web已运行)。
安装
# 从 npm(推荐,最短)
dsh plugin --profile web add dsh-token-pulse
# 或从 GitHub
dsh plugin --profile web add github:Hou-DL/dsh-token-pulse
# 或从 Gitee(国内访问更快)
dsh plugin --profile web add "git+https://gitee.com/HouDL/dsh-token-pulse.git"
重启后打开 设置 → Token Pulse 即可。
- 零网络、零计费:只读本地会话日志,不触碰任何计费 / 余额接口
- 持久化:历史落盘,删除会话不丢数据
- 多视图:周(按小时展开)/ 月(日历)/ 季度(近 90 天)/ 年(整年双行)
- 统计:今日 / 本周 / 本月 / 累计 + 按模型与供应商的 Top 5
截图
功能
| 模块 | 说明 |
|---|---|
| 视图切换 | 周 / 月 / 季度 / 年,颜色按视图内 25% / 50% / 75% / 100% 四档分档 |
| 周视图 | 每天 24 个小时柱,看高峰时段;可点击行查看当日 Top 5 |
| 月视图 | 日历格显示日期与当日用量 |
| 季度 / 年度 | GitHub 风格栅格,季度放大便于观察,年度双行排布 |
| 顶部统计 | 今日 / 本周 / 本月 / 累计,M / k 缩写 |
| 模型 Top 5 | 按模型或供应商查看,随视图窗口 / 点击日期动态切换 |
| 刷新 | 手动刷新 + 自动刷新(5 / 10 / 30 / 60 分钟,可关闭) |
| 语言 | 中 / 英文切换 |
常见问题
- 显示 0? 确认
$DSH_HOME/sessions下有含usage字段的会话日志。 - 会联网吗? 不会,纯本地统计。
- 时区? 固定北京时区,周一为周起始。
- 如何重置? 设置页右上角 ⋯ → 「重置历史」。
开发
pnpm install && npx tsdown # 构建
node --test src/ # 运行测试
License
MIT
Comments
Loading…
From the same category
by zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 8.3k
↓ 203/wk
Apache-2.0
TypeScript
Oct 2, 2026
dsh plugin --profile web add dsh-webby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
★ 4k
NOASSERTION
Python
Oct 2, 2026
dsh plugin --profile web add treg-dshby zouyuxuan122
在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 Muse Spark 1.3、MiMo V2.6 在内的前沿模型——完全免费,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, Mu
★ 655
MIT
JavaScript
Oct 2, 2026
dsh plugin --profile web add dsh-our-free-modelby V1ki
Use ChatGPT (Codex), Claude, and Grok (X Premium) subscriptions as DeepSeek Harness LLM providers — OAuth login in the web UI, no API keys
★ 417
↓ 2.7k/wk
MIT
TypeScript
Oct 1, 2026
dsh plugin --profile web add dsh-plugin-subscriptionsby Han-1413141
DeepSeek Harness session cost meter plugin: session/daily cost, budget, history, OpenCode Go quota, official & custom-provider balance, Codex-like token heatmap, peak/off-peak pricing with pre-switch
★ 362
↓ 30k/wk
MIT
JavaScript
Oct 2, 2026
dsh plugin --profile web add dsh-cost-meter