Troubleshooting Guide
OpenClaw: “access not configured”
Your bot answered with “OpenClaw: access not configured” and a pairing code instead of a reply. Here is what that message means, where your ID and code come from, and the three ways to let yourself in.
The short answer
Nothing is broken. The message comes from OpenClaw's DM pairing gate: the channel runs with dmPolicy: "pairing", which is the default for most OpenClaw chat channels, and the bot has not been told that you are allowed to use it. Your message never reached the AI model. The bot owner approves the pairing code once, and from then on your direct messages are answered normally.
If you are the owner, that means approving your own code. If someone else runs the bot, send them the code from the message.
What the full message looks like
The reply has the same shape on every channel. On Telegram it reads:
OpenClaw: access not configured.
Your Telegram user id: 123456789
Pairing code:
K7MPQ2XA
Ask the bot owner to approve with:
openclaw pairing approve telegram K7MPQ2XAThe second line changes with the channel, which is why the same message shows up as several different searches:
| Channel | What the ID line says |
|---|---|
| Telegram | Your Telegram user id: … |
Your WhatsApp phone number: … | |
| Discord | Your Discord user id: … |
| Slack | Your Slack user id: … |
| Signal | Your Signal number: … (or sender id) |
| Feishu / Lark | Your Feishu user id: … |
| iMessage | Your iMessage sender id: … |
Keep that ID. It is exactly the value fix 2 below needs, and reading it from this message is safer than looking it up with a third-party bot.
The code itself is 8 characters, uppercase, and never contains the easily confused 0, O, 1 or I.
Fix 1: approve the pairing code
This is the intended path, and it takes one command on the machine that runs the OpenClaw gateway:
openclaw pairing list telegram
openclaw pairing approve telegram K7MPQ2XA --notifyReplace telegram with your channel (whatsapp, discord, slack, signal, feishu, imessage…) and the code with yours. --notify sends a confirmation back to the person who asked. On a channel with several accounts, approve uses the account the code belongs to, and --account <id> is an optional filter. When only one pairing-capable channel is configured, openclaw pairing approve <code> is enough.
Prefer a screen to a terminal? The same queue is in the Control UI under Settings → Channels → DM access requests, with Approve and Dismiss buttons. Dismiss is not a permanent block; that sender can ask again later.
One side effect worth knowing: if your setup has no command owner yet, approving from the CLI also records that sender as the owner (commands.ownerAllowFrom), the account allowed to run owner-only commands and approve risky actions. That happens once. Later approvals only grant chat access. The Control UI asks with a separate checkbox instead of doing it automatically.
Fix 2: allowlist your ID and skip pairing
For a bot only you (or a known few) should use, put the IDs in allowFrom and switch the policy to allowlist. Unknown senders are then ignored silently, with no pairing message at all:
{
"channels": {
"telegram": {
"dmPolicy": "allowlist",
"allowFrom": ["123456789"]
}
}
}- Telegram needs the numeric user ID, not your
@username, phone number, a group ID, or the bot's own ID. Atg:ortelegram:prefix is accepted. - WhatsApp takes phone numbers in international form, such as
+15551234567. allowlistwith an emptyallowFromis rejected by config validation, because it would block everyone.- On Telegram, changes to
dmPolicyandallowFromapply to new messages without reconnecting the bot.
WhatsApp set up in personal-number mode already works this way: onboarding writes dmPolicy: "allowlist" with your own number, so strangers are ignored rather than sent a code.
Fix 3: open DMs to everyone (rarely the right call)
dmPolicy: "open" answers anyone, and OpenClaw only accepts it when allowFrom includes "*". Anyone who finds the bot can then use it, run its tools and spend your model credits. Keep it for bots that are meant to be public and have tightly limited tools. For a personal assistant, use fix 1 or fix 2.
Still blocked? Six common causes
- The code expired. Codes last one hour. Run
openclaw pairing list <channel>to see what is actually pending, and approve the current code rather than an old screenshot. - Before approval, you messaged again and got silence. That is normal while a request is pending. A new code is only sent when a new request is created, roughly once an hour per sender, so extra messages inside that hour get no reply at all.
- The pending queue is full. Each channel account holds at most 3 pending requests. Others are ignored until one is approved or expires, so clear the list first.
- Wrong channel. A code approved for
telegramdoes nothing for WhatsApp. Approve it on the channel the person actually messaged, and checkopenclaw pairing listfor that channel if the code is not found. - You are writing in a group. Approval covers direct messages only. Groups are controlled by
groupPolicy,groupAllowFromand the channel'sgroupslist. On Telegram,groupAllowFromfalls back toallowFrom, never to pairing approvals. - An older install kept approvals in files. Current OpenClaw stores pairing requests and approved senders in
~/.openclaw/state/openclaw.sqlite. Older gateways used*-pairing.jsonand*-allowFrom.jsonfiles under~/.openclaw/credentials/. Runopenclaw doctor --fixonce to import them.
Not the same as “pairing required”
OpenClaw has a second, unrelated kind of pairing for devices: the Control UI in a new browser, or a node or phone client, joining the gateway. Official mobile apps are approved automatically when their setup-code metadata matches; anything left waiting shows “pairing required” or “Pending approval”. Those are approved with openclaw devices list and then openclaw devices approve <requestId>, not openclaw pairing approve. If that is what you are seeing, read OpenClaw gateway pairing instead.
On OpenClaw Launch
OpenClaw Launch connects Telegram and Feishu with dmPolicy: "pairing", so the first message you send a new Telegram bot gets exactly this reply. That is expected, and you do not need a terminal to approve it:
- Send any message to your bot on Telegram and copy the pairing code from its reply.
- Open your dashboard, click the Telegram badge on your bot, and choose Pair.
- Paste the code and click Approve Pairing. Message the bot again and it answers.
Discord bots on OpenClaw Launch are deployed with open DMs instead (allowFrom: ["*"]), so you will not see this message there.
Using Hermes Agent?
This exact text belongs to OpenClaw. Hermes Agent gates unknown senders too, but with its own message and its own command, hermes pairing approve. Its wording and fixes are in Hermes Agent errors.
FAQ
What does "OpenClaw: access not configured" mean?
Your bot is running, but it does not know you yet. The channel uses DM policy "pairing", so a message from an unknown sender gets a one-time pairing code instead of an answer. Nothing you sent reached the AI model.
How do I fix "access not configured" on Telegram?
Copy the pairing code from the bot's reply and run openclaw pairing approve telegram <CODE> on the machine that runs the gateway, or approve it under Settings, Channels, DM access requests in the Control UI. On OpenClaw Launch, paste the code into the Pair box on your dashboard instead. Then message the bot again.
Why did the bot stop sending me a pairing code?
A code is sent only when a new pairing request is created. Codes last one hour and each sender has one open request, so repeated messages inside that hour get no reply. Each channel account also holds at most 3 pending requests; further senders are ignored until one is approved or expires.
I approved the code. Why does the bot still ignore me in a group?
Pairing approves direct messages only. Group access is a separate setting: groupPolicy and groupAllowFrom, plus the channel's groups list. On Telegram, groupAllowFrom falls back to allowFrom, never to the pairing approvals.
Can I turn the pairing message off?
Yes, by changing the DM policy. "allowlist" silently ignores anyone not in allowFrom, "disabled" ignores all DMs, and "open" answers everyone but requires allowFrom to include "*". You cannot keep pairing and change the wording of the message.
Does Hermes Agent show "access not configured"?
No. That text is OpenClaw's. Hermes Agent has its own pairing step with a different message and the command hermes pairing approve. See Hermes Agent errors.
Related Guides
- OpenClaw Telegram pairing — the full Telegram setup, from BotFather to the first approved DM
- OpenClaw gateway pairing — device and Control UI pairing, the other kind
- OpenClaw bot not responding — when there is no reply at all
- Hermes Agent errors — the Hermes side of pairing and access messages