npm.io
0.1.0 • Published 2h ago

deepseek-peak-hours-warning

Licence
MIT
Version
0.1.0
Deps
0
Size
8 kB
Vulns
0
Weekly
0

DeepSeek Peak-Hours Warning

A pi extension that warns you when you start a session during DeepSeek peak billing hours (2x pricing), so you don't accidentally burn tokens at double rate.

Billing rules implemented

  • Peak hours (2x pricing): 01:00–04:00 UTC and 06:00–10:00 UTC
  • Off-peak all other hours
  • Weekend off-peak (effective 2026-08-23 00:00 Beijing): all day on Saturdays and Sundays, Beijing time — handled via an explicit UTC+8 calendar-day check, with the rule date enforced (weekends before that date are normal days)

What it does

On every session_start:

  • During peak: warning notify — "DeepSeek PEAK hours — 2x pricing until HH:MM UTC (HH:MM local)" (end is exact, on the hour)
  • Off-peak: quiet info notify — "DeepSeek off-peak rates active (Beijing weekend). Next peak: Mon, Aug 24, 01:00 UTC (02:00 local) in 30m" (exact start time with weekday + date, so a weekend or cross-timezone gap can't be misread)

Both messages include your device-local time and timezone label so you can verify the check matches your clock.

Install

pi install npm:deepseek-peak-hours-warning   # once published
# or locally:
pi install ./deepseek-peak-hours-warning

Take effect on next pi launch.

Configuration

None needed — the extension only reads the device clock (make sure it's synced; getUTCHours() is used for the UTC windows and UTC+8 for the Beijing weekend rule, so it is timezone-agnostic by design).

License

MIT

Keywords