skkjkk/dsh-usage-dashboard 预览 preview

skkjkk/dsh-usage-dashboard

DSH(DeepSeek Harness)使用统计仪表盘插件:支持令牌数、成本、时长、会话聚合,并提供趋势、热力图和日历视图。

Project Overview项目介绍

dsh-usage-dashboard is a native bundle plugin built exclusively for the DeepSeek Harness (DSH) Web GUI. It enables DSH users to view local aggregated statistics of their token usage, estimated cost, session duration, and session details directly within DSH, without sending any session data to external servers. The plugin reads DSH’s local session data directly and adds a dedicated dashboard entry under DSH’s Settings → Data Dashboard menu after installation. To install, users can run the DSH CLI command dsh plugin --profile web add @skkjkk/dsh-usage-dashboard for automatic setup, or manually add the package to their DSH web profile’s bundle list if they do not use the CLI.

This plugin is designed for any DSH user who wants to track their LLM usage and manage their spending over time. After opening the dashboard, users can adjust filters for time range, selected models, and DSH work projects to narrow down the data they want to analyze. All filter and display preferences are cached in the browser’s localStorage, so they persist across DSH restarts and plugin reloads. The dashboard provides multiple visualizations including KPI overview cards, trend graphs, heatmaps for active usage, distribution charts, session detail tables, a model performance radar chart, and a cache hit rate trend line.

dsh-usage-dashboard is released under the open-source Apache-2.0 license, with no associated cost or paid features. It includes an internally maintained pricing table that covers 245 models, and supports DeepSeek V4’s peak/off-peak pricing structure that launched in August 2026. All data aggregation is done locally using an optimized incremental engine that processes existing sessions on startup and incrementally updates data as new sessions are created, checking for changes every 60 seconds. This engine delivers millisecond response times for all dashboard views after initial startup. Users should note that all cost values shown are estimates only, and do not represent actual billing from LLM providers.

这是专为 DeepSeek Harness(DSH)Web 界面开发的原生 DSH bundle 插件,用于在本地展示 DSH 的用量统计与费用预估看板。插件会直接读取 DSH 本地存储的会话数据,在「设置 → 数据看板」页面提供完整统计功能,所有数据聚合与统计均在本机完成,不会向任何外部服务上传会话内容或衍生数据。推荐通过 DSH CLI 安装,执行对应命令即可自动完成配置。

插件面向需要追踪自身 DSH Token 使用情况与费用消耗的用户,提供多维度的用量分析能力。核心功能包含 KPI 总览卡片、多粒度趋势图、分时活跃热力图、模型与项目占比环形图、日历热力图、会话明细记录表、模型效能雷达图、缓存命中率趋势图。用户可按时间范围、模型、项目筛选数据,筛选偏好和显示设置会缓存在本地,重启 DSH 后仍会保留。

本插件采用 Apache-2.0 许可证开源,内置的定价表覆盖了 245 个模型,支持 DeepSeek V4 自 2026 年 8 月起实施的工作日高峰/空闲时段分阶梯费规则。所有数据处理都在本地完成,不会上传任何用户会话数据,保障隐私。插件采用增量聚合引擎优化性能,启动后视图请求均可在毫秒级返回,费用为估算值,不代表实际账单。

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

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

READMEREADME

dsh-usage-dashboard

面向 DSH(DeepSeek Harness)Web GUI 的本地用量看板:Token、费用、时长与会话明细,全部在本机聚合,不上传任何会话内容。

🌐 语言 / Language: English · 中文

npm License Changelog

dsh-usage-dashboard 是一个 DSH bundle 插件。它直接读取 DSH 本地会话数据,在 设置 → 数据看板 中提供用量统计。所有聚合都在本机完成,不会向外部服务发送任何会话内容。

交互参考 VibeCafe.ai 的 Vibe Usage,提供指标切换、分布 hover 与明细浏览;统计与聚合完全在本地完成。

筛选器与 KPI 总览

功能

筛选与时间范围

顶部筛选器支持时间范围 今天 / 24H / 7D / 30D / 90D / 自定义(自定义可填起止日期);模型筛选为多选、按厂商分组(可展开勾选具体模型,选中后按钮显示「N项」);项目下拉可选单个项目;有筛选时可一键清除。所选范围、筛选与显示偏好保存在本地(localStorage),重开设置或重载插件后仍保留。数据刷新期间显示「统计中」。

KPI 总览

共 9 张指标卡片:预估费用、总 Token、输入 / 输出 / 缓存 Token、活跃时长、总时长、会话数、总消息数、用户消息数。每张卡片带相对上一周期的环比百分比(基线为零时隐藏)。

  • 点击费用卡片在 ¥ / $ 间切换;点击总 Token 或缓存 Token 卡片在国际单位(K/M/B)与中文单位(万 / 亿)间切换,四个 Token 卡片共用同一单位。
  • 选择模型筛选后,时长与会话类卡片自动收起,仅保留费用与 Token 五项。
  • 「预估费用」「活跃时长」「总时长」标题旁的 ⓘ 可展开说明弹窗(定价覆盖与峰谷规则、两种时长口径差异)。

趋势图

随所选范围自动切换粒度:今天 / 24H 为每小时,7D / 30D 为每日,90D 为每周(自定义范围按跨度:≤48 小时用小时、≤62 天用天,更长用周)。可在 Token / 费用 / 时长 三种口径间切换:

  • Token:输出 / 输入 / 缓存分段堆叠,图例可单独显隐;
  • 费用:按桶汇总的估算费用;
  • 时长:区分活跃时长与总时长,图例同样可单独显隐。

点击任意柱子高亮该项(其余变淡),再次点击空白处取消;悬停查看明细。X 轴标签按固定步长标注(今天每 3 小时一格、30D 每 4/5 天一格、90D 每 2 周一格)。

每日趋势与分时活跃热力图

分时活跃热力图

7 行(周几)× 24 列(小时) 网格,可在 Token / 费用 / 时长 三种指标间切换;悬停任意单元格显示精确数值与时刻,图例为 少 → 多。(上图下半部分即为此图。)

模型分布与项目分布

两张环形图分别从 Token(或费用)视角拆解用量:模型分布按模型拆分,项目分布按项目(基于会话 cwd 与 DSH workspace 归属)拆分。可在 Token / 费用间切换;占比前 6 项各有固定配色,其余聚合为「其他」,总量守恒。悬停图例项或扇区时,其余项与扇区变淡,圆环中心切换为当前项的 Token 与费用摘要。

模型分布与项目分布

活跃热力图(日历)

最近 40 周的 7 行 × 40 列 日历网格,单元格固定为正方形并带圆角;按每日 Token 量分 8 档着色(无 Token / ≥1M / ≥10M / ≥30M / ≥60M / ≥100M / ≥200M / ≥250M)。边缘日期的浮动 tooltip 自动限制在视口内。

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

← 上一个 Prev computer-user 下一个 Next dsh-tool-memory →