The DeepSeek Harness (DSH) plugin ecosystem supports extending functionality through plugins. In local workflow development, sending messages frequently can easily lead to high bills during peak hours. The dsh-peak-gate plugin targets this scenario by intercepting send actions and providing a queue option to help developers control costs.

dsh-peak-gate is a workflow plugin maintained by f20880479-lab. Based on DeepSeek’s official peak/off-peak pricing policy effective 2026-08-17, it intercepts send requests during peak hours, requires confirmation, and enables messages to be held for sending during off-peak hours (at half price).

Core Functions

  1. Peak-hour confirmation: During peak hours (weekdays 09:00–12:00, 14:00–18:00, Beijing time), a confirmation card appears before every Enter press or send-button click, preventing the message from being sent directly.
  2. Mute for the current peak window: The confirmation card provides a “Do not prompt again during the current peak window” option. Once checked, until the current peak window ends (12:00 or 18:00), all sessions will not ask for confirmation and messages will be sent directly; confirmation resumes in the next peak window.
  3. Off-peak queueing (half price): Selecting “Wait for off-peak hours (auto send)” copies the message into the local queue and clears the input box. Once off-peak hours begin (12:00–14:00, 18:00–09:00 the next day, or weekends), the message is automatically sent at half price. Multiple messages can be queued and processed in sequence.
  4. Floating queue window: A 44px floating ball with a count badge is provided in the bottom-right corner; clicking it expands the queue panel. It supports drag-to-move, resizing (all four sides and corners), editing text, adjusting send order, sending immediately, or deleting a single item.
  5. Command management: Manage the queue through the /peakgate command series, without needing to memorize floating-window interactions.
  6. Off-peak zero interruption: When sending messages or using commands during off-peak hours, there are no confirmation pop-ups at all.

Installation and Enablement

The installation commands are as follows and are supported on the desktop and Web clients:

dsh plugin --profile desktop add dsh-peak-gate
dsh plugin --profile web add dsh-peak-gate

After installation, restart DSH Desktop. The plugin is loaded automatically and appears in dsh.profile.bundles in the corresponding profile’s package.json.

Typical Usage

Peak-hour sending

During peak hours (weekdays 09:00–12:00, 14:00–18:00), pressing Enter or clicking the send button directly clears the input box and displays a confirmation card. The card includes the following options:

  • Mute for the current peak window: Once checked, no confirmation card appears during the current peak window, and messages are sent directly.
  • Send immediately (peak price): Send at the current peak price.
  • Wait for off-peak hours (auto send): Cancel the current send; the message is held and will be sent automatically during off-peak hours.
  • ✕ Close: Cancel the current send and keep the draft.

Managing the queue with commands

In addition to interacting with the card, you can also enter commands directly:

  • Queue: /peakgate hold message content. The input box is cleared, the message enters the queue, and it will be sent automatically during off-peak hours.
  • View queue: /peakgate list. Expands the queue window.
  • Delete an item: /peakgate remove index.
  • Clear queue: /peakgate cancel.

Commands do not trigger peak-hour confirmation and are not sent to the model; they only perform local operations.

Configuration and Mechanism

The plugin’s configuration is stored in the browser’s localStorage under the key dsh.peakGate.settings.v1. The default configuration is as follows:

{
  "enabled": true,
  "timezone": "Asia/Shanghai",
  "peakWindows": [
    { "start": "09:00", "end": "12:00" },
    { "start": "14:00", "end": "18:00" }
  ],
  "offPeakWeekends": true
}
  • timezone: Specifies the time zone used for the billing clock (default: Beijing time).
  • peakWindows: Defines weekday peak windows (24-hour format; end is an exclusive boundary).
  • offPeakWeekends: When enabled, treats all weekend hours as off-peak (half price).

Other relevant storage keys include:
* dsh.peakGate.muted.v1: Records muted peak windows.
* dsh.peakGate.holds.v1: Stores held message contents.

Applicable Scenarios and Notes

  • Applicable scenarios: Developers who need to interact frequently with the model in DSH and want to avoid unexpected high bills during peak hours, or developers who want to use weekends and evening off-peak hours for batch processing.
  • Note: This plugin only provides local reminders and interception; it does not change DeepSeek’s official billing behavior. Pricing policies may be adjusted, so the latest official policy should prevail. The plugin runs with dsh process permissions; it is recommended to inspect the source code and license (MIT License) before installation.

Conclusion

Through its interception and queueing mechanisms, dsh-peak-gate returns control of peak-hour sending to users. After completing the configuration above, dsh-peak-gate can remain silent during peak hours and automatically process tasks during off-peak hours, maintaining workflow smoothness while controlling costs.

Plugin directory | GitHub repository