← Guides

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 K7MPQ2XA

The second line changes with the channel, which is why the same message shows up as several different searches:

ChannelWhat the ID line says
TelegramYour Telegram user id: …
WhatsAppYour WhatsApp phone number: …
DiscordYour Discord user id: …
SlackYour Slack user id: …
SignalYour Signal number: … (or sender id)
Feishu / LarkYour Feishu user id: …
iMessageYour 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 --notify

Replace 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. A tg: or telegram: prefix is accepted.
  • WhatsApp takes phone numbers in international form, such as +15551234567.
  • allowlist with an empty allowFrom is rejected by config validation, because it would block everyone.
  • On Telegram, changes to dmPolicy and allowFrom apply 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

  1. 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.
  2. 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.
  3. 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.
  4. Wrong channel. A code approved for telegram does nothing for WhatsApp. Approve it on the channel the person actually messaged, and check openclaw pairing list for that channel if the code is not found.
  5. You are writing in a group. Approval covers direct messages only. Groups are controlled by groupPolicy, groupAllowFrom and the channel's groups list. On Telegram, groupAllowFrom falls back to allowFrom, never to pairing approvals.
  6. An older install kept approvals in files. Current OpenClaw stores pairing requests and approved senders in ~/.openclaw/state/openclaw.sqlite. Older gateways used *-pairing.json and *-allowFrom.json files under ~/.openclaw/credentials/. Run openclaw doctor --fix once 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:

  1. Send any message to your bot on Telegram and copy the pairing code from its reply.
  2. Open your dashboard, click the Telegram badge on your bot, and choose Pair.
  3. 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

Skip the terminal

Host OpenClaw or Hermes Agent with pairing approved from your dashboard in one click.

See hosting plans