- Home
- Plugins
- Usage & Billing
- dsh-peak-hours
dsh-peak-hours
rifat-h/dsh-peak-hours
Adds a status pill to the DSH Web UI that shows whether DeepSeek API peak pricing is active, with a countdown to the next peak or off-peak switch, the official rule in a tooltip, and Chinese public holidays excluded from peak.
Install
dsh plugin --profile web add github:rifat-h/dsh-peak-hoursREADME
DeepSeek peak hours for DSH
A small, always-visible status pill in the bottom-right corner of the DeepSeek Harness Web UI that answers one question: is DeepSeek API peak pricing active right now?
- Green when off-peak pricing applies (50% of the peak rate).
- Amber while peak hours are in effect.
- A live countdown to the next peak ⇄ off-peak switch, in your local time.
- Hover for a tooltip with the official rule, the applicable discount, and the next switch instant with your time zone.
- Localized in English, 简体中文, Deutsch, Español, Français, 日本語, Português, Русский.
- Renders through the frame-wide
shell.overlayslot, so it stays visible on every page, including the welcome screen.
The rule it implements
Taken from the official pricing page (https://api-docs.deepseek.com/quick_start/pricing):
Off-peak rates are half of the peak rates. Peak hours are 01:00 - 04:00 and 06:00 - 10:00 UTC, Monday through Friday, excluding Chinese public holidays. All other hours are off-peak, including weekends and Chinese public holidays in full.
| Window (UTC) | Example: Asia/Dhaka (UTC+6) | |
|---|---|---|
| Peak (standard price) | Mon–Fri, 01:00–04:00 and 06:00–10:00 | Mon–Fri, 07:00–10:00 and 12:00–16:00 |
| Off-peak (50% of peak) | every other instant | 00:00–07:00, 10:00–12:00, 16:00–24:00, all weekend |
The discount applies to every current model (deepseek-flash and
deepseek-v4-pro at the time of writing).
Install
From the dsh plugin market once listed, or directly from GitHub:
dsh plugin --profile web add github:rifat-h/dsh-peak-hours
Then restart the dsh profile:
dsh --profile web
From a local checkout instead of GitHub:
dsh plugin --profile web add /path/to/dsh-peak-hours
Remove it with the plugin manager or dsh plugin --profile web remove dsh-peak-hours.
Maintenance: the Chinese holiday calendar
Weekends and Chinese public holidays are off-peak in full, so the widget embeds
the weekday dates of the State Council holiday arrangement. The calendar is a
plain Set in client.js (CN_HOLIDAYS). It currently covers every remaining
holiday through 2027-12-31 — nothing after the October 2026 National Day run
falls in 2026 — from the 国务院办公厅关于2027年部分节假日安排的通知
(国办发明电〔2026〕10号). After that date the tooltip says the calendar is out of
date instead of silently over-reporting peak hours.
When the State Council publishes the next year's notice, add its weekday holiday
dates to CN_HOLIDAYS, move HOLIDAY_CALENDAR_THROUGH forward, and bump the
package version.
Package layout
index.js— Host half; the bundle row is what publishes the Client module.client.js— theshell.overlaypill, the peak/off-peak rule, and the localized dictionaries.cordis.patch.yml— inserts the Loader row.locale/*.json— plugin title/description shown in the market and settings (8 locales).icon.svg— original artwork.
No build step, no runtime dependencies: the Client bundle is plain JavaScript loaded through the DSH module loader.
License
MIT © Rifath Hossain
DeepSeek 高峰时段(中文)
在 DeepSeek Harness Web 界面右下角常驻一个小状态挂件,用来回答一个问题:当前是否处于 DeepSeek API 高峰时段?
- 绿色:低峰时段(价格为高峰的 50%)。
- 琥珀色:高峰时段。
- 显示距离下次高峰/低峰切换的倒计时(按本地时区)。
- 鼠标悬停可查看官方规则、折扣说明与下次切换时刻。
- 支持简体中文、English、Deutsch、Español、Français、日本語、Português、Русский。
- 通过
shell.overlay槽位渲染,任何页面(包括欢迎页)都可见。
规则来自官方定价页:高峰时段为周一至周五 UTC 01:00–04:00 与 06:00–10:00,不含中国法定节假日;其余时间均为低峰,价格为高峰的 50%。
安装:
dsh plugin --profile web add github:rifat-h/dsh-peak-hours
dsh --profile web
高峰判定已排除中国法定节假日(client.js 中的 CN_HOLIDAYS),当前覆盖到 2027-12-31;每年国务院办公厅公布次年放假安排后更新该列表并提升版本号即可,过期后挂件会提示日历需要更新。
MIT 许可证。
Related plugins
DeepSeek-Balance-Whale-Widget
meteornox/deepseek-balance-whale-widget
dsh-context
bowenliang123/dsh-context
dsh-cost-meter
han-1413141/dsh-cost-meter
dsh-damage-pulse
wssfk12138/dsh-damage-pulse