huanyuLv/dsh-balance-tide 预览 preview

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地址会被直接拒绝。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 | 简体中文

dsh-plugin license version

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-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 →

← 上一个 Prev dsh-session-fork 下一个 Next dsh-acp-plugin →