DevTarlow / dsh-peak-price-pal
A DeepSeek Harness plugin: DeepSeek halves its rates off-peak. A small sun or moon in the composer shows which rate is live, plus your balance and today's spend.
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-peak-price-pal is a DSH plugin published from the DevTarlow/dsh-peak-price-pal repository.
Capabilities and topics
Peak Price Pal
A small sun or moon under the composer tells you when DeepSeek is charging peak or off-peak rates.
DeepSeek halves its API rates outside peak hours. The window is fixed in Beijing time, so it lands at odd hours for most of the world. This plugin puts the current state beside the context ring, where you already look, and keeps the details one hover away.
The first image is the real hover card at 21:53 Pacific, seven minutes before the 14:00 Beijing peak switch. The second is the composer row in the peak state, with the amber sun at the far right past the 50% context ring. The words for the current and next rate carry the same amber and green as the logo.
What you see
- An amber sun while peak rates apply.
- A green moon while off-peak rates apply.
- Nothing at all on a third-party provider such as OpenRouter, even when the model name says DeepSeek.
Hover the logo for the full picture. The card shows your local time, Beijing time, the next switch with a countdown, the peak rule, today's status in Beijing, and the provider and model behind the reading. The words peak and off-peak carry the same amber and green as the logo.
There is no click action on the card. The settings live in the Plugins section.
The billing window
| Beijing time | |
|---|---|
| Peak | Monday to Friday, 09:00-12:00 and 14:00-18:00, excluding Chinese public holidays |
| Off-peak | every other hour, including every weekend and every holiday |
Off-peak is half the peak rate.
The start of a window counts exactly on the hour. So 09:00 is peak, 12:00 is off-peak, 14:00 is peak, and 18:00 is off-peak.
Weekends are off-peak all day, even when China schedules a make-up workday on a Saturday. DeepSeek makes every weekend off-peak in full, and the plugin follows that.
The official source is Models & Pricing.
Current prices
The official list, in USD per 1M tokens, checked on 2026-11-18. Off-peak is half of the peak number.
| Model | Rate | Input, cache hit | Input, cache miss | Output |
|---|---|---|---|---|
deepseek-flash | Peak | $0.006 | $0.30 | $1.20 |
deepseek-flash | Off-peak | $0.003 | $0.15 | $0.60 |
deepseek-v4-pro | Peak | $0.044 | $1.32 | $3.96 |
deepseek-v4-pro | Off-peak | $0.022 | $0.66 | $1.98 |
DeepSeek can change these numbers. But the plugin does not quote them. It only tells you which window is active. Check the official page before you plan a large job.
Holidays
The peak rule excludes Chinese public holidays. The plugin carries the 2026 and 2027 off-days from the State Council's published calendar, through holiday-cn. The 2026 notice and the 2027 notice are the primary sources.
When the clock reaches a year the plugin does not carry, it falls back to the weekday rule and says so in the hover card. A later release can add the year.
The plugin makes no network request, before or after.
Install
You need the DeepSeek Harness, running in a browser or the desktop app.
-
Open Plugins in the left sidebar.
-
Press Install.
-
Paste the repository address:
https://github.com/DevTarlow/dsh-peak-price-pal -
Install it, then refresh the page.
For a local copy, paste the folder's full path instead. The install dialog accepts a GitHub address, a package name, or a local folder.
Use
The logo is the last item in the line under the input, past the context ring. It has no click action. Hover or focus it when you want the numbers. The card stays open while the pointer rests on it, so the text can be selected and copied.
Switch the model to an OpenRouter route and the logo disappears. Switch back to a DeepSeek route and it returns. And the change lands as soon as the session's model store changes.
Settings
Open Settings > Plugins > Peak Price Pal.
- Icon: the sun and moon, or a plain dot. The dot uses the same state color without a glyph.
- Clock: 24-hour or 12-hour. It covers the current times, the next switch, and the rule line.
- Details: all details, or minimal. Minimal keeps the current state and the next switch.
- Reset to defaults returns to the sun and moon, 24-hour, and all details.
Changes apply as soon as you pick them. The choices are saved in this browser, so another browser starts from the defaults.
Privacy
The plugin reads the current provider and model from the page and keeps the value in memory. It stores your three display preferences in this browser's local storage. It sends nothing and makes no network request. Your session text and token counts are never read.
Limits
- The rule is Beijing time. Your local time appears on hover for convenience, not as a second opinion.
- The logo shows the window, not your bill. It does not estimate spend.
- Prices can change. The table has the date it was checked.
- The holiday calendar covers 2026 and 2027. Later years need an update.
- The settings are per browser. They do not sync across browsers or devices.
- A session with no readable model route shows no logo.
- Subagent sessions show no logo.
Acknowledgements
Two projects inspired me to make Peak Price Pal.
Peak Valley is the closer one. It put the same peak and off-peak state under the DSH composer, next to the context ring, and its holiday handling pointed me at the public holiday calendar. I kept the placement idea and built the sun/moon logo and the colored hover card around it. The provider gate that hides the logo on OpenRouter is my own addition.
Price Track Buddy is my own GNOME Shell extension for Linux. It is where I first used the Beijing peak window and the local countdown in a tool I keep on the desktop. This plugin carries that habit into DSH.
The code here is its own. The pricing rule comes from DeepSeek's public docs. The holiday dates come from the State Council notices through holiday-cn. The UI is built on the DSH composer dock.
Development
The repository has no build step and no runtime dependencies.
npm test
The test file starts the browser module in Node with small React, react-dom, and storage stubs, then checks the time math, the holiday table, the model gate, the settings store, the manifest, the locale keys, the icons, and the slot registrations. Edit client.js and refresh the page to see the change. Edit index.js, package.json, or cordis.patch.yml and restart the Harness.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/DevTarlow/dsh-peak-price-pal)