Add OpenClaw to Discord in under 10 minutes using the Discord Developer Portal. This guide covers OpenClaw v2026.2+, Node.js 22+ requirements, bot permissions, slash commands, and server configuration for self-hosted AI assistants.
Discord Integration
Add OpenClaw to your Discord server as an AI assistant bot.
TL;DR
- ✓ Create a bot at Discord Developer Portal
- ✓ Add bot token to openclaw.json
- ✓ Invite bot to your server
Setup Steps
Step 1: Create a Discord Bot
- Go to Discord Developer Portal
- Create a new application
- Go to Bot section and create a bot
- Copy the bot token
Step 2: Configure openclaw.json
{
"channels": {
"discord": {
"enabled": true,
"botToken": "YOUR_BOT_TOKEN"
}
}
} Step 3: Invite the Bot
- Go to OAuth2 → URL Generator in Developer Portal
- Select "bot" scope
- Select required permissions (Send Messages, Read Message History)
- Copy the generated URL and open it
- Select your server and authorize
Step 4: Start OpenClaw
openclaw start Your Discord bot is now online! Mention the bot or use a prefix to chat.
Frequently Asked Questions
How do I add OpenClaw bot to my Discord server?
Create a bot in Discord Developer Portal, get the token, configure openclaw.json, then use the invite link with required permissions (Send Messages, Read Message History, etc.).
What permissions does the Discord bot need?
The bot needs: Send Messages, Read Message History, Use Slash Commands, and optional permissions for voice chat support. Check our documentation for the full permission list.
Can OpenClaw respond to mentions in Discord?
Yes, configure mention keywords or prefix in openclaw.json. The bot can respond to @mentions, specific keywords, or all messages depending on your settings.
Does Discord bot support slash commands?
Yes, OpenClaw supports Discord slash commands. You can configure custom slash commands for common AI interactions.