dfkai/dsh-board 预览 preview

dfkai/dsh-board

DeepSeek Harness 侧栏用量与成本面板:官方峰谷计价 · 1M 上下文 · 词勋段位 · 成就与热力图

Project Overview项目介绍

dsh-board is a native plugin built exclusively for DeepSeek Harness (DSH) that adds a sidebar usage and cost dashboard to the DSH web GUI. It can be installed either via npm, the recommended method, with the command dsh plugin --profile <profile> add dsh-board@0.2.0, or directly from GitHub with dsh plugin --profile <profile> add github:dfkai/dsh-board@v0.1.0. After installation, you need to restart your target DSH profile for the plugin to take effect, and you can verify the installation by dumping your DSH config to check for the dsh-board layer.

This plugin provides billing estimation based on DeepSeek’s official pricing, including automatic peak/off-peak pricing that started on August 17, 2026 Beijing time, with peak hours 09:00-12:00 and 14:00-18:00 and half price during off-peak hours. It also visualizes 1M context usage, shows per-round token trends, cumulative output curves, a 12-week heatmap, and stats broken out by individual DeepSeek models. It includes fun gamified features like ten-level word achievement ranks and consecutive check-in badges, making it ideal for frequent DSH users who track API spending.

All data used by dsh-board comes from local DSH public interfaces, and the plugin never makes any outbound third-party network requests; all calculations run fully locally on your machine. It only stores the panel collapse state in your browser’s localStorage, and registers only read-only projections in DSH without writing any host data. The cost displayed by the plugin is only an estimate, not an official billing statement, so all actual charges are based on your DeepSeek platform billing statement. The project is open source under the MIT license, and requires a token-meter patch for DSH to correctly count reasoning tokens.

dsh-board 是专为 DeepSeek Harness (DSH) 开发的原生侧栏用量与成本面板插件,会在 DSH Web GUI 的左下角添加功能入口,提供 DeepSeek API 调用的计费估算、token 用量统计、上下文占用可视化、成就与段位跟踪等功能,所有估算都基于官方定价,支持峰谷计价规则和分模型统计。

可以通过 npm 或 GitHub 源码直接安装,安装后重启对应 DSH 配置档就能在左侧栏底部看到横版功能徽章入口。插件支持禁用和自定义配置,还提供了十级「词勋」段位、连续打卡成就等趣味功能,适合日常频繁使用 DSH 需要实时掌握 API 用量成本的用户。

全部数据来自本机 DSH 的公开接口,不会发起第三方网络请求,所有计算都在本地完成。成本是估算值,不作为官方计费凭证,最终以 DeepSeek 平台账单为准。项目采用 MIT 许可证开源,对 DSH 版本有一定要求,需要修复 token-meter 才能正确统计推理 token。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
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-board@0.2.0

把 dfkai/dsh-board 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-board

简体中文 · English

给 DeepSeek Harness(DSH) 的 侧栏用量与成本面板:把 DeepSeek 后台风格的用量统计装进 Web GUI 左下角。

dsh-board demo

npm version license plugin CI

特性

  • 💰 计费估算:官方价目 + 2026-08-17 起北京时间峰谷自动切价(高峰 09:00–12:00、14:00–18:00,闲时半价);推理 token 按输出价计入;口径详见下文
  • 🧠 1M 上下文:占用 %、剩余预算、系统/工具/消息构成堆叠条、子代理耗时
  • 📈 可视化:每轮输入/输出走势、累计输出曲线、12 周日热力图、分模型统计、全局会话榜
  • 🏆 「词勋」段位:十级谐音梗阶梯(🌱 未醒词芽 → 🧲 万词王 → ⚡ 万亿词神),会员卡式展示:进度条、解锁 ETA、每级权益
  • 🔥 成就:连续打卡天数 + 9 枚数据驱动徽章
  • 🎨 视觉:Geist 克制风、明暗主题适配、中英双语、零装饰动画
  • 🖼 横版徽章:收起为菜单宽瓷砖(段位标签 + ¥ 花费 + 总 token + 今日本周);点击后徽章升到面板顶部展开,再点收起

安装

# npm(推荐)
dsh plugin --profile <profile> add dsh-board@0.2.0
# 或从 GitHub 直装
dsh plugin --profile <profile> add github:dfkai/dsh-board@v0.1.0

装完重启该 profile(或新起 dsh --profile <profile>),左侧栏底部即可看到徽章。验证:

dsh --profile <profile> --dump-config   # 应出现 # == dsh-board 层

harness 版本要求:推理 token 按输出价计入用量需要 harness 的 token-meter 修复。补丁已提交官方社区(discussions/2338,可合并分支 dfkai/deepseek-harness@fix/token-meter-reasoning-output)。旧 harness 上分模型/每轮图表仍会计入推理 token,但累计总量与成本会少算推理部分。

禁用与配置

插件层按 id: board 寻址,可用 patch 关闭或改配置。在你的 profile 的 cordis.patch.yml 里追加:

- id: board
  disabled: true   # 关闭本面板

disabled 支持 !!js 表达式,也可以按条件开关。价格表等常量为源码级配置(见下方计费口径),改价后重新构建。

计费口径

面板显示的是估算值,不是计费凭证,以 DeepSeek 平台账单为准。

标准价(¥ / 1M tokens,2026-08-15 抓取自官方价目):

模型 缓存命中 缓存未命中 输出
deepseek-v4-pro 0.025 3 6
deepseek-v4-flash 0.02 1 2
deepseek-chat(旧) 0.5 2 8
deepseek-reasoner(旧) 1 4 16

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-ui-progress 下一个 Next dsh-builtin-toggles →