每个插件独立安装:
# IM 渠道
openclaw plugins install @partme.ai/wecom
openclaw plugins install @partme.ai/dingtalk
# 基础设施
openclaw plugins install @partme.ai/nacos
openclaw plugins install @partme.ai/prometheus
# 消息队列
openclaw plugins install @partme.ai/mqtt安装后重启 Gateway:
openclaw gateway restart每个插件有独立的配置指南,参见 guides/。通用配置模式:
{
"channels": {
"<channel-id>": {
"enabled": true,
"dmPolicy": "open",
"groupPolicy": "open",
"accounts": {
"default": { "appId": "...", "appSecret": "..." }
}
}
}
}| 字段 | 说明 | 可选值 |
|---|---|---|
enabled |
通道开关 | true / false |
dmPolicy |
私聊策略 | open / pairing / allowlist / disabled |
groupPolicy |
群聊策略 | open / allowlist / disabled |
allowFrom |
私聊白名单 | ["user1", "user2"] |
accounts |
多账号配置 | { "main": {...}, "support": {...} } |
defaultAccount |
默认账号 | "main" |
大多数插件支持多账号矩阵隔离:
{
"channels": {
"wecom": {
"enabled": true,
"defaultAccount": "ops",
"accounts": {
"ops": { "botId": "bot-ops-xxx", "secret": "secret-ops" },
"sales": { "botId": "bot-sales-xxx", "secret": "secret-sales" }
}
}
}
}不同 accountId 之间的会话、Agent、上下文完全隔离。
从源码构建:
git clone https://github.com/partme-ai/openclaw-plugins.git
cd openclaw-plugins
pnpm install
pnpm build创建新插件:
pnpm new-plugin my-plugin --label "我的插件" --desc "插件描述"