OpenClaw 实践
1. 主要步骤
git clone https://github.com/openclaw/openclaw
cd openclaw
bash docker-setup.sh
2. 配置 ui
在 gateway 下添加
"controlUi": {
allowedOrigins: ["http://localhost:18789"],
},
3. 配置 gateway token
获取到 token
cat ~/.openclaw/openclaw.json | jq .gateway.auth.token
配置到网关中,点击 “链接”
4. 配置节点
openclaw devices list
openclaw pairing approve <requestId>
5. 配置飞书
在飞书 bot中对话,会有如下信息。
OpenClaw: access not configured.
Your Feishu user id: ou_xxx
Pairing code: 3G4CSBVV
Ask the bot owner to approve with:
openclaw pairing approve feishu 3G4CSBVV
执行对应命令即可
openclaw pairing approve feishu 3G4CSBVV
6. 配置 memory
https://docs.openclaw.ai/concepts/memory#qmd-backend-experimental
npm install -g @tobilu/qmd
"memory": {
"backend": "qmd",
"qmd": {
"command": "/opt/homebrew/bin/qmd",
"searchMode": "search",
"includeDefaultMemory": true
}
}
7. 配置飞书
安装飞书插件
npx -y @larksuite/openclaw-lark-tools install
feishu 认证
在飞书应用中找到自己的bot助手,然后输入
/feishu auth
飞书OpenClaw插件 v2026.3.10
用法:
/feishu start - 校验插件配置
/feishu auth - 批量授权用户权限
/feishu doctor - 运行诊断
/feishu help - 显示此帮助