360 Secure SkillHub
360 安全技能中心

Openclaw Update

该 Skill 面向 OpenClaw 宿主平台,提供版本状态检查(openclaw update status,可选 --json)、通过 pnpm 全局升级 OpenClaw、重启并查看 gateway 状态,以及更新后再次校验的完整升级流程,可用于定时检查与版本监控。

rothcold
rothcold
热度 87.45
最近更新 2026-05-11 17:25:52
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add openclaw-update-skill
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 (pnpm)

Update OpenClaw using pnpm (for pnpm installations):

# Check current version
pnpm list -g openclaw

# Update to latest version
pnpm add -g openclaw

# Restart gateway after update
openclaw gateway restart

Gateway Management

Restart OpenClaw gateway after update:

openclaw gateway restart
openclaw gateway status

pnpm Upgrade Workflow

For pnpm-installed OpenClaw:

# 1. Check current version
pnpm list -g openclaw

# 2. Update to latest
pnpm add -g openclaw

# 3. Restart gateway
openclaw gateway restart

# 4. Verify update
openclaw update status

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
  • pnpm workflow: Special commands for pnpm-based installations

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

# For pnpm installations, use pnpm to update
pnpm add -g openclaw

# Restart gateway after update
openclaw gateway restart

Notes

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