juhe291/dsh-token-panel
DeepSeek Harness的角落HUD,让您一眼掌握会话的token压力、各模型费用及日/月使用量,支持编辑预算和余额,自动追踪您的消费。右下角常驻的Token仪表盘:实时查看会话压力、按模型估算成本。预算与余额一键修改,每日每月使用情况皆有记录。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds a persistent token usage HUD to the DSH web interface. The plugin is installed via the DSH CLI, with the recommended installation method pulling pre-built packages from npm, so you do not need to build the code locally on your machine. The recommended installation command is dsh plugin --profile web add dsh-token-panel@[exact-version], as using @latest can sometimes pull an older version due to DSH's supply chain age checks. The HUD stays anchored to the lower right corner of the interface by default, but can be dragged anywhere on the screen, and remembers your preferred position across browser refreshes.
After installation, you just need to restart your DSH profile and refresh the browser to see the tiny token capsule appear in the corner. Clicking the capsule expands the full dashboard, which has two separate views: a real-time view and a statistics view. The real-time view shows current session token pressure, accumulated consumption, and estimated cost for the active session, with an interactive SVG curve that updates automatically as new tokens are generated. The statistics view aggregates all historical usage across sessions, showing daily and monthly totals, estimated cumulative cost, and lets you edit your monthly budget or account balance directly in the UI without editing config files.
The plugin is released under the permissive MIT license, so it is free to use, modify, and distribute under the terms of the license. It ships with DeepSeek's official pricing table pre-configured, and will automatically switch to the new peak/off-peak pricing that goes into effect August 17, 2026, so no manual configuration changes are needed after that date. All usage statistics are stored locally on your machine in JSONL format, so your historical data persists across restarts and app reloads without needing cloud sync. If you choose to install from source code instead of the pre-built npm package, you will need Node.js 22.5 or newer to successfully build the plugin locally.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,会在DSH网页界面右下角添加一个常驻的Token用量HUD面板,支持实时统计会话Token压力、估算会话花费、展示消耗历史曲线,还提供按日/按月的用量统计功能。面板支持拖拽调整位置,会记住默认位置,刷新页面后不丢失。可以通过DSH自带的CLI命令从npm安装,无需本地构建。
这款插件面向需要追踪DeepSeek API Token消耗和成本的DSH用户。安装完成后,只需重启DSH配置文件并刷新浏览器,就能在右下角看到Token胶囊。单击胶囊即可展开面板,面板支持实时视图和统计视图两种模式。交互逻辑清晰:单击打开、拖动移动、长按唤起位置菜单,可将默认位置设为四个预设角落或自定义位置。
插件采用MIT许可证开放使用,默认内置DeepSeek官方价目表,2026年8月17日调价后会自动切换峰谷计价,无需手动修改配置。统计数据以JSONL格式本地落盘存储,重启后不会丢失。从源码安装需要Node.js 22.5或更高版本,推荐使用npm安装以避免本地构建需求。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-token-panel(juhe291/dsh-token-panel)
仓库:https://github.com/juhe291/dsh-token-panel
本站详情页:https://www.yhbd.top/plugins/juhe291-dsh-token-panel/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-08-17 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-token-panel@0.4.7
把 juhe291/dsh-token-panel 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-token-panel
实时 Token 消耗 HUD 插件 —— 为 DeepSeek Harness 提供右下角常驻的 Token 仪表盘:实时会话压力、会话花费、历史曲线、按日/按月统计,面板跟随当前对话,可拖拽、可设默认位置。
🌐 中文 | English
✨ 亮点
| 💰 按模型分别计价 | flash / pro 各自套官方价表,混用模型的会话也估得准 |
|---|---|
| ⏱️ auto 峰谷价 | 2026-08-17 调价零时自动切换峰谷价,无需改配置 |
| 🫧 悬停即见数值 | 实时曲线 Steam 式跟随气泡,统计曲线悬停数据点弹值 |
| 🧊 毛玻璃面板 | 半透明磨砂玻璃,深浅色主题统一,胶囊最透 |
| 🎛️ 时间拖动条 | 实时回看历史曲线,统计翻查更早日期段 |
| ✏️ 点击即改预算 / 余额 | 统计视图行内编辑,余额随 token 消耗本地递减 |
| 🖱️ 拖拽 + 长按位置菜单 | 四角预设 + 自定义默认位置,位置跨刷新记忆 |
| 📊 按日 / 按月持久化统计 | JSONL 落盘,重启不丢,越用越完整 |
📷 封面中的两张面板均为真实界面截图(左:实时视图;右:统计视图)。
安装
从 npm 安装(推荐)
dsh plugin --profile web add dsh-token-panel@0.4.7
npm 包直接使用打包好的 lib/ 产物,无需本机构建。命令里的版本号请写当前最新版(发布新版本后同步更新此处,见 发布新版本)。
⚠️ 为什么要写精确版本号? 新发布的版本(不足约 24 小时)会被 DSH 的 supply-chain 年龄校验拦截,
@latest可能被 pnpm 解析回较早版本;显式写版本号才能保证装到最新且修好的版本。包龄超过门槛后@latest才可靠。
⚠️ 装到了旧版本? 若安装后版本不是最新,改用精确版本重装(如上命令),并确认
npm view dsh-token-panel dist-tags.latest显示的是最新版。
从 GitHub 安装
dsh plugin --profile web add github:juhe291/dsh-token-panel
从本地路径安装
dsh plugin --profile web add C:\path\to\dsh-token-panel
安装完成后 重启 profile,刷新浏览器,右下角出现 TOKEN 胶囊。
⚠️ pnpm ≥ 10 拦截 Git 构建脚本:首次安装若提示
ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED,按提示把报错中的allowBuilds条目加入 profile 目录下的pnpm-workspace.yaml,然后重跑安装命令。这是 pnpm 的安全机制(Git 依赖需要显式允许执行构建脚本),本包已自带prepare构建脚本与提交好的lib/产物,允许后即可正常安装。
⚠️ 从 GitHub / 本地安装需要 Node ≥ 22.5:源码安装会执行
prepare构建(pnpm 11.7 由packageManager字段固定,依赖node:sqlite),Node 20 会构建失败。推荐从 npm 安装——无需构建。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Han-1413141/dsh-cost-meter
wssfk12138/dsh-damage-pulse
songoao25/dsh-bottom-info-bar
Phant0Meow/dsh-meow-cachebilling
Rianico/dsh-better-edit
Ghost011118/dsh-balance-meter
ai-shushu/dsh-quota-meter
TwotwoPiggy/dsh-balance