Haven't installed OpenClaw yet?
curl -fsSL https://openclaw.ai/install.sh | bashiwr -useb https://openclaw.ai/install.ps1 | iexcurl -fsSL https://openclaw.ai/install.cmd -o install.cmd && install.cmd && del install.cmdWorried it'll affect your machine? ClawTank — cloud deploy in 60s, zero risk to your files.
Discord is one of OpenClaw's supported channels. Once connected, your AI agent responds in DMs, channels, or threads — just like any other Discord bot, but powered by a full AI agent with memory and skills.
Prerequisites
- A running OpenClaw instance (self-hosted or ClawTank)
- A Discord account
- Admin access to the Discord server where you want the bot
Step 1: Create a Discord Application
- Go to the Discord Developer Portal
- Click "New Application" and give it a name (e.g., "My AI Assistant")
- Go to the "Bot" section in the left sidebar
- Click "Add Bot"
- Under "Privileged Gateway Intents", enable:
- Message Content Intent
- Server Members Intent (optional)
- Copy the Bot Token — you'll need this
Step 2: Generate Invite Link
- Go to "OAuth2" → "URL Generator"
- Select scopes:
bot,applications.commands - Select bot permissions:
- Send Messages
- Read Message History
- Embed Links
- Attach Files
- Use Slash Commands
- Copy the generated URL and open it to invite the bot to your server
Step 3: Configure OpenClaw
Install the Discord channel skill and configure:
openclaw plugins install @openclaw/channel-discord
openclaw config set channels.discord.token "YOUR_BOT_TOKEN"
openclaw config set channels.discord.enabled true
openclaw restart
Step 4: Test the Bot
In your Discord server, mention the bot or send it a DM:
@YourBot What can you do?
The bot should respond using your OpenClaw AI model.
Configuration Options
DM Only Mode
Restrict the bot to direct messages only (no channel responses):
