OpenClaw on Discord: Complete Setup Guide for Teams
Set up OpenClaw as a Discord AI bot for your team. Covers Discord Developer Portal, bot creation, permissions, invite links, and OpenClaw channel config.
OpenClaw on Discord: Complete Setup Guide for Teams
Discord has become a primary workspace for remote teams, developer communities, and collaborative projects. Connecting OpenClaw to Discord gives every member of your server access to a self-hosted AI assistant — one that lives in your own infrastructure and doesn’t route your conversations through third-party AI platforms. This guide covers the entire setup, from creating the Discord application to your first AI response in a channel.
Why Discord for Team AI?
Discord’s bot platform is well-suited to team use because:
- Shared context: Multiple team members can interact with the AI in a shared channel
- Channel routing: You can configure OpenClaw to respond in specific channels only, keeping AI interactions organised
- Role-based access: Discord’s permission system lets you restrict which users can invoke the AI
- No business verification: Like Telegram, Discord requires no business approval process
For teams of 5–50 people, this makes OpenClaw Business tier on Discord an attractive alternative to paying for per-seat AI subscriptions.
Prerequisites
- A working OpenClaw installation on port
18789with a public HTTPS URL - A Discord account with admin access to your target server
- Access to the Discord Developer Portal at discord.com/developers
Step 1: Create a Discord Application
Go to the Discord Developer Portal and click New Application. Give it a name (e.g., “Team AI Assistant”) and click Create.
On the application page, navigate to the General Information tab. Optionally add an app icon and description — these appear when users interact with your bot.
Note your Application ID from this page — you’ll need it for the bot invite link.
Step 2: Create a Bot User
In the left sidebar, click Bot. Click Add Bot and confirm. This creates a bot user associated with your application.
On the Bot page:
- Give your bot a username (e.g., “AIAssistant”)
- Optionally upload an avatar
- Under Privileged Gateway Intents, enable:
- Message Content Intent — required for OpenClaw to read message content
- Server Members Intent — required if you want the bot to know who is asking
Click Reset Token to generate your Bot Token. Copy it immediately — Discord will only show it once. Store it securely; anyone with this token can control your bot.
Step 3: Set Bot Permissions
Still on the Bot page, scroll to Bot Permissions and check the following:
- Read Messages / View Channels
- Send Messages
- Read Message History
- Use Slash Commands
- Add Reactions (optional, useful for acknowledgement reactions)
Note the permissions integer shown at the bottom of the checkboxes — you’ll use this in the invite link.
Step 4: Generate an Invite Link
Go to OAuth2 → URL Generator in the sidebar. Under Scopes, check bot and applications.commands. Under Bot Permissions, check the same permissions from Step 3.
Copy the generated URL and open it in a browser. Select the server you want to add the bot to and click Authorise. The bot will appear in your server’s member list (offline until you connect it via OpenClaw).
Step 5: Add Discord to OpenClaw Config
Open your OpenClaw configuration:
nano /opt/openclaw/config/openclaw.yaml
Add the Discord channel block:
channels:
discord:
enabled: true
bot_token: "YOUR_DISCORD_BOT_TOKEN"
allowed_channels:
- "CHANNEL_ID_1"
- "CHANNEL_ID_2"
To find a channel ID: in Discord, enable Developer Mode (User Settings → Advanced → Developer Mode), then right-click the channel and select Copy ID.
The allowed_channels list restricts OpenClaw to responding only in those channels — recommended to prevent the bot from responding everywhere in a large server.
Step 6: Restart OpenClaw and Test
pm2 restart openclaw
pm2 logs openclaw --lines 30
Look for [Discord] Connected as AIAssistant#1234. The bot should now appear online in your Discord server.
Go to one of the allowed channels and send a message mentioning the bot: @AIAssistant what's on the agenda today? — OpenClaw will reply using your configured AI provider.
Team Usage Tips
Separate channels for separate purposes: Create dedicated channels like #ai-research, #ai-drafting, and #ai-support. Add each channel ID to OpenClaw’s allowed_channels list.
Slash commands: OpenClaw supports Discord slash commands that appear in the command picker when users type /. Common commands: /summarise, /explain, /draft.
Rate limiting: For larger teams, configure OpenClaw’s rate limits to prevent any single user from monopolising the AI at peak times.
Audit logging: OpenClaw can log all Discord interactions to a file — useful for team accountability and reviewing AI usage patterns.
Moving to Team-Scale Deployment
For teams with more complex needs — multiple channels, custom personas per channel, SSO integration, or dedicated server infrastructure — our OpenClaw Business deployment service handles the full setup and ongoing maintenance.
Contact us to discuss your team’s requirements and we’ll recommend the right configuration.
Ready for Your Personal AI Assistant?
Free 30-minute consultation. We'll assess your setup and recommend the right OpenClaw configuration for you.
Talk to an Expert