← 返回
开发者工具 中文

Approve Pairing

Approve a pending DM pairing request without the openclaw CLI, by directly editing credential files. Use when `openclaw pairing approve` is unavailable (CLI...
无需 openclaw CLI,直接编辑凭证文件批准待处理的 DM 配对请求。适用于 `openclaw pairing approve` 命令不可用的情况。
madan-wego
开发者工具 clawhub v2.0.0 1 版本 99806.9 Key: 无需
★ 0
Stars
📥 1,551
下载
💾 4
安装
1
版本
#latest

概述

approve-pairing

Approve pending DM pairing requests by writing directly to OpenClaw credential files — no CLI required.

How It Works

Pairing state lives in two files under ~/.openclaw/credentials/:

  • -pairing.json — pending requests (sender ID, code, accountId)
  • --allowFrom.json — approved senders allowlist

Approving = add sender ID to allowFrom file + remove code from pairing file.

Quick Approval (script)

python3 skills/approve-pairing/scripts/approve_pairing.py <channel> <code>

Example:

python3 skills/approve-pairing/scripts/approve_pairing.py telegram PWVW264M

The script:

  1. Reads ~/.openclaw/credentials/-pairing.json
  2. Finds the request matching the code
  3. Appends the sender ID to the allowFrom file
  4. Removes the code from pending requests

Manual Steps (if script unavailable)

  1. Read ~/.openclaw/credentials/-pairing.json to get id and meta.accountId
  2. Write/update ~/.openclaw/credentials/--allowFrom.json:

```json

{ "version": 1, "allowFrom": [""] }

```

  1. Clear the pending request from -pairing.json

Notes

  • Codes expire after 1 hour — check createdAt if approval fails
  • A gateway restart may be needed: openclaw gateway restart
  • If accountId is "default" or empty, the file is -default-allowFrom.json
  • Pending requests capped at 3 per channel; old ones must expire before new ones are created

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-03-29 07:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,217
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,807
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,215