Introduction¶
When developing agents using DeepSeek Harness (DSH), billing periods directly impact the cost of long-running operations. DeepSeek’s pricing strategy is nonlinear: rates double during peak hours and drop to 0.5× during off-peak hours. For batch jobs, extended experiments, or agents that make frequent calls, launching tasks in the wrong time window significantly increases overhead. The plugin dsh-peak-badge displays the current billing period and remaining time next to the model selector in DSH’s conversation input bar, helping developers decide when to start running tasks.
What It Is¶
dsh-peak-badge is a client-side plugin installed in DeepSeek Harness, maintained by ibuildrun. It does not connect to the model or the DeepSeek API, and requires no configuration or storage. The plugin runs directly in the browser, reads DeepSeek’s published weekly billing schedule (UTC), and renders a static badge in the DSH interface showing whether the current period is peak (2×) or off-peak (×0.5), along with a countdown to the next transition.
Core Features¶
- Period display: Shows the current billing period and multiplier next to the model selector, formatted as
● Off-peak ×0.5 · peak in 11h 17mor● Peak ×2 · ends 15:00. - Local clock: Countdowns and end times are rendered using the browser’s local time, while billing period calculations are based on UTC, ensuring correct period determination in any timezone.
- Multilingual support: When the DSH interface language is set to Russian, the badge displays in Russian; otherwise, it displays in English. Only
enandruare built in. - Color coding: Peak periods show a red dot (
#e5534b); off-peak periods show a green dot (#3fb950). - Real-time updates: Re-renders every 30 seconds and follows DSH interface language changes.
Installation & Activation¶
The plugin is installed via the DSH CLI, supporting installation from the GitHub repository or a local checkout.
Install from the GitHub repository:
dsh plugin --profile <profile> add github:ibuildrun/dsh-peak-badge
Install from a local checkout:
git clone https://github.com/ibuildrun/dsh-peak-badge.git
dsh plugin --profile <profile> add link:./dsh-peak-badge
After installation, you need to reload the DSH client for the plugin package to take effect.
Typical Usage¶
Once installed, the plugin is active automatically with no additional configuration required. Open DSH’s conversation input bar, and you’ll see the current billing period badge to the left of the model selector. For example:
- Between UTC 01:00–04:00 or 06:00–10:00 on Monday through Friday, the badge displays a red dot with
Peak ×2and shows the end time of the current period below. - During other weekday periods or all day on weekends, the badge displays a green dot with
Off-peak ×0.5and indicates the time until the next peak.
Clicking the badge reveals the current multiplier and the absolute local time of the next transition.
Use Cases & Notes¶
- Ideal for developers running long-duration agent tasks, batch experiments, or frequent calls in DSH, helping them choose lower-cost time windows.
- The plugin is a purely client-side component. It sends no requests to any service, writes no storage, has no network or telemetry behavior, and consumes no tokens.
- DeepSeek’s public holidays are treated as off-peak on the server side, but the plugin only implements the weekly schedule and does not include a holiday calendar. On public holidays that fall on Monday–Friday, the plugin still calculates based on the weekday schedule.
- The plugin requires DSH version
>= 0.2.0and supports DSH Web, desktop builds, and any browser supported by DSH. - Node.js
>= 22is only required for development and testing; the plugin has zero runtime dependencies.
Summary¶
dsh-peak-badge is a lightweight DSH client plugin that displays the billing period and countdown next to the model selector, helping developers launch tasks at the right time to reduce long-running costs. The plugin requires no configuration and activates automatically after installation, making it well suited for developers who need to control costs in DSH.
- Plugin homepage: https://github.com/ibuildrun/dsh-peak-badge
- Ecosystem directory: https://www.skillhub.cn/plugins/ibuildrun/dsh-peak-badge