DeepSeek Harness Plugin: Real-Time Monitoring of DeepSeek Peak/Off-Peak Pricing

Introduction

When calling the DeepSeek API, pricing varies significantly across different time windows. Requests made during peak hours cost twice as much. For agent developers who need to submit tasks in bulk, manually checking the official documentation to confirm the current rate window is error-prone.

The DeepSeek Harness (DSH) plugin ecosystem offers a way to integrate this kind of infrastructure capability directly into the Web UI. Below is an introduction to kingchi005/dsh-deepseek-peak-hours, a plugin that displays DeepSeek’s peak/off-peak pricing rules in real time right next to the chat input box, making it easy to confirm costs before sending a request.

Plugin Scope

This is a client-side plugin that runs on the DSH Web UI. It does not call any API, nor does it require host routing or network requests—all logic is driven by the browser clock. The maintainer is kingchi005; it is a community plugin and has no affiliation with DeepSeek’s official team.

The core problem the plugin solves is: confirming whether you are currently in a peak window (and how much time remains) before submitting a request. It also provides a timeline view of the day in local time, as well as the per-million-token price for each model under the current rate.

Installation & Enablement

The plugin requires DSH version 0.2.2-rc.1 or later. To install from the Web UI, go to Plugins → Add plugin, then enter the repository URL:

https://github.com/kingchi005/dsh-deepseek-peak-hours

You can also install it via an agent:

plugin_manager action: install_bundle spec: github:kingchi005/dsh-deepseek-peak-hours#<full-commit-sha>

The manager will list the repository via git ls-remote, package it from the specified commit, and install it, activating the Client module. It is recommended to use a 40-character commit SHA so that updates can replace the plugin in place.

Features

Rate Window Display

The plugin shows a pill-shaped control below the conversation composer, indicating the current window status. For example:

Off-peak · peak in 9h 1m

Clicking the control opens a panel that displays:

  • Status: peak or off-peak
  • Multiplier: e.g., 2× off-peak rates or 50% of peak rates
  • Reason: peak hours, off-peak hours, weekend, or Chinese public holiday
  • Time of the next change

The dot on the control is orange during peak hours and green during off-peak hours.

Today’s Timeline

The panel includes a “Today’s timeline” section that plots the day in 15-minute blocks, with a “now” marker indicating the current time. This makes it easy to see where the two peak windows fall in local time, even when your local timezone differs from UTC. For example, in the Africa/Lagos timezone, the windows might appear as 02:00–05:00 and 07:00–11:00.

Cost Breakdown

The panel lists the prices for the currently active window, along with the other window’s prices for comparison. The following models and rate types are supported:

  • deepseek-flash: cache-hit, cache-miss, output
  • deepseek-v4-pro: cache-hit, cache-miss, output

The current window’s rates are shown in bold, with the other window’s rates following immediately after, making the discount obvious at a glance.

Data Sources & Updates

All rules and prices come from two static tables in client.js:

  • MODELS: per-million-token prices. Can be updated from Models & Pricing.
  • HOLIDAYS: Chinese public holidays, stored in Beijing date format.

The plugin still works using weekday rules for years not yet present in the data, and displays a warning. When updating data, you need to modify the corresponding table entries and the HOLIDAY_YEARS list.

Updating & Uninstalling

To update, simply reinstall using the new commit SHA. The plugin will replace the current version. If the Client module is already loaded, the installation will report restart-required, and changes will take effect after the instance is restarted.

There are two ways to uninstall:

  • Web UI: open Plugins, find the bundle, and select Uninstall.
  • Agent: plugin_manager action: remove_bundle target: dsh-deepseek-peak-hours.

Use Cases & Notes

This plugin is suitable for developers who need to make bulk calls to the DeepSeek API, or for anyone who wants to reduce costs and avoid wasting resources during peak hours. The plugin runs with the permissions of the current DSH process; review the repository and LICENSE before installing.

Conclusion

This plugin brings DeepSeek’s peak/off-peak pricing rules directly into the DSH Web UI, allowing you to confirm the rate window and pricing before sending a request. The plugin directory and source code are available below.

  • Plugin directory: https://www.skillhub.cn/plugins/kingchi005/dsh-deepseek-peak-hours
  • GitHub repository: https://github.com/kingchi005/dsh-deepseek-peak-hours
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye