Preface¶
The dsh web profile of DSH is suitable for using DeepSeek V4 Flash/Pro for long-running tasks. Peak/off-peak API pricing results in different per-token rates during peak and off-peak hours, and sending during peak hours directly impacts costs. OffPeak is a DSH plugin: it provides peak/off-peak price reminders before you send, and allows you to schedule commands for execution during low-price periods.
What This Is¶
OffPeak is maintained by christophersmith2737-commits, with the npm package name dsh-offpeak, licensed under MIT. It is intended exclusively for the web profile (dsh web), addressing the choice between “sending immediately during peak hours” and “executing at a low price.”
Core Features¶
The plugin intervenes when all of the following conditions are met:
- The current model is DeepSeek V4 Flash / Pro.
- The current time falls within Beijing peak hours:
09:00–12:00or14:00–18:00. - You press Enter or click Send in the composer.
After triggering:
- The message remains in the input box.
- A popup displays the peak/off-peak price card per million tokens for the current model.
- You can select
Continueto send immediately. - You can select
Schedulefor scheduled execution. - You can select
Don't remind me today, and no further popups will appear until the next Beijing midnight. - The popup can be closed, and the draft is preserved.
Schedule provides a time wheel:
- Only off-peak hours are selectable:
0–8,18–23. - Past times are removed.
- Minutes range from
00–59. - After
23:00, the wheel rolls over to the next day’s0–8. - When the scheduled time arrives, a local server submits the command to the original session, with no need for the browser to be open at that moment.
Other behaviors:
- Running commands are not interrupted by popups; reminders appear for the next command during peak hours.
- Enter during IME composition is not intercepted.
- Non-intercepted paths trigger a non-blocking server-side fallback reminder.
- Peak/off-peak determination uses
Asia/Shanghaiwall-clock time, regardless of the machine’s timezone. - Prices are hardcoded; no network calls, no telemetry.
Installation and Activation¶
The web profile is required by default. Installation command:
dsh plugin --profile web add dsh-offpeak
For manual installation:
- Copy the package to the shared plugin directory.
- Windows:%USERPROFILE%\.dsh\profiles\node_modules\dsh-offpeak
- macOS / Linux:~/.dsh/profiles/node_modules/dsh-offpeak - Append to
$DSH_HOME/profiles/web/cordis.patch.yml:
- insert:
- id: offpeak
name: 'dsh-offpeak'
config:
effectiveFrom: '2026-08-17'
debug: false
- Restart
dsh web.
The plugin remains dormant until effectiveFrom (2026-08-17); to enable it early or for testing, change this date to the current date, for example 2026-08-31.
Typical Usage¶
- Enter a command during peak hours with DeepSeek V4 Flash/Pro, then press Enter or click Send.
- In the price card, choose
Continue,Schedule,Don't remind me today, or close it. - If you select
Schedule, use the time wheel to pick0–8or18–23hours and00–59minutes. - At the scheduled time, the local server submits the command to the original session.
Applicable Scenarios and Notes¶
Suitable for:
- DeepSeek users of
dsh web. - Those who frequently run longer tasks with DeepSeek V4 Flash/Pro.
- Those who want to avoid sending during peak hours but still retain the option to send immediately.
Notes:
- Only the composer’s own send gestures are intercepted; subagent/queued messages are not.
- All writes accept only same-origin POST requests.
- State and tasks are persisted in
$DSH_HOME/profiles/<profile>/offpeak.json. - The plugin runs with the current
dshprocess permissions; inspect the source and license before installation. - This document describes only the listed behaviors and does not substitute for a source code review.
Links¶
OffPeak has a specific role: it reminds you of peak/off-peak prices before sending and provides a local scheduling path to execute during low-price periods.
- Community directory page: https://www.skillhub.cn/plugins/christophersmith2737-commits/OffPeak
- GitHub: https://github.com/christophersmith2737-commits/OffPeak