跳到主要内容

OpenClaw

OpenClaw 是目前最强的开源 AI 智能体,直接通过 QQ、飞书、微信等手机聊天应用给它发消息,就能帮你自动回邮件、管理日程、操控电脑执行任务

OpenClaw相关命令​

bash
# 初始化引导命令、首次配置
openclaw onboard --install-daemon
# 开启网关连接
openclaw gateway

聊天渠道连接​

OpenClaw 支持的聊天渠道一览

  • WhatsApp、Telegram、Discord、飞书、钉钉、企业微信、QQ 、Google Chat等 20+ 消息平台集成
bash
# 查看当前渠道
openclaw channels list
# 渠道状态
openclaw channels status
# 连接渠道
openclaw channels login --channel <渠道名>
# 添加渠道
openclaw channels add --channel telegram --token <bot-token>

OpenClaw配置​

  • 可以配置渠道
bash
openclaw config
  • 启动网关
bash
openclaw gateway
# 停止
openclaw gateway stop
# 输入启动日志
openclaw gateway --verbose
  • 检查渠道
bash
openclaw channels status --probe

配置OpenClaw的skills​

openclaw gateway 网关问题​

  • 相关命令
bash
# 开启网关连接,并实时输出日志
openclaw gateway --verbose
# 停止网关连接
openclaw gateway stop
# 监管程序状态(launchd/systemd/schtasks)、运行时 PID/退出、最后的 Gateway 网关错误
openclaw status
# 向“正在运行中的 Gateway”要一份健康体检结果
openclaw health
# Gateway 网关发现 + 可达性(本地 + 远程目标)
openclaw gateway probe
# 重启网关
openclaw gateway restart

Gateway WebSocket 连接问题​

OpenClaw 的修复​

bash
openclaw doctor
# 自动修复常见问题
openclaw doctor --fix
openclaw channels status --probe

重新授权oauth​

bash
openclaw models auth login --provider openai-codex

tools.profile设置​

  • tools.profile 是 OpenClaw 里工具白名单的基础档位。
  • 会先决定“默认暴露哪些工具给 agent”,然后再叠加 tools.allow / tools.deny

常见有这几个:

  • minimal:只给最小工具集,基本只有 session_status。
  • coding:偏开发场景,包含文件、运行时、会话、记忆、图片等工具组。
  • messaging:偏聊天渠道场景,主要是消息相关工具和部分会话工具。
  • full:不限制,等价于不设置