{"id":28,"date":"2026-03-21T22:47:14","date_gmt":"2026-03-21T14:47:14","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-matrix\/"},"modified":"2026-03-21T23:29:10","modified_gmt":"2026-03-21T15:29:10","slug":"channels-matrix","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/channels-matrix\/","title":{"rendered":"Matrix"},"content":{"rendered":"<h1>Matrix<\/h1>\n<h1>Matrix\uff08\u63d2\u4ef6\uff09<\/h1>\n<p>Matrix \u662f\u4e00\u4e2a\u5f00\u653e\u7684\u53bb\u4e2d\u5fc3\u5316\u6d88\u606f\u534f\u8bae\u3002OpenClaw \u4ee5 Matrix <strong>\u7528\u6237<\/strong>\u8eab\u4efd\u8fde\u63a5\u5230\u4efb\u610f\u4e3b\u670d\u52a1\u5668\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u4e3a\u673a\u5668\u4eba\u521b\u5efa\u4e00\u4e2a Matrix \u8d26\u6237\u3002\u767b\u5f55\u540e\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u79c1\u4fe1\u673a\u5668\u4eba\u6216\u9080\u8bf7\u5b83\u52a0\u5165\u623f\u95f4\uff08Matrix&#8221;\u7fa4\u7ec4&#8221;\uff09\u3002Beeper \u4e5f\u662f\u4e00\u4e2a\u6709\u6548\u7684\u5ba2\u6237\u7aef\u9009\u9879\uff0c\u4f46\u5b83\u9700\u8981\u542f\u7528 E2EE\u3002<\/p>\n<p>\u72b6\u6001\uff1a\u901a\u8fc7\u63d2\u4ef6\uff08@vector-im\/matrix-bot-sdk\uff09\u652f\u6301\u3002\u652f\u6301\u79c1\u4fe1\u3001\u623f\u95f4\u3001\u8bdd\u9898\u3001\u5a92\u4f53\u3001\u8868\u60c5\u56de\u5e94\u3001\u6295\u7968\uff08\u53d1\u9001 + poll-start \u4f5c\u4e3a\u6587\u672c\uff09\u3001\u4f4d\u7f6e\u548c E2EE\uff08\u9700\u8981\u52a0\u5bc6\u652f\u6301\uff09\u3002<\/p>\n<h2>\u9700\u8981\u63d2\u4ef6<\/h2>\n<p>Matrix \u4f5c\u4e3a\u63d2\u4ef6\u63d0\u4f9b\uff0c\u4e0d\u5305\u542b\u5728\u6838\u5fc3\u5b89\u88c5\u4e2d\u3002<\/p>\n<p>\u901a\u8fc7 CLI \u5b89\u88c5\uff08npm \u4ed3\u5e93\uff09\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw plugins install @openclaw\/matrix<\/p>\n<pre><code>\n\u672c\u5730\u68c0\u51fa\uff08\u4ece git \u4ed3\u5e93\u8fd0\u884c\u65f6\uff09\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw plugins install .\/extensions\/matrix\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u5728\u914d\u7f6e\/\u65b0\u624b\u5f15\u5bfc\u671f\u95f4\u9009\u62e9 Matrix \u5e76\u68c0\u6d4b\u5230 git \u68c0\u51fa\uff0cOpenClaw \u5c06\u81ea\u52a8\u63d0\u4f9b\u672c\u5730\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<p>\u8be6\u60c5\uff1a<a href=\"https:\/\/pa.yingzhi8.cn\/?p=289\">\u63d2\u4ef6<\/a><\/p>\n<h2>\u8bbe\u7f6e<\/h2>\n<ol>\n<li>\n<p>\u5b89\u88c5 Matrix \u63d2\u4ef6\uff1a<br \/>\n   * \u4ece npm\uff1a<code>openclaw plugins install @openclaw\/matrix<\/code><br \/>\n   * \u4ece\u672c\u5730\u68c0\u51fa\uff1a<code>openclaw plugins install .\/extensions\/matrix<\/code><\/p>\n<\/li>\n<li>\n<p>\u5728\u4e3b\u670d\u52a1\u5668\u4e0a\u521b\u5efa Matrix \u8d26\u6237\uff1a<br \/>\n   * \u5728 <a href=\"https:\/\/matrix.org\/ecosystem\/hosting\/\">https:\/\/matrix.org\/ecosystem\/hosting\/<\/a> \u6d4f\u89c8\u6258\u7ba1\u9009\u9879<br \/>\n   * \u6216\u81ea\u884c\u6258\u7ba1\u3002<\/p>\n<\/li>\n<li>\n<p>\u83b7\u53d6\u673a\u5668\u4eba\u8d26\u6237\u7684\u8bbf\u95ee\u4ee4\u724c\uff1a<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\u5728\u4f60\u7684\u4e3b\u670d\u52a1\u5668\u4e0a\u4f7f\u7528 <code>curl<\/code> \u8c03\u7528 Matrix \u767b\u5f55 API\uff1a<\/li>\n<\/ul>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n   curl --request POST<br \/>\n     --url https:\/\/matrix.example.org\/_matrix\/client\/v3\/login<br \/>\n     --header 'Content-Type: application\/json'<br \/>\n     --data '{<br \/>\n     \"type\": \"m.login.password\",<br \/>\n     \"identifier\": {<br \/>\n       \"type\": \"m.id.user\",<br \/>\n       \"user\": \"your-user-name\"<br \/>\n     },<br \/>\n     \"password\": \"your-password\"<br \/>\n   }'<\/code><\/p>\n<ul>\n<li>\u5c06 <code>matrix.example.org<\/code> \u66ff\u6362\u4e3a\u4f60\u7684\u4e3b\u670d\u52a1\u5668 URL\u3002<\/li>\n<li>\u6216\u8bbe\u7f6e <code>channels.matrix.userId<\/code> + <code>channels.matrix.password<\/code>\uff1aOpenClaw \u4f1a\u8c03\u7528\u76f8\u540c\u7684\u767b\u5f55\u7aef\u70b9\uff0c\u5c06\u8bbf\u95ee\u4ee4\u724c\u5b58\u50a8\u5728 <code>~\/.openclaw\/credentials\/matrix\/credentials.json<\/code>\uff0c\u5e76\u5728\u4e0b\u6b21\u542f\u52a8\u65f6\u91cd\u7528\u3002<\/li>\n<\/ul>\n<ol start=\"4\">\n<li>\n<p>\u914d\u7f6e\u51ed\u8bc1\uff1a<br \/>\n   * \u73af\u5883\u53d8\u91cf\uff1a<code>MATRIX_HOMESERVER<\/code>\u3001<code>MATRIX_ACCESS_TOKEN<\/code>\uff08\u6216 <code>MATRIX_USER_ID<\/code> + <code>MATRIX_PASSWORD<\/code>\uff09<br \/>\n   * \u6216\u914d\u7f6e\uff1a<code>channels.matrix.*<\/code><br \/>\n   * \u5982\u679c\u4e24\u8005\u90fd\u8bbe\u7f6e\uff0c\u914d\u7f6e\u4f18\u5148\u3002<br \/>\n   * \u4f7f\u7528\u8bbf\u95ee\u4ee4\u724c\u65f6\uff1a\u7528\u6237 ID \u901a\u8fc7 <code>\/whoami<\/code> \u81ea\u52a8\u83b7\u53d6\u3002<br \/>\n   * \u8bbe\u7f6e\u65f6\uff0c<code>channels.matrix.userId<\/code> \u5e94\u4e3a\u5b8c\u6574\u7684 Matrix ID\uff08\u793a\u4f8b\uff1a<code>@bot:example.org<\/code>\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u91cd\u542f Gateway \u7f51\u5173 \u7f51\u5173\uff08\u6216\u5b8c\u6210\u65b0\u624b\u5f15\u5bfc\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ece\u4efb\u4f55 Matrix \u5ba2\u6237\u7aef\uff08Element\u3001Beeper \u7b49\uff1b\u53c2\u89c1 <a href=\"https:\/\/matrix.org\/ecosystem\/clients\/\uff09\u4e0e\u673a\u5668\u4eba\u5f00\u59cb\u79c1\u4fe1\u6216\u9080\u8bf7\u5b83\u52a0\u5165\u623f\u95f4\u3002Beeper\">https:\/\/matrix.org\/ecosystem\/clients\/\uff09\u4e0e\u673a\u5668\u4eba\u5f00\u59cb\u79c1\u4fe1\u6216\u9080\u8bf7\u5b83\u52a0\u5165\u623f\u95f4\u3002Beeper<\/a> \u9700\u8981 E2EE\uff0c\u56e0\u6b64\u8bf7\u8bbe\u7f6e <code>channels.matrix.encryption: true<\/code> \u5e76\u9a8c\u8bc1\u8bbe\u5907\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u6700\u5c0f\u914d\u7f6e\uff08\u8bbf\u95ee\u4ee4\u724c\uff0c\u7528\u6237 ID \u81ea\u52a8\u83b7\u53d6\uff09\uff1a<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \u6e20\u9053s: {<br \/>\n    matrix: {<br \/>\n      enabled: true,<br \/>\n      homeserver: &#8220;https:\/\/matrix.example.org&#8221;,<br \/>\n      accessToken: &#8220;syt_***&#8221;,<br \/>\n      dm: { policy: &#8220;pairing&#8221; },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\nE2EE \u914d\u7f6e\uff08\u542f\u7528\u7aef\u5230\u7aef\u52a0\u5bc6\uff09\uff1a\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  channels: {\n    matrix: {\n      enabled: true,\n      homeserver: &quot;https:\/\/matrix.example.org&quot;,\n      accessToken: &quot;syt_***&quot;,\n      encryption: true,\n      dm: { policy: &quot;pairing&quot; },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u52a0\u5bc6\uff08E2EE\uff09<\/h2>\n<p>\u901a\u8fc7 Rust \u52a0\u5bc6 SDK <strong>\u652f\u6301<\/strong>\u7aef\u5230\u7aef\u52a0\u5bc6\u3002<\/p>\n<p>\u4f7f\u7528 <code>channels.matrix.encryption: true<\/code> \u542f\u7528\uff1a<\/p>\n<ul>\n<li>\u5982\u679c\u52a0\u5bc6\u6a21\u5757\u52a0\u8f7d\u6210\u529f\uff0c\u52a0\u5bc6\u623f\u95f4\u4f1a\u81ea\u52a8\u89e3\u5bc6\u3002<\/li>\n<li>\u53d1\u9001\u5230\u52a0\u5bc6\u623f\u95f4\u65f6\uff0c\u51fa\u7ad9\u5a92\u4f53\u4f1a\u88ab\u52a0\u5bc6\u3002<\/li>\n<li>\u9996\u6b21\u8fde\u63a5\u65f6\uff0cOpenClaw \u4f1a\u5411\u4f60\u7684\u5176\u4ed6\u4f1a\u8bdd\u8bf7\u6c42\u8bbe\u5907\u9a8c\u8bc1\u3002<\/li>\n<li>\u5728\u53e6\u4e00\u4e2a Matrix \u5ba2\u6237\u7aef\uff08Element \u7b49\uff09\u4e2d\u9a8c\u8bc1\u8bbe\u5907\u4ee5\u542f\u7528\u5bc6\u94a5\u5171\u4eab\u3002<\/li>\n<li>\u5982\u679c\u65e0\u6cd5\u52a0\u8f7d\u52a0\u5bc6\u6a21\u5757\uff0cE2EE \u5c06\u88ab\u7981\u7528\uff0c\u52a0\u5bc6\u623f\u95f4\u5c06\u65e0\u6cd5\u89e3\u5bc6\uff1bOpenClaw \u4f1a\u8bb0\u5f55\u8b66\u544a\u3002<\/li>\n<li>\u5982\u679c\u4f60\u770b\u5230\u7f3a\u5c11\u52a0\u5bc6\u6a21\u5757\u7684\u9519\u8bef\uff08\u4f8b\u5982 <code>@matrix-org\/matrix-sdk-crypto-nodejs-*<\/code>\uff09\uff0c\u8bf7\u5141\u8bb8 <code>@matrix-org\/matrix-sdk-crypto-nodejs<\/code> \u7684\u6784\u5efa\u811a\u672c\u5e76\u8fd0\u884c <code>pnpm rebuild @matrix-org\/matrix-sdk-crypto-nodejs<\/code>\uff0c\u6216\u4f7f\u7528 <code>node node_modules\/@matrix-org\/matrix-sdk-crypto-nodejs\/download-lib.js<\/code> \u83b7\u53d6\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p>\u52a0\u5bc6\u72b6\u6001\u6309\u8d26\u6237 + \u8bbf\u95ee\u4ee4\u724c\u5b58\u50a8\u5728 <code>~\/.openclaw\/matrix\/accounts\/&lt;account&gt;\/&lt;homeserver&gt;__&lt;user&gt;\/&lt;token-hash&gt;\/crypto\/<\/code>\uff08SQLite \u6570\u636e\u5e93\uff09\u3002\u540c\u6b65\u72b6\u6001\u5b58\u50a8\u5728\u540c\u76ee\u5f55\u7684 <code>bot-storage.json<\/code> \u4e2d\u3002\u5982\u679c\u8bbf\u95ee\u4ee4\u724c\uff08\u8bbe\u5907\uff09\u66f4\u6539\uff0c\u5c06\u521b\u5efa\u65b0\u7684\u5b58\u50a8\uff0c\u673a\u5668\u4eba\u5fc5\u987b\u91cd\u65b0\u9a8c\u8bc1\u624d\u80fd\u8bbf\u95ee\u52a0\u5bc6\u623f\u95f4\u3002<\/p>\n<p><strong>\u8bbe\u5907\u9a8c\u8bc1\uff1a<\/strong><br \/>\n\u542f\u7528 E2EE \u65f6\uff0c\u673a\u5668\u4eba\u5c06\u5728\u542f\u52a8\u65f6\u5411\u4f60\u7684\u5176\u4ed6\u4f1a\u8bdd\u8bf7\u6c42\u9a8c\u8bc1\u3002\u6253\u5f00 Element\uff08\u6216\u5176\u4ed6\u5ba2\u6237\u7aef\uff09\u5e76\u6279\u51c6\u9a8c\u8bc1\u8bf7\u6c42\u4ee5\u5efa\u7acb\u4fe1\u4efb\u3002\u9a8c\u8bc1\u540e\uff0c\u673a\u5668\u4eba\u53ef\u4ee5\u89e3\u5bc6\u52a0\u5bc6\u623f\u95f4\u4e2d\u7684\u6d88\u606f\u3002<\/p>\n<h2>\u8def\u7531\u6a21\u578b<\/h2>\n<ul>\n<li>\u56de\u590d\u59cb\u7ec8\u8fd4\u56de\u5230 Matrix\u3002<\/li>\n<li>\u79c1\u4fe1\u5171\u4eab\u667a\u80fd\u4f53\u7684\u4e3b\u4f1a\u8bdd\uff1b\u623f\u95f4\u6620\u5c04\u5230\u7fa4\u7ec4\u4f1a\u8bdd\u3002<\/li>\n<\/ul>\n<h2>\u8bbf\u95ee\u63a7\u5236\uff08\u79c1\u4fe1\uff09<\/h2>\n<ul>\n<li>\u9ed8\u8ba4\uff1a<code>channels.matrix.dm.policy = \"pairing\"<\/code>\u3002\u672a\u77e5\u53d1\u9001\u8005\u4f1a\u6536\u5230\u914d\u5bf9\u7801\u3002<\/li>\n<li>\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6279\u51c6\uff1a<\/li>\n<li><code>openclaw pairing list matrix<\/code><\/li>\n<li><code>openclaw pairing approve matrix &lt;CODE&gt;<\/code><\/li>\n<li>\u516c\u5f00\u79c1\u4fe1\uff1a<code>channels.matrix.dm.policy=\"open\"<\/code> \u52a0\u4e0a <code>channels.matrix.dm.allowFrom=[\"*\"]<\/code>\u3002<\/li>\n<li><code>channels.matrix.dm.allowFrom<\/code> \u4ec5\u63a5\u53d7\u5b8c\u6574 Matrix \u7528\u6237 ID\uff08\u4f8b\u5982 <code>@user:server<\/code>\uff09\u3002\u5411\u5bfc\u4ec5\u5728\u76ee\u5f55\u641c\u7d22\u5f97\u5230\u552f\u4e00\u7cbe\u786e\u5339\u914d\u65f6\u5c06\u663e\u793a\u540d\u79f0\u89e3\u6790\u4e3a\u7528\u6237 ID\u3002<\/li>\n<\/ul>\n<h2>\u623f\u95f4\uff08\u7fa4\u7ec4\uff09<\/h2>\n<ul>\n<li>\u9ed8\u8ba4\uff1a<code>channels.matrix.groupPolicy = \"allowlist\"<\/code>\uff08\u63d0\u53ca\u95e8\u63a7\uff09\u3002\u4f7f\u7528 <code>channels.defaults.groupPolicy<\/code> \u5728\u672a\u8bbe\u7f6e\u65f6\u8986\u76d6\u9ed8\u8ba4\u503c\u3002<\/li>\n<li>\u4f7f\u7528 <code>channels.matrix.groups<\/code> \u914d\u7f6e\u623f\u95f4\u5141\u8bb8\u5217\u8868\uff08\u623f\u95f4 ID \u6216\u522b\u540d\uff1b\u540d\u79f0\u4ec5\u5728\u76ee\u5f55\u641c\u7d22\u5f97\u5230\u552f\u4e00\u7cbe\u786e\u5339\u914d\u65f6\u89e3\u6790\u4e3a ID\uff09\uff1a<\/li>\n<\/ul>\n<p><code>json5  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n{<br \/>\n  channels: {<br \/>\n    matrix: {<br \/>\n      groupPolicy: \"allowlist\",<br \/>\n      groups: {<br \/>\n        \"!roomId:example.org\": { allow: true },<br \/>\n        \"#alias:example.org\": { allow: true },<br \/>\n      },<br \/>\n      groupAllowFrom: [\"@owner:example.org\"],<br \/>\n    },<br \/>\n  },<br \/>\n}<\/code><\/p>\n<ul>\n<li><code>requireMention: false<\/code> \u542f\u7528\u8be5\u623f\u95f4\u7684\u81ea\u52a8\u56de\u590d\u3002<\/li>\n<li><code>groups.\"*\"<\/code> \u53ef\u4ee5\u8bbe\u7f6e\u8de8\u623f\u95f4\u7684\u63d0\u53ca\u95e8\u63a7\u9ed8\u8ba4\u503c\u3002<\/li>\n<li><code>groupAllowFrom<\/code> \u9650\u5236\u54ea\u4e9b\u53d1\u9001\u8005\u53ef\u4ee5\u5728\u623f\u95f4\u4e2d\u89e6\u53d1\u673a\u5668\u4eba\uff08\u9700\u5b8c\u6574 Matrix \u7528\u6237 ID\uff09\u3002<\/li>\n<li>\u6bcf\u4e2a\u623f\u95f4\u7684 <code>users<\/code> \u5141\u8bb8\u5217\u8868\u53ef\u4ee5\u8fdb\u4e00\u6b65\u9650\u5236\u7279\u5b9a\u623f\u95f4\u5185\u7684\u53d1\u9001\u8005\uff08\u9700\u5b8c\u6574 Matrix \u7528\u6237 ID\uff09\u3002<\/li>\n<li>\u914d\u7f6e\u5411\u5bfc\u4f1a\u63d0\u793a\u8f93\u5165\u623f\u95f4\u5141\u8bb8\u5217\u8868\uff08\u623f\u95f4 ID\u3001\u522b\u540d\u6216\u540d\u79f0\uff09\uff0c\u4ec5\u5728\u7cbe\u786e\u4e14\u552f\u4e00\u5339\u914d\u65f6\u89e3\u6790\u540d\u79f0\u3002<\/li>\n<li>\u542f\u52a8\u65f6\uff0cOpenClaw \u5c06\u5141\u8bb8\u5217\u8868\u4e2d\u7684\u623f\u95f4\/\u7528\u6237\u540d\u79f0\u89e3\u6790\u4e3a ID \u5e76\u8bb0\u5f55\u6620\u5c04\uff1b\u672a\u89e3\u6790\u7684\u6761\u76ee\u4e0d\u4f1a\u53c2\u4e0e\u5141\u8bb8\u5217\u8868\u5339\u914d\u3002<\/li>\n<li>\u9ed8\u8ba4\u81ea\u52a8\u52a0\u5165\u9080\u8bf7\uff1b\u4f7f\u7528 <code>channels.matrix.autoJoin<\/code> \u548c <code>channels.matrix.autoJoinAllowlist<\/code> \u63a7\u5236\u3002<\/li>\n<li>\u8981<strong>\u7981\u6b62\u6240\u6709\u623f\u95f4<\/strong>\uff0c\u8bbe\u7f6e <code>channels.matrix.groupPolicy: \"disabled\"<\/code>\uff08\u6216\u4fdd\u6301\u7a7a\u7684\u5141\u8bb8\u5217\u8868\uff09\u3002<\/li>\n<li>\u65e7\u7248\u952e\u540d\uff1a<code>channels.matrix.rooms<\/code>\uff08\u4e0e <code>groups<\/code> \u76f8\u540c\u7684\u7ed3\u6784\uff09\u3002<\/li>\n<\/ul>\n<h2>\u8bdd\u9898<\/h2>\n<ul>\n<li>\u652f\u6301\u56de\u590d\u8bdd\u9898\u3002<\/li>\n<li><code>channels.matrix.threadReplies<\/code> \u63a7\u5236\u56de\u590d\u662f\u5426\u4fdd\u6301\u5728\u8bdd\u9898\u4e2d\uff1a<\/li>\n<li><code>off<\/code>\u3001<code>inbound<\/code>\uff08\u9ed8\u8ba4\uff09\u3001<code>always<\/code><\/li>\n<li><code>channels.matrix.replyToMode<\/code> \u63a7\u5236\u4e0d\u5728\u8bdd\u9898\u4e2d\u56de\u590d\u65f6\u7684 reply-to \u5143\u6570\u636e\uff1a<\/li>\n<li><code>off<\/code>\uff08\u9ed8\u8ba4\uff09\u3001<code>first<\/code>\u3001<code>all<\/code><\/li>\n<\/ul>\n<h2>\u529f\u80fd<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u529f\u80fd<\/th>\n<th>\u72b6\u6001<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u79c1\u4fe1<\/td>\n<td>\u2705 \u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>\u623f\u95f4<\/td>\n<td>\u2705 \u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>\u8bdd\u9898<\/td>\n<td>\u2705 \u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>\u5a92\u4f53<\/td>\n<td>\u2705 \u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>E2EE<\/td>\n<td>\u2705 \u652f\u6301\uff08\u9700\u8981\u52a0\u5bc6\u6a21\u5757\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u8868\u60c5\u56de\u5e94<\/td>\n<td>\u2705 \u652f\u6301\uff08\u901a\u8fc7\u5de5\u5177\u53d1\u9001\/\u8bfb\u53d6\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u6295\u7968<\/td>\n<td>\u2705 \u652f\u6301\u53d1\u9001\uff1b\u5165\u7ad9\u6295\u7968\u5f00\u59cb\u8f6c\u6362\u4e3a\u6587\u672c\uff08\u54cd\u5e94\/\u7ed3\u675f\u88ab\u5ffd\u7565\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u4f4d\u7f6e<\/td>\n<td>\u2705 \u652f\u6301\uff08geo URI\uff1b\u5ffd\u7565\u6d77\u62d4\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u539f\u751f\u547d\u4ee4<\/td>\n<td>\u2705 \u652f\u6301<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u914d\u7f6e\u53c2\u8003\uff08Matrix\uff09<\/h2>\n<p>\u5b8c\u6574\u914d\u7f6e\uff1a<a href=\"https:\/\/pa.yingzhi8.cn\/?p=120\">\u914d\u7f6e<\/a><\/p>\n<p>\u63d0\u4f9b\u5546\u9009\u9879\uff1a<\/p>\n<ul>\n<li><code>channels.matrix.enabled<\/code>\uff1a\u542f\u7528\/\u7981\u7528\u6e20\u9053\u542f\u52a8\u3002<\/li>\n<li><code>channels.matrix.homeserver<\/code>\uff1a\u4e3b\u670d\u52a1\u5668 URL\u3002<\/li>\n<li><code>channels.matrix.userId<\/code>\uff1aMatrix \u7528\u6237 ID\uff08\u4f7f\u7528\u8bbf\u95ee\u4ee4\u724c\u65f6\u53ef\u9009\uff09\u3002<\/li>\n<li><code>channels.matrix.accessToken<\/code>\uff1a\u8bbf\u95ee\u4ee4\u724c\u3002<\/li>\n<li><code>channels.matrix.password<\/code>\uff1a\u767b\u5f55\u5bc6\u7801\uff08\u4ee4\u724c\u4f1a\u88ab\u5b58\u50a8\uff09\u3002<\/li>\n<li><code>channels.matrix.deviceName<\/code>\uff1a\u8bbe\u5907\u663e\u793a\u540d\u79f0\u3002<\/li>\n<li><code>channels.matrix.encryption<\/code>\uff1a\u542f\u7528 E2EE\uff08\u9ed8\u8ba4\uff1afalse\uff09\u3002<\/li>\n<li><code>channels.matrix.initialSyncLimit<\/code>\uff1a\u521d\u59cb\u540c\u6b65\u9650\u5236\u3002<\/li>\n<li><code>channels.matrix.threadReplies<\/code>\uff1a<code>off | inbound | always<\/code>\uff08\u9ed8\u8ba4\uff1ainbound\uff09\u3002<\/li>\n<li><code>channels.matrix.textChunkLimit<\/code>\uff1a\u51fa\u7ad9\u6587\u672c\u5206\u5757\u5927\u5c0f\uff08\u5b57\u7b26\uff09\u3002<\/li>\n<li><code>channels.matrix.chunkMode<\/code>\uff1a<code>length<\/code>\uff08\u9ed8\u8ba4\uff09\u6216 <code>newline<\/code> \u5728\u957f\u5ea6\u5206\u5757\u524d\u6309\u7a7a\u884c\uff08\u6bb5\u843d\u8fb9\u754c\uff09\u5206\u5272\u3002<\/li>\n<li><code>channels.matrix.dm.policy<\/code>\uff1a<code>pairing | allowlist | open | disabled<\/code>\uff08\u9ed8\u8ba4\uff1apairing\uff09\u3002<\/li>\n<li><code>channels.matrix.dm.allowFrom<\/code>\uff1a\u79c1\u4fe1\u5141\u8bb8\u5217\u8868\uff08\u9700\u5b8c\u6574 Matrix \u7528\u6237 ID\uff09\u3002<code>open<\/code> \u9700\u8981 <code>\"*\"<\/code>\u3002\u5411\u5bfc\u5728\u53ef\u80fd\u65f6\u5c06\u540d\u79f0\u89e3\u6790\u4e3a ID\u3002<\/li>\n<li><code>channels.matrix.groupPolicy<\/code>\uff1a<code>allowlist | open | disabled<\/code>\uff08\u9ed8\u8ba4\uff1aallowlist\uff09\u3002<\/li>\n<li><code>channels.matrix.groupAllowFrom<\/code>\uff1a\u7fa4\u7ec4\u6d88\u606f\u7684\u5141\u8bb8\u53d1\u9001\u8005\u5217\u8868\uff08\u9700\u5b8c\u6574 Matrix \u7528\u6237 ID\uff09\u3002<\/li>\n<li><code>channels.matrix.allowlistOnly<\/code>\uff1a\u5f3a\u5236\u79c1\u4fe1 + \u623f\u95f4\u4f7f\u7528\u5141\u8bb8\u5217\u8868\u89c4\u5219\u3002<\/li>\n<li><code>channels.matrix.groups<\/code>\uff1a\u7fa4\u7ec4\u5141\u8bb8\u5217\u8868 + \u6bcf\u4e2a\u623f\u95f4\u7684\u8bbe\u7f6e\u6620\u5c04\u3002<\/li>\n<li><code>channels.matrix.rooms<\/code>\uff1a\u65e7\u7248\u7fa4\u7ec4\u5141\u8bb8\u5217\u8868\/\u914d\u7f6e\u3002<\/li>\n<li><code>channels.matrix.replyToMode<\/code>\uff1a\u8bdd\u9898\/\u6807\u7b7e\u7684 reply-to \u6a21\u5f0f\u3002<\/li>\n<li><code>channels.matrix.mediaMaxMb<\/code>\uff1a\u5165\u7ad9\/\u51fa\u7ad9\u5a92\u4f53\u4e0a\u9650\uff08MB\uff09\u3002<\/li>\n<li><code>channels.matrix.autoJoin<\/code>\uff1a\u9080\u8bf7\u5904\u7406\uff08<code>always | allowlist | off<\/code>\uff0c\u9ed8\u8ba4\uff1aalways\uff09\u3002<\/li>\n<li><code>channels.matrix.autoJoinAllowlist<\/code>\uff1a\u81ea\u52a8\u52a0\u5165\u7684\u5141\u8bb8\u623f\u95f4 ID\/\u522b\u540d\u3002<\/li>\n<li><code>channels.matrix.actions<\/code>\uff1a\u6bcf\u4e2a\u64cd\u4f5c\u7684\u5de5\u5177\u9650\u5236\uff08reactions\/messages\/pins\/memberInfo\/\u6e20\u9053Info\uff09\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Matrix Matrix\uff08\u63d2\u4ef6\uff09 Matrix \u662f\u4e00\u4e2a\u5f00\u653e\u7684\u53bb\u4e2d\u5fc3\u5316\u6d88\u606f\u534f\u8bae\u3002OpenClaw \u4ee5 Matr [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/28\/revisions\/846"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}