Auto-recover OpenClaw when health goes offline, gateway token mismatch (1008) appears, Telegram stops replying, or browser/control-ui disconnects. Runs safe first-pass repair and optional deep cleanup.
Use this skill when OpenClaw is unstable, for example:
health offline or Gateway not reachabletoken_mismatch / 1008 unauthorizedRun:
bash scripts/self_heal_openclaw.sh --profile jarvis
This performs non-destructive recovery:
If token mismatch is explicitly confirmed (1008 unauthorized), run:
bash scripts/self_heal_openclaw.sh --profile jarvis --sync-token
This additionally syncs:
gateway.remote.token <- gateway.auth.token$HOME/openclaw_pro/gateway.tokenRun:
bash scripts/self_heal_openclaw.sh --profile jarvis --deep-clean
--deep-clean additionally removes stuck local session cache under:
~/.openclaw-jarvis/agents/main/sessions/*.jsonl~/.openclaw-jarvis/agents/main/sessions/sessions.jsonopenclaw --profile jarvis health is OKopenclaw --profile jarvis channels status --probe is OK$HOME/openclaw_pro/gateway.token