deepseek-peak-pricing-hours
Pi extension showing DeepSeek API peak pricing hours (Beijing-time windows displayed in your local timezone)
Package details
Install deepseek-peak-pricing-hours from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:deepseek-peak-pricing-hours- Package
deepseek-peak-pricing-hours- Version
0.2.3- Published
- Aug 24, 2026
- Downloads
- 1,145/mo · 673/wk
- Author
- pmegaocalc
- License
- MIT
- Types
- extension
- Size
- 23.3 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
deepseek-peak-pricing-hours
Visual indicator showing DeepSeek API peak pricing hours. Peak windows are defined in Beijing Time, but all times shown are converted to your local timezone.
Peak hours: 9:00–12:00 & 14:00–18:00 Beijing Time (UTC+8) — i.e. 01:00–04:00 & 06:00–10:00 UTC; off-peak tokens are billed at 50% of the peak rate.
On weekends (Saturday & Sunday, Beijing Time) the peak/off-peak division doesn't apply at all: all calls made during the day bill uniformly at the off-peak rate.
What it does
- Renders a 24-hour bar below the editor showing peak vs off-peak hours
- Shows a colored current-state diamond + label (
◆ DeepSeek PEAKor◇ DeepSeek Off-Peak) - Displays the next transition time in your local timezone
- Auto-refreshes every 30 seconds and at session start
Toggle the widget on/off with /ds-peak.
Install
pi install npm:deepseek-peak-pricing-hours
Then restart pi, or run /reload.
How it works
The bar uses block characters to visualize DeepSeek's two daily peak windows (weekdays only):
| Peak Window | Beijing Time (UTC+8) | Displayed in |
|---|---|---|
| Morning | 09:00 – 12:00 | Your local time |
| Afternoon | 14:00 – 18:00 | Your local time |
| Weekend (Sat & Sun) | All day — flat off-peak, no peak windows apply | Your local time |
| Character | Meaning |
|---|---|
█ |
Peak hour (warning color) |
░ |
Off-peak hour (dim) — on weekends, every hour renders as off-peak |
◆ |
Current peak hour (bright warning/error color, bold) |
◇ |
Current off-peak hour (accent color) |
On weekends the status line stays green (Off-Peak) for the whole day, and the next-transition caption points at Monday 09:00 Beijing time.
The bar collapses to 2 hours per character when narrow, and hides entirely in very tight spaces.
Commands
| Command | What it does |
|---|---|
/ds-peak |
Toggle the peak pricing indicator on/off |
License
MIT