QClaw 环境下,openclaw 不在全局 PATH,且 openclaw plugins install 可能因 npm 问题失败。本技能通过 gateway.config.patch 工具直接写入配置,绕过 CLI 限制。
在使用本技能前,您需要准备以下凭证:
| 参数 | 说明 | 获取方式 |
|---|---|---|
| ------ | ------ | ---------- |
appKey | 元宝应用 Key | 从腾讯元宝开放平台获取 |
appSecret | 元宝应用 Secret | 从腾讯元宝开放平台获取 |
> 提示:请前往 腾讯元宝开放平台 申请应用凭证。
调用 gateway 工具,替换 和 为您的实际凭证:
{
"action": "config.patch",
"raw": {
"plugins": {
"allow": ["wechat-access", "qclaw-plugin", "openclaw-qqbot", "skill-interceptor", "queue-guard", "lossless-claw", "memory-tencentdb", "openclaw-plugin-yuanbao"],
"entries": {
"openclaw-plugin-yuanbao": { "enabled": true, "config": {} }
}
},
"channels": {
"yuanbao": {
"enabled": true,
"appKey": "<YOUR_APP_KEY>",
"appSecret": "<YOUR_APP_SECRET>"
}
}
},
"note": "元宝插件配置已写入,插件已启用"
}
Gateway 自动热加载(SIGUSR1),无需手动重启。
执行 scripts/install-plugin.sh 脚本:
bash scripts/install-plugin.sh
脚本会:
调用 gateway 工具验证配置:
{ "action": "config.get", "path": "plugins.entries.openclaw-plugin-yuanbao.enabled" }
应返回 true。
| 项目 | 路径 |
|---|---|
| ----- | ------ |
| 配置文件 | ~/.qclaw/openclaw.json |
| 插件目录 | ~/Library/Application Support/QClaw/openclaw/config/extensions/openclaw-plugin-yuanbao |
| openclaw wrapper | ~/Library/Application Support/QClaw/openclaw/config/skills/qclaw-openclaw/scripts/openclaw-mac.sh |
共 1 个版本