Discord Integration for OpenClaw
Run your OpenClaw agent as a Discord bot, enabling AI-powered assistance in your Discord server with full support for slash commands, threads, and rich embeds.
Bot Setup
- Create a new application at discord.com/developers/applications
- Navigate to Bot settings and create a bot
- Enable Message Content Intent, Server Members Intent, and Presence Intent
- Copy the Bot Token
- Generate an invite URL with appropriate permissions and add the bot to your server
Connecting to OpenClaw
openclaw channel add discord
openclaw config set channels.discord.token "YOUR_BOT_TOKEN"
openclaw channel start discord
Discord-Specific Features
- Slash commands: Register custom slash commands for common agent tasks
- Thread support: Agent maintains conversation context within threads
- Rich embeds: Agent responses can include formatted embeds with colors, fields, and images
- Role-based access: Restrict agent interaction to specific Discord roles
Agent Marketplace
Deploy pre-configured AI agents ready to connect to any channel.