restart-guardDeterministic OpenClaw gateway restart with down/up state-machine verification, origin-session proactive ACK, and backward-compatible config.
Install via ClawdBot CLI:
clawdbot install Zjianru/restart-guardSafely restart gateway while preserving context and guaranteeing a post-restart report path to the user session.
安全重启网关,保留上下文,并保证重启后可主动回报到用户会话。
Use this skill when the task involves OpenClaw gateway restart, watchdog recovery, or post-restart reporting.
当任务涉及 OpenClaw 网关重启、看门狗恢复、重启后回报时使用。
Natural-language triggers (must auto-run, do not ask user for script commands):
自然语言触发(必须自动执行,不让用户手工跑脚本):
openclaw CLI is available.config.example.yaml or config/restart-guard.yaml.example copied to runtime path).openclaw CLI 可用。When user expresses restart intent without specifying channel details:
scripts/auto_restart.py.--notify-mode origin.effective_notify_plan.当用户仅表达重启意图且未指定渠道细节时:
scripts/auto_restart.py 自动执行全流程。--notify-mode origin。effective_notify_plan。python3 <skill-dir>/scripts/discover_channels.py --config <config-path> --json
Ask user:
origin recommended, or selected, all)询问用户:
origin,可选 selected、all)python3 <skill-dir>/scripts/write_context.py \
--config <config-path> \
--reason "config change" \
--verify 'openclaw health --json' 'ok' \
--resume "report restart result to user"
Recommended one-command entry:
python3 <skill-dir>/scripts/auto_restart.py \
--config <config-path> \
--reason "config change" \
--notify-mode origin
推荐单命令入口:
python3 <skill-dir>/scripts/auto_restart.py \
--config <config-path> \
--reason "配置变更" \
--notify-mode origin
python3 <skill-dir>/scripts/restart.py \
--config <config-path> \
--reason "config change" \
--notify-mode origin \
--origin-session-key <session-key>
Selected channel mode:
python3 <skill-dir>/scripts/restart.py \
--config <config-path> \
--reason "config change" \
--notify-mode selected \
--channel telegram \
--target 726647436
python3 <skill-dir>/scripts/postcheck.py --config <config-path>
restart_guard.result.v1status, restart_idrestart_idorigin_session_keynotify_modechannel_selectioneffective_notify_planstate_timestampsdiagnostics_filedelivery_statusseverityfailure_phaseerror_codedelivery_attemptsdelivery_routedelivery_exhausteddiagnostics_filewebui is not treated as disabled notification anymore; origin-session ACK is primary path.webui 不再视为禁用通知;主路径是回发到发起会话。ENHANCED_RESTART_IMPLEMENTATION_SPEC.md.ENHANCED_RESTART_IMPLEMENTATION_SPEC.md。down_detected && start_attempted && up_healthydown_detected && start_attempted && up_healthyrestart-diagnostics-.md/json ), sends concise summary, and retries delivery within budget.restart-diagnostics-.md/json ),发送简要摘要,并在预算内重试送达。origin session -> agent:main:main -> all discovered external channels.源会话 -> agent:main:main -> 所有已发现外部渠道。Generated Mar 1, 2026
A cloud service provider uses Restart Guard to safely restart OpenClaw gateways during scheduled maintenance or configuration updates. It ensures deterministic restarts with state verification and automatically notifies operations teams via integrated channels like Slack or Discord about the restart status, minimizing downtime and maintaining user trust.
An IoT company deploys Restart Guard to manage restarts of OpenClaw gateways across a fleet of edge devices. It handles watchdog recovery for unresponsive devices, verifies post-restart health, and sends proactive reports to central monitoring systems, ensuring reliable device operations and reducing manual intervention.
A financial institution employs Restart Guard to restart gateways in trading platforms after software updates or failures. It guarantees context preservation and delivers immediate restart results to traders via secure channels, maintaining compliance and minimizing disruption to high-frequency trading operations.
A telecommunications operator uses Restart Guard for restarting OpenClaw gateways in network infrastructure during upgrades or fault recovery. It performs down/up state verification and notifies network engineers through webhooks, ensuring service continuity and efficient incident management in critical communication networks.
An enterprise IT department integrates Restart Guard into automation workflows to restart gateways for applications like CRM or ERP systems. It automates the restart process with configurable notifications to IT staff via platforms like Feishu, reducing manual errors and improving system reliability.
Offer Restart Guard as a cloud-based service with tiered subscriptions based on usage volume, such as number of restarts per month or supported notification channels. Revenue is generated through monthly or annual fees, targeting businesses needing reliable gateway management without on-premise setup.
Sell perpetual licenses for on-premise deployment of Restart Guard, including customization, support, and training services. Revenue comes from one-time license sales and ongoing maintenance contracts, appealing to large organizations with strict security or compliance requirements.
Provide Restart Guard as part of a managed IT service, where the vendor handles installation, monitoring, and troubleshooting for clients. Revenue is generated through service-level agreements (SLAs) and performance-based pricing, ideal for companies outsourcing their gateway operations.
💬 Integration Tip
Ensure the OpenClaw CLI and required binaries like python3 and curl are installed, and set environment variables such as GATEWAY_AUTH_TOKEN and at least one webhook token for notifications before integration.
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞
Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.
Clawdbot documentation expert with decision tree navigation, search scripts, doc fetching, version tracking, and config snippets for all Clawdbot features
Interact with Moltbook social network for AI agents. Post, reply, browse, and analyze engagement. Use when the user wants to engage with Moltbook, check their feed, reply to posts, or track their activity on the agent social network.
OpenClaw CLI wrapper — gateway, channels, models, agents, nodes, browser, memory, security, automation.
MoltGuard — runtime security plugin for OpenClaw agents by OpenGuardrails. Helps users install, register, activate, and check the status of MoltGuard. Use wh...