🔗
Matrix 集成
将 OpenClaw 连接到 Matrix,让你的 AI 助手在去中心化网络上工作。
快速开始
- ✓ 在 Matrix homeserver 上注册机器人用户
- ✓ 在 openclaw.json 中配置 homeserver 和凭证
- ✓ 可选:启用端到端加密
- ✓ 预计时间:约 10 分钟
设置步骤
步骤 1: 注册机器人用户
- 在你的 Matrix homeserver 上注册新用户(例如 @openclaw:your-server.com)
- 记录用户名、密码和 homeserver URL
- 确保机器人用户可以加入房间
提示:许多 homeserver 如 matrix.org、element.io 或自托管 Synapse 都允许注册机器人。
步骤 2: 配置 openclaw.json
{
"channels": {
"matrix": {
"enabled": true,
"homeserver": "https://matrix.org",
"userId": "@openclaw:matrix.org",
"password": "your-bot-password",
"deviceId": "OPENCLAW",
"storePath": "./data/matrix-store"
}
}
} 步骤 3: 启用端到端加密(可选)
{
"channels": {
"matrix": {
"enabled": true,
"homeserver": "https://matrix.org",
"userId": "@openclaw:matrix.org",
"password": "your-bot-password",
"deviceId": "OPENCLAW",
"encryption": {
"enabled": true,
"verifyDevices": false
}
}
}
} 步骤 4: 启动 OpenClaw
openclaw start 你的 Matrix 机器人现已激活!邀请机器人到房间即可开始聊天。
功能特性
去中心化
可与全球任何 Matrix homeserver 配合使用。
E2E 加密
可选的端到端加密支持。
房间管理
加入多个房间并管理对话。
语音消息
支持语音消息处理。