OpenClaw 混合云与本地节点架构
OpenClaw 混合架构,包含云网关、用于设备动作的本地节点、持久化智能体状态以及商业 LLM 提供商调用。
完整 FlowZap 代码
User { # User
n1: circle label:"Start"
n2: rectangle label:"Send command via WhatsApp"
n1.handle(right) -> n2.handle(left)
n2.handle(bottom) -> CloudGW.n3.handle(top) [label="Internet"]
}
CloudGW { # Cloud Gateway (VPS)
n3: rectangle label:"OpenClaw Gateway"
n4: rectangle label:"Agent Memory + State"
n5: diamond label:"Local task needed?"
n3.handle(right) -> n4.handle(left)
n4.handle(right) -> n5.handle(left)
n5.handle(bottom) -> LocalNode.n6.handle(top) [label="Yes - Dispatch"]
n5.handle(right) -> n8.handle(left) [label="No - API only"]
n3.handle(bottom) -> LLM.n9.handle(top) [label="API Request"]
}
LocalNode { # Local Node (Mac / iPhone)
n6: rectangle label:"Screen + Camera + System"
n7: rectangle label:"Execute local action"
n6.handle(right) -> n7.handle(left)
n7.handle(top) -> CloudGW.n3.handle(bottom) [label="Result"]
}
LLM { # LLM Provider
n8: rectangle label:"Direct cloud task"
n9: rectangle label:"Claude Opus 4.5"
n10: rectangle label:"Generate response"
n9.handle(right) -> n10.handle(left)
n10.handle(top) -> CloudGW.n3.handle(bottom) [label="Response"]
}
相关模板
微服务 API 网关架构
微服务 API 网关架构图,展示请求路由、JWT 身份验证、速率限制、服务发现以及跨分布式后端服务的响应聚合。该模板模拟微服务生态系统中所有客户端流量的入口点,在请求到达内部服务之前执行安全策略。适合设计具有集中式横切关注点的可扩展 API 基础设施的平台工程师。