DeepSeek Harness plugin

dsh-balance-peak

DeepSeek Harness 简洁余额 + 高峰时段指示:在输入框模型名(如 DeepSeek-V4-Flash)左侧显示 [红/绿圆点 + ¥余额],圆点红=高峰(09-12/14-18) 绿=空闲(半价)。余额来自官方 GET /user/balance。

Jump to install

Source facts

Repository
3yi2u34yu32/dsh-balance-peak
Latest update
Aug 18, 2026
Category
Models & Providers
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/3yi2u34yu32/dsh-balance-peak
Plugin: dsh-balance-peak
Author: 3yi2u34yu32

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-balance-peak

DeepSeek Harness 简洁余额 + 高峰时段指示插件。

在输入框模型名(如 DeepSeek-V4-Flash左侧显示一个简洁小板块:

[●] ¥123.45  DeepSeek-V4-Flash
  • 圆点颜色:红色 = 高峰时段(北京时间 09:00-12:00、14:00-18:00,全价 ×1.0);绿色 = 空闲时段(半价 ×0.5)。按 Asia/Shanghai 时区计算,并在时段边界(09:00/12:00/14:00/18:00)整点精确变色
  • 余额数字:来自 DeepSeek 官方接口 GET /user/balance(免费、不消耗额度),每 60 秒自动刷新。
  • 悬停提示:鼠标悬停小板块,向上弹出高峰时段规则说明(当前时段 + 高峰/空闲时间表)。

用处

  • 一眼看到当前账户余额,不用开网页查;
  • 一眼看到现在是计费高峰还是空闲(空闲半价),决定要不要现在调模型。

效果展示

![效果展示 1](docs/screenshot-1.png)

![效果展示 2](docs/screenshot-2-v2.png)

![效果展示 3](docs/screenshot-3.png)

特性

  • 无 UI 配置,装好即用(余额走 DSH 的 credentials 服务取 DEEPSEEK_API_KEY);
  • 零 token 消耗(不调用模型);
  • 轻量:页面脚本仅在需要时扫描定位模型名元素;
  • 不依赖任何外部前端库。

安装

# 桌面版(DSH Desktop)
node "D:\Program Files\DSH Desktop\resources\app.asar.unpacked\node_modules\@deepseek-ai\dsh\lib\bin.js" plugin --profile desktop add link:<本目录绝对路径>

# 或 dsh web
dsh plugin --profile web add link:<本目录绝对路径>

重启后生效。

环境要求

  • DEEPSEEK_API_KEY(Settings → Models,或 ~/.dsh/.credentials.yaml
  • curl(Windows 10+ 自带)

技术实现

  • Host(lib/index.js):注册 /balance-peak/balance(curl 调官方余额接口)与 /balance-peak/script.js,并通过 webServer.tapIndex 注入页面脚本。
  • 页面脚本(lib/script.js):定位输入框模型名元素 → 插入小板块 → 轮询余额、边界定时切换圆点、hover 提示。
  • 余额获取逻辑参照 MIT 协议的 dsh-whale-balance

License

MIT