返回顶部
a

ayao-updater自动更新器

Automatically update OpenClaw and all installed skills on a schedule. Use when: (1) setting up automatic updates for OpenClaw or skills, (2) running a manual update check, (3) configuring update schedule, skip lists, or pre-release filtering, (4) user says "auto update", "schedule updates", "keep openclaw updated", "update skills automatically". Handles locally-modified skill protection, conflict avoidance, pre-release filtering, and completion or failure notifications.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
144
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

ayao-updater

技能名称: ayao-updater
详细描述:

OpenClaw 自动更新

自动保持 OpenClaw 及已安装的 ClawHub 技能为最新版本。

前置条件

  • - openclaw 命令行工具 — 用于执行 openclaw update、openclaw gateway restart 及通知功能
  • clawhub 命令行工具 — 用于执行 clawhub list、clawhub inspect 及 clawhub update
  • python3 — 用于加载 config.json 配置文件
  • bash 4+ 版本 — shell 脚本需要关联数组及其他现代 Bash 特性

快速开始

1. 安装定时任务(默认每天凌晨2点运行)

bash
bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/install-cron.sh

2. 立即手动运行

bash
bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/update.sh

3. 预览将要更新的内容(不执行实际更改)

bash
bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/update.sh --dry-run

配置说明

创建 ~/.openclaw/workspace/skills/openclaw-auto-update/config.json 文件:

json
{
schedule: 0 2 *,
skipSkills: [],
skipPreRelease: true,
restartGateway: true,
notify: true,
notifyTarget: null
}

所有选项及示例请参阅 references/config-schema.md。

功能说明

  1. 1. 加载 JSON 配置 — 使用 python3 读取 config.json 并合并默认值
  2. 更新 OpenClaw — 执行 openclaw update --yes --no-restart;预览模式下仅记录等效的 openclaw update --dry-run --yes --no-restart 命令而不实际更改
  3. 查找已安装技能 — 通过 clawhub list 枚举技能,并支持工作区目录作为备选
  4. 检查发布渠道 — 使用 clawhub inspect 在 skipPreRelease: true 时跳过预发布版本
  5. 更新技能 — 对每个符合条件的已安装技能执行 clawhub update --no-input;预览模式下仅记录 clawhub update --all,因为当前安装的 clawhub 命令行工具不支持更新预览
  6. 保护本地更改 — 跳过存在未提交 git 更改的技能
  7. 遵循跳过列表 — 绝不触碰 skipSkills 中列出的技能
  8. 重启网关 — 仅在 OpenClaw 版本实际发生变更时执行
  9. 发送通知 — 当设置了 notifyTarget 时执行 openclaw message send --target -m ,否则执行 openclaw system event --text --mode now

更改计划任务

bash

改为每周日凌晨3点执行


bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/install-cron.sh --schedule 0 3 0

卸载定时任务

bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/install-cron.sh --uninstall

日志查看

bash
tail -f /tmp/openclaw-auto-update.log

永久跳过特定技能

在 config.json 中添加:
json
{ skipSkills: [my-custom-skill, work-internal] }

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ayao-updater-1776126662 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ayao-updater-1776126662 技能

通过命令行安装

skillhub install ayao-updater-1776126662

下载

⬇ 下载 ayao-updater v1.0.2(免费)

文件大小: 8.79 KB | 发布时间: 2026-4-17 14:10

v1.0.2 最新 2026-4-17 14:10
fix: handle openclaw update non-zero exit when already up to date

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部