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).
Published . Updated .
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
- A working OpenClaw installation — If you want a business outcome without DIY, book a fit call for one scoped workflow instead.
- A Discord account — Free tier is fine.
- A Discord server — You can create one in seconds. This is where your bot will live.
Step 1: Create a Discord bot
- Go to the Discord Developer Portal
- Click "New Application" — give it a name like "My AI Assistant"
- Go to the Bot tab on the left
- Click "Add Bot" → confirm
- Under Privileged Gateway Intents, enable:
- Message Content Intent ✅
- Server Members Intent ✅
- 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
- In the Developer Portal, go to OAuth2 → URL Generator
- Under Scopes, select
bot - Under Bot Permissions, select:
- Send Messages
- Read Message History
- Embed Links
- Attach Files
- Copy the generated URL and open it in your browser
- 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:
- Navigate to Settings → Connections (or the equivalent in your OpenClaw version)
- Select Discord as the messaging platform
- Paste your bot token from Step 1
- 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)
- Save and restart the OpenClaw service
Step 4: Test the connection
- Go to the channel you configured in your Discord server
- Type a message — something simple like "Hello, are you working?"
- Your AI assistant should respond within a few seconds
If it doesn't respond, check these common issues:
Troubleshooting
Bot is offline in Discord
- Verify the bot token is correct (no extra spaces)
- Check that OpenClaw is running (
systemctl status openclawor check your process manager) - Restart the OpenClaw service
Bot is online but not responding
- Confirm Message Content Intent is enabled in the Developer Portal
- Verify the channel ID is correct (right-click → Copy Channel ID)
- Check OpenClaw logs for errors
Bot responds but with errors
- Make sure your AI API key (OpenAI, Anthropic, etc.) is configured and has credit
- Check that the model you selected is available on your API plan
"Missing Access" or permission errors
- Re-invite the bot using the URL from Step 2 with the correct permissions
- Make sure the bot has access to the specific channel (check channel permission overrides)
Security tips
- Use a private server. Don't add your AI bot to public servers where anyone can interact with it.
- Limit channel access. Only give the bot permissions in specific channels, not the entire server.
- Monitor usage. Check your AI API dashboard regularly to make sure usage matches expectations.
- Rotate the token periodically. If you suspect the token was exposed, reset it immediately in the Developer Portal and update OpenClaw.
Why Discord?
Discord is a great choice for AI assistants because:
- It's free — no per-message costs
- It handles auth — only people in your server can talk to your bot
- It supports rich responses — your AI can send formatted text, embeds, and file attachments
- It's familiar — if you or your team already use Discord, there's zero learning curve
Related reading
- What Is an AI Agent? A Guide for Business Owners — understand what your AI assistant can do
- Local vs VPS: Where Should Your AI Run? — choosing the right hardware
- Secure OpenClaw Setup Guide — security essentials for your setup
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.