dsh-peak-hours
Manifest validAdds 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 ho
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 许可证。
Comments
Loading…
Similar plugins
by AK-blank
Unofficial DSH (DeepSeek Harness) Web GUI plugin: shows whether the DeepSeek API is billing at the off-peak or peak rate right now — bilingual 空闲/高峰 · Idle/Peak, Chinese holiday calendar built in.
★ 1
MIT
JavaScript
Oct 3, 2026
dsh plugin --profile web add dsh-plugin-offpeak-badgeby geokkjer
DeepSeek API peak/off-peak pricing indicator: a live composer pill (red during peak, green off-peak) with a countdown to the next switch, plus a dsh_peak_status tool the agent can call to warn about cost.
★ 0
MIT
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-peakby xiangrikuibaize
DSH 输入框下方的计费时段与余额药丸:峰价/谷价(含中国法定节假日与周末规则)、切换倒计时、账户余额(桌面端账号优先,API Key 兜底)
★ 4
↓ 349/wk
NOASSERTION
JavaScript
Oct 31, 2026
dsh plugin --profile web add dsh-tide-badgeShows the current DeepSeek API peak or off-peak pricing period and a countdown to the next transition.
★ 0
dsh plugin --profile web add @jalilahmad.fazeli/deepseek-peak-indicatorby hg1048596-pixel
DeepSeek Harness (dsh) plugin: show the current DeepSeek price tide (peak 梁文峰 / off-peak 梁文谷) and a countdown to the next price switch. Weekdays peak 09:00-12:00 & 14:00-18:00; weekends and Chinese st
★ 0
MIT
JavaScript
Oct 3, 2026
dsh plugin --profile web add dsh-price-indicatorby xiaoyi-xx
Header chip for the DSH web GUI that shows whether the current Beijing time is inside DeepSeek's API peak window, with a live clock and countdown to the next transition.
★ 3
↓ 194/wk
MIT
JavaScript
Sep 21, 2026
dsh plugin --profile web add dsh-peak-status