Chat Integration
OpenClaw + Discord
Full Discord integration — servers, channels, DMs, threads, and reactions.
Category
Chat
Setup Time
~5 minutes
What you can do
- Server & channel management
- Thread support
- Reactions & embeds
- Slash commands
Setup Guide
Prerequisites
- OpenClaw running
- A Discord account
- Admin access to the Discord server you want to add the bot to
Step 1: Create a Discord Application
- Go to discord.com/developers/applications
- Click New Application, name it "OpenClaw"
- Go to Bot tab → click Add Bot
- Copy the bot token
- Enable Message Content Intent under Privileged Gateway Intents
- Go to OAuth2 → URL Generator → select
botscope → select permissions: Send Messages, Read Message History, Embed Links - Copy the generated URL and open it to invite the bot to your server
Configuration
channels:
discord:
enabled: true
bot_token: "YOUR_DISCORD_BOT_TOKEN"
Or via environment variables:
environment:
- DISCORD_ENABLED=true
- DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN
Restart: docker compose restart openclaw
Verification
- Check OpenClaw logs for "Discord connected"
- In your Discord server, mention the bot or send a DM
- The bot should respond within a few seconds
Common Issues
Bot is offline: Make sure the token is correct and Message Content Intent is enabled. Without it, the bot can't read messages.
"Missing Permissions": Re-invite the bot using the OAuth URL with the correct permissions enabled.
Frequently Asked Questions
Does OpenClaw work with Discord?
Yes — OpenClaw has a built-in Discord integration with full support for servers, channels, DMs, threads, and reactions. It's rated as Easy difficulty to set up and takes about 5 minutes.
Is the Discord integration free?
Yes. The Discord integration is free and included with OpenClaw. You only pay for hosting (~$7/mo) and AI API usage (~$3-10/mo).
How do I set up Discord with OpenClaw?
Create a Discord application, add a bot, copy the token, enable Message Content Intent, generate an invite URL, invite the bot to your server, and add the token to your OpenClaw config.
Does OpenClaw support Discord threads?
Yes. OpenClaw can read and respond to messages in threads, making it easy to have contextual conversations without cluttering the main channel.
Can OpenClaw use Discord slash commands?
Yes. OpenClaw supports Discord slash commands for a more integrated experience. You can register custom commands through the Discord Developer Portal.
Ready to set up Discord?
Follow our free guide to deploy OpenClaw and connect Discord in minutes.
Official docs: https://docs.openclaw.ai/channels