Skip to content
广告 · 本站推荐广告

openclaw plugins

管理插件。

概要

bash
openclaw plugins <子命> [选项]

描述

openclaw plugins 命令用于管理 OpenClaw 的插件生态。插件可以为 Agent 扩展新的通道接入、工具调用、数据源连接等能力。支持从官方注册表安装,也支持本地开发和测试。

子命令

子命令说明
install <package>安装插件
uninstall <package>卸载插件
list列出已安装的插件
update [package]更新插件(不指定则更新全部)
search <keyword>搜索官方插件注册表
info <package>查看插件详情
dev <path>加载本地开发中的插件

选项

选项缩写说明默认值
--registry <url>指定插件注册表地址官方注册表
--format <type>输出格式:textjsontabletable
--global-g全局安装false
--force强制安装(跳过兼容性检查)false

插件注册表

官方插件注册表提供了经过审核的插件,包括:

  • 通道插件@openclaw/plugin-discord@openclaw/plugin-slack
  • 工具插件@openclaw/plugin-web-search@openclaw/plugin-calculator
  • 存储插件@openclaw/plugin-postgres@openclaw/plugin-redis

本地开发

在插件开发过程中,使用 dev 子命令加载本地插件:

bash
# 加载本地插件进行测试
openclaw plugins dev ./my-plugin

# 插件目录结构
my-plugin/
├── package.json
├── index.js
└── manifest.yaml

示例

bash
# 搜索插件
openclaw plugins search "discord"

# 安装插件
openclaw plugins install @openclaw/plugin-discord

# 列出已安装的插件
openclaw plugins list

# 更新所有插件
openclaw plugins update

# 更新指定插件
openclaw plugins update @openclaw/plugin-discord

# 卸载插件
openclaw plugins uninstall @openclaw/plugin-discord

# 查看插件详情
openclaw plugins info @openclaw/plugin-web-search

# 加载本地开发插件
openclaw plugins dev ./my-plugin

相关命令

基于MIT协议开源 | 内容翻译自 官方文档,同步更新