Skip to content
Back to skills

Auto Updater

BSecurity

OpenClaw auto-update checker and safe applier. Checks for new versions, compares changelogs, and applies updates with rollback safety. Designed to run as a cron job for hands-free maintenance. Use for keeping OpenClaw up to date automatically.

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
toolsbashdockergit

Security analysis

B80/100
  • criticalAccesses sensitive system or user directories
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill auto-updater --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auto Updater?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auto Updater
[![Security: B β€” Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-auto-updater-openclaw-skills-marketplace/badge)](https://www.skillsdirectory.com/skills/dvcrn-auto-updater-openclaw-skills-marketplace)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: auto-updater
description: "OpenClaw auto-update checker and safe applier. Checks for new versions, compares changelogs, and applies updates with rollback safety. Designed to run as a cron job for hands-free maintenance. Use for keeping OpenClaw up to date automatically."
homepage: https://www.agxntsix.ai
---

# Auto-Updater πŸ”„

**Keep OpenClaw up to date automatically and safely.**

Checks for new OpenClaw versions via git tags, compares with your current version, shows what's new, and optionally applies the update with safe rollback support.

## Quick Start

```bash
# Check for updates (safe, read-only)
bash {baseDir}/scripts/check_update.sh

# Check and apply if available
bash {baseDir}/scripts/check_update.sh --apply

# JSON output (for cron/automation)
bash {baseDir}/scripts/check_update.sh --json

# Check + apply + JSON
bash {baseDir}/scripts/check_update.sh --apply --json
```

## Setting Up as a Cron Job

### Via OpenClaw Cron
Add to your cron jobs to check daily:

```json
{
  "name": "auto-update-check",
  "schedule": "0 1 * * *",
  "command": "bash skills/auto-updater/{baseDir}/scripts/check_update.sh --json",
  "description": "Daily OpenClaw update check at 1 AM"
}
```

### Via System Crontab
```bash
# Check daily at 1 AM, log results
0 1 * * * cd /root/.openclaw/workspace && bash skills/auto-updater/{baseDir}/scripts/check_update.sh >> /var/log/openclaw-updates.log 2>&1
```

## How It Works

1. **Fetch** β€” `git fetch --tags` from the OpenClaw repo
2. **Compare** β€” Current version vs latest git tag (semver sorted)
3. **Report** β€” Shows version diff and changelog/commits between versions
4. **Apply** (optional) β€” Checkout new tag β†’ pnpm install β†’ pnpm build β†’ docker build β†’ docker compose up -d
5. **Verify** β€” Checks gateway starts successfully after update

## Safe Update Practices

- **Always** runs `git fetch` before comparing (fresh data)
- **Shows** what changed before applying
- **Records** the previous version for rollback
- **Verifies** gateway health after update
- **Never** force-pushes or modifies git history

## Rollback Procedure

If an update breaks something:

```bash
# 1. See recent tags
cd /host/openclaw && git tag --sort=-v:refname | head -5

# 2. Checkout previous version
git checkout <previous-tag>

# 3. Rebuild
pnpm install && pnpm build
docker build -t openclaw:latest .
docker compose up -d

# 4. Verify
docker compose logs --tail=20
```

The script outputs rollback instructions automatically when applying updates.

## Credits
Built by [M. Abidi](https://www.linkedin.com/in/mohammad-ali-abidi) | [agxntsix.ai](https://www.agxntsix.ai)
[YouTube](https://youtube.com/@aiwithabidi) | [GitHub](https://github.com/aiwithabidi)
Part of the **AgxntSix Skill Suite** for OpenClaw agents.

πŸ“… **Need help setting up OpenClaw for your business?** [Book a free consultation](https://cal.com/agxntsix/abidi-openclaw)

Files in this skill

  • SKILL.md2.8 KB
  • scripts/check_update.sh5.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…