English | 中文 (Chinese)
Important
This plugin has moved to dsh-statusline-plus. Its peak/off-peak indicator, countdown, daily timeline and sidebar-footer dot are now part of Statusline Plus, which also follows the official schedule and holiday calendar. This repository is no longer maintained.
To migrate, install Statusline Plus (see its Installation section), then remove dsh-peak-indicator from your profile's dependencies and bundles to avoid duplicate indicators.
DeepSeek Peak / Off-Peak Time Indicator for DSH Web GUI: Real-time pricing window status chip, live countdown, multi-timezone auto-conversion, 24-hour visual schedule timeline, and official DeepSeek API pricing reference table (V4.1 pricing rules).
Following DeepSeek API's dynamic pricing policy effective September 10, 2026 12:00 (Beijing Time / UTC+8) and official clarification on September 19, 2026:
- Peak Hours: Monday to Friday (excluding Chinese statutory holidays)
09:00~12:00and14:00~18:00(Beijing Time / UTC+8), billed at standard official rates. - Off-Peak Hours (50% Half-Price Discount): All remaining weekday hours, all Saturdays and Sundays, all Chinese public holidays, and weekend make-up workdays enjoy 50% discount across cache-hit input, cache-miss input, and output tokens.
- Core Model Support: Full coverage of
DeepSeek-V4.1-FlashandDeepSeek-V4-Proflagship models (independently billed with peak/off-peak discounts).
dsh-peak-indicator integrates seamlessly into the DeepSeek Harness (DSH) Web GUI to give developers and teams instantaneous awareness of current pricing windows, countdowns to the next schedule switch, and transparent cost references.
-
Concise & Non-Intrusive Typography:
- English labels:
Peak Rate&Off-Peak. - Chinese labels:
高峰价&平峰. - Balanced compact width that aligns gracefully with session titles, model selectors, and token quota chips.
- English labels:
-
Native Session Header Docking (Zero Overlay Conflict):
- Registers via
conversation.session.header.actionsslot at order35(immediately adjacent to the quota chip, safely positioned to the left of the Session Log export button). - Participates in standard flexbox flow layout with zero element overlap.
- Optional global floating pill mode (
top-right,top-left,top-center).
- Registers via
-
Accurate DeepSeek Official Schedule Rules (V4.1 & Sep 19 Holiday Update):
- Peak Windows: Monday to Friday (excluding Chinese statutory holidays)
09:00~12:00&14:00~18:00(Beijing Time / UTC+8). - Off-Peak Windows: Remaining weekday hours, all day Saturday/Sunday, Chinese statutory holidays, and weekend make-up workdays (50% discount).
- Dual Model Coverage: Displays pricing tiers for both
DeepSeek-V4.1-Flash(V4.1 F) andDeepSeek-V4-Pro(independently billed).
- Peak Windows: Monday to Friday (excluding Chinese statutory holidays)
-
Multi-Timezone Auto-Detection & Dual Clocks:
- Automatically detects user browser local timezone and UTC offset.
- Concurrently displays Local Time and Beijing Time (UTC+8), automatically converting schedule switches to the user's local wall clock.
-
Live Per-Second Countdown & Compact Header Mode:
- Header default compact mode displays the status icon and live per-second countdown.
- Live ticker displaying the remaining duration until the next schedule transition (e.g.,
To Peak in 02:28:15/To Off-Peak in 01:14:02).
-
Interactive 24-Hour Visual Schedule Timeline:
- Click the indicator chip to open a details modal.
- View a full 24-hour visual bar with color-coded segments (🟢 Green for Off-Peak, 🟠 Orange for Peak) and a real-time cursor showing current progress through the day.
- Hover over segments or the cursor pin for precise time ranges.
-
Native DSH Internationalization (i18n):
- Registers dictionary via
ctx.locale(dsh-peak-indicator). - Automatically follows DSH system language preferences with live hot-switching support.
- Registers dictionary via
-
Sidebar Footer Quick-Access Action:
- Mounts a status dot inline with the other sidebar footer buttons (left-aligned) (
sidebar.footer.action, order1000) without disturbing existing action buttons.
- Mounts a status dot inline with the other sidebar footer buttons (left-aligned) (
| Model | Base Input (Miss) (Off-Peak / Peak) |
Cache Hit Input (Off-Peak / Peak) |
Model Output (Off-Peak / Peak) |
|---|---|---|---|
| DeepSeek-V4.1-Flash (V4.1 F) | ¥1.00 / ¥2.00 | ¥0.02 / ¥0.04 | ¥4.00 / ¥8.00 |
| DeepSeek-V4-Pro | ¥4.50 / ¥9.00 | ¥0.15 / ¥0.30 | ¥13.50 / ¥27.00 |
Notes:
- DeepSeek-V4-Pro is billed independently (no longer auto-routed to Flash); both models support peak/off-peak rates.
- Prices in CNY (¥) per 1 Million Tokens.
Add the dependency:
{
"dependencies": {
"dsh-peak-indicator": "link:/path/to/dsh-peak-indicator"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-peak-indicator"
]
}
}
}The plugin provides its own bundle patch declaration, which is automatically merged into the profile roster upon launch.
MIT License.