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.

Discord API 10 min setup Slash commands

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

  1. Go to Discord Developer Portal
  2. Create a new application
  3. Go to Bot section and create a bot
  4. Copy the bot token

Step 2: Configure openclaw.json

{
  "channels": {
    "discord": {
      "enabled": true,
      "botToken": "YOUR_BOT_TOKEN"
    }
  }
}

Step 3: Invite the Bot

  1. Go to OAuth2 → URL Generator in Developer Portal
  2. Select "bot" scope
  3. Select required permissions (Send Messages, Read Message History)
  4. Copy the generated URL and open it
  5. 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.