Skip to content

基础概览:OpenClaw 由哪些部分组成?

先把几个名词对齐,你后面看配置/排错会快很多。

一图看懂

OpenClaw 架构总览

一次消息的处理流程

OpenClaw 消息处理流程

Gateway(网关)

  • OpenClaw 的常驻服务(WebSocket server)
  • 负责:channels、nodes、sessions、hooks、cron 等运行时能力

常用:

bash
openclaw gateway status
openclaw gateway restart
openclaw logs --follow

Agent(代理)

  • 你在聊天里看到的“助理”
  • 可以按不同用途配置多个 agent(比如:工作助理/代码助理/家庭助理)

Control UI / Dashboard

  • 浏览器里直接聊天与管理(最快验证是否能跑)
bash
openclaw dashboard

Channels(渠道)

  • Telegram/WhatsApp/Discord/Slack/Signal/iMessage 等
  • 让助理能在你常用的聊天 App 中工作
bash
openclaw channels list
openclaw channels status

Memory(记忆)

  • 语义索引 + 语义检索
  • 适合存偏好、项目背景、长期信息
bash
openclaw memory status
openclaw memory search "关键词"

Cron(定时任务)

  • 定时触发“代理回合”或系统事件
  • 用于提醒、日报/周报、定时检查等
bash
openclaw cron status
openclaw cron list