跳到正文

zhu168/dsh-save-money

130最近提交 2026年8月15日

dsh-save-money DSH 插件

dsh-save-money 是 DeepSeek Harness (DSH) 的一个插件,允许你自定义时间窗口,在窗口期间自动暂停(而非停止)运行中的任务,并在窗口结束后恢复。它主要针对 LLM API 的峰谷定价(例如 DeepSeek 高峰时段 9:00–12:00、14:00–18:00 北京时间,低谷半价),也适用于分时电价、带宽错峰或任何“不希望机器在此期间工作”的场景。插件在会话头部提供持久化的状态入口和顶部浮动横幅提醒。

如何安装 dsh-save-money DSH 插件

dsh plugin --profile web add ~/dsh-save-money-1.2.5.tgz

复制不会执行命令。安装 dsh-save-money DSH 插件前请核对仓库和版本。

dsh-save-money DSH 插件数据来源

dsh-save-money DSH 插件快照日期:2026年8月16日

discovered

dsh-save-money DSH 插件能做什么

  • 配置多个暂停/恢复时间窗口,支持跨午夜窗口和按工作日过滤。
  • 在暂停时间到达时自动冻结运行中的任务,精确保留进度,窗口结束后自动恢复。
  • 在暂停窗口内阻止 AI 发送新请求,从而不产生费用。
  • 一键预设 DeepSeek 高峰时段,带 2 分钟边界裕度(08:58–12:02、13:58–18:02)。
  • 配置持久化保存到工作区文件(save-money.config.json),浏览器刷新和插件重新激活后仍保留。
  • 支持 IANA 时区下拉框、浏览器自动检测和北京时间回退。

dsh-save-money DSH 插件适合哪些场景

  • 在 API 高峰定价时段自动暂停 LLM 调用,降低费用。
  • 安排任务在分时电价或带宽低谷时段运行。
  • 在指定静默时段(如夜间)阻止机器工作。
  • 临时暂停所有 AI 活动,同时保持对话上下文不受影响。
  • 轻松跳过单个暂停窗口,无需禁用整个功能。

dsh-save-money DSH 插件适合谁

  • 使用 DeepSeek Harness 并希望优化 API 调用成本的开发者。
  • 在分时电价或带宽定价机器上运行 DSH 的用户。

dsh-save-money DSH 插件的限制

  • 仅在 DSH 内生效,无法独立使用。
  • 需要手动安装和配置(尽管插件提供 UI 设置)。
  • 在暂停窗口内 AI 不会回复(包括新对话)——这是预期行为。
  • 插件仍在积极开发中,旧版本可能存在问题(如 v1.2.2 之前有 ReferenceError,v1.2.5 之前 UI 设置无效)。

dsh-save-money DSH 插件的仓库 README 摘录

以下文字摘自 dsh-save-money DSH 插件的上游仓库 zhu168/dsh-save-money 的 README,版权归原作者,仅作引用。

**Save-money plugin** for DSH (DeepSeek Harness) — define your own "pause / resume" time windows; at pause time running long tasks are **paused** (not stopped) automatically, and they resume when the window ends. Built for LLM API **peak/off-peak pricing** (e.g. DeepSeek peak hours 9:00–12:00, 14:00–18:00 Beijing time, off-peak at half price), and equally useful for time-of-use electricity rates, bandwidth off-peak shifting, or any "I don't want the machine working during this period" scenario. > Status: ✅ Implemented, continuously maintained. [中文版](./README.zh.md) ## Interface ![Save-money plugin screenshot](./screenshot.en.png) The colored status text in the top-right of the session header (Save · ⚪/🟢/🟡/🔴, color follows the state) is the single persistent entry — click it to open the settings popover. When a pause is upcoming or active, a reminder banner appears at the top of the page (with the **End this save mode** button). ## Features - **Multiple time windows**: add / remove pause-resume windows freely; supports midnight-crossing windows (23:00–08:00) and per-weekday filtering; - **Automatic pause on schedule**: when the pause time arrives, running tasks are safely "

阅读完整 README仓库许可: MIT

dsh-save-money DSH 插件常见问题

如何安装 dsh-save-money 插件?

可以通过官方 `dsh plugin add` 命令安装:`dsh plugin --profile web add ~/dsh-save-money-1.2.5.tgz`。也可以使用 `--patch` 方法配合 `cordis.patch.yml` 进行本地开发。安装前需要先启动 DSH。

暂停时任务进度会丢失吗?

不会,插件会冻结运行中的任务,精确保留进度。没有任何中断或丢失。窗口结束后任务会自动从暂停处恢复。

在暂停窗口内发起新对话会怎样?

暂停窗口内 AI 不会回复,即使是对新对话。这是预期行为——插件通过不发送任何请求来节省费用。要立即恢复,请点击“退出本次省电模式”按钮。

可以设置多个时间窗口吗?

可以,你可以自由添加和删除暂停/恢复窗口。插件支持跨午夜窗口和按工作日过滤,因此可以设置复杂的时间表。

除了北京时间,插件支持其他时区吗?

支持,插件提供 IANA 时区下拉框,并支持浏览器自动检测。默认回退到北京时间(+8),但你可以选择任何 IANA 时区。