Gateway fails to start
Last updated Mar 30, 2026
If your gateway shows a red Error or Stopped status in Settings > Gateway and won't start, a port conflict is the most common cause. The gateway port is configured in your OpenClaw configuration file (~/.openclaw/openclaw.json) — if port 18789 is taken, update the port value there, then click Restart gateway. If that doesn't help, work through the causes below.
Port conflict
Another process on your machine is already using port 18789 (the default gateway port). The gateway cannot bind to a port that's taken.
To fix:
- Open
~/.openclaw/openclaw.jsonin a text editor. - Change the
"port"value to an unused port (e.g.18790). - Save the file and click Restart gateway in Settings > Gateway.
- If you're on macOS or Linux and want to identify the conflicting process first, run
lsof -i :18789in your terminal.
Missing or corrupt OpenClaw binary
The OpenClaw binary was deleted, moved, or never fully downloaded. Without it, the gateway cannot run.
To fix:
- Reinstall the MultiClaw desktop app from multiclaw.io/download — this restores the OpenClaw binary.
- Once reinstalled, click Restart gateway in Settings > Gateway.
Empty or invalid workspace token
Your gateway token was cleared — this can happen after a failed sign-in or an app reset. The gateway won't start without a valid token.
To fix:
- Open Settings > General and scroll to the Account card.
- Click Log out.
- Sign back in with your account credentials.
- Your token is regenerated automatically. Click Restart gateway once signed in.
Binary not executable (macOS and Linux)
The OpenClaw binary exists but does not have execute permissions. This often happens after a manual file move or a filesystem restore.
To fix:
- The OpenClaw binary is located at
~/.openclaw/bin/openclawon macOS and Linux (or%APPDATA%\OpenClaw\bin\openclaw.exeon Windows). - In your terminal, run
chmod +x ~/.openclaw/bin/openclaw. - Click Restart gateway in Settings > Gateway.
Data directory inaccessible
The OpenClaw data directory no longer exists or your user account cannot write to it. The gateway needs a writable directory to store its data.
To fix:
- Open
~/.openclaw/openclaw.jsonin a text editor. - Update the
"data_dir"value to a folder that exists and that you have write access to. - Click Restart gateway in Settings > Gateway.
Still not working?
Check the gateway log at ~/.openclaw/logs/gateway.log — it will usually identify the exact failure line.
Related articles
Agent shows 'Disconnected'
Fix a disconnected agent status caused by gateway, network, session, or firewall issues.
Cannot sign in
Resolve sign-in failures caused by wrong workspace URL, expired sessions, SSO errors, or unconfirmed email.
Desktop app won't update
Fix a stuck or failing auto-updater by clearing cache or downloading the installer manually.