Channel Setup
🎮

Integrating OpenClaw with Discord

Set up an OpenClaw-powered Discord bot for your server with slash commands and chat.

6 min read|
discord botdiscord integrationopenclaw discord

Discord Integration

Run OpenClaw as a Discord bot in your server. It can respond in channels, handle slash commands, and participate in threads.

Prerequisites

  • A Discord account
  • A Discord server where you have admin permissions
  • OpenClaw installed and configured

Step 1: Create a Discord Application

  1. Go to the Discord Developer Portal (discord.com/developers)
  2. Click "New Application" and name it
  3. Go to the Bot section
  4. Click "Add Bot" and confirm
  5. Copy the Bot Token — keep this secret

Step 2: Configure Bot Permissions

Under OAuth2 → URL Generator:

  • Select scopes: bot, applications.commands
  • Select permissions: Send Messages, Read Messages, Embed Links, Attach Files, Read Message History

Copy the generated URL and open it to invite the bot to your server.

Step 3: Configure OpenClaw

Add your Discord bot token:

{
  "channels": {
    "discord": {
      "enabled": true,
      "token": "YOUR_DISCORD_BOT_TOKEN"
    }
  }
}

Step 4: Start and Test

Start the OpenClaw gateway. Your bot should appear online in your Discord server. Mention it or use a configured trigger to start chatting.

Features

Channel Responses

The bot can respond in any text channel it has access to. Configure which channels it monitors.

Thread Support

OpenClaw can create and respond in threads, keeping conversations organized.

Mentions

By default, the bot responds when:

  • Directly mentioned (@YourBot)
  • Replied to
  • DM'd directly

Embeds

OpenClaw formats longer responses as Discord embeds with proper styling and colors.

Server Configuration Tips

  • Create a dedicated #ai-chat channel for the bot
  • Use Discord permissions to control which channels the bot can see
  • Enable thread auto-creation for longer conversations
  • Set up role-based access if you want to limit who can use the bot
discord botdiscord integrationopenclaw discorddiscord aidiscord server bot

Ready for your AI assistant?

Get started with Claw for All today. No setup, no terminal, just sign up and go.

Get Started

Related Guides