knowledge-vault/discussions/technology/OpenClaw/Local初始化/2026-04-12-加入飞书群.md

1.6 KiB

1

我按照你的进行修改后,启动报错:

Config invalid
File: ~\.openclaw\openclaw.json
Problem:
  - plugins.entries.feishu.config: invalid config: must NOT have additional properties

Run: openclaw doctor --fix
Gateway aborted: config is invalid.
plugins.entries.feishu.config: invalid config: must NOT have additional properties

我只好改回来了,请你确认下这样的配置是否能用。

找到问题了。groupPolicygroupAllowFrom 应该配置在 channels.feishu 层级下,而不是 plugins.entries.feishu.config

你的飞书配置已经在 channels.feishu.accounts 下有正确的结构,只需要在 channels.feishu 这一级添加 group 白名单即可。

输出文件: D:\OpenClaw-Workspace\openclaw.json.patch.json

正确配置:

{
  "channels": {
    "feishu": {
      "groupPolicy": "allowlist",
      "groupAllowFrom": [
        "oc_4f37e6068f7641f06e4b3c94e150a0eb"
      ]
    }
  }
}

合并步骤

打开 C:\Users\admin\.openclaw\openclaw.json,找到 channels.feishu 部分(就在文件开头),在 enabled: true 后面加上 groupPolicygroupAllowFrom

完整结构应该是:

"channels": {
  "feishu": {
    "enabled": true,
    "connectionMode": "websocket",
    "groupPolicy": "allowlist",
    "groupAllowFrom": [
      "oc_4f37e6068f7641f06e4b3c94e150a0eb"
    ],
    "accounts": {
      ...
    }
  }
}

保存后重启 Gateway 即可。这个配置是对所有飞书账号生效的(因为 groupPolicy 定义在 channels.feishu 层级)。