Introduction¶
The DeepSeek API uses tiered pricing by peak and off-peak hours: off-peak is roughly half the peak rate. The pricing page describes the rules using UTC time windows and the Beijing calendar (workdays, statutory holidays), so for developers outside UTC+8, figuring out “which tier am I in right now, and how much time is left” often means mental math or reconciling invoices after the fact.
DeepSeek Harness (DSH) supports extending the client UI via plugins. This article introduces the community plugin dsh-peak-hours: it places a real-time badge next to the input area indicating whether you are currently in Peak or Off-peak, the remaining time in the current window, and shows the full schedule in your local timezone.
What Is This¶
dsh-peak-hours is published by maintainer Adolanium, categorized as a client plugin; it can be found in both the SkillHub directory and the GitHub repository. It is a community plugin, not an official DeepSeek product, with no affiliation to DeepSeek / Harness; it is MIT-licensed, and the current package version is 0.1.0.
The plugin answers exactly one question: according to the official pricing rules, are you in peak or off-peak hours right now, and how much longer will this window last?
Pricing reference (summary of the original source):
| Peak | Off-peak | |
|---|---|---|
| Rate | Full price | Half price |
| UTC | 01:00–04:00, 06:00–10:00 | All other times |
| Beijing | 09:00–12:00, 14:00–18:00 | Nights, weekends, holidays |
| Dates | Monday–Friday excluding Chinese statutory holidays | Weekends and holidays, all day |
Core Features¶
Input Area Badge¶
The badge is registered at conversation.input.right, to the left of the model selector. Its label is Peak or Off-peak, along with the remaining time in the current window; it recalculates every second to avoid drift. Off-peak uses a green accent, peak an amber one; the outer ring shortens as the current window elapses, so a quick glance tells you whether minutes or hours remain.
Details Panel¶
Clicking the badge opens a panel containing:
- A countdown accurate to the second (seconds are shown when under an hour, minutes when over an hour);
- A local 24-hour dial, with peak windows marked amber and the current moment indicated;
- The next switch description, e.g.
Peak starts today at 09:00; - The full schedule converted to your local timezone, plus the day type (
Weekday,Weekend, or the holiday name); - Your local timezone and offset, along with the Beijing time at the same moment.
Press Esc or click outside to close; the badge keeps timing even after the panel is closed.
How the Rules Are Implemented¶
The plugin handles three kinds of input following the pricing page logic:
- Policy is judged on the Beijing calendar: whether it is a workday or a statutory holiday is determined by the Beijing date (e.g. Friday 23:00 in Los Angeles may already be Saturday in Beijing).
- Display uses the local timezone: UTC peak instants are formatted to local time via
Intl; daylight saving time is handled by the platform. - When the timezone cannot be parsed: it falls back to Beijing time, with the panel labeled
Beijing time · fallback, so guesses are never presented as local time.
The plugin ships with a built-in 2026 Chinese statutory holiday table (source: State Council General Office document [2025] No. 7); if a makeup workday falls on a Saturday or Sunday, the plugin still treats it as weekend off-peak rather than a workday peak.
Implementation details: no Host routes, no network requests, no disk writes; colors use Harness theme tokens and adapt to light and dark themes.
Installation and Activation¶
Dependencies: DeepSeek Harness 0.2.x (the README states it was tested on 0.2.1-rc.1); both the desktop client and Web UI are supported. The package is pure JavaScript with no prepare step and no runtime dependencies, so build permissions are generally not needed. package.json requires node >= 20 and dsh >= 0.2.1-rc.1.
Method 1: Plugins Page (Recommended)¶
- Open the sidebar Plugins.
- When installing the plugin, paste:
github:Adolanium/dsh-peak-hours
- After installation, the bundle is enabled by default.
- Refresh the Harness window (
Ctrl+R/Cmd+R); the browser side lazy-loads the plugin, so the badge will only appear after a refresh.
Method 2: dsh CLI¶
dsh plugin --profile desktop add github:Adolanium/dsh-peak-hours
dsh writes the bundle into the profile’s dsh.profile.bundles. After starting Harness, refreshing the window is also recommended.
Pin to a release version:
dsh plugin --profile desktop add github:Adolanium/dsh-peak-hours#v0.1.0
Uninstall:
dsh plugin --profile desktop remove dsh-peak-hours
Typical Usage¶
Simply open any conversation; no additional configuration is needed. Once the badge appears:
- While writing prompts, glance at the Peak / Off-peak status and remaining time to decide whether to move large batch calls into the off-peak window;
- When you need to plan around timing, open the panel to cross-check the local dial and the “next switch” text;
- For cross-timezone collaboration, use the panel’s Beijing-to-local time comparison to avoid misjudging workdays and holidays.
The timezone comes from the operating system or browser and is read when the badge first appears; after a flight or timezone change, please refresh the window.
Peak hours expressed in local time for different timezones (reference examples):
| Timezone | Peak (Local) |
|---|---|
| Beijing (UTC+8) | 09:00–12:00 · 14:00–18:00 |
| Jerusalem (UTC+3) | 04:00–07:00 · 09:00–13:00 |
| Kolkata (UTC+5:30) | 06:30–09:30 · 11:30–15:30 |
| Los Angeles (UTC-7) | 18:00–21:00 · 23:00–03:00 |
When the second window in Los Angeles crosses local midnight, the panel displays it in a form such as 23:00–03:00, and the dial only draws the arc that falls within “today”.
Use Cases and Caveats¶
Suitable for: developers who frequently call the DeepSeek API from DSH, want cost-conscious scheduling according to the official peak/off-peak rules, but do not want to mentally convert UTC and the Beijing calendar every time.
Caveats:
- Pricing and the holiday table are based on the DeepSeek pricing page and State Council announcements; the plugin ships with 2026 holidays built in, and new year tables will only be current after the maintainer updates
HOLIDAYSinlib/client.js. - DSH plugins run with the permissions of the current dsh process; before installing, review the source code and the MIT license yourself. The community directory site has no official affiliation with DeepSeek / Huanfang.
- The badge is only a time-window indicator and does not constitute a billing commitment; actual charges are based on your DeepSeek invoice.
Conclusion¶
dsh-peak-hours turns peak/off-peak pricing from a paragraph on the pricing page into a real-time status right next to the input area: your current tier, remaining time, and local schedule, all visible on one screen. If you are already using Harness 0.2.x, you can install it from GitHub using the commands above and refresh the window to try it out.
- Directory page: https://www.skillhub.cn/plugins/Adolanium/dsh-peak-hours
- Repository: https://github.com/Adolanium/dsh-peak-hours