✓ Verified 💻 Development ✓ Enhanced Data

Approve Pairing

Approve a pending DM pairing request without the openclaw CLI, by directly editing credential files.

Rating
4.2 (384 reviews)
Downloads
1,086 downloads
Version
1.0.0

Overview

Approve a pending DM pairing request without the openclaw CLI, by directly editing credential files.

Complete Documentation

View Source →

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)

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

Example:

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

The script:

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

Manual Steps (if script unavailable)

  • Read ~/.openclaw/credentials/-pairing.json to get id and meta.accountId
  • Write/update ~/.openclaw/credentials/--allowFrom.json:
json
{ "version": 1, "allowFrom": ["<sender_id>"] }
  • 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

Installation

Terminal bash

openclaw install approve-pairing
    
Copied!

💻Code Examples

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

python3-skillsapprove-pairingscriptsapprovepairingpy-telegram-pwvw264m.txt
The script:
1. Reads `~/.openclaw/credentials/<channel>-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/<channel>-pairing.json` to get `id` and `meta.accountId`
2. Write/update `~/.openclaw/credentials/<channel>-<accountId>-allowFrom.json`:

Tags

#coding_agents-and-ides #cli

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author madan-wego
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install approve-pairing