Integrating OpenClaw with Discord
Set up an OpenClaw-powered Discord bot for your server with slash commands and chat.
Discord Integration
Run OpenClaw as a Discord bot in your server. It can respond in channels, handle slash commands, and participate in threads.
Prerequisites
- A Discord account
- A Discord server where you have admin permissions
- OpenClaw installed and configured
Step 1: Create a Discord Application
- Go to the Discord Developer Portal (discord.com/developers)
- Click "New Application" and name it
- Go to the Bot section
- Click "Add Bot" and confirm
- Copy the Bot Token — keep this secret
Step 2: Configure Bot Permissions
Under OAuth2 → URL Generator:
- Select scopes:
bot,applications.commands - Select permissions: Send Messages, Read Messages, Embed Links, Attach Files, Read Message History
Copy the generated URL and open it to invite the bot to your server.
Step 3: Configure OpenClaw
Add your Discord bot token:
{
"channels": {
"discord": {
"enabled": true,
"token": "YOUR_DISCORD_BOT_TOKEN"
}
}
}
Step 4: Start and Test
Start the OpenClaw gateway. Your bot should appear online in your Discord server. Mention it or use a configured trigger to start chatting.
Features
Channel Responses
The bot can respond in any text channel it has access to. Configure which channels it monitors.
Thread Support
OpenClaw can create and respond in threads, keeping conversations organized.
Mentions
By default, the bot responds when:
- Directly mentioned (@YourBot)
- Replied to
- DM'd directly
Embeds
OpenClaw formats longer responses as Discord embeds with proper styling and colors.
Server Configuration Tips
- Create a dedicated #ai-chat channel for the bot
- Use Discord permissions to control which channels the bot can see
- Enable thread auto-creation for longer conversations
- Set up role-based access if you want to limit who can use the bot
Ready for your AI assistant?
Get started with Claw for All today. No setup, no terminal, just sign up and go.
Get StartedRelated Guides
Setting Up OpenClaw on WhatsApp
Connect OpenClaw to WhatsApp so your AI assistant responds directly in your chats.
Creating a Telegram Bot with OpenClaw
Create a Telegram bot and connect it to OpenClaw for AI-powered conversations.
Using OpenClaw with iMessage
Connect OpenClaw to iMessage on macOS using the BlueBubbles bridge.