A cross-platform GUI application for monitoring and managing OpenClaw Gateway and TUI.
- Real-time Monitoring: Track Gateway, TUI, and port status
- Cross-Platform: Works on macOS, Windows, and Linux
- Multi-Language: English, Deutsch, Français, Italiano, Español
- AI Model Selection: Switch between Claude, Groq, and OpenAI models
- Watchdog Mode: Automatic restart on failures (macOS/Linux)
- Update Management: Check for updates with AI-powered security scanning
- Wake Detection: Auto-recovery after system sleep (macOS)
┌─────────────────────────────────────────┐
│ 🐾 OpenClaw Monitor │
│ Platform: Darwin Language: [DE ▼] │
├─────────────────────────────────────────┤
│ Status │
│ 🟢 Watchdog Running │
│ 🟢 Gateway Running │
│ 🟢 Port 18789 Responding │
│ 🟢 TUI Connected │
│ 🟢 Logs Fresh │
│ 🟢 Updates Up to date │
├─────────────────────────────────────────┤
│ AI Model │
│ [Claude Opus 4.5 (Best) ▼] [Apply] │
├─────────────────────────────────────────┤
│ Watchdog Auto-Mode │
│ Automatic Monitoring [ON] │
├─────────────────────────────────────────┤
│ Manual Control │
│ [🔄 Gateway] [🖥️ TUI] [⚡ All] │
├─────────────────────────────────────────┤
│ Software Update │
│ [🔍 Check] [⬇️ Install] │
└─────────────────────────────────────────┘
- Python 3.8 or higher
- Tkinter (usually included with Python)
- OpenClaw installed and configured
# Copy to your OpenClaw scripts directory
mkdir -p ~/.openclaw/scripts
cp openclaw-monitor.py ~/.openclaw/scripts/
cp watchdog.sh ~/.openclaw/scripts/
chmod +x ~/.openclaw/scripts/watchdog.sh
# Run the monitor
python3 ~/.openclaw/scripts/openclaw-monitor.pyCreate a clickable app:
# Create app structure
mkdir -p ~/Applications/OpenClaw\ Monitor.app/Contents/MacOS
mkdir -p ~/Applications/OpenClaw\ Monitor.app/Contents/Resources
# Create launcher script
cat > ~/Applications/OpenClaw\ Monitor.app/Contents/MacOS/OpenClaw\ Monitor << 'EOF'
#!/bin/bash
cd ~/.openclaw/scripts
exec python3 openclaw-monitor.py
EOF
chmod +x ~/Applications/OpenClaw\ Monitor.app/Contents/MacOS/OpenClaw\ Monitor
# Create Info.plist
cat > ~/Applications/OpenClaw\ Monitor.app/Contents/Info.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>OpenClaw Monitor</string>
<key>CFBundleIdentifier</key>
<string>com.openclaw.monitor</string>
<key>CFBundleName</key>
<string>OpenClaw Monitor</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSMinimumSystemVersion</key>
<string>10.13</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
EOF| Variable | Description | Default |
|---|---|---|
OPENCLAW_DIR |
OpenClaw installation directory | Auto-detected |
The monitor stores its settings in ~/.openclaw/:
monitor-config.json- Language preferenceopenclaw.json- OpenClaw configuration (model selection)last-update-check.json- Update check timestamp
The main GUI application with:
- Status Panel: Real-time component status
- Model Selector: Switch AI models on-the-fly
- Watchdog Toggle: Enable/disable automatic monitoring
- Manual Controls: Restart Gateway, TUI, or both
- Update Manager: Check and install updates with security scanning
Background daemon for automatic recovery:
# Start watchdog
~/.openclaw/scripts/watchdog.sh start
# Stop watchdog
~/.openclaw/scripts/watchdog.sh stop
# Check status
~/.openclaw/scripts/watchdog.sh status
# Single health check
~/.openclaw/scripts/watchdog.sh checkFeatures:
- Monitors Gateway and TUI health every 30 seconds
- Auto-restarts failed components
- Detects wake-from-sleep and performs recovery
- Cooldown protection (max 3 restarts per 10 minutes)
The update checker includes AI-powered security scanning:
curl | sh,wget | sh- Remote code executionnc -e,/dev/tcp- Reverse shellsrm -rf /- Destructive commands- Fork bombs
child_process,exec(),spawn()- Required for CLI operation
When dangerous patterns are detected, the monitor:
- Sends the diff to the configured AI model
- Receives a verdict: SAFE / REVIEW / DANGEROUS
- Displays the result with explanation
| Provider | Model | Description |
|---|---|---|
| Anthropic | claude-opus-4-5 | Best quality |
| Anthropic | claude-sonnet-4 | Fast & capable |
| Anthropic | claude-haiku-3 | Fastest |
| Groq | llama-3.3-70b | Open source, fast |
| Groq | llama-3.1-8b | Ultra-fast |
| OpenAI | gpt-4o | GPT-4 Omni |
| OpenAI | gpt-4o-mini | Fast & affordable |
# Check Python version
python3 --version # Should be 3.8+
# Check Tkinter
python3 -c "import tkinter; print('OK')"
# Run with debug output
python3 ~/.openclaw/scripts/openclaw-monitor.py# Manual restart
pkill -f openclaw-gateway
cd ~/clawdbot && pnpm openclaw gateway run# Restart TUI
pkill -f "openclaw.*tui"
cd ~/clawdbot && pnpm openclaw tuiContributions welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request
MIT License - See LICENSE for details.
🤖 Built with Claude Code