Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
openclaw pairing
批准或检查私信配对请求(适用于支持配对的渠道)。
相关:
- 配对流程:配对
命令
pairing list
列出一个渠道的待处理配对请求。
选项:
[channel]:位置参数渠道 ID--channel <channel>:显式渠道 ID--account <accountId>:多账号渠道的账号 ID--json:机器可读输出
- 如果配置了多个支持配对的渠道,你必须通过位置参数或
--channel提供一个渠道。 - 只要渠道 ID 有效,就允许使用扩展渠道。
pairing approve
批准一个待处理的配对码,并允许该发送者。
用法:
openclaw pairing approve <channel> <code>openclaw pairing approve --channel <channel> <code>- 当恰好配置了一个支持配对的渠道时,可使用
openclaw pairing approve <code>
--channel <channel>:显式渠道 ID--account <accountId>:多账号渠道的账号 ID--notify:在同一渠道向请求者发送确认
- 如果你批准配对码时
commands.ownerAllowFrom为空,OpenClaw 还会将已批准的发送者记录为命令所有者,使用渠道作用域条目,例如telegram:123456789。 - 这只会引导第一个所有者。后续配对批准不会替换或扩展
commands.ownerAllowFrom。 - 命令所有者是被允许运行仅所有者命令并批准危险操作的人类操作员账号,例如
/diagnostics、/export-trajectory、/config和 exec 批准。
注意
- 渠道输入:通过位置参数传入(
pairing list telegram)或使用--channel <channel>。 pairing list支持用于多账号渠道的--account <accountId>。pairing approve支持--account <accountId>和--notify。- 如果只配置了一个支持配对的渠道,则允许使用
pairing approve <code>。 - 如果你在此引导机制存在之前已经批准过某个发送者,请运行
openclaw doctor;当未配置命令所有者时,它会发出警告,并显示用于修复的openclaw config set commands.ownerAllowFrom ...命令。