🎮

Discord Integration

Add OpenClaw to your Discord server as an AI assistant bot.

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.