Peak Price Pal: View Current Billing Period and Balance in DeepSeek Harness

Introduction

When performing model inference with DeepSeek, the billing window charges at peak prices during fixed time slots (weekdays 09:00–12:00 and 14:00–18:00 Beijing Time), while all other times are off-peak with prices halved. However, for developers, it’s difficult to tell at a glance whether the current moment is a peak period, how much balance remains, or how much has already been spent today. Peak Price Pal exists to solve exactly this problem.

What It Is

Peak Price Pal is a plugin for DeepSeek Harness, maintained by DevTarlow, and categorized under “Model Inference.” It displays a sun or moon icon in DSH’s conversation input area, intuitively indicating whether the current time falls within DeepSeek’s peak or off-peak billing window. On hover, it reveals details such as the current balance, tracked spend for today, the next switch time, and billing rules.

Core Features

Icon Indicates Current Billing Status

  • Displays an amber sun icon during peak hours.
  • Displays a green moon icon during off-peak hours.
  • The icon is placed as the last item in the conversation input area, after the context ring, so the current status is visible at a glance without any click.

Hover Card Shows Balance and Spend

  • Shows the total balance, tracked spend for today, amount topped up today (Topped-up today), and the expired portion of the granted balance (Granted part).
  • The card displays the current local time and Beijing Time, along with a countdown to the next switch.
  • Shows the current billing rule (peak/off-peak), today’s peak/off-peak status, and the currently active route (Provider + Model).

Balance Reading Mechanism

  • The plugin reads the DeepSeek balance from the current session route. The official API route uses the DEEPSEEK_API_KEY or DEEPSEEK_OFFICIAL_API_KEY already stored in Harness.
  • It does not follow a custom apiKeyEnv configuration item, nor does it have an additional key input field — the key never leaves the browser.
  • Balance is read once immediately when the icon appears, then refreshed every minute while the page is open (including background tabs); reading stops once the settings page is closed.
  • Today’s spend is inferred from the balance decrease between two consecutive reads, counting only decreases within the same local day and no more than 15 minutes apart.
  • The plugin does not sync balance or spend with any external service; it relies solely on local records and read results within the browser session.

Billing Windows and Holidays

  • Peak hours (Beijing Time): weekdays 09:00–12:00 and 14:00–18:00 (excluding Chinese statutory holidays).
  • Off-peak hours: all other times, including weekends and all holidays.
  • Weekends are billed at off-peak rates for the entire day, even if a Saturday is designated as a make-up workday.
  • Holiday data comes from the nationally published calendar. The plugin has 2026 and 2027 holiday information built in, requiring no additional requests.

Pricing Information

  • The plugin does not display current prices; it only prompts users to refer to the official pricing page.
  • Official pricing may change at any time. The plugin is solely for indicating whether the current time is peak or off-peak.

Installation and Activation

In DeepSeek Harness (browser or desktop app):

  1. Open Plugins in the left sidebar.
  2. Click Install.
  3. Paste the following URL into the repository address field:
https://github.com/DevTarlow/dsh-peak-price-pal
  1. After installation is complete, refresh the page. If the balance shows as unavailable, restart Harness to reload the Host component.

For a local copy, you can paste the full folder path directly. The install dialog also supports GitHub URLs, package names, or local folders.

Typical Usage

  • Open any conversation session and observe the icon at the end of the conversation input area. An amber sun means you are in a peak period; a green moon means you are in an off-peak period.
  • Hover over the icon to view details such as balance, today’s spend, and the next switch time.
  • Adjust the icon style (sun/moon/dot), time format (12h/24h), and card content (full/minimal) in the settings.
  • When switching to a non-DeepSeek route (e.g., OpenRouter), the icon disappears; it reappears automatically when you switch back to a DeepSeek route.

Use Cases and Notes

  • Ideal for developers and users who need to check billing status and balance in real time within DeepSeek Harness.
  • The plugin runs with the current DSH process’s permissions. Please review the source code and license before installing.
  • Balance and spend data are based on local reads and only reflect consumption that occurred while the page was open.
  • If the balance is low, the card will display a warning.
  • Balance reads only send requests to api.deepseek.com; other custom gateways may not support balance retrieval.

In Short

Peak Price Pal lets you keep track of DeepSeek’s billing periods and balance without leaving the conversation interface — a great fit for DeepSeek Harness users who need fine-grained control over inference costs.

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

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

Xiaoye