approve-pairing
由 madan-wego 提供
Coding Agents & IDEs简介
Approve a pending DM pairing request without the openclaw CLI, by directly editing credential files.
描述
该技能的功能
Approves pending DM pairing requests by directly editing OpenClaw credential files instead of using the CLI. Works when the `openclaw pairing approve` command is unavailable due to PATH issues, permission restrictions, or sandbox environments. Supports telegram, whatsapp, signal, imessage, discord, slack, and feishu.
Bypasses CLI dependency entirely by operating on credential files directly, so pairing can be approved in any environment where file system access is available.
何时使用
- Approving a pairing request in a sandboxed CI environment
- Recovering pairing access when openclaw CLI is not in PATH
- Manually approving a sender on a remote server without elevated permissions
- Scripting bulk pairing approvals across multiple channels
- Unblocking a pairing request before the 1-hour code expiry
示例工作流
User asks: approve the telegram pairing request with code PWVW264M
- 1
Run the approve_pairing.py script with channel 'telegram' and code 'PWVW264M'
- 2
Script reads ~/.openclaw/credentials/telegram-pairing.json and finds the matching request
- 3
Extracts the sender ID and accountId from the pending request entry
- 4
Appends the sender ID to ~/.openclaw/credentials/telegram-<accountId>-allowFrom.json
- 5
Removes the code entry from telegram-pairing.json
Sender added to the telegram allowlist; pairing request cleared from pending
安装
clawhub install madan-wego/approve-pairing运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。