跳转到内容

plugins

管理网关插件/扩展 (进程内加载)。

相关:

Terminal window
openclaw plugins list
openclaw plugins info <id>
openclaw plugins enable <id>
openclaw plugins disable <id>
openclaw plugins doctor
openclaw plugins update <id>
openclaw plugins update --all

捆绑插件随 OpenClaw 一起发布,但启动时处于禁用状态。使用 plugins enable 激活它们。

所有插件必须附带一个带有内联 JSON Schema (configSchema,即使为空) 的 openclaw.plugin.json 文件。丢失/无效的清单或模式将阻止插件加载并导致配置验证失败。

Terminal window
openclaw plugins install <path-or-spec>

安全说明: 像运行代码一样对待插件安装。首选固定版本。

支持的归档: .zip, .tgz, .tar.gz, .tar

使用 --link 避免复制本地目录 (添加到 plugins.load.paths):

Terminal window
openclaw plugins install -l ./my-plugin
Terminal window
openclaw plugins update <id>
openclaw plugins update --all
openclaw plugins update <id> --dry-run

更新仅适用于从 npm 安装的插件 (在 plugins.installs 中跟踪)。