A synchronization and recovery tool that maintains OpenClaw gateway authentication and automatically resumes agent sessions after errors.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install gateway-guard
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install gateway-guard using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Gateway Guard is a critical utility designed to ensure seamless communication between the OpenClaw orchestrator and its gateway. It actively manages the synchronization of authentication credentials, such as tokens and passwords, between the local configuration and the running gateway process. This tool is essential for developers using Openclaw Skills who encounter device_token_mismatch or unauthorized errors during agent execution.
Beyond simple configuration management, it acts as a self-healing mechanism for your AI environment. By monitoring gateway logs for unhandled errors, it can automatically trigger a continue command, allowing agents to resume their work without manual intervention. This increases the autonomy and reliability of multi-agent workflows and long-running sessions.
To integrate Gateway Guard with your existing Openclaw Skills, follow these steps.
Verify the current status of your gateway authentication:
python3 scripts/gateway_guard.py status --json
Apply configuration fixes and restart the gateway if necessary:
python3 scripts/gateway_guard.py ensure --apply --wait
To install the persistent watcher that handles both auth sync and auto-recovery, run the installation script:
bash scripts/install_watcher.sh
Gateway Guard manages state through configuration files and dedicated log trackers for Openclaw Skills.
| Component | Description |
|---|---|
openclaw.json |
Stores the primary gateway.auth (token or password) and gateway.port settings. |
logs/gateway.log |
The source log file analyzed for unhandled stop reason strings. |
logs/gateway-guard.continue-state.json |
Tracks cooldowns and execution state for the automated continue-on-error logic. |
com.openclaw.gateway-guard.watcher.plist |
The LaunchAgent configuration used for background persistence on macOS. |
ensure_gateway_then.sh wrappers to guarantee gateway readiness before launching TUIs or agent sessions.Loading
IntentRouter is an intelligent task director that analyzes user intent and delegates Openclaw Skills tasks to the most efficient LLM tier.

A structured autonomous coding agent that implements features story-by-story based on a project requirements document.

An intelligent orchestration skill that routes tasks to the most efficient AI models while managing sub-agent delegation.

A command-line utility for managing OpenClaw agent sessions, providing full visibility and control over session states and history files.

A specialized Linux toolset for high-quality FM radio recording and RDS station name extraction using RTL-SDR hardware.

A technical utility that compares two files and generates a clean, human-readable markdown diff to highlight additions, deletions, and modifications.








































