Gateway Safety
/install gateway-safety
Gateway Safety
This skill ensures that any modifications to the OpenClaw gateway configuration are done safely. It prevents "death loops" and permanent session loss by verifying the gateway can successfully reboot before committing to a new config.
Core Rules
- Mandatory Script Use: Never edit
~/.openclaw/openclaw.jsondirectly. Always use the providedsafe-gateway-update.shscript. - Anti-Loop Policy: If the script fails 3 times consecutively, it will create a
GATEWAY_LOCKOUTfile. If this file exists, STOP ALL OPERATIONS and wait for Kevin. Do not attempt to bypass the lockout. - Backup Awareness: The script maintains its own backups, but for critical changes, manually verify
~/.openclaw/openclaw.json.known-goodis up to date.
Usage
To update the gateway configuration:
- Prepare the new configuration JSON file (e.g., at
/tmp/new_config.json). - Execute the safety script:
[SKILL_PATH]/scripts/safe-gateway-update.sh /tmp/new_config.json [timeout_seconds] - The script will:
- Validate the JSON syntax.
- Backup the current config.
- Apply the new config and restart the gateway.
- Poll for a successful "RPC probe: ok" status.
- Roll back to the previous config if the health check fails or times out.
Authorship
Created by Kevin Smith & Rook (Orbit Smith), March 2026.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gateway-safety - 安装完成后,直接呼叫该 Skill 的名称或使用
/gateway-safety触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gateway Safety 是什么?
Safely update OpenClaw gateway configuration (openclaw.json) with automatic validation, backup, and 30-second health-check rollback. Use this skill whenever... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 289 次。
如何安装 Gateway Safety?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gateway-safety」即可一键安装,无需额外配置。
Gateway Safety 是免费的吗?
是的,Gateway Safety 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gateway Safety 支持哪些平台?
Gateway Safety 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gateway Safety?
由 allthebadthings(@allthebadthings)开发并维护,当前版本 v1.0.0。