dsh-deepseek-price
Manifest valid★ 3⏱️ DeepSeek Price Range Timer | DeepSeek Harness Plugin: Sidebar Peak/Off-Peak Pricing Badge + Countdown to Half-Price + Clickable Details Panel + /price Command
dsh-deepseek-price — DeepSeek 价格区间计时工具 ⏱️
⏱️ 实时掌握 DeepSeek API 高峰/空闲价格区间:侧边栏徽标 + 距半价倒计时 + 点击详情面板 +
/price命令。
DeepSeek Harness 插件:实时显示 DeepSeek API 模型价格处于高峰时段还是空闲时段(低峰时段),并倒计时下一个半价时段。
- 侧边栏实时徽标:Web 界面左下角常驻显示
高峰时段(琥珀色圆点)或空闲时段·半价(绿色圆点);高峰时徽标直接显示 “距半价 X小时Y分”倒计时,悬停可见完整时段信息与价格表,点击弹出时段详情面板(当前时段、距半价倒计时、价格表),每 10 秒自动刷新。 /price命令:在会话中输出当前时段、距半价时段的时间、下次切换时间与官方价格表。
依据官方定价文档:模型 & 价格 | DeepSeek API Docs
高峰时段(北京时间):
周一至周五 9:00 - 12:00、14:00 - 18:00空闲时段:其余时间(含周末全天),价格为高峰时段价格的一半。
| 模型(元 / 百万 tokens) | 输入(缓存命中,空闲/高峰) | 输入(缓存未命中,空闲/高峰) | 输出(空闲/高峰) |
|---|---|---|---|
deepseek-v4-flash | 0.05 / 0.10 | 1.5 / 3.0 | 4.5 / 9.0 |
deepseek-v4-pro | 0.15 / 0.30 | 4.5 / 9.0 | 13.5 / 27.0 |
deepseek-v4-flash-vision-exp | 0.05 / 0.10 | 1.5 / 3.0 | 4.5 / 9.0 |
效果预览
示意图,实际外观随界面主题(浅色/深色)略有差异。
侧边栏徽标(高峰:琥珀色圆点 + "距半价"倒计时;空闲:绿色圆点 + "空闲·半价"):
点击徽标弹出的时段详情面板:
结构
dsh-deepseek-price/
├── package.json # dsh.client 声明(platform: web + ./client 导出)
├── lib/
│ ├── index.js # Host 插件:/price 命令
│ ├── client.js # Client 插件:侧边栏高峰/空闲徽标(自包含 bundle)
│ └── pricing.js # 纯逻辑:北京时间峰谷判定 + 价格表
└── README.md
安装
方式零(最简单,推荐):把仓库地址发给 DSH
把 https://github.com/oxgbl/dsh-deepseek-price 复制给你正在使用的 DeepSeek Harness 会话,
说"安装这个插件"即可。DSH 会自动完成:
- 从 GitHub 获取仓库文件(
gh api/ git clone / 下载 zip 均可); - 解压到
$env:USERPROFILE\.dsh\profiles\node_modules\dsh-deepseek-price; - 在 profile 的
cordis.patch.yml(桌面desktop\/ Webweb\)追加 loader entry; - 提示你重启 DSH Desktop(或 web 进程)。
重启后侧边栏底部出现定价徽标(点击可看详情),会话里可用 /price 命令。
终端用户也可以直接运行仓库里的
install.ps1(克隆或解压后执行):powershell -ExecutionPolicy Bypass -File install.ps1 -Profile desktop # 或 -Profile web
手动安装步骤
⚠️ 重要:本插件是 loader entry(客户端模块)格式,不是 profile bundle。 不要把它加进 profile 的
dsh.profile.bundles数组——桌面/Web 的启动器 要求该数组里的每个包都声明dsh.bundle.patch(像内置的@deepseek-ai/dsh-base那样),否则会在启动时直接报错退出:profile bundle "dsh-deepseek-price" declares no dsh.bundle in its package.json。
步骤
-
把
dsh-deepseek-price放到 profile 可解析的位置(flat fallback):Copy-Item -Recurse .\dsh-deepseek-price "$env:USERPROFILE\.dsh\profiles\node_modules\dsh-deepseek-price" -
在 profile 的用户补丁文件里追加一条 loader entry(
id不能与其它 entry 重复):- 桌面版:
$env:USERPROFILE\.dsh\profiles\desktop\cordis.patch.yml - Web 版:
$env:USERPROFILE\.dsh\profiles\web\cordis.patch.yml
- insert: - id: deepseek-price name: dsh-deepseek-price - 桌面版:
-
完全退出并重新打开 DeepSeek Harness Desktop(或重启 web 进程)。
生效后:宿主半注册 /price 命令;客户端半被 dsh-client-modules 扫进
window.__DSH_BOOT__ 图,浏览器加载 /plugins/dsh-deepseek-price/client.js,
侧边栏底部出现高峰/空闲徽标。
dsh plugin add dsh-deepseek-price只会把包作为依赖安装(既不会加入dsh.profile.bundles,也不会触发启动报错),但不会激活插件——仍需执行 上面的第 2 步。
说明:
dsh.profile.bundles与cordis.patch.yml是两种不同机制——bundle 要求dsh.bundle.patch声明并贡献整层补丁;loader entry 则是把包当作一个 Cordis 插件行挂进组合。本插件属于后者。客户端插件清单(window.__DSH_BOOT__)在 启动时扫描 loader entries,新增插件需要重启桌面应用才会生效;已有插件的 bundle 内容变更可借助pnpm run dev:web的 HMR 链热更新。
卸载
- 从对应 profile 的
cordis.patch.yml删除deepseek-price的insert条目(桌面:desktop\cordis.patch.yml;Web:web\cordis.patch.yml); - 删除
$env:USERPROFILE\.dsh\profiles\node_modules\dsh-deepseek-price; - 重启桌面应用。
价格数据时效
价格与时段以官方文档页面为准。DeepSeek 曾于 2026-08-17 启用峰谷分时定价并上调价格,
本插件内置的时段/价格快照来自该页面;官方调整后请同步更新 lib/pricing.js 与 lib/client.js
中对应的 PEAK_WINDOWS / MODELS 常量。
License
MIT
Comments
Loading…
Similar plugins
by 2006spy
DSH 实时 token 计费插件:官网人民币价直接计费、高峰/错峰自动切换、价格实时跟随官网、可视化自定义模型价格。Real-time token billing plugin for DeepSeek Harness (dsh web).
★ 4
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add dsh-token-billingby hojas
侧栏的 DeepSeek API 价格时段提醒:当前处于空闲时段还是高峰时段、距离切换还有多久,以及当前生效的价目表。
★ 0
JavaScript
Oct 12, 2026
dsh plugin --profile web add dsh-price-tipby CNyaotian-Lunar
DSH 插件:按 DeepSeek 峰谷分时计价,在高峰时段给 token 花销踩刹车(拦大任务 / 压缩输出上限 / 让模型少说废话),并提供一键放行口令
★ 0
MIT
JavaScript
Sep 25, 2026
dsh plugin --profile web add dsh-peak-gateby ybbms777
DeepSeek Harness (DSH) plugin: deepseek_pricing_tier — is the DeepSeek API on peak (full price) or off-peak (half price) right now, and when does it flip. Zero network, no API key.
★ 0
MIT
JavaScript
Oct 18, 2026
dsh plugin --profile web add dsh-deepseek-pricingby AGImentu
DSH (DeepSeek Harness) Web 插件:每条助手消息旁的费用胶囊 + 设置里的「费用统计」页(逐条计费项、回复与上下文压缩分开、官方 CNY/USD 价目表、高峰/空闲感知)
★ 0
MIT
TypeScript
Oct 22, 2026
dsh plugin --profile web add dsh-cost-statsby LucienLL
DeepSeek Harness plugin: peak/off-peak price watch, live account balance with tiered low-balance alerts, and a top-up button for the main web UI
★ 0
MIT
JavaScript
Aug 26, 2026
dsh plugin --profile web add dsh-peak-price-panel