← 返回
AI智能 中文

OpenClaw Update Checker

Check for OpenClaw updates by comparing installed version against the npm registry. Use when: user asks about updates, version status, or 'is openclaw up to...
{"answer":"通过将已安装版本与 npm 注册表对比来检查 OpenClaw 更新。使用场景:用户询问更新、版本状态或 'openclaw 是否最新' 时。"}
pfrederiksen
AI智能 clawhub v1.1.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 871
下载
💾 28
安装
1
版本
#latest

概述

OpenClaw Update Checker

Read-only version checker. Compares the installed OpenClaw version against the npm registry and reports whether updates are available. Does not install, modify, or restart anything.

Usage

# Human-readable output
python3 scripts/check_update.py

# Machine-readable JSON (for dashboards, cron, integrations)
python3 scripts/check_update.py --format json

Output

Text mode: One-liner if current, or a summary showing installed vs latest version and number of versions behind.

JSON mode:

{
  "installed": "2026.2.21-2",
  "latest": "2026.2.21-2",
  "up_to_date": true,
  "newer_versions": [],
  "changelog_url": "https://github.com/openclaw/openclaw/releases/tag/v2026.2.21"
}

How It Works

  1. Reads the installed version from the local package.json file at known npm global install paths (/usr/lib/node_modules/openclaw/package.json or /usr/local/lib/node_modules/openclaw/package.json)
  2. Queries the npm registry via an HTTPS GET request to https://registry.npmjs.org/openclaw using Python's urllib.request (stdlib)
  3. Compares versions and reports the result

What It Does NOT Do

  • Does not install or update any packages
  • Does not write to any files
  • Does not restart any services
  • Does not execute any subprocesses or shell commands

System Access

  • File reads: /usr/lib/node_modules/openclaw/package.json and /usr/local/lib/node_modules/openclaw/package.json (read-only, to determine installed version)
  • Network: Single HTTPS GET to https://registry.npmjs.org/openclaw (read-only, no authentication, to fetch available versions)

Requirements

  • Python 3.10+ (uses str | None type union syntax)
  • OpenClaw installed globally via npm
  • Outbound HTTPS access to registry.npmjs.org

版本历史

共 1 个版本

  • v1.1.1 当前
    2026-03-29 09:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,827
developer-tools

Photo Captions

pfrederiksen
生成平台适配的社交媒体摄影文案。当用户分享照片并需要发布文案时使用。触发条件:分享带有...的照片
★ 2 📥 1,733
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,131