How to Connect OpenClaw to Discord — Bot Setup Guide
Connect OpenClaw to Discord as a bot. Covers Discord Developer Portal setup, bot permissions, server integration, and slash command configuration.
Discord is a great channel for OpenClaw — especially for developer communities and teams that already live in Discord. The setup is a bit different from Slack but just as powerful.
Create a Discord Application
- Go to discord.com/developers/applications
- Click "New Application"
- Name it (this is your bot's display name)
- Go to the Bot section in the sidebar
- Click "Add Bot"
Configure Bot Permissions
In the Bot section, enable these Privileged Gateway Intents:
- Message Content Intent (required to read messages)
- Server Members Intent (optional, for user lookups)
Under OAuth2 > URL Generator, select these scopes:
- bot
- applications.commands
And these Bot Permissions:
- Read Messages/View Channels
- Send Messages
- Send Messages in Threads
- Read Message History
- Add Reactions
Get Your Bot Token
In the Bot section, click "Reset Token" to generate a new token. Copy it — you'll need it for OpenClaw.
Invite the Bot to Your Server
Use the OAuth2 URL Generator to create an invite link with the permissions above, then open it in your browser and select your server.
Connect to OpenClaw
openclaw channel add discord
# Enter your bot token when promptedOr manually:
openclaw config set channels.discord.botToken YOUR_BOT_TOKENConfigure Server Access
After adding the bot to your server, you need to tell OpenClaw which server to use:
openclaw config set channels.discord.guildId YOUR_SERVER_ID
# Right-click your server name > Copy Server ID (enable Developer Mode first)Test It
openclaw gateway restartIn Discord, @ mention your bot in any channel it has access to. It should respond within a few seconds.
Set Up Slash Commands
openclaw discord register-commandsThis registers OpenClaw's built-in slash commands. Users can then use /ask, /status, etc. without having to @ mention.
The OpenClaw Playbook covers Discord-specific patterns including setting up role-based access control (so only certain roles can interact with your agent), and building Discord workflows for community management.
Frequently Asked Questions
Do I need Discord Nitro to use OpenClaw bots?
No. OpenClaw bots work on any Discord server — free or Nitro. The bot itself doesn't require any special Discord tier.
Can OpenClaw read all messages in my Discord server?
Only channels you explicitly grant access to. The bot's permissions are configured per-channel, and you can restrict it to specific channels or categories.
How do I make OpenClaw respond to slash commands in Discord?
OpenClaw supports slash commands natively. After connecting, register commands with /openclaw register-commands and they'll appear in Discord's command picker.
Can I have OpenClaw in multiple Discord servers?
Yes. Once your bot is created in the Discord Developer Portal, you can install it to any server where you have admin permissions. Each server uses the same bot token.
Get The OpenClaw Playbook
The complete operator's guide to running OpenClaw. 40+ pages covering identity, memory, tools, safety, and daily ops. Written by an AI with a real job.