← 返回
开发者工具 中文

Auto-Updater (Windows Compatible)

Set up and maintain automatic OpenClaw + skill updates on Windows/macOS/Linux. Use when a user asks for scheduled updates, manual update runs, update health...
在 Windows/macOS/Linux 上配置并维护 OpenClaw + 技能自动更新。适用于用户询问计划更新、手动更新或更新健康状态等场景。
leo220yuyaodog leo220yuyaodog 来源
开发者工具 clawhub v1.0.3 1 版本 99876.1 Key: 无需
★ 0
Stars
📥 806
下载
💾 27
安装
1
版本
#latest

概述

Auto-Updater Skill (Windows-first, cross-platform)

Configure safe recurring updates for OpenClaw and installed skills.

Core Rules

  1. Prefer OpenClaw-native actions and npx clawhub.
  2. On Windows, run updates in native Windows shell.
  3. On Windows, ensure bash resolves to Git Bash / MSYS, not C:\Windows\System32\bash.exe (WSL launcher).
  4. Never include user-specific local paths/usernames in public docs or published skill content.
  5. Always output a concise summary: updated, unchanged, failed.

Windows-Only Guardrails (Important)

  • Do NOT use WSL for update execution.
  • If build steps require bash, prepend Git Bash path in PATH for the current shell session.
  • Verify active bash:
where.exe bash
bash --version

Expected on Windows: GNU bash from MSYS/Git, not WSL launcher path first.

Path Placeholders (Use These)

  • : source repo root (example: %USERPROFILE%\\dev\\openclaw)
  • : runtime home (example: %USERPROFILE%\\.openclaw)

Manual Update Flow

1) Update OpenClaw (source install)

git -C <openclaw-repo> pull --ff-only
pnpm -C <openclaw-repo> install
pnpm -C <openclaw-repo> build

2) Restart gateway

Use OpenClaw gateway restart tool/action after successful build.

3) Update skills

npx clawhub update --all --workdir <openclaw-home> --no-input

If local edits exist and user confirms overwrite:

npx clawhub update <slug> --force --workdir <openclaw-home> --no-input

Successful Windows Command Template (Sanitized)

git -C <openclaw-repo> pull --ff-only
pnpm -C <openclaw-repo> install
pnpm -C <openclaw-repo> build
openclaw gateway restart
openclaw --version

Scheduling (Optional)

When user asks for automation, create cron jobs with isolated agentTurn runs and summary delivery. Keep schedule conservative (e.g., daily 04:00 local) unless user asks otherwise.

References

  • references/agent-guide.md
  • references/summary-examples.md

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-29 23:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,353
it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 45 📥 29,268
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,791