DeepWiki速查
OpenClaw全模块通俗解读 → Gateway协议/认证配对/配置系统/会话管理/定时任务/Agent编排
核心知识点
- Gateway用WebSocket v3协议通信,三种帧(request/response/event)+30秒心跳+close code 4000超时
- 设备配对用Ed25519密钥对+nonce签名,本地自动批准/远程需手动approve
- 配置加载五阶段流水线:解析→合并$include→迁移旧字段→Zod校验→解密SecretRef
- 会话用provider:account:chat:dmScope格式隔离,支持自动AI压缩防上下文爆炸
标签: OpenClaw, 架构, DeepWiki, 配置, Gateway