plugins
管理扩展及其配置。
用法
bash
openclaw plugins <子命令> [选项]子命令
plugins list
发现插件。
bash
openclaw plugins list [--json]选项:
--json: 机器可读输出
plugins info
显示插件详情。
bash
openclaw plugins info <id>plugins install
安装插件。
bash
openclaw plugins install <path|.tgz|npm-spec>可以安装:
- 本地路径
.tgz压缩包- npm 包规范
或添加插件路径到 plugins.load.paths。
plugins enable
启用插件。
bash
openclaw plugins enable <id>切换 plugins.entries.<id>.enabled。
plugins disable
禁用插件。
bash
openclaw plugins disable <id>plugins doctor
报告插件加载错误。
bash
openclaw plugins doctor注意事项
大多数插件更改需要重启网关。
示例
bash
# 列出插件
openclaw plugins list
# 查看插件信息
openclaw plugins info mattermost
# 安装插件
openclaw plugins install ./my-plugin
openclaw plugins install my-plugin@1.0.0
# 启用/禁用插件
openclaw plugins enable mattermost
openclaw plugins disable mattermost
# 检查插件问题
openclaw plugins doctor