Skip to main content

Documentation Index

Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt

Use this file to discover all available pages before exploring further.

OpenClaw 通过 JSON-RPC 集成外部 CLI。目前使用两种模式。

模式 A:HTTP 守护进程(signal-cli)

  • signal-cli 作为带有 HTTP 上 JSON-RPC 的守护进程运行。
  • 事件流使用 SSE(/api/v1/events)。
  • 健康检查:/api/v1/check
  • channels.signal.autoStart=true 时,OpenClaw 负责生命周期管理。
有关设置和端点,请参见 Signal

模式 B:stdio 子进程(旧版:imsg)

注意: 对于新的 iMessage 设置,请改用 BlueBubbles
  • OpenClaw 以子进程形式启动 imsg rpc(旧版 iMessage 集成)。
  • JSON-RPC 通过 stdin/stdout 按行分隔传输(每行一个 JSON 对象)。
  • 不需要 TCP 端口,也不需要守护进程。
使用的核心方法:
  • watch.subscribe → 通知(method: "message"
  • watch.unsubscribe
  • send
  • chats.list(探测/诊断)
有关旧版设置和寻址(推荐使用 chat_id),请参见 iMessage

适配器指南

  • 网关负责进程(启动/停止与提供方生命周期绑定)。
  • 让 RPC 客户端具备弹性:超时、退出后重启。
  • 优先使用稳定 ID(例如 chat_id),而不是显示字符串。

相关