DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Quota Dashboard — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@wangyong1972/dsh-quota-dashboard

Quota Dashboard

适用于 dsh Web GUI 的可拖动配额/成本仪表板:通过官方 API 和本地账本,在一个可移动卡片中汇总 OpenRouter 和 DeepSeek 的余额与支出。

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

npx -y @deepseek-ai/dsh plugin --profile web add @wangyong1972/dsh-quota-dashboard@0.1.1
README兼容性版本

兼容性与来源证明

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

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

版本

0.1.1stable
2026/8/23

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
62.2 kB
文件数
7
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/8/23
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Usage@linxin666/dsh-usagedsh 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 模型。

README

dsh-quota-dashboard

English | 中文

A draggable quota & cost dashboard for the DeepSeek Harness (dsh) Web GUI. One floating card combines OpenRouter and DeepSeek balances and spend — from official APIs plus a local session-log pricing engine.


中文

一个为 DeepSeek Harness(dsh)Web GUI 打造的可拖拽额度/费用面板。一张悬浮卡片整合 OpenRouter 与 DeepSeek 的余额与花费——数据来自官方 API 加本地会话日志计价引擎。

功能

数据OpenRouterDeepSeek
余额(真实剩余)✅ 官方 /credits✅ 官方 /user/balance
赠送额度—✅ granted / topped-up
当前对话费用✅ 会话日志回放✅ 会话日志回放
今日 / 本周 / 本月✅ 官方 /auth/key✅ 今日:官方(平台 token)或回放
过去 1 小时✅ 本地记账✅ 回放

其他特性:

  • 可拖拽:按住卡片拖到任意位置,位置自动记住(localStorage)
  • 点击展开/收起 详情面板
  • 中英双语:跟随浏览器语言,面板内一键切换(持久化)
  • 色盲友好配色:区分信息不单靠颜色
  • 自动刷新(60s)+ 手动刷新按钮
  • API key 永不出机器:浏览器只访问本地路由 GET /api/quota-dashboard,密钥由宿主 credentials 服务解析

安装

方式一:npm(推荐,一行安装)

dsh plugin --profile web add @wangyong1972/dsh-quota-dashboard
# 重启 dsh web(bundle 层启动时加载),然后硬刷新浏览器(Cmd+Shift+R)

已发布到 npm:

方式二:从源码安装(开发/贡献)

git clone https://github.com/wangyong1972/dsh-quota-dashboard
dsh plugin --profile web add /path/to/dsh-quota-dashboard

配置(可选)

插件的 key 复用 DSH 已有的 credentials:

凭据用途
OPENROUTER_API_KEYOpenRouter 余额/用量(Settings → Models 页面设置)
DEEPSEEK_API_KEYDeepSeek 余额
DEEPSEEK_PLATFORM_TOKEN(可选)解锁 DeepSeek 官方「今日」用量(与控制台一致)。获取:登录 https://platform.deepseek.com → DevTools → Console → JSON.parse(localStorage.getItem('userToken')).value → 加入 ~/.dsh/.credentials.yaml

未配置 DEEPSEEK_PLATFORM_TOKEN 时,「今日」自动回放本地会话日志(准确,包含安装前历史)。

数据来源

  • 余额 / 赠送 / 日周月:官方 API(实时)
  • 当前对话 / 今日 / 1h:回放会话日志 × 官方价格引擎(OpenRouter 用 /models 价格表,DeepSeek 用官方定价)
  • 本地 ledger:$DSH_HOME/storages/quota-dashboard-ledger.jsonl(记账最近 7 天)

隐私

  • API key 只存在于宿主进程,通过 ctx.credentials 解析,不发送到浏览器
  • 无遥测、无外部上报
  • 价格表与官方 API 端点均为公开数据

许可

MIT。lib/pricing.js 移植自 dsh-web-billing(MIT),见 LICENSE。


English

A draggable quota & cost dashboard for the DeepSeek Harness (dsh) Web GUI. One floating card combines OpenRouter and DeepSeek balances and spend — from official APIs plus a local session-log pricing engine.

Features

DataOpenRouterDeepSeek
Balance (real remaining)✅ official /credits✅ official /user/balance
Granted credit—✅ granted / topped-up
This-chat cost✅ session-log replay✅ session-log replay
Today / Week / Month✅ official /auth/key✅ Today: official (platform token) or replay
Last hour✅ local ledger✅ replay

Also:

  • Draggable — grab and move anywhere; position persists (localStorage)
  • Click to expand/collapse the detail panel
  • i18n (zh/en) — follows browser locale, one-click toggle in the panel (persisted)
  • Colorblind-safe palette — never relies on color alone
  • Auto-refresh (60s) + manual refresh button
  • API keys never leave the machine — the browser only talks to the local route GET /api/quota-dashboard; secrets resolve via the host credentials service

Install

Option 1: npm (recommended, one line)

dsh plugin --profile web add @wangyong1972/dsh-quota-dashboard
# restart `dsh web` (bundle layers load at boot), then hard-refresh (Cmd+Shift+R)

Published on npm:

Option 2: from source (development / contributions)

git clone https://github.com/wangyong1972/dsh-quota-dashboard
dsh plugin --profile web add /path/to/dsh-quota-dashboard

Configuration (optional)

Keys reuse the harness credentials:

CredentialPurpose
OPENROUTER_API_KEYOpenRouter balance/usage (Settings → Models page)
DEEPSEEK_API_KEYDeepSeek balance
DEEPSEEK_PLATFORM_TOKEN (optional)Unlocks the official DeepSeek "today" usage (same data as the platform console). Get it: log in to https://platform.deepseek.com → DevTools → Console → JSON.parse(localStorage.getItem('userToken')).value → add to ~/.dsh/.credentials.yaml

Without DEEPSEEK_PLATFORM_TOKEN, "today" falls back to replaying local session logs (accurate, includes pre-install history).

Data sources

  • Balances / granted / daily-weekly-monthly: official APIs (live)
  • This chat / today / last hour: session-log replay × official price engines (OpenRouter /models table, DeepSeek official pricing)
  • Local ledger: $DSH_HOME/storages/quota-dashboard-ledger.jsonl (7-day retention)

Privacy

  • API keys live only in the host process, resolved via ctx.credentials — never sent to the browser
  • No telemetry, no external reporting
  • Price tables and official API endpoints are public data

License

MIT. lib/pricing.js is ported from dsh-web-billing (MIT); see LICENSE.