How to Connect OpenClaw to Discord (Step-by-Step)

Connecting OpenClaw to Discord takes 4 steps: create a bot in the Discord Developer Portal, enable Message Content Intent, invite it to your server, and paste the bot token into OpenClaw's settings. The whole process takes about 15 minutes. Discord is the easiest of the three chat platform integrations (Discord, Telegram, WhatsApp).

Discord is one of the easiest ways to interact with your OpenClaw AI assistant. You message it like a friend, and it responds with whatever you've configured it to do — answer questions, draft content, summarise documents, or run workflows.

Here's how to get it connected.

What you need before you start

Step 1: Create a Discord bot

  1. Go to the Discord Developer Portal
  2. Click "New Application" — give it a name like "My AI Assistant"
  3. Go to the Bot tab on the left
  4. Click "Add Bot" → confirm
  5. Under Privileged Gateway Intents, enable:
    • Message Content Intent
    • Server Members Intent
  6. Click "Reset Token" and copy the token — you'll need this for OpenClaw

⚠️ Keep your bot token secret. Anyone with this token can control your bot. Never share it publicly or commit it to git.

Step 2: Invite the bot to your server

  1. In the Developer Portal, go to OAuth2 → URL Generator
  2. Under Scopes, select bot
  3. Under Bot Permissions, select:
    • Send Messages
    • Read Message History
    • Embed Links
    • Attach Files
  4. Copy the generated URL and open it in your browser
  5. Select your server from the dropdown and authorise

Your bot should now appear in your server's member list (it'll be offline until you connect it to OpenClaw).

Step 3: Connect to OpenClaw

In your OpenClaw settings, add the Discord integration:

  1. Navigate to Settings → Connections (or the equivalent in your OpenClaw version)
  2. Select Discord as the messaging platform
  3. Paste your bot token from Step 1
  4. Set the channel ID where the bot should listen (right-click the channel in Discord → Copy Channel ID — you may need to enable Developer Mode in Discord settings first)
  5. Save and restart the OpenClaw service

Step 4: Test the connection

  1. Go to the channel you configured in your Discord server
  2. Type a message — something simple like "Hello, are you working?"
  3. Your AI assistant should respond within a few seconds

If it doesn't respond, check these common issues:

Troubleshooting

Bot is offline in Discord

Bot is online but not responding

Bot responds but with errors

"Missing Access" or permission errors

Security tips

Why Discord?

Discord is a great choice for AI assistants because:

Related reading

Need help?

If you want results without DIY: most businesses start with one recurring workflow (from AUD $3,500) rather than a full agent install. See OpenClaw vs one workflow automation or book a fit call.