SkillHub

gateway-service

v0.1.0

将OpenClaw Gateway安装为Windows计划任务,实现崩溃自动重启及管理员权限开机自启。

Sourced from ClawHub, Authored by suncxw-creator

Installation

Please help me install the skill `gateway-service` from SkillHub official store. npx skills add suncxw-creator/gateway-service

Gateway 服务化

将 OpenClaw Gateway 安装为 Windows 定时任务(Scheduled Task),实现进程崩溃后自动重启。

安装服务

openclaw gateway install

注意:需要管理员权限运行。

管理命令

命令 说明
openclaw gateway install 安装服务(需管理员权限)
openclaw gateway start 启动服务
openclaw gateway stop 停止服务
openclaw gateway restart 重启服务
openclaw gateway status 查看状态

服务信息

  • Windows 任务名称:OpenClaw Gateway
  • 启动方式:开机自动启动
  • 失败策略:进程退出后自动重新启动

适用场景

  • Gateway 进程经常崩溃退出
  • 需要 7×24 小时运行
  • 不想手动重启 Gateway
  • 电脑重启后希望 Gateway 自动运行

故障排查

  1. 查看服务状态:openclaw gateway status
  2. 查看日志:%USERPROFILE%AppDataLocalTempopenclaw
  3. 手动启动:openclaw gateway start