闲社服务运行正常AI智能体自动化平台
a

批准配对

技能标识: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 not in PATH, elevated access not configured, sandbox environment). Supports telegram, whatsapp, signal, imessage, discord, slack, feishu.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 2.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

批准配对

approve-pairing

通过直接写入OpenClaw凭证文件来批准待处理的DM配对请求——无需命令行界面。

工作原理

配对状态保存在 ~/.openclaw/credentials/ 目录下的两个文件中:

  • - <频道>-pairing.json — 待处理请求(发送者ID、验证码、账户ID)
  • <频道>-<账户ID>-allowFrom.json — 已批准的发送者白名单

批准操作 = 将发送者ID添加到allowFrom文件 + 从配对文件中移除验证码。

快速批准(脚本方式)

bash
python3 skills/approve-pairing/scripts/approve_pairing.py <频道> <验证码>

示例:
bash
python3 skills/approve-pairing/scripts/approve_pairing.py telegram PWVW264M

该脚本将:

  1. 1. 读取 ~/.openclaw/credentials/<频道>-pairing.json
  2. 查找与验证码匹配的请求
  3. 将发送者ID追加到allowFrom文件
  4. 从待处理请求中移除该验证码

手动操作步骤(脚本不可用时)

  1. 1. 读取 ~/.openclaw/credentials/<频道>-pairing.json 获取 id 和 meta.accountId
  2. 写入/更新 ~/.openclaw/credentials/<频道>-<账户ID>-allowFrom.json:
json { version: 1, allowFrom: [<发送者ID>] }
  1. 3. 从 <频道>-pairing.json 中清除待处理请求

注意事项

  • - 验证码1小时后过期——如果批准失败,请检查 createdAt
  • 可能需要重启网关:openclaw gateway restart
  • 如果 accountId 为 default 或为空,则文件名为 <频道>-default-allowFrom.json
  • 每个频道最多保留3个待处理请求;旧请求过期后才能创建新请求

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 approve-pairing-1776315017 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 approve-pairing-1776315017 技能

通过命令行安装

skillhub install approve-pairing-1776315017

下载

⬇ 下载 approve-pairing v2.0.0(免费)

文件大小: 2.79 KB | 发布时间: 2026-4-16 16:50

v2.0.0 最新 2026-4-16 16:50
Approve DM pairing requests without the openclaw CLI
返回顶部