dsh-deepseek-peak-clock
其他 活跃维护

dsh-deepseek-peak-clock

esketids/dsh-deepseek-peak-clock

在Composer HUD中嵌入轻量级价格时钟,实时显示API高峰与低谷计费档位,自动高亮当前时段并预告切换倒计时,按性价比规划调用时机。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
8 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:esketids/dsh-deepseek-peak-clock
git clone https://github.com/esketids/dsh-deepseek-peak-clock.git
git clone git@github.com:esketids/dsh-deepseek-peak-clock.git
README.md main

dsh-deepseek-peak-clock

A DeepSeek Harness plugin that shows whether the DeepSeek API is
in its peak or off-peak billing window — right in the composer HUD row, next to turns,
tok/s and cache hit rate.

● Off-peak · ends in 1h 22m      green dot, half price
● Peak · ends in 2h 04m          amber dot, full price

The countdown ticks every second. Hovering the cell shows the window end in your local time and the
current per-1M-token rates:

Peak · input / cached input / output · until 12:00
Flash $0.30 / $0.006 / $1.20 · Pro $1.32 / $0.044 / $3.96 · per 1M tokens

Schedule

Peak windows are 01:00–04:00 and 06:00–10:00 UTC, everything else is off-peak at half price.
Since 2026-08-22 16:00 UTC the split only applies Monday–Friday Beijing time; Saturdays, Sundays and
Chinese public holidays are off-peak all day.

The rules are a port of the logic behind deepakness.com/deepseek
and its price clock extension, which in turn
follow the official DeepSeek pricing page.

Install

This is a Harness bundle: a package whose cordis.patch.yml inserts one Loader row.

  1. Clone the repo somewhere stable (the profile links to the directory, so do not delete it).

  2. Install it into your profile with the plugin manager, pointing at the checkout directory:

    plugin_manager install_bundle /absolute/path/to/dsh-deepseek-peak-clock

    Or add it by hand to your profile's Cordis composition:

    - insert:
       - id: deepseek-peak-clock
         name: dsh-deepseek-peak-clock
  3. Refresh the Web GUI. The cell appears under the composer; it is session-scoped, so open a
    session to see it.

The Host half is a no-op: the schedule is pure UTC arithmetic, so the clock renders entirely in the
browser and works offline.

Configuration

None. The plugin adds one locale namespace, one HUD cell and nothing else.

Maintenance

CN_HOLIDAYS in client.js lists Chinese public holidays that DeepSeek bills off-peak all day.
The State Council publishes the next year's arrangement around November, so add those dates when
they are announced. Everything else (windows, weekend rule) only changes when DeepSeek changes its
pricing, which this plugin does not detect automatically — compare with the pricing page
occasionally.

Layout

File Purpose
index.js Host half (empty apply; no services, no network)
client.js Schedule port + the HUD cell component
cordis.patch.yml Loader row that activates the bundle
locale/en.json, locale/zh.json Plugin title and description for the Plugins page
icon.svg Half-green/half-red clock icon

License

MIT. The schedule logic derives from DeepakNess's price clock; see the license file.