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
核准或檢視 DM 配對請求(適用於支援配對的通道)。
相關:
- 配對流程:配對
命令
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 ...命令。