GuidesChannels

Connecting OpenClaw to Discord, step by step

Create the bot, enable the Message Content intent, invite it to your server, and hand OpenClaw the token. Plus the allowlist trap and how memory behaves in servers.

August 1, 2026The Everpod team
The short answer

Connecting OpenClaw to Discord means creating a bot in the Discord Developer Portal, enabling the Message Content intent, inviting the bot to your server, and giving OpenClaw the bot token via config. DMs then work through OpenClaw’s normal pairing approval, and server channels answer when the bot is mentioned. No ports to open — the bot connects outward.

Create the bot (five minutes in the Developer Portal)

Tell OpenClaw about it

Put the token in the environment (never in chat, never inline in config) and enable the channel:

export DISCORD_BOT_TOKEN="YOUR_BOT_TOKEN"
{
  channels: {
    discord: {
      enabled: true,
      token: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" },
    },
  },
}

Apply it and restart the gateway. DMs default to dmPolicy: "pairing" — the first time you DM your bot it replies with a pairing code, and you approve it (openclaw pairing approve discord <CODE>, or just tell your agent to). Codes expire after an hour, so approve promptly. That default is worth keeping: pairing is how your agent stays yours.

Server channels: mention-gated by design

In servers, OpenClaw answers where you’ve configured it — typically with requireMention: true, so the agent speaks when spoken to (@YourAgent or a reply to it). Each server channel gets its own isolated session, which is the right default for a bot that multiple people can see. Two behaviors surprise people:

Worth knowing before you rely on it

If your server has other bots, leave allowBots alone unless you want bot-to-bot conversations — OpenClaw ships a loop guard (a bot pair gets ~20 exchanges in a sliding window before suppression), but strict mention rules are the real protection. And if the Message Content intent isn’t available to you, the bot still works in DMs and wherever it’s explicitly mentioned. Setup-wise this channel is a sibling of the Telegram connect — outbound-only, token-based, no exposed ports — so if you’ve done one, the other will feel familiar.

Don’t want to run it yourself?

Everpod hosts OpenClaw for you: a secure, private, always-on cloud computer of your agent’s own — set up, secured, and backed up, with its software kept up to date and $10 of model usage included every month. Nothing to configure, no surprise bills — just say hello.

Request early access
$29/mo · $10 model usage included · cancel anytime