← 返回
效率工具 中文

Oc Self Update

Check for OpenClaw updates and self-update the installation. Use when the user asks to update OpenClaw, check for updates, upgrade the bot, install a new ver...
检查OpenClaw更新并自动升级安装。当用户请求更新OpenClaw、检查更新、升级机器人或安装新版本时使用。
spideystreet
效率工具 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 591
下载
💾 15
安装
1
版本
#latest

概述

OpenClaw Self-Update

OpenClaw is distributed as an npm package. Version scheme: YYYY.M.D (date-based).

Workflow

1. Check for updates

Run the check script:

{ "tool": "exec", "command": "bash {baseDir}/scripts/check_update.sh" }

Report the result to the user clearly:

  • If already up to date: say so and show current version
  • If an update is available: show current vs latest and ask for confirmation before updating

2. Apply update

Only run after user confirms. Use the channel the user configured (default: latest):

{ "tool": "exec", "command": "npm install -g openclaw@latest" }
ChannelCommand
------------------
Stable (default)npm install -g openclaw@latest
Betanpm install -g openclaw@beta
Devnpm install -g openclaw@dev

3. Confirm result

After a successful install, inform the user that a gateway restart is required for changes to take effect. Do not restart automatically — tell the user to run openclaw restart or stop/start the daemon.

✅ OpenClaw updated: {old_version} → {new_version}
⚠️ Restart the gateway: openclaw restart

4. Error handling

  • If check_update.sh fails → report the error, suggest checking network or npm config
  • If npm install fails → report the error as-is, do not retry without user input
  • If the user asks for a channel that doesn't exist → show the channel table and ask again

Examples

User saysAction
-------------------
"Check for updates"Run check script, report current vs latest
"Update openclaw"Run check script, if update available ask confirmation, then install
"Switch to beta channel"Install openclaw@beta, remind to restart
"What version am I on?"Run check script, report current version

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 06:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,659
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,845
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,300