ESP32设备
xiaozhi_client固件
xiaozhi-server (扩展)
OpenClaw A
本地HTTP
OpenClaw B
远程WS
OpenClaw C
云端API
只需配置OTA地址即可接入,保留现有固件
根据消息内容自动分发到不同OpenClaw实例
跨渠道对话记忆,AI真正"认识"用户
编辑配置文件启用OpenClaw集成
# 编辑 config.yaml
openclaw:
enabled: true
routes_path: "config/routes.yaml"
# 多实例配置
instances:
- instance_id: "local-openclaw"
url: "http://127.0.0.1:18789"
protocol: "http"
enabled: true
priority: 100
tags: ["openclaw", "local"]
- instance_id: "remote-openclaw"
url: "ws://remote-server:18789"
protocol: "websocket"
enabled: false
priority: 80
tags: ["openclaw", "remote"]
创建 config/routes.yaml 定义消息路由规则
rules:
- name: "openclaw_direct"
match_type: "keyword"
patterns: ["openclaw", "龙虾", "小龙虾"]
instance_tags: ["openclaw"]
priority: 100
- name: "code_development"
match_type: "keyword"
patterns: ["代码", "编程", "debug"]
instance_tags: ["code", "developer"]
priority: 90
- name: "default_fallback"
match_type: "default"
instance_tags: []
priority: 0
在设备上配置xiaozhi-server的OTA地址
# 通过串口或配网页面配置 OTA_URL: ws://your-xiaozhi-server.com:8080 # 或 OTA_URL: wss://your-xiaozhi-server.com:8443 (SSL)
集成FunASR语音识别和多种TTS语音合成
支持VLLM图像理解,让AI能"看"会"说"
同时连接多个OpenClaw实例,负载均衡
跨渠道对话历史共享,连续对话体验
连接断开自动重连,健康检查保障稳定
Token认证、设备绑定,保障接入安全