DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-balance-tide

Balance Tide

DeepSeek 余额 + 峰谷计价潮汐提示插件: 在 dsh Web UI 输入框下方显示账户余额、本会话估算消耗,并在余额前提示当前峰/谷价格档位、距下一次切换的倒计时与使用建议

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

npx -y @deepseek-ai/dsh plugin --profile web add github:huanyuLv/dsh-balance-tide#8805c80eeaae26d40156cea9162091a6ab01311e
README兼容性版本

兼容性与来源证明

Balance Tide 以 dsh-balance-tide 发布,当前版本为 0.4.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.4.0stable
2026/8/22
0.3.0stable
2026/8/21
0.2.0stable
2026/8/21

相关插件

正在加载相关插件…

最新版
0.4.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Usage@linxin666/dsh-usagedsh Web GUI 的使用统计插件:检测各提供商余额和编码计划配额,并提供实时令牌使用记录,以及当前提供商的专属宠物气泡Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。Ui Usage Billing@kenz1117/dsh-ui-usage-billingDeepSeek Harness 的用量计费仪表板:侧边栏成本指标和完整的仪表板模态窗口,依据当前多提供商目录定价,并汇总会话日志中的实际用量。

README

dsh-balance-tide

English | 简体中文

DeepSeek Harness (DSH) Web plugin: account balance + peak/off-peak pricing tide indicator.

A live readout row under the composer:

[standard] peak pricing starts in 2d 5h | Balance ¥28.78 | ~¥0.42 this session | ?

Once peak/off-peak pricing takes effect (2026-08-17), the badge and countdown follow Beijing time in real time:

[off-peak] peak in 2h 15m | Balance ¥28.78 | ~¥0.42 this session | ?   ← off-peak hours
[peak] off-peak in 1h 30m | Balance ¥28.78 | ~¥0.42 this session | ?   ← peak hours

Features

  • Pricing badge: standard (before 2026-08-17) / peak / off-peak, judged live in Beijing time
  • Countdown: time remaining until the next pricing switch, ticking every second — plan your usage ahead
  • Balance: live balance from the official /user/balance endpoint (granted / topped-up split)
  • Session cost: estimated at current-period prices (reuses sessionProjections; same-turn/step samples replace rather than double-count)
  • Hover details: full price tables for the current and the next period, the peak/off-peak gap (peak = off-peak × 2), peak windows, and usage advice
  • ? icon: opens the official pricing page https://api-docs.deepseek.com/zh-cn/quick_start/pricing/
  • Zero config: reuses DEEPSEEK_API_KEY from DSH credentials — no key in the repo, ever
  • i18n: UI follows the interface language (中文 / English)

Peak/off-peak schedule (Beijing time)

Per the official pricing page (2026-08 edition, last verified 2026-08-15):

  • From 2026-08-17 00:00, peak/off-peak pricing applies; before that, current flat prices
  • Peak windows: 09:00–12:00 and 14:00–18:00; all other hours are off-peak
  • Off-peak = half of peak
Model (per 1M tokens)Flat (hit / miss / output)Off-peakPeak
deepseek-v4-flash0.02 / 1 / 20.05 / 1.5 / 4.50.10 / 3.0 / 9.0
deepseek-v4-pro0.025 / 3 / 60.15 / 4.5 / 13.50.30 / 9.0 / 27.0

Install

From npm (recommended)

dsh plugin --profile web add dsh-balance-tide

From the Git URL

dsh plugin --profile web add https://github.com/huanyuLv/dsh-balance-tide

From a local directory

dsh plugin --profile web add file:/path/to/dsh-balance-tide

Restart dsh web to take effect. Requires pnpm (npm i -g pnpm).

Configuration (in $DSH_HOME/profiles/web/cordis.patch.yml)

- id: dsh-balance-tide
  config:
    refreshIntervalMs: 300000   # how often the host polls the balance API
    clientPollIntervalMs: 30000 # how often the browser re-reads the cache
    currency: CNY
    allowedHosts: []            # register your domain here if you front dsh with a reverse proxy

When the official prices or the schedule change, override them in config — no need to wait for a plugin release:

- id: dsh-balance-tide
  config:
    tideCutoff: '2026-08-17T00:00:00+08:00'   # when peak/off-peak pricing starts
    peakWindows:                              # peak hours (Beijing time, [start, end))
      - { start: 9, end: 12 }
      - { start: 14, end: 18 }
    tidePrices:                               # per-tier prices (per 1M tokens)
      flat:
        deepseek-v4-flash: { cacheHit: 0.02, cacheMiss: 1, output: 2 }
      peak:
        deepseek-v4-flash: { cacheHit: 0.1, cacheMiss: 3, output: 9 }
      offpeak:
        deepseek-v4-flash: { cacheHit: 0.05, cacheMiss: 1.5, output: 4.5 }

peakWindows: [] means there are no peak hours at all — use it if the tiered pricing is ever withdrawn.

Security

  • Credentials: prefer DEEPSEEK_API_KEY from DSH credentials. The apiKey config option is an escape hatch only — it lands in a config file in plaintext, so avoid it. baseUrl must be https; plaintext http is rejected outright (it would put the key on the wire).
  • Balance endpoint: /query-tide serves your account balance, so readers are checked. The Host must be localhost, an IP literal, or a domain registered in allowedHosts (this blocks DNS rebinding); any request carrying an Origin must be same-origin (this blocks arbitrary web pages from reading your balance). Rejected reads get a 403.
  • Error reporting: the server sends only a small set of error codes to the browser; raw exception text goes to the log, so a custom baseUrl never leaks to the frontend.

Known limitations

  • Costs are estimates computed at current-period prices; the official invoice is authoritative.
  • For multi-currency accounts the readout row shows the first currency only; the rest appear in the tooltip.
  • deepseek-chat / deepseek-reasoner are no longer listed on the official pricing page — the static entries in prices are a fallback, not a verified quote.

Development

npm install
npm test

Compatibility

  • DeepSeek Harness 0.1.0-rc.6+ (web profile)
  • Node.js 20 / 22 / 24 (covered by CI)
  • Cross-platform: pure JavaScript + standard browser CSS, no native modules
  • License: MIT