dsh-deepseek-peak-badge
Manifest validComposer-dock badge that shows whether DeepSeek peak pricing is active: red during peak hours, yellow in the 30 minutes before they start, green off-peak, hidden for non-DeepSeek providers.
dsh-deepseek-peak-badge
English | Русский
Значок в нижней части поля ввода DeepSeek Harness, который показывает, действует ли сейчас пиковый тариф DeepSeek.
| Цвет | Когда |
|---|---|
| 🔴 красный | сейчас пиковые часы |
| 🟡 жёлтый | до начала пиковых часов меньше 30 минут |
| 🟢 зелёный | офф-пик; в подсказке — время следующего пика |
Значок виден только при выбранном источнике DeepSeek (DeepSeek API по ключу или DeepSeek Account); при любом другом провайдере он скрыт.
Расписание
Пиковые часы по официальному тарифу DeepSeek: пн–пт 09:00–12:00 и 14:00–18:00 по Пекину (UTC+8), без учёта государственных праздников КНР; всё остальное время, включая выходные, — офф-пик (цена вдвое ниже). В Москве это 04:00–07:00 и 09:00–13:00.
Время берётся с часов компьютера и пересчитывается на Пекин, а моменты границ показываются в местном часовом поясе. Список праздников КНР зашит на 2026 год (HOLIDAY_RANGES в client.js) — его нужно продлевать раз в год.
Установка
dsh plugin --profile <profile> add github:YurinKonstantin/dsh-deepseek-peak-badge
Затем перезапустить DSH. Плагин объявляет dsh.bundle и поэтому ставится как обычный бандл; браузерная часть подключается автоматически.
Настройка
Отдельного экрана настроек нет; правится client.js:
PEAK_WINDOWS— окна пика в минутах от полуночи по Пекину;WARN_MINUTES— за сколько минут включать жёлтый;HOLIDAY_RANGES— праздники КНР;DEEPSEEK_API_PROVIDERS— провайдеры, для которых значок показывается (deepseek-official,deepseek-account).
Разработка
node test/schedule.test.mjs # 14 граничных случаев расписания
Тест извлекает блок между маркерами peak-schedule-start / peak-schedule-end из client.js и проверяет пик, паузу, выходные, праздники и жёлтую зону.
Ограничения
- Праздники КНР зашиты на 2026 год.
- Значок не учитывает переключение модели в момент запроса — только текущий выбор провайдера в сессии.
- Это индикатор, а не биллинг: он не считает потраченные токены и не знает о скидках аккаунта.
Лицензия
MIT — см. LICENSE.
English
A composer-dock badge for DeepSeek Harness showing whether DeepSeek peak pricing is active. It appears only when the session's selected provider is a DeepSeek route (official API key or DeepSeek account) and hides for every other provider.
- 🔴 red — peak hours now;
- 🟡 yellow — a peak window starts within 30 minutes;
- 🟢 green — off-peak (half price until the next peak).
Peak hours follow the official DeepSeek pricing schedule: Mon–Fri 09:00–12:00 and 14:00–18:00 Beijing time (UTC+8), excluding Chinese statutory holidays; weekends and everything else are off-peak. Boundaries are displayed in your local time zone; the clock comes from your computer.
The Chinese holiday list is a 2026 constant (HOLIDAY_RANGES in client.js) and needs a yearly refresh. Install with:
dsh plugin --profile <profile> add github:YurinKonstantin/dsh-deepseek-peak-badge
MIT license.
Comments
Loading…
Similar plugins
by 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 log-li
Peak / off-peak rate badges for the model selector (every row) and the composer tool row, judged per provider by its own time zone and schedule; the live catalog is served from the host over a fenced
★ 1
↓ 705/wk
MIT
TypeScript
Sep 21, 2026
dsh plugin --profile web add dsh-peakrateby moonmoonCL
Provider-aware DeepSeek peak/off-peak badge for DSH. 在输入框工具栏显示 DeepSeek 峰谷时段,只在选中的模型属于 DeepSeek provider 时出现。
★ 0
MIT
JavaScript
Oct 19, 2026
dsh plugin --profile web add dsh-provider-peakby devacc8
Peak and off-peak billing season in the composer statistics row, right after the cache-hit reading, with a coloured dot, a countdown to the next switch, and a panel that shows the account balance spli
★ 1
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-billing-badgeby zi7tian
DeepSeek Harness (dsh) web plugin: shows whether DeepSeek API pricing is peak or off-peak, plus a countdown to the next switch, below the composer.
★ 0
MIT
JavaScript
Oct 28, 2026
dsh plugin --profile web add dsh-deepseek-billing-periodby tuoLuoSuan
Peak / off-peak billing badge for the DeepSeek API - click to see which rate you are on right now. A DSH plugin.
★ 0
MIT
JavaScript
Oct 7, 2026
dsh plugin --profile web add @tuoluosuan/dsh-peak-badge