← Back to Skills Marketplace
pandaltsgo

fnOS OpenClaw Updater

by PandaltsGo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
66
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fnos-openclaw-updater
Description
飞牛 OpenClaw 更新助手。触发词:「更新openclaw」「升级openclaw」。功能:检测当前运行的 openclaw 版本 → 查找最新稳定版本 → 在 managed-install 目录内执行 npm install 覆盖更新 → 自动重启网关生效。
README (SKILL.md)

飞牛 OpenClaw 更新助手

关键原则

OpenClaw 安装在 managed-install 目录,即 $OPENCLAW_DATA_DIR/openclaw(飞牛系统标准路径,普通用户无权限写 /vol1/@appcenter/ 系统层)。

路径公式:{OPENCLAW_DATA_DIR}/openclaw 每个飞牛系统的 OPENCLAW_DATA_DIR 不同,但 managed-install 结构一致。 不要硬编码 /vol1/@apphome/... 路径,动态获取更安全。
不要npm i -g openclaw(会报 EACCES 权限错误),也不要openclaw update(同样是全局安装路径)。

正确更新方式

在 managed-install 目录内直接 npm install

# 1. 查询当前运行版本
openclaw --version

# 2. 查询最新版本
npm view openclaw version

# 3. 在 managed-install 目录内更新(会覆盖旧版本,自动生效)
cd "$OPENCLAW_DATA_DIR/openclaw" && npm install openclaw@\x3C最新版本>

# 4. 等待几秒让进程重新加载

更新流程(按顺序执行)

Step 1:确认当前版本和最新版本

openclaw --version
npm view openclaw version

比较两者:

  • 如果 openclaw --version >= npm view openclaw version,已是最新的,无需操作
  • 否则继续 Step 2

Step 2:在 managed-install 目录内安装

cd "$OPENCLAW_DATA_DIR/openclaw" && npm install openclaw@\x3C最新版本>

等待 npm 完成(通常 1-2 分钟)。

Step 3:验证更新成功

openclaw --version

确认输出为新版本号。网关会自动在新版本下运行。

注意事项

  • 不要使用 sudonpm i -gopenclaw update——这些都会失败
  • 更新是覆盖安装,无需卸载
  • 网关进程会自动在新版本下运行,无需手动重启(除非有异常)
  • 遇到 EBADENGINE 警告(undici / node 版本提示)可以忽略,不影响更新

常见问题

症状 原因 解决
EACCES permission denied 用了全局安装 改用 managed-install 目录内 npm install
更新后版本没变 进程缓存了旧路径 等几秒再查,或确认 openclaw 路径指向正确目录
npm 下载慢 网络问题 可以给 npm 设置镜像:npm config set registry https://registry.npmmirror.com
Usage Guidance
Use this skill only when you deliberately want to update OpenClaw. Before running it, confirm that OPENCLAW_DATA_DIR points to the correct managed-install location, compare the current and latest versions, and be comfortable with npm installing the selected OpenClaw package.
Capability Analysis
Type: OpenClaw Skill Name: fnos-openclaw-updater Version: 1.0.0 The skill bundle provides legitimate instructions for an AI agent to update the OpenClaw software on Feiniu OS (fnos). It uses standard commands like `npm view` and `npm install` within a designated directory (`$OPENCLAW_DATA_DIR/openclaw`) and includes helpful troubleshooting steps such as configuring a well-known registry mirror (npmmirror.com). No evidence of malicious intent, data exfiltration, or harmful prompt injection was found in SKILL.md or _meta.json.
Capability Assessment
Purpose & Capability
The stated purpose and instructions are coherent: check the current OpenClaw version, compare with npm, then update OpenClaw. The noteworthy part is that this intentionally modifies the installed OpenClaw runtime.
Instruction Scope
The update command is scoped to "$OPENCLAW_DATA_DIR/openclaw" and the skill explicitly avoids sudo/global installs, but users should verify the environment variable/path before running because the metadata does not declare it as required.
Install Mechanism
This is an instruction-only skill with no bundled code. It relies on npm at run time to resolve and install the latest OpenClaw package, which is expected for an updater but depends on npm package provenance.
Credentials
The artifacts do not request credentials, browser/session data, broad local file access, sudo, or protected system-path writes; they advise using the managed-install directory instead.
Persistence & Privilege
The update persists by overwriting the managed OpenClaw package and causing the gateway to run the new version. This is disclosed and purpose-aligned, not hidden persistence.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fnos-openclaw-updater
  3. After installation, invoke the skill by name or use /fnos-openclaw-updater
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首发版本:支持飞牛 fnOS 系统下自动检测当前运行版本,在 managed-install 目录内执行 npm install 完成覆盖更新,避免权限问题。路径动态获取,适用于所有 fnOS 安装。
Metadata
Slug fnos-openclaw-updater
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is fnOS OpenClaw Updater?

飞牛 OpenClaw 更新助手。触发词:「更新openclaw」「升级openclaw」。功能:检测当前运行的 openclaw 版本 → 查找最新稳定版本 → 在 managed-install 目录内执行 npm install 覆盖更新 → 自动重启网关生效。 It is an AI Agent Skill for Claude Code / OpenClaw, with 66 downloads so far.

How do I install fnOS OpenClaw Updater?

Run "/install fnos-openclaw-updater" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is fnOS OpenClaw Updater free?

Yes, fnOS OpenClaw Updater is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does fnOS OpenClaw Updater support?

fnOS OpenClaw Updater is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created fnOS OpenClaw Updater?

It is built and maintained by PandaltsGo (@pandaltsgo); the current version is v1.0.0.

💬 Comments