🔗

Matrix 集成

將 OpenClaw 連接到 Matrix,讓你的 AI 助手在去中心化網絡上工作。

快速開始

  • 在 Matrix homeserver 上註冊機器人用戶
  • 在 openclaw.json 中配置 homeserver 和憑證
  • 可選:啟用端到端加密
  • 預計時間:約 10 分鐘

設置步驟

步驟 1: 註冊機器人用戶

  1. 在你的 Matrix homeserver 上註冊新用戶(例如 @openclaw:your-server.com)
  2. 記錄用戶名、密碼和 homeserver URL
  3. 確保機器人用戶可以加入房間

提示:許多 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 加密

可選的端到端加密支持。

房間管理

加入多個房間並管理對話。

語音消息

支持語音消息處理。