1HelloMan1/dsh-usage-dashboard-plus

DeepSeek Harness 使用仪表板,包含 API 余额、每日支出、外部视觉调用核算、按模型统计、调用日志、缓存率、TTFT 及 CSV 导出。

Project Overview项目介绍

This is a native DeepSeek Harness (DSH) plugin that adds a persistent sidebar footer widget to the DSH web UI, built exclusively for DSH and maintained as an actively developed fork of the original dsh-usage-dashboard. It displays your current DeepSeek API account balance and estimated daily spending, pulled from your local DSH session logs. Unlike the original version, this fork adds support for tracking spending from external vision model calls made by plugins like dsh-vision-fallback, which are not logged in default DSH session records. It already bundles a pre-configured pricing entry for the Mimo V2.5 vision model, so those calls get cost estimates immediately without extra setup.

The plugin is intended for DSH users who want to keep a close eye on their DeepSeek API spending, especially users who regularly call vision models outside DSH's core inference pipeline. After installation, the plugin automatically scans local DSH session logs to calculate total daily estimated spending based on the model per-token pricing you configure. It lets you view detailed usage metrics broken down by model and provider, including call count, latency, throughput, input, output and cache token counts, and you can export filtered call logs to a CSV file for offline analysis.

The plugin is released under the open source MIT license, and it requires no local build step to install. You can install it directly via the DSH CLI with the command dsh plugin --profile web add dsh-usage-dashboard-plus, then restart the dsh web process and hard refresh your browser to see the widget. Do not enable multiple usage statistics plugins at the same time in the same DSH profile, as this will cause duplicate counting and skewed statistics. All configuration options are hot-reloaded, and can be edited directly in your ~/.dsh/settings.yaml file.

这是专为 DeepSeek Harness (DSH) 开发的原生使用统计面板插件,是原 dsh-usage-dashboard 的活跃维护分支,已合并原 dsh-stats-dashboard 的全部功能。它会在 DSH 网页端侧边栏底部添加一个小部件,显示当前 DeepSeek API 的账户余额和当日预估消费,点击可打开完整详情面板。它额外支持统计外部视觉模型调用的消费,这是基础版没有的功能。

适合需要追踪自己 DeepSeek API 调用消费、尤其是经常使用外部视觉模型调用插件的 DSH 用户。安装后,插件会自动读取 DSH 本地存储的会话日志,按照配置的模型单价计算当日预估总消费,还支持分模型、分供应商查看调用次数、延迟、吞吐量、Token 使用量等详细指标。你也可以将筛选后的调用日志导出为 CSV 文件做进一步分析。

插件以 MIT 协议开源,不需要本地构建步骤,可通过 DSH 的插件命令直接安装。安装后需要重启 dsh web 服务并硬刷新浏览器页面,才能在设置页旁边看到侧边栏底部部件。同一 DSH 配置文件不要同时启用多个统计类插件,否则会导致统计数据重复计算,所有配置支持热重载。

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 dsh-usage-dashboard-plus

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

READMEREADME

dsh-usage-dashboard-plus

English | 中文

A fork of dsh-usage-dashboard with external vision-call accounting: a sidebar-footer widget for DeepSeek Harness (dsh) showing your DeepSeek API balance and today's spend, estimated from session logs.

This is now the only actively maintained usage-dashboard repository. The former dsh-stats-dashboard implementation has been fully merged into Plus; do not install both statistics plugins in the same profile.

What "Plus" adds

  • Counts external vision-model calls (e.g. dsh-vision-fallback's Mimo V2.5 requests) into the today-spend stats via an optional JSONL usage log — the base package only counts calls recorded in DSH session logs.
  • Bundles a pricing entry for mimo-v2.5 (opencode Zen GO rates) so those calls get a cost estimate out of the box (override via prices).

Features

  • API balance — resolves the DeepSeek key through the DSH credentials service and queries the balance endpoint (cached).
  • Today's spend (est.) — scans session logs (and the external usage log) for today's token usage × price table.
  • Sidebar footer widget — 余额 ¥xx · 今日 ¥xx, click to open a detail card (calls, tokens, per-model breakdown, pricing notes).
  • Peak/off-peak pricing schedule — date-gated DeepSeek rate tables (2026-08-17 onward).
  • Full usage dashboard — per-provider/per-model calls, latency, TTFT, throughput, input/output/cache tokens, cache rate, and estimated cost.
  • Call-log analysis — filter and search by session, provider, and model; inspect recent calls and export filtered rows as CSV.
  • Inherited Stats implementation — the usageDashboard session projection, 500-row call-log cap, whole-session model aggregates, and replay-safe historical statistics are included in Plus.
  • No build step — host half (lib/index.js) + browser bundle (lib/client.js) via the dsh.client mechanism.

Migrating from dsh-stats-dashboard

  1. Remove or disable the old dsh-stats-dashboard plugin from the web profile.
  2. Install dsh-usage-dashboard-plus.
  3. Restart dsh web and hard-refresh the Settings page.

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

← 上一个 Prev mindspace-dsh-session-memory 下一个 Next dsh-milvus →