← 返回
未分类 中文

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 diagnosi...
安装、运行并管理 OpenClaw 实例的 SOS 紧急恢复工具。当(1)机器人在Telegram/Discord 上停止响应且需要诊断时使用。
robertfarkash29-source robertfarkash29-source 来源
未分类 clawhub v6.1.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 423
下载
💾 0
安装
1
版本
#devops#emergency#latest#recovery

概述

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

版本历史

共 1 个版本

  • v6.1.2 当前
    2026-05-03 10:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 46 📥 29,545
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,644
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,939