Skip to content

OpenClaw ​

安装openclaw ​

ClawdBot 飞书插件的地址如下:

https://github.com/m1heng/clawdbot-feishu

按照插件的说明文档,执行下方命令即可安装:

PowerShell
openclaw plugins install @m1heng-clawd/feishu

image.png

配置飞书应用机器人能力与消息权限 ​

登录飞书开放平台:

开启机器人能力: ​

编辑上面创建的飞书应用

image.png

开通相关权限: ​

需要开启以下权限:

订阅相关事件: ​

订阅方式选默认推荐的长连接,添加上以下事件:

应用编辑完之后记得创建版本并发布才能生效。

ClawdBot 可以正常回复就说明配置成功了,下面就来测试下它能力如何。

接入飞书群聊 ​

  • 用手机或者电脑打开飞书客户端,创建一个群组:

  • 将ClawdBot 机器人拉入群聊:

获取飞书群聊ID ​

进入飞书开放平台的API调试台 ​

地址:https://open.feishu.cn/api-explorer/cli_a44d04adcaf9900b?apiName=search&from=op_doc&project=im&resource=chat&version=v1

  • 选择有群能力的飞书应用

  • 选择「搜索对用户或机器人可见的群列表」API

image.png

  • 点击获取「user_access_token」

  • 在查询参数里,输入群名称

  • 开始调试,获取群ID

image.png

配置文件配置模型 ​

image.png

Openclaw可视化配置工具使用方法

image.png

编辑:~/.openclaw/openclaw.json 配置文件:

JSON
{
  "meta": {
    "lastTouchedVersion": "2026.1.29",
    "lastTouchedAt": "2026-02-07T18:00:04.200Z"
  },
  "wizard": {
    "lastRunAt": "2026-02-07T17:48:25.655Z",
    "lastRunVersion": "2026.1.29",
    "lastRunCommand": "doctor",
    "lastRunMode": "local"
  },
  "models": {
    "mode": "merge",
    "providers": {
      "custom-proxy": {
        "baseUrl": "https://api.wow3.top/v1",
        "apiKey": "__OPENCLAW_REDACTED__",
        "api": "openai-completions",
        "models": [
          {
            "id": "claude-sonnet-4-5-20250929",
            "name": "claude-sonnet-4-5",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 128000,
            "maxTokens": 32000
          }
        ]
      }
    },
    "bedrockDiscovery": {
      "defaultContextWindow": 1
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "custom-proxy/claude-sonnet-4-5-20250929"
      },
      "models": {
        "custom-proxy/claude-sonnet-4-5-20250929": {}
      },
      "workspace": "/home/xxx/.openclaw/workspace",
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  },
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "commands": {
    "native": "auto",
    "nativeSkills": "auto"
  },
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "session-memory": {
          "enabled": true
        },
        "command-logger": {
          "enabled": true
        },
        "boot-md": {
          "enabled": true
        }
      }
    }
  },
  "channels": {
    "feishu": {
      "enabled": true,
      "appId": "cli_xxx",
      "appSecret": "__OPENCLAW_REDACTED__",
      "domain": "feishu",
      "groupPolicy": "allowlist",
      "groupAllowFrom": [
        "oc_xxx"
      ]
    }
  },
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "auto",
    "auth": {
      "mode": "token",
      "token": "__OPENCLAW_REDACTED__"
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    },
    "http": {
      "endpoints": {
        "chatCompletions": {
          "enabled": true
        }
      }
    }
  },
  "skills": {
    "install": {
      "nodeManager": "pnpm"
    },
    "entries": {
      "openai-whisper-api": {
        "apiKey": "__OPENCLAW_REDACTED__"
      }
    }
  },
  "plugins": {
    "load": {
      "paths": []
    },
    "allow": ["feishu", "memory-core"],
    "entries": {
      "feishu": {
        "enabled": true
      }
    }
  }
}

内容如有疑问请联系客服