dsh-peak-badge
Verifieddsh-peak-badge · v0.1.1 · MIT · Web UI
DeepSeek peak/off-peak pricing badge for DSH: light green in off-peak hours, light orange in peak hours (Beijing time), draggable. / DeepSeek 峰谷计价状态角标:北京时间高峰时段(09:00–12:00、14:00–18:00)浅橘,优惠时段浅绿,可拖动。
Install
dsh plugin add dsh-peak-badge Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Tags
Creators
Readme
dsh-peak-badge
DeepSeek Harness(DSH)web 界面的峰谷计价状态角标:一眼看出当前 DeepSeek token 是按高峰价还是优惠价计费——以北京时间为准,零配置。
🟢 优惠时段 —— 浅绿胶囊:「优惠时段 · 半价」 🟠 高峰时段(北京时间 09:00–12:00、14:00–18:00)—— 浅橘胶囊:「高峰时段 · 单价×2」
为什么需要它
DeepSeek 自 2026-08-17 起实行峰谷计费:高峰窗口(北京时间 09:00–12:00、14:00–18:00)的 token 单价为优惠时段的 2 倍。本插件把这一状态全天候摆在眼前,让你决定是继续聊,还是把费钱的活儿挪到优惠时段。
特性
- 实时准确 —— 每 30 秒用
Intl.DateTimeFormat('Asia/Shanghai')刷新,无需手动设置时区 - 随意拖动 —— 拖到任何位置,位置记忆在
localStorage,且不会拖出屏幕 - 点击看详情 —— 详情卡显示当前北京时间、高峰/优惠窗口、V4-Flash / V4-Pro 参考价
- 零 host 风险 —— 纯浏览器插件,host 半是 no-op
- 与仓库级
AGENTS.md里的「峰谷计价提醒」文字规则互补:规则管提问时机,角标管全天候可见
安装
dsh plugin --profile web add dsh-peak-badge
重启 dsh web,硬刷新浏览器(macOS:Cmd+Shift+R;其他:Ctrl+Shift+R)。角标默认出现在左下角,拖到哪都行。
用法
- 看状态:绿 = 优惠,橘 = 高峰;胶囊上同时显示当前北京时间
- 拖动:按住移动,松开即固定;位置跨刷新保持
- 详情:原地点击(不拖动)展开/收起信息卡
参考价(2026-08-17 起生效,元/百万 tokens)
| 模型 | 高峰 输入/输出 | 优惠 输入/输出 |
|---|---|---|
| V4-Flash | ¥3.0 / ¥9.0 | ¥1.5 / ¥4.5 |
| V4-Pro | ¥9.0 / ¥27.0 | ¥4.5 / ¥13.5 |
缓存命中按输入价减半计费。以官方定价页为准:https://api-docs.deepseek.com/quick_start/pricing
结构
lib/index.js—— host 半(no-op,浏览器插件)lib/client.js—— 浏览器半:window.__ModuleLoader__.load()+shell.overlay插槽cordis.patch.yml—— bundle patch(insertpeak-badge行)
开发
npm run check # 语法检查 host + client
dsh plugin --profile web add "link:$PWD" # 从源码本地安装
卸载
dsh plugin --profile web remove dsh-peak-badge
许可证
MIT © 2026 Sue YoungZen