Preface¶
The DeepSeek API implements time-of-use pricing starting in 2026: peak rates apply during specific intervals on weekdays, while off-peak rates apply during the rest of the time (off-peak rates are approximately half of peak rates). When calling models or estimating tokens in DeepSeek Harness (DSH), if you are unsure whether the current time is peak or off-peak, it is difficult to judge costs based on the official price list. The community plugin dsh-plugin-deepseek-peak-hours provides a real-time peak/off-peak window badge next to the Composer statistics line. Clicking it allows you to view the FLASH/PRO unit price table for the current window without opening a separate document page.
What is this¶
dsh-plugin-deepseek-peak-hours is a DSH client plugin published by maintainer hifengzy (npm package name matches repo name). It solves two things: first, it marks whether the current time is within the official defined peak period in the session interface and displays the time range for that window; second, it provides a clickable price table at the same location, listing FLASH and PRO input (cache hit/miss) and output prices (RMB / 1M tokens) corresponding to the current window.
Plugin Repository: https://github.com/hifengzy/dsh-plugin-deepseek-peak-hours. SkillHub Directory Page: https://www.skillhub.cn/plugins/hifengzy/dsh-plugin-deepseek-peak-hours. The DeepSeek Harness ecosystem adopts the “everything is a plugin” philosophy. SkillHub is a community directory and has no official affiliation with DeepSeek or Huansuan.
Core Features¶
Display Location¶
| Mount Point | Timing | Position |
|---|---|---|
conversation.composer.dock |
Existing session and Composer is docked at bottom | Below the Composer card’s statistics line, immediately to the right of the built-in “Context used x%” |
conversation.hero.options |
New session homepage (blank session) | To the right of the options line above Composer, aligned with the Workspace and Preset controls |
Badge Reading & Interaction¶
- Peak window example text:
Peak 09:00 - 12:00; Off-peak:Off-peak 18:00 - 24:00. Cross-night or full-day windows will display the real range, such as00:00 - 09:00or00:00 - 24:00. - Clicking the badge pops up the price table for the current running window: Rows are Input 1M tokens (cache hit), Input 1M tokens (cache miss), Output 1M tokens; Columns are FLASH (CNY) and PRO (CNY), noting that off-peak rates are half of peak rates.
- Status dot color: Peak uses Amber (
--dsw-alias-state-warn-primary), Off-peak uses Green (--dsw-alias-state-success-primary), consistent with DSH theme tokens.
Time Periods & Pricing Basis¶
The time period rules are excerpted from the DeepSeek official pricing instructions (Beijing Time, Monday to Friday, excluding legal holidays: 09:00–12:00 and 14:00–18:00 are peak; all other times, weekends, and legal holidays are off-peak; off-peak rate is half of peak):
- Official pricing page: https://api-docs.deepseek.com/zh-cn/quick_start/pricing/
The plugin is built-in with holiday intervals announced by the State Council for 2026 and 2027 (State Council Invention Telegram links provided in the data), used for workday judgment. The price table is static data within the plugin, aligned with an example snapshot from the official page dated 2026-11-16 (RMB / 1M tokens) for understanding the content; if the official prices change, the PRICES in the plugin needs to be updated (see limitations below).
| FLASH Peak | FLASH Off-peak | PRO Peak | PRO Off-peak | |
|---|---|---|---|---|
| Input (cache hit) | 0.04 | 0.02 | 0.30 | 0.15 |
| Input (cache miss) | 2.00 | 1.00 | 9.00 | 4.50 |
| Output | 8.00 | 4.00 | 27.00 | 13.50 |
Design & Performance Points¶
- Uses only a single timer, waking at Beijing Time window boundaries (00:00, 09:00, 12:00, 14:00, 18:00), without polling; recalculates based on current clock when switching back to background tabs or waking the laptop.
- No network requests: Schedule, holidays, and price tables are all bundled in.
- No extra npm dependencies, only using
react/react-domfrom the browser module table. - Billing rules are calculated in Beijing Time (
Asia/Shanghai), independent of the machine’s system timezone.
Installation & Enablement¶
In DSH, open Plugins → Add plugin and enter the npm package name:
dsh-plugin-deepseek-peak-hours
You can also point to the repository directory during local development. After installation, it takes effect globally for the current profile and persists after restart; please refresh the page after installation. The documentation does not provide the dsh plugin add github:... command format, so please do not assemble it yourself.
Current package metadata version is 1.1.0, License MIT. The plugin runs in the DSH client process (browser side). Before installing, it is advisable to browse the repository source code and license to confirm it fits your usage policy.
Typical Usage¶
- After installing and refreshing DSH, open any session or the new session page.
- View the peak/off-peak badge and time range next to the Composer; the amber dot indicates peak, and the green dot indicates off-peak.
- When you need to check the unit price for the current window, click the badge to view the FLASH/PRO prices in three rows in the popup layer, along with the note “off-peak is half of peak”.
- Read alongside the built-in context usage percentage to facilitate a quick judgment of “Usage + Rate Window” in the same line.
Cold start homepage (no session): DSH does not open a plugin slot under the Composer, so the badge will not appear; it becomes visible after selecting or creating a session (known limitation mentioned in the plugin readme).
Applicable Scenarios & Notes¶
Who is it for: Developers who call the DeepSeek API daily via the DSH Composer and need to estimate bills or choose call timing based on the official time-of-use rules.
Known Limitations (from README):
- Holiday data covers 2026–2027; for later years, it falls back to standard workday rules (weekend judgment remains correct). You need to update
HOLIDAY_RANGESinclient.jsand release a new version as State Council notifications arrive. - Prices are a static snapshot and do not scrape the official website; if DeepSeek changes prices, you must update
PRICESinclient.js. - The badge does not display when there is no Composer slot on the homepage with no session.
Security & Trust: The client plugin is loaded with the DSH Web interface. The permission boundary is consistent with the current DSH client; only install from trusted sources, and be aware that its logic is concentrated in the single file client.js (containing schedule, badge, and price table popup).
Conclusion¶
dsh-plugin-deepseek-peak-hours brings the DeepSeek API peak/off-peak windows and FLASH/PRO price tables to the side of the Composer, reducing the need to switch between documents and the chat interface. To install or view source code, you can visit the SkillHub directory page and GitHub repository: