claw-sos

Install, run, and manage the SOS emergency recovery tool for OpenClaw instances. Use when (1) the bot stops responding on Telegram/Discord and needs diagnosis or recovery, (2) you need to install SOS on a new or existing machine, (3) autofix, rollback, network check, or Telegram test is needed, (4) the user mentions "sos", "recovery", "bot is down", "not responding", or "emergency fix".

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "claw-sos" with this command: npx skills add robertfarkash29-source/claw-sos

claw-sos

Emergency recovery tool for OpenClaw. Diagnoses and fixes unresponsive bots via SSH.

Install

The script is bundled at scripts/sos.sh. Install locally:

cp scripts/sos.sh /usr/local/bin/sos
chmod +x /usr/local/bin/sos

To install on a remote machine:

scp scripts/sos.sh root@<IP>:/usr/local/bin/sos
ssh root@<IP> "chmod +x /usr/local/bin/sos"

Alternative — install from GitHub:

curl -fsSL https://raw.githubusercontent.com/clawsos/claw-sos/main/install.sh | bash

Usage

Interactive (human via SSH)

sos          # whiptail arrow-key menu

Non-interactive (agent or cron)

sos auto     # autofix: diagnose → doctor → restart → force → nuclear
sos net      # network check only
sos tg       # telegram test message
sos --version
sos --help

When the bot is down — decision tree

  1. Run sos auto — handles 95% of cases automatically
  2. If autofix fails → run sos net — if network is broken, fix DNS/internet first
  3. If network is fine but bot still down → run sos tg — check Telegram delivery
  4. If Telegram fails → check bot token validity
  5. Last resort → sos menu option 9 (Nuclear) — kills everything and starts fresh

Menu Options

#NameWhat it doesSafe?
1Check statusGateway running, RAM, disk, version✅ Read-only
2RestartGraceful restart✅ Safe
3Force killKill process + restart⚠️ Drops active sessions
4RollbackRevert to previous version + config⚠️ Downgrade
5View logsLast 50 lines of gateway log✅ Read-only
6Full diagnosticRAM, disk, Telegram, sessions, process✅ Read-only
7Backup configSave config + version before changes✅ Safe
8Self-testVerify SOS script works✅ Read-only
9NuclearKill ALL openclaw processes, reload🔴 Last resort
10AutofixEscalating auto-repair⚠️ May restart
11Network checkDNS, internet, Telegram API, Anthropic✅ Read-only
12Telegram testSend real test message✅ Safe

Autofix Escalation Order

  1. Diagnose: process, RAM, disk
  2. Clean RAM/disk if critical
  3. openclaw doctor --fix
  4. Graceful restart → wait 15s → check
  5. Force kill + restart → wait 15s → check
  6. Nuclear (kill all + reload)

Stops as soon as gateway is healthy.

Log Location

All actions logged to ~/.openclaw/backups/sos.log. Read this to understand what happened during recovery:

cat ~/.openclaw/backups/sos.log

Platform Support

  • Linux: Full support (systemd, journalctl, free, /proc)
  • macOS: Full support (launchctl, log show, vm_stat, purge, dialog fallback)
  • Docker: Partial — no systemd, manual fallback works

Credentials

This skill uses no API keys or tokens of its own. It reads existing OpenClaw config to:

  • Check gateway status (local process, no network)
  • Send Telegram test messages (uses the bot token already configured in openclaw.json)
  • Check Anthropic API reachability (HTTPS ping only, no auth)

No credentials are stored, transmitted, or required to install or run SOS.

Source

GitHub: https://github.com/clawsos/claw-sos

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Backup Manager Pro

Manage automated backups for OpenClaw configurations, clean expired backups, and create pre-modification snapshots. 自动化备份管理系统:配置备份、过期清理、修改前快照。

Registry SourceRecently Updated
840Profile unavailable
Coding

Server Monitor Collector

Collect server monitoring data (Zabbix / Prometheus / Alibaba / Tencent / Huawei Cloud), generate CSV/XLSX reports and send via email or Feishu.

Registry SourceRecently Updated
300Profile unavailable
Coding

OpenClaw Mobile Gateway Installer

Installs and manages OpenClaw mobile gateway as a system service. Invoke when users need one-command deploy, start, stop, upgrade, or uninstall.

Registry SourceRecently Updated
2820Profile unavailable
Coding

Version Drift Publish

One command to check if your entire stack is up to date. SSHes into servers, queries APIs, and compares installed versions against latest — across every serv...

Registry SourceRecently Updated
2480Profile unavailable