dsh-keep-awake
Manifest validKeeps the DSH host awake during active tasks using native power assertions and releases them when tasks finish.
dsh-keep-awake
DeepSeek Harness 主机保活插件:AI 任务运行时自动保持主机亮屏、防止休眠,全部任务结束后释放保活请求。
插件介绍
- 保活由 DSH 后端控制,支持多个会话和子 Agent;关闭网页或切换到后台不影响运行中的任务。
- 在侧边栏的设置同一行显示太阳图标,点击可查看状态、运行任务数量,以及开启或关闭保活。
- 使用普通用户权限的临时电源断言,不需要管理员权限,不修改全局电源设置,不模拟鼠标或键盘。
- Windows 使用 Power Request,macOS 使用 IOKit,Linux 使用 D-Bus ScreenSaver 和 logind。系统接口不可用时会显示部分生效或失败状态。
- 主机开关作用于当前 DSH 进程,重启后默认开启。插件停止或宿主退出时释放请求。
保护对象是运行 DSH 后端的设备。手动锁屏、合盖及系统强制策略可能覆盖保活。Linux 已实机验证;Windows 和 macOS 已实现,尚待实机验证。针对 DSH 0.2.0-rc.2 开发。
安装方法
从 npm 安装(推荐)
dsh plugin --profile web add @zi7tian/dsh-keep-awake
从 GitHub 安装
dsh plugin --profile web add github:zi7tian/dsh-keep-awake
本地安装
git clone https://github.com/zi7tian/dsh-keep-awake.git
cd dsh-keep-awake
npm ci
dsh plugin --profile web add link:/absolute/path/to/dsh-keep-awake
将路径替换为实际插件目录,Windows 使用对应本地路径。插件依赖 Koffi,安装时会获取适合当前平台的原生组件;Linux 还需要系统提供 libdbus-1 及相应的会话服务。
安装或升级后,等待当前任务结束,重启 dsh web 并刷新页面。设置旁出现太阳图标即表示控制面板已加载。桌面版请通过其插件管理器安装。
卸载
dsh plugin --profile web remove @zi7tian/dsh-keep-awake
Comments
Loading…
Similar plugins
by bearice
Holds the OS wake lock while any agent, subagent, or background job runs, releases it after a configurable grace period, and provides a bilingual web settings page with live status, manual hold, and d
★ 0
↓ 105/wk
MIT
JavaScript
Aug 27, 2026
dsh plugin --profile web add dsh-keep-awakeby edusrez
Wakes the main agent after any DSH restart so interrupted work resumes automatically — adds a restart tool and an optional canary that validates the boot and warns instead of breaking.
★ 8
↓ 367/wk
MIT
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-smart-restartby Bole1001
Keep your device awake while DeepSeek Harness is running. Prevents system sleep on macOS, Windows, and Linux for remote access.
★ 0
TypeScript
Aug 19, 2026
dsh plugin --profile web add dsh-power-awakeDSH 桌面端(Windows)重启插件:从侧边栏按钮或默认关闭的模型工具重启宿主,重启后按会话原有预设自动唤醒;宿主繁忙时拒绝重启。
★ 0
dsh plugin --profile web add dsh-desktop-auto-restartby nickkkkkk123123
Auto-wakes the main agent after a DSH service restart: compares last-run timestamps, posts a recovery notice with humanized downtime, and delivers it so interrupted work picks itself back up. Runs on
★ 1
MIT
JavaScript
Aug 29, 2026
dsh plugin --profile web add dsh-resume-on-restartby Carrick-K7
Restart DSH, then carry on: the answer in progress finishes, DSH closes in an orderly way, and every conversation the restart interrupted is woken.
★ 0
MIT
JavaScript
Sep 19, 2026
dsh plugin --profile web add dsh-keep-going