DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Token Dashboard — DeepSeek Harness 插件(DSH Plugin)
← Plugins

@lyk308/dsh-token-dashboard

Token Dashboard

DeepSeek Harness 实时看板:账户余额 + Token 使用量(按模型/工作区/缓存命中),本地读取会话日志 + DeepSeek /user/balance。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @lyk308/dsh-token-dashboard@0.1.6
README兼容性版本

兼容性与来源证明

Token Dashboard 以 @lyk308/dsh-token-dashboard 发布,当前版本为 0.1.6。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.6stable
2026/8/31
0.1.0stable
2026/8/25

相关插件

正在加载相关插件…

最新版
0.1.6
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
534.2 kB
文件数
9
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
47
最近提交
2026/8/31
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

README

dsh-token-dashboard

A DeepSeek Harness plugin that puts your real-time account balance, token usage, and cost estimation on one dashboard. Local-first: reads your DSH session logs and the DeepSeek /user/balance API. No extra cloud account — it reuses your existing DeepSeek key.

Screenshots

Dashboard

Token usage & models

Features

  • 💰 Account balance — live balance from the DeepSeek official /user/balance API (CNY/USD aware), with force-refresh.
  • 📊 Token usage — Today / This month / All-time cards, plus request count, cache hit rate, and session count.
  • 💵 Cost estimation — accurate DeepSeek V4 pricing, peak/off-peak aware, per-model cost, and Today / This month / All-time spend.
  • 📈 Usage distribution — toggle by model / by workspace, and by token / by cost. Proportional share bar (top 8 + "其他" aggregate). Percentages match the bar exactly.
  • 📉 Daily trend — an interactive mini area chart (grid + axes + date labels) of daily cost or tokens, with hover tooltips per day.
  • 🗓 Activity heatmap — 30 / 90 / 180-day switch; green-shade intensity maps token usage.
  • 🤖 Model breakdown — a table of Req / Input / Cache / Output / Cost per model.
  • 🗂 Recent sessions — per-session total / cost / model / time, sorted by most recent activity.
  • 📅 Global time window — switch the whole dashboard between 近7天 / 近30天 / 近90天 / 全部 (Today / This-month stay fixed).
  • 📤 Export — one-click download of the current stats as CSV or JSON.

Installation

This is a standard DSH bundle plugin, so install it with the official CLI:

# From GitHub
dsh plugin --profile web add github:lyk308/dsh-token-dashboard

# From npm
dsh plugin --profile web add @lyk308/dsh-token-dashboard

After installing, refresh the web UI. The dashboard appears under Settings → 用量看板 (Usage Dashboard).

Note: the plugin reads the DeepSeek API key from DSH's credentials service (DEEPSEEK_API_KEY). Without a valid key the balance card shows a hint; token usage still works because it comes from local session logs.

Usage

  1. Open Settings → 用量看板.
  2. In the top bar, pick a time window (近7天 / 30天 / 90天 / 全部).
  3. Switch the share bar between by model / by workspace and by token / by cost.
  4. Hover the trend chart to see a single day's value.
  5. Use 导出 CSV / 导出 JSON to download the current stats.

Configuration

The plugin works out of the box. The host half resolves sensible defaults in lib/index.js:

  • sessionsRoot — defaults to $DSH_HOME/sessions.
  • balanceCacheMs — balance cache TTL (default 300000 ms = 5 min).
  • sweepIntervalMs — stats refresh interval (default 60000 ms).

Cost estimation uses DeepSeek's official V4 pricing (CNY per 1,000,000 tokens) with peak/off-peak billing: peak = Mon–Fri 09:00–12:00 & 14:00–18:00 (off-peak is half price). Prices live in the MODEL_PRICES map in lib/index.js — edit it if DeepSeek changes prices.

Development

  • lib/index.js — host half: session scanning (multi-frame zstd), token aggregation, cost estimation, per-window filtering, balance proxy.
  • lib/client.js — client half: the settings.section UI, trend chart, export, share toggles.

Edit lib/client.js → refresh the page to see changes. Edit lib/index.js → restart the DSH web profile.

License

MIT

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。