ClawDoc ๐Ÿฆž๐Ÿฉบ

A self-hosted Telegram bot that keeps your OpenClaw running. It monitors, diagnoses, and fixes problems automatically.

What you get

๐Ÿ‘€

Automatic Recovery

ClawDoc checks OpenClaw every 15 minutes. If something breaks, it figures out why, fixes it, and tells you what happened โ€” all before you notice.

๐Ÿ”„

Remote Control

Restart services, check system health, and view logs from anywhere. Everything is a button tap in Telegram.

โช

Config Rollback

Your config is backed up automatically. If an update breaks something, pick any previous version and restore it with one tap.

๐Ÿ”

Full Diagnostics

One button runs a complete health check and tells you exactly what's wrong. If it can fix the problem, it gives you a button for that too.

๐ŸŒ

Network Monitoring

Watches your connection and notifies you when it drops or comes back, along with how long the outage lasted.

๐Ÿ”’

Your Bot, Your Machine

Runs locally on your machine and only responds to your Telegram account. Nothing goes through external servers.

When something breaks

ClawDoc works through a fix chain automatically, stopping as soon as the problem is resolved:

1

Check if the config is valid โ€” if it's broken, restore from the most recent backup

2

Restart the gateway and verify it comes back healthy

3

If that didn't work, run OpenClaw's built-in doctor to repair common issues

4

If still down and AI is enabled, diagnose the error logs and try a targeted fix

5

If nothing works, message you with exactly what went wrong

Most issues are resolved at step 1 or 2.

Why it works

OS (launchd / systemd)
  โ””โ”€โ”€ keeps ClawDoc running
        โ””โ”€โ”€ keeps OpenClaw running

ClawDoc runs as its own system service, independent of OpenClaw.
When OpenClaw goes down, ClawDoc is still there to bring it back.

Get started

1
Run the installer

You'll be prompted for a bot token. ClawDoc finds your OpenClaw install automatically.

2
Claim your bot in Telegram

Send the claim code, choose your preferences, and you're done.

curl -fsSL https://raw.githubusercontent.com/rungmc357/clawdoc/main/install.sh | bash

Or just tell your OpenClaw agent:

Install ClawDoc on my machine. Read the AGENTS.md at https://github.com/rungmc357/clawdoc for setup instructions.

Add AI if you want

Everything works with buttons out of the box. If you have Ollama running locally, ClawDoc can also understand plain English and do smarter diagnostics.

"why is openclaw down?" Error analysis Custom skills