Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection. Version: 1.1.0 (Updated 2026-02-22) What's New: ✅ Detailed logging at each step (prevents state loss on restart) ✅ Missed run recovery (auto-runs if Gateway was offline) ✅ 30-second delay after updates (prevents interruption) ✅ Email report support (less intrusive than chat messages) ✅ Better error handling and retry logic Note: This is an enhanced version of the original auto-updater skill with production-ready features.
This skill sets up a daily cron job that: Updates Clawdbot itself (via clawdbot doctor or package manager) Updates all installed skills (via clawdhub update --all) Messages you with a summary of what was updated New: Logs every step to prevent state loss on Gateway restart New: Auto-recovers if the scheduled time was missed
Ask Clawdbot to set up the auto-updater: Set up daily auto-updates for yourself and all your skills. Or manually add the cron job: clawdbot cron add \ --name "Daily Auto-Update" \ --cron "0 4 * * *" \ --tz "America/Los_Angeles" \ --session isolated \ --wake now \ --deliver \ --message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."
For production use, add these settings to your cron job: { "schedule": { "expr": "0 4 * * *", "kind": "cron", "tz": "Asia/Shanghai" }, "missedRunPolicy": "run-immediately", "payload": { "kind": "agentTurn", "message": "...", "timeoutSeconds": 600 } } Key Settings: missedRunPolicy: "run-immediately" - Auto-runs if Gateway was offline at scheduled time timeoutSeconds: 600 - Allow 10 minutes for updates to complete tz: "Asia/Shanghai" - Set to your timezone
OptionDefaultDescriptionTime4:00 AMWhen to run updates (use --cron to change)TimezoneSystem defaultSet with --tzDeliveryMain sessionWhere to send the update summaryTimeout300sRecommended: 600s for npm updatesMissed RunNoneRecommended: run-immediately
For npm/pnpm/bun installs: npm update -g clawdbot@latest # or: pnpm update -g clawdbot@latest # or: bun update -g clawdbot@latest For source installs (git checkout): clawdbot update Always run clawdbot doctor after updating to apply migrations.
clawdhub update --all This checks all installed skills against the registry and updates any with new versions available.
To prevent state loss during Gateway restarts, the update process logs every step:
~/.openclaw/workspace/memory/openclaw-update-YYYY-MM-DD.md
Phase 1: Preparation Record start time Check current version Write to log file immediately Phase 2: Check for Updates Check latest version (npm view) Append to log file Compare versions Phase 3: Execute Update Record update start Run openclaw update run or npm install -g openclaw@latest Immediately log completion Verify new version Phase 4: Persist State Append full results to log Wait 3 seconds for disk sync Phase 5: Send Report Send email/chat report Log delivery status Phase 6: Delay Restart (Critical!) Wait 30 seconds before any Gateway restart Ensures npm processes complete Prevents state loss
Check for updates without applying: clawdhub update --all --dry-run View current skill versions: clawdhub list Check Clawdbot version: clawdbot --version
Verify cron is enabled: check cron.enabled in config Confirm Gateway is running continuously Check cron job exists: clawdbot cron list Check if missed run policy is set: missedRunPolicy: "run-immediately"
If an update fails, the summary will include the error. Common fixes: Permission errors: Ensure the Gateway user can write to skill directories Network errors: Check internet connectivity Package conflicts: Run clawdbot doctor to diagnose Gateway restart interruption: Check log file for partial completion
If Gateway restarts during update (common with npm installs): Check log file: ~/.openclaw/workspace/memory/openclaw-update-*.md Verify version: openclaw --version Manually send report if needed (log file has all info)
Remove the cron job: clawdbot cron remove "Daily Auto-Update" Or disable temporarily in config: { "cron": { "enabled": false } }
Choose a time when you're unlikely to be using the system: "expr": "0 4 * * *" // 4:00 AM
Prevents missing updates if Gateway is offline: "missedRunPolicy": "run-immediately"
Less intrusive than chat messages: Configure email-163-com or similar skill Send plain text reports Include log file path
Always write to log file before sending reports: Prevents state loss Enables debugging Provides audit trail
Add 30-second delay before any Gateway restart: sleep 30
Clawdbot Updating Guide ClawdHub CLI Cron Jobs Change Log
Improvements: ✅ Added detailed logging at each step ✅ Added missed run recovery policy ✅ Added 30-second delay after updates ✅ Added email report support ✅ Improved error handling Bug Fixes: 🐛 Fixed state loss on Gateway restart 🐛 Fixed missed scheduled runs 🐛 Fixed report delivery failures
✅ Initial release ✅ Basic daily update check ✅ Simple report format Published: 2026-02-22 Maintainer: OpenClaw Team License: MIT
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.