← 返回
效率工具 中文

Gateway Keeper

OS-level watchdog that monitors OpenClaw gateway health and auto-restarts on crash. After restart, triggers session recovery so interrupted work resumes auto...
系统级看门狗,监控OpenClaw网关健康,崩溃自动重启后触发会话恢复,自动继续中断的工作。
russellfei
效率工具 clawhub v2.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 773
下载
💾 7
安装
1
版本
#latest

概述

Gateway Keeper

OS-level watchdog for OpenClaw gateway. Runs outside the gateway process so it survives crashes.

How It Works

  1. Health check — Runs openclaw gateway status every 15 minutes
  2. Auto-restart — If gateway is down, runs openclaw gateway start
  3. Recovery signal — Writes logs/gateway-recovery.json with crash timestamp
  4. Session recovery — HEARTBEAT.md template detects recovery file, prompts agent to check incomplete work

Quick Setup

Install

Run the appropriate install script for your OS:

Windows (PowerShell as Admin):

powershell -ExecutionPolicy Bypass -File "<skill-dir>/scripts/install.ps1"

Linux/macOS:

bash "<skill-dir>/scripts/install.sh"

Uninstall

Windows:

powershell -ExecutionPolicy Bypass -File "<skill-dir>/scripts/uninstall.ps1"

Linux/macOS:

bash "<skill-dir>/scripts/uninstall.sh"

Recovery Protocol

After gateway restart, the agent should check logs/gateway-recovery.json:

{
  "crashed_at": "2026-02-26T00:00:00Z",
  "restarted_at": "2026-02-26T00:15:00Z",
  "restarted_by": "gateway-keeper"
}

Add to HEARTBEAT.md (done automatically by install script):

## Gateway Crash Recovery
If `logs/gateway-recovery.json` exists:
1. Read crash timestamp
2. List all active sessions/sub-agents
3. Check each for incomplete work
4. Resume or retry as needed
5. Delete the recovery file when done

Files

FilePurpose
---------------
scripts/check-gateway.ps1Windows health check + restart
scripts/check-gateway.shLinux/macOS health check + restart
scripts/install.ps1Windows Task Scheduler setup
scripts/install.shLinux/macOS cron/systemd setup
scripts/uninstall.ps1Windows cleanup
scripts/uninstall.shLinux/macOS cleanup

Customization

Edit check interval by modifying the scheduled task/cron entry. Default: 15 minutes.

To change recovery behavior, edit the HEARTBEAT.md recovery section.

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-03-30 04:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

File Manager

russellfei
OpenClaw自动化文件管理助手,用于批量文件操作、智能分类、重复文件清理、文件重命名、目录同步等任务。当用户需要整理文件、批量重命名、清理重复文件、同步目录或自动化文件工作流时使用此技能。
★ 17 📥 16,938
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,454
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,116