DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Suanpan — DSH Plugin for DeepSeek Harness
← Plugins

dsh-suanpan

Suanpan

三合一用量监控插件(算盘):DeepSeek 余额 / MiniMax Coding Plan / OpenCode Go 配额,/usage 命令 + composer 读条 + 悬浮窗面板。Unified usage monitor for DeepSeek balance, MiniMax Coding Plan and OpenCode Go quota in the dsh web GUI.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-suanpan@0.2.1
READMECompatibilityVersions

Compatibility and provenance

Suanpan is published as dsh-suanpan and currently resolves to version 0.2.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

0.2.1stable
8/24/2026
0.2.0stable
8/24/2026
0.1.3stable
8/24/2026
Show 3 more versionsCollapse versions
0.1.2stable
8/24/2026
0.1.1stable
8/24/2026
0.1.0stable
8/24/2026

Related plugins

Loading related plugins…

Latest
0.2.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
105.6 kB
Files
16
Surface
web
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
51
Last push
8/24/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.Ui Usage Billing@kenz1117/dsh-ui-usage-billingUsage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.

README

🫘 dsh-suanpan(算盘)

三合一用量监控插件:一个插件同时监控 DeepSeek 余额、MiniMax Coding Plan 配额、OpenCode Go 订阅配额,以 /usage 命令 + composer 读条 + 悬浮窗面板三种形态呈现。

Unified usage monitor for dsh web: DeepSeek balance · MiniMax Coding Plan quota · OpenCode Go subscription quota, in one plugin — /usage command, composer readout and a floating panel.


中文 · English

✨ 功能一览

能力说明
💳 DeepSeek 余额官方 /user/balance 端点:可用/赠送/充值明细 + 峰谷计价时段(北京时间工作日 09:00-12:00 / 14:00-18:00 峰价,周末全天谷价)
📊 MiniMax Coding Plan官方 /v1/coding_plan/remains 端点:每个模型的 Rolling / Weekly / Monthly 窗口配额、已用百分比、剩余倒计时
🎯 OpenCode Go官方 /zen/go/v1/usage 端点:Rolling (3d) / Weekly / Monthly 窗口已用百分比与重置时间
⌨️ /usage 命令/usage [deepseek|minimax|opencode] [rolling|weekly|monthly] [--json],支持别名(ds/mm/ocg),未指定 provider 时输出全部三家
🧲 Composer 读条输入框右下角常驻读条,按当前选中模型自动切换对应通道;其他 provider 自动隐藏;每 60s 刷新
🖥️ 悬浮窗面板侧边栏底部入口,左下角 dock 一行三家汇总(颜色区分健康度),点击展开详情面板,每 5 分钟自动刷新
🔒 密钥安全三家 API key 全部经 DSH 凭据 seam 在 host 端解析,绝不进入浏览器;key 名别名回退兼容不同环境

🔑 凭据配置(三选一,全配全显)

写入 ~/.dsh/.credentials.yaml:

DEEPSEEK_API_KEY: sk-...        # DeepSeek(兼容别名:无)
MINIMAX_API_KEY: sk-cp-...      # MiniMax(兼容别名:MINIMAX_CN_API_KEY)
OPENCODE_API_KEY: sk-...        # OpenCode Go(兼容别名:OPENCODE_GO_API_KEY)

也可设环境变量。缺哪个 key,对应通道在 UI 中显示 n/a,其余通道不受影响。

📦 安装

一键脚本(macOS/Linux):

bash <(curl -sL https://raw.githubusercontent.com/mrzhangkris/dsh-suanpan/main/install.sh)

手动安装:

# 1. 进 web profile
cd ~/.dsh/profiles/web

# 2. 装依赖(npm 或 pnpm 均可)
npm install dsh-suanpan --save
# 或 pnpm add dsh-suanpan

# 3. 在 package.json 的 dsh.profile.bundles 中加入 "dsh-suanpan"
# 4. 在 cordis.patch.yml 追加:
# - insert:
#     - id: suanpan
#       name: 'dsh-suanpan'

# 5. 重启 dsh web 并硬刷新浏览器

本插件已声明 cordis.patch.yml bundle patch,若通过 dsh plugin add 安装会自动合入。

🧮 使用

  • 输入 /usage 查看三家汇总报告
  • 输入 /usage minimax weekly --json 查看 MiniMax Weekly 窗口原始 JSON
  • 选中 DeepSeek/MiniMax/OpenCode 模型时,输入框右下角出现对应读条
  • 点击侧边栏底部算盘图标展开悬浮窗面板

🧩 实现说明

  • 借鉴:dsh-usage(Aisland-SJL, MIT)的 dock/panel 悬浮窗结构;dsh-usage-minimax-cn / dsh-usage-opencode-go / dsh-usage-deepseek(jooey, MIT)的端点语义与 Typert 分层。三者均为 MIT,本插件按 MIT 保留署名并重写实现。
  • 架构:host 端三家查询器(lib/logic/,纯 fetch、零依赖、可单测)→ Typert 远程服务 suanpan/snapshot → 浏览器端读条与悬浮窗共用一份归一化快照。
  • 测试:node --test test/ 覆盖归一化、key 别名回退、命令参数解析(12 用例)。

🗂️ 结构

lib/
├── index.js                # host 入口:/usage 命令 + Typert 网关
├── client.js               # 浏览器端:读条 + 悬浮窗
├── typert.host.js          # host Typert 清单
├── typert.remote-client.js # client Typert 清单
└── logic/
    ├── deepseek.js         # DeepSeek 余额 + 峰谷时段
    ├── minimax.js          # MiniMax Coding Plan 配额
    └── opencode.js         # OpenCode Go 配额
test/logic.test.js          # 冒烟测试

📄 License

MIT © mrzhangkris


English

A unified usage monitor for the DeepSeek Harness web GUI, covering DeepSeek balance, MiniMax Coding Plan quota and OpenCode Go subscription quota in one plugin.

Features

CapabilityDescription
💳 DeepSeek balanceOfficial /user/balance: available/granted/topped-up breakdown + peak/off-peak pricing window (Beijing weekdays 09:00-12:00 / 14:00-18:00 peak; weekends all-day off-peak)
📊 MiniMax Coding PlanOfficial /v1/coding_plan/remains: per-model Rolling/Weekly/Monthly quota, used %, countdown to reset
🎯 OpenCode GoOfficial /zen/go/v1/usage: Rolling (3d)/Weekly/Monthly used % and reset time
⌨️ /usage command/usage [deepseek|minimax|opencode] [rolling|weekly|monthly] [--json], aliases ds/mm/ocg, all providers when omitted
🧲 Composer readoutBottom-right chip that auto-switches by the currently selected model's provider; hides for other providers; refreshes every 60s
🖥️ Floating panelSidebar footer entry; bottom-left dock with one-line summary per provider (color-coded), click to expand details; refreshes every 5 min
🔒 Key safetyAll three API keys resolved on the host through the DSH credentials seam — never sent to the browser; alias fallback for key names

Credentials

In ~/.dsh/.credentials.yaml (or env vars):

DEEPSEEK_API_KEY: sk-...     # alias fallback: none
MINIMAX_API_KEY: sk-cp-...   # alias fallback: MINIMAX_CN_API_KEY
OPENCODE_API_KEY: sk-...     # alias fallback: OPENCODE_GO_API_KEY

Missing keys degrade gracefully: the corresponding channel shows n/a, others keep working.

Install

One-liner (macOS/Linux):

bash <(curl -sL https://raw.githubusercontent.com/mrzhangkris/dsh-suanpan/main/install.sh)

Or manually:

cd ~/.dsh/profiles/web
npm install dsh-suanpan --save
# add "dsh-suanpan" to dsh.profile.bundles in package.json
# append to cordis.patch.yml:
# - insert:
#     - id: suanpan
#       name: 'dsh-suanpan'
# restart dsh web and hard-refresh

Usage

  • /usage — all three providers
  • /usage minimax weekly --json — raw JSON for the MiniMax weekly window
  • Select a DeepSeek/MiniMax/OpenCode model to see the composer readout
  • Click the abacus icon at the sidebar footer to open the floating panel

Credits & License

Inspired by dsh-usage (Aisland-SJL, MIT) for the dock/panel UI and the dsh-usage-* series (jooey, MIT) for endpoint semantics and the Typert layering — reimplemented here, all MIT-licensed.

MIT © mrzhangkris