macOS LaunchAgent instability on OpenClaw 2026.4.14
I am seeing repeated gateway outages on macOS that look like a LaunchAgent / service lifecycle issue, not a normal gateway crash.
Environment
• OpenClaw: 2026.4.14
• macOS: 26.3.1
• Host: Mac mini
• Gateway mode: local
• LaunchAgent label: ai.openclaw.gateway
• Node path: /opt/homebrew/opt/node@24/bin/node
• Entry point: /opt/homebrew/lib/node_modules/openclaw/dist/index.js
Symptom
The gateway repeatedly disappears and openclaw gateway restart reports:
Gateway LaunchAgent was installed but not loaded; re-bootstrapped launchd service.
openclaw doctor also sometimes reports:
• Gateway not running
• Gateway service not installed
even though the plist exists and the service had been running before.
Why this does not look like a normal gateway crash
In gateway.log, the shutdown is consistently:
• signal SIGTERM received
• received SIGTERM; shutting down
This looks like the process is being terminated externally, not crashing internally.
In macOS system logs, I repeatedly see launchd removing the service:
• service inactive: ai.openclaw.gateway
• removing service: ai.openclaw.gateway
Relevant observations
• launchctl print gui/<uid>/ai.openclaw.gateway shows the service as valid and running when up
• later, launchd logs show the same service being removed
• doctor --fix appears to reinstall / rewrite the LaunchAgent, which may be related
• plist mtime changes during these recovery attempts
• this can happen multiple times in a short window
Example sequence observed
• gateway starts normally
• channels initialize successfully
• later gateway receives SIGTERM
• launchd logs service inactive / removing service
• openclaw gateway restart then says the LaunchAgent was installed but not loaded and re-bootstraps it