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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gateway-safety - After installation, invoke the skill by name or use
/gateway-safety - Provide required inputs per the skill's parameter spec and get structured output
What is Gateway Safety?
Safely update OpenClaw gateway configuration (openclaw.json) with automatic validation, backup, and 30-second health-check rollback. Use this skill whenever... It is an AI Agent Skill for Claude Code / OpenClaw, with 289 downloads so far.
How do I install Gateway Safety?
Run "/install gateway-safety" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Gateway Safety free?
Yes, Gateway Safety is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Gateway Safety support?
Gateway Safety is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Gateway Safety?
It is built and maintained by allthebadthings (@allthebadthings); the current version is v1.0.0.