Errors / gateway.mode=local
Fix: Gateway Mode Not Set
Error: "gateway.start blocked: set gateway.mode=local"
What It Means
OpenClaw requires you to explicitly set the gateway mode in your configuration as a security measure. Without this setting, the gateway refuses to start — this prevents unintended access if you forgot to configure it properly.
Common Causes
- •Fresh installation without running the setup wizard
- •Config file missing the gateway.mode setting
- •Upgraded from an older version that didn't require this
Ask Your Agent to Fix This
Copy this prompt and send it to your OpenClaw agent:
Set gateway.mode to "local" in my OpenClaw config (~/.openclaw/
openclaw.json). Then start the gateway and tell me if it worked.
How to Fix It
Option 1: CLI Wizard (Recommended)
openclaw configure
Follow the prompts and set gateway mode to "local" when asked.
Option 2: Edit Config Manually
Add this to your config:
{
"gateway": {
"mode": "local"
}
}
How to Prevent This
- ✓Run
openclaw onboardfor initial setup - ✓Use
openclaw configureto update settings
Related Errors
Related Guides
Still having trouble?
Ask on Discord