self-updater

⭐ OPEN SOURCE! GitHub: github.com/GhostDragon124/openclaw-self-updater ⭐ ONLY skill with Cron-aware + Idle detection! Auto-updates OpenClaw core & skills, analyzes cron schedules to avoid user tasks, waits for idle time, AI-powered risk assessment, user approval for high-risk updates, and smart notifications. Use for: auto-update, maintenance, cron, smart-schedule, skills, gateway, restart, healthcheck, monitoring, ops

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 "self-updater" with this command: npx skills add ghostdragon124/self-updater

Self Updater

The ONLY OpenClaw updater with Cron-aware + Idle detection!

Intelligent auto-updater that checks for updates while respecting your scheduled tasks.

Why This Skill?

FeatureOther UpdatersThis Skill
Cron-aware✅ Avoids your scheduled tasks
Idle detection✅ Waits for system idle
AI Risk Assessment✅ Evaluates update impact
User Approval✅ Confirms High-risk updates
Smart Notifications⚠️ Basic✅ Concise, channel-aware

Features

  • 🔒 Cron-aware: Reads ~/.openclaw/cron/jobs.json to avoid disrupting your scheduled tasks
  • ⏳ Idle detection: Waits for system idle before updating (no interruption!)
  • 🧠 AI Impact Assessment: Evaluates risk score (Low/Medium/High) before updating
  • ✅ User Approval: Pauses and asks before High-risk updates
  • 📲 Smart Notifications: Auto-detects Telegram/Feishu, sends concise reports
  • 🔄 Dual Updates: Updates both OpenClaw core AND installed skills
  • 🛡️ Auto-restart: Ensures gateway comes back up after updates
  • 🌐 Port Auto-detect: Reads gateway port from config automatically

Quick Start

# Check for updates
powershell -ExecutionPolicy Bypass -File scripts/self-updater.ps1

# Auto-update with smart timing
powershell -ExecutionPolicy Bypass -File scripts/self-updater.ps1 -AutoUpdate -SmartTiming

# Full automation (for cron)
powershell -ExecutionPolicy Bypass -File scripts/self-updater.ps1 -AutoUpdate -SmartTiming -AutoApprove -Quiet

AI Risk Assessment

Evaluates 5 factors to calculate risk score:

FactorWeightDescription
Version Impact30%Major/Minor/Patch
Skills Count25%Number of skills to update
Gateway Restart20%Restart impact
Time Since Update15%Hours since last update
Cron Proximity10%Distance to next task

Risk Levels:

  • 🟢 Low (Score <50): Auto-update
  • 🟡 Medium (Score 50-74): Warning but auto-update
  • 🔴 High (Score ≥75): Requires YOUR approval

User Approval Flow

When risk is High:

  1. Shows warning with assessment details
  2. Waits for your confirmation (60s timeout)
  3. If approved → proceeds with update
  4. If rejected/skipped → cancels gracefully

Use -AutoApprove for unattended runs.

Smart Notifications

Pre-update (concise):

🔄 OpenClaw Update Check
• Core: 1.2.3 → 1.3.0 (Minor)
• Skills: 3 to update
• Risk: 🟡 Medium

Post-update:

✅ OpenClaw Updated
• Core: v1.3.0
• Skills: 3 updated
• Gateway: ✅ OK

Auto-detects: Telegram, Feishu

Use Cases

  • ✅ Weekly maintenance automation
  • ✅ Keep OpenClaw always up-to-date
  • ✅ Never interrupt scheduled crawler tasks
  • ✅ Get notified of updates
  • ✅ Safe auto-updates with risk control

Parameters

ParameterDefaultDescription
AutoUpdatefalseApply updates automatically
SmartTimingfalseWait for idle + check cron
AutoApprovefalseSkip approval (for cron)
NoNotifyfalseSkip notifications
UpdateSkillsOnlyfalseUpdate skills only
PortautoGateway port
IdleThreshold5Minutes of idle to wait
CronLookAhead60Minutes to look ahead for tasks
MaxWait30Max wait time (minutes)

Requirements

  • PowerShell 5.1+ (pwsh)
  • npm + clawhub CLI
  • Windows (idle detection)
  • Reads: ~/.openclaw/openclaw.json (port only), ~/.openclaw/cron/jobs.json

Optional Environment Variables

VariableDescription
TELEGRAM_BOT_TOKENTelegram bot token for notifications
FEISHU_APP_IDFeishu app ID for notifications
FEISHU_APP_SECRETFeishu app secret for notifications

Note: This skill only reads the gateway.port from config. No credentials are transmitted externally.

Tags

auto-update, maintenance, cron, smart-schedule, skills, gateway, restart, healthcheck, monitoring, ops, openclaw, updater, self-maintenance, ai-assessment, user-approval, notification

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

OpenClaw Auto‑Updater (Safe + Scheduled + Summary)

Schedule automatic OpenClaw and skill updates with reliable cron templates, timezone-safe scheduling, and clear summary outputs. Use for hands-off maintenance, scheduled upgrades, and concise update reports.

Registry SourceRecently Updated
12.1K13Profile unavailable
Coding

OpenClaw Cost Guard (Budgets + Token-Saving Playbook)

Track OpenClaw/Clawdbot token and cost usage from session JSONL logs (prefer real usage.cost when present), generate daily/weekly summaries and top expensive sessions, and run budget checks (exit code on breach). Use to monitor spend, enforce budgets via cron/alerts, and apply a token-saving playbook to reduce output/tool-call cost.

Registry SourceRecently Updated
2.8K4Profile unavailable
Automation

Gateway Delayed Restart

延迟指定分钟数重启 OpenClaw Gateway,支持自定义延迟并通过飞书主动通知完成情况。

Registry SourceRecently Updated
2830Profile unavailable
Coding

OpenClaw Gateway Guardian

OpenClaw 看门狗 - 自动监控 Gateway 状态,宕机时自动重启,支持配置守护和模型故障转移

Registry SourceRecently Updated
1470Profile unavailable
self-updater | V50.AI