tools 标签的,不然 openclaw 无法使用



注意:飞书的长链接机器人提交需要管理员审核通过才能用哦
1. 打开飞书开放平台访问 飞书开放平台,使用飞书账号登录。Lark(国际版)请使用 https://open.larksuite.com/app,并在配置中设置 domain: "lark"。
2. 创建应用
3. 获取应用凭证在应用的 凭证与基础信息 页面,复制:
cli_xxx)❗ 重要:请妥善保管 App Secret,不要分享给他人。
{
"scopes": {
"tenant": [
"aily:file:read",
"aily:file:write",
"application:application.app_message_stats.overview:readonly",
"application:application:self_manage",
"application:bot.menu:write",
"cardkit:card:write",
"contact:user.employee_id:readonly",
"corehr:file:download",
"docs:document.content:read",
"event:ip_list",
"im:chat",
"im:chat.access_event.bot_p2p_chat:read",
"im:chat.members:bot_access",
"im:message",
"im:message.group_at_msg:readonly",
"im:message.group_msg",
"im:message.p2p_msg:readonly",
"im:message:readonly",
"im:message:send_as_bot",
"im:resource",
"sheets:spreadsheet",
"wiki:wiki:readonly"
],
"user": ["aily:file:read", "aily:file:write", "im:chat.access_event.bot_p2p_chat:read"]
}
}


openclaw channels add 添加了 Feishu 渠道openclaw gateway status 检查状态, 没启动的话用 openclaw gateway 启动就行了,不然飞书那边过不去)在 事件订阅 页面:
im.message.receive_v1(接收消息)⚠️ 注意:如果网关未启动或渠道未添加,长连接设置将保存失败(用 openclaw gateway 启动就行了)。

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
npm install -g openclaw@latest
openclaw onboard --install-daemon
openclaw plugins install @wecom/wecom-openclaw-plugin
重启 OpenClaw
openclaw gateway restart
添加企业微信渠道(以企业微信为例)
openclaw channels add


openclaw pairing approve wecom S*****F

附一份配置文件 openclaw.json
目录:C:\Users\Administrator\.openclaw (*** 是我替换我的隐私信息,这些大部分是你需要修改的地方)
{
"meta": {
"lastTouchedVersion": "2026.3.8",
"lastTouchedAt": "2026-03-11T06:33:31.868Z"
},
"wizard": {
"lastRunAt": "2026-03-10T08:19:44.100Z",
"lastRunVersion": "2026.3.8",
"lastRunCommand": "doctor",
"lastRunMode": "local"
},
"models": {
"mode": "merge",
"providers": {
"ark": {
"baseUrl": "https://ark.cn-beijing.volces.com/api/v3",
"apiKey": "***",
"api": "openai-completions",
"models": [
{
"id": "doubao-seed-1-8-251228",
"name": "doubao-seed-1-8-251228",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192,
"headers": {
"X-Client-Request-Id": "ecs-openclaw/0202.1/i-yeexzr1gcgs6ipmj8lzw"
},
"compat": {
"supportsDeveloperRole": false
}
}
]
},
"ollama": {
"baseUrl": "http://127.0.0.1:11434/v1",
"apiKey": "ollama-local",
"api": "openai-completions",
"models": [
{
"id": "qwen3.5:9b",
"name": "qwen3-5 9b",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 2000000
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "ollama/qwen3.5:9b",
fallbacks: ["ollama/qwen3.5:9b"],
},
"models": {
"ollama/qwen3.5:9b": {}
},
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true,
"ownerDisplay": "raw"
},
"channels": {
"feishu": {
"appId": "***",
"appSecret": "***"
},
"wecom": {
"enabled": true,
"botId": "***",
"secret": "***",
"allowFrom": [],
"dmPolicy": "pairing"
}
},
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"auth": {
"mode": "token",
"token": "***"
}
},
"plugins": {
"entries": {
"feishu": {
"enabled": true
},
"wecom-openclaw-plugin": {
"enabled": true
}
},
"installs": {
"feishu": {
"source": "npm",
"spec": "@openclaw/feishu",
"installPath": "C:\\Users\\Administrator\\.openclaw\\extensions\\feishu",
"version": "2026.3.7",
"resolvedName": "@openclaw/feishu",
"resolvedVersion": "2026.3.7",
"resolvedSpec": "@openclaw/feishu@2026.3.7",
"integrity": "***",
"shasum": "***",
"resolvedAt": "2026-03-10T08:42:33.043Z",
"installedAt": "2026-03-10T08:42:43.149Z"
},
"wecom-openclaw-plugin": {
"source": "npm",
"spec": "@wecom/wecom-openclaw-plugin",
"installPath": "C:\\Users\\Administrator\\.openclaw\\extensions\\wecom-openclaw-plugin",
"version": "1.0.6",
"resolvedName": "@wecom/wecom-openclaw-plugin",
"resolvedVersion": "1.0.6",
"resolvedSpec": "@wecom/wecom-openclaw-plugin@1.0.6",
"integrity": "***",
"shasum": "***",
"resolvedAt": "2026-03-11T03:51:30.061Z",
"installedAt": "2026-03-11T03:52:06.691Z"
}
}
}
}
其他常用命令
# 设置当前使用的模型
openclaw models set ark/doubao-seed-2-0-lite-260215
# 设置当前使用的模型
openclaw models set ollama/qwen3.5:9b
# 重启网关,改动配置文件或者安装插件后重启以下
openclaw gateway restart
# 停止网关,关闭服务
openclaw gateway stop
# 下次运行时需要再次启动
openclaw gateway start
# 查看实时日志
openclaw logs --follow
# 只看最后 N 行日志,比如 50 行
openclaw logs --lines 50
# 清理旧日志
openclaw logs --clean
# 查看全面的系统状态信息
openclaw status --all
# 检查并更新 OpenClaw 到最新版本
openclaw update
# 列出所有会话
openclaw sessions list
# 清理不活跃的旧会话,释放 token
openclaw sessions cleanup
# 安装新技能/扩展
openclaw extension install <github-url>
# 列出已安装扩展
openclaw extension list
# 更新已安装扩展
openclaw extension update
# 卸载扩展
openclaw extension remove <extension-name>
# 打开交互式配置向导
openclaw config
# 查看当前配置
openclaw config show
# 深度检测各个通道连接状态
openclaw status --deep
# 查看系统信息和依赖
openclaw doctor
# 列出所有定时 cron 任务
openclaw cron list