huanyuLv/dsh-balance-tide
DeepSeek Harness (DSH) Web 插件: 余额 + 峰谷计价潮汐提示。显示 DeepSeek 账户余额与本会话花费, 并在余额前提示当前峰/谷价格档位、距切换倒计时与使用建议。
Project Overview项目介绍
huanyuLv/dsh-balance-tide is a native plugin built exclusively for the web profile of DeepSeek Harness (DSH). It adds a live readout row directly under the DSH composer that displays DeepSeek account balance, current pricing tier, countdown to the next pricing switch, and estimated session cost based on current period prices. It automatically reuses the existing DEEPSEEK_API_KEY stored in DSH credentials, so no additional key configuration is required for most standard installations. It follows Beijing time to calculate peak and off-peak pricing starting from August 17, 2026, per DeepSeek's official pricing schedule.
This plugin is designed for DSH users who pay for DeepSeek API usage, and it helps them track their spending and plan their API calls to align with lower off-peak pricing when possible. To install the plugin, users can run the dsh plugin add command from the DSH CLI, with options to install from npm, the plugin’s GitHub repository, or a local directory. After installation, users must restart the dsh web process for the plugin to take effect, and they can customize refresh intervals and pricing schedules via the cordis.patch.yml config file. Hovering over the indicator brings up full pricing details and usage advice, and clicking the question icon opens the official DeepSeek pricing page in a new tab.
The plugin is released under the permissive MIT open source license, and it supports Node.js 20, 22, and 24, covered by the project’s continuous integration tests. It is written entirely in pure JavaScript with standard browser CSS, so it works cross-platform without any native dependencies. There are several important limitations to note: all session cost calculations are estimates, and only the official DeepSeek invoice is authoritative. For multi-currency accounts, only the first currency is shown in the main readout row, with additional currencies visible only in the hover tooltip. The project maintains strict security checks: plaintext HTTP URLs are rejected outright to prevent credential leaks, and users are strongly discouraged from storing API keys directly in the configuration file.
这是专为DeepSeek Harness(DSH)网页端开发的原生插件,用于显示DeepSeek账号余额和峰谷定价潮汐信息。插件会在DSH编辑器下方新增一行实时信息,显示当前定价阶段、距离下一阶段切换的倒计时、账号余额以及当前会话预估费用,复用DSH已存储的DEEPSEEK_API_KEY,无需额外配置密钥。
本插件面向使用DeepSeek API付费额度的DSH用户,帮助用户实时掌握账户情况,合理规划调用时机以控制使用成本。用户可通过npm、Git仓库或本地目录三种方式安装,安装完成后重启dsh web即可生效。悬浮指示器可查看完整价格表和使用建议,点击问号图标可直接跳转至DeepSeek官方定价页面。
插件采用MIT许可证开源,要求Node.js 20及以上版本,需要提前安装pnpm。费用仅为基于当前时段定价的估算,最终以官方账单为准,多货币账户仅显示首位货币,旧模型价格为后备静态数据。插件有严格的安全校验,不建议在配置中明文存储API密钥,http地址会被直接拒绝。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-balance-tide(huanyuLv/dsh-balance-tide)
仓库:https://github.com/huanyuLv/dsh-balance-tide
本站详情页:https://www.yhbd.top/plugins/huanyulv-dsh-balance-tide/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-08-22 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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-balance-tide
把 huanyuLv/dsh-balance-tide 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
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/balanceendpoint (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_KEYfrom 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-peak | Peak |
|---|---|---|---|
| deepseek-v4-flash | 0.02 / 1 / 2 | 0.05 / 1.5 / 4.5 | 0.10 / 3.0 / 9.0 |
| deepseek-v4-pro | 0.025 / 3 / 6 | 0.15 / 4.5 / 13.5 | 0.30 / 9.0 / 27.0 |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
WilliamLIiii/DeepSeek-Harness-billing-plugin
dfkai/dsh-board
skkjkk/dsh-usage-dashboard
Young4ever33/dsh-token-attention
Han-1413141/dsh-cost-meter
wssfk12138/dsh-damage-pulse