Max-Samson/dsh-usage-chart 预览 preview

Max-Samson/dsh-usage-chart

一个用于实时Token用量、成本估算、每轮图表和DeepSeek API余额的DeepSeek Harness Web插件。

Project Overview项目介绍

This is a DSH-native plugin that adds a usage, cost, and account balance dashboard for DeepSeek Harness Web. The plugin inserts a compact indicator bar just below the conversation composer, which displays input/output token counts, cache hit ratio, estimated cost, active model, and a multi-segment context pressure bar. Users can click this indicator to open a full zero-dependency SVG dashboard that shows detailed per-turn usage history across an entire session. It is compatible with DSH version 0.1.0-rc.6 and newer, and adapts to the official DSH session snapshot API for older and newer DSH builds.

It comes with a wide range of features tailored for DeepSeek API cost tracking, including per-round cost breakdowns, duration overlays, cost anomaly markers, context compaction diagnostics, peak/off-peak tiered billing, and official dual-currency pricing. It supports one-click toggling between USD and CNY display, and this preference is persisted in the browser’s localStorage. The entire interface automatically matches the active DSH theme (light/dark) and language setting (English/Chinese) with no extra configuration required from the user. This consistent integration makes it easy to use alongside your existing DSH workflow without disrupting your existing layout or preferences.

The plugin follows strict data and security boundaries, pulling all token and context data directly from the active DSH session, and never exposes the user’s DeepSeek API key to the browser or external services. It requires Node.js 20 or newer to build, and has no native binary dependencies, so it runs on all major operating systems including macOS, Linux, and Windows. It is released under the open source MIT license, so users can modify it or override built-in pricing via a custom pricing.json file if they need to accommodate custom or updated model pricing.

这是一个专为DeepSeek Harness打造的原生插件,为DSH Web提供DeepSeek API用量、成本和账户余额的可视化分析仪表盘。插件会在对话输入框下方添加一个紧凑指示器,展示输入输出Token、缓存命中率、估算成本、当前激活模型以及多分段上下文压力条。点击指示器即可打开零依赖SVG仪表盘,查看每轮对话的完整使用历史。

仪表盘支持多种功能,包括按轮统计的成本视图、时长覆盖层、成本异常标记、上下文压缩诊断、高低峰时段分级计费和官方双币种定价显示。它还支持在美元和人民币之间一键切换,设置会保存在浏览器本地存储中,整体界面会自动适配DSH的系统主题和语言设置。

插件兼容DSH 0.1.0-rc.6及以上版本,适配不同DSH版本的会话事件API,支持Node.js 20以上版本,无原生依赖,可在全平台运行。它遵循严格的数据安全边界,所有数据仅来自DSH会话,不会向外部泄露API密钥,采用MIT许可完全开源免费。

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

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

READMEREADME

dsh-usage-chart

A usage, cost, and account-balance dashboard for DeepSeek Harness Web.

npm version CI License

简体中文 · Report an issue · Changelog (EN) · 更新日志(中文)

Interface preview: light English on the left and dark Simplified Chinese on the right. Both variants follow the DSH theme and in-app language setting.

Light-theme English usage-panel demo
Light theme · English
Dark-theme Simplified Chinese usage-panel demo
Dark theme · 简体中文

Both screenshots use fictional demo data only. They contain no real session content, token counts, costs, balances, or API keys.

The plugin adds a compact indicator below the conversation composer. It shows input/output tokens, cache-hit ratio, estimated cost, active model, a multi-segment context-pressure bar (system/tools/messages breakdown, v1.1.0), and DeepSeek account balance. Click it to open a zero-dependency SVG dashboard with per-turn usage history — including a cost view (every bar shows its own cost value, not just the current round), a duration overlay, anomaly markers, an explainer tooltip (tokens + cost + model + billing tier + duration/TTFT/TPS + user input source attribution: human/agent/continuation, v1.1.0 + end reason), horizontally scrollable per-round bars (all rounds, fixed slim bar width, auto-scroll to latest), a dedicated Context & Compaction Diagnostics section (system/tools/messages token composition, compaction timeline, freed tokens, summarize cost, context occupancy suggestions, v1.1.0), a dismissible ≈ ¥/$0.00xx badge on each assistant message, peak/off-peak tiered billing with a live red/green billing-tier tag in the panel (red = peak, green = off-peak, v1.0.1), and official dual-currency pricing (CNY from the Chinese pricing page, USD from the English pricing page — no FX conversion, v1.0.1).

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-cursor-subscription 下一个 Next dsh-plugin-d399 →