360 Secure SkillHub
360 安全技能中心

OpenClaw Updater v2

通过 openclaw 命令行检查当前版本与可用更新、执行更新并查看更新配置,支持 JSON 输出以便自动化,并可用于定时检查与版本监控;使用前提是已安装 OpenClaw。

rothcold
rothcold
热度 27.55
最近更新 2026-05-17 12:07:58
分类:自动化依赖:代码执行应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-updater-v2
Metadata
name
openclaw-update
description
Check for OpenClaw updates, perform updates, and manage version status. Provides automatic update checking, version comparison, and seamless updating of the OpenClaw agent platform.
metadata
{"openclaw":{"requires":{"bins":["openclaw"]},"install":[{"id":"openclaw-update-skill","kind":"skill","path":"skills/openclaw-update","label":"OpenClaw Update Skill"}]}}

OpenClaw Update Skill

A skill for checking and applying OpenClaw updates.

Commands

Check Status

Check the current OpenClaw version and available updates:

openclaw update status
openclaw update status --json

Run Update

Update OpenClaw to the latest version:

openclaw update run

View Config

View current update configuration:

openclaw update config

Use Cases

  • Automatic update checks: Configure cron jobs for periodic update checks
  • Version monitoring: Monitor if a newer version is available
  • Safe updates: Check before updating to ensure compatibility
  • Update history: Track when updates were applied

Environment Variables

  • OPENCLAW_UPDATE_CHECK_URL: Override update check URL (optional)

Example Workflow

# Check for updates (human-readable output)
openclaw update status

# Check for updates (JSON output for automation)
openclaw update status --json

# If update available, apply it
openclaw update run

Notes

  • Requires OpenClaw to be installed
  • Supports semantic versioning for version comparison
  • Provides detailed change logs when updating
  • Supports rollback if needed (check documentation)