Discord Setup

Run OpenClaw as a Discord bot in your server

Prerequisites

Step 1 — Create a Discord Application

  1. Go to discord.com/developers/applications
  2. Click New Application and give it a name
  3. Go to Bot → Add Bot
  4. Under Token, click Reset Token and copy it
  5. Enable Message Content Intent under Privileged Gateway Intents

Step 2 — Invite the Bot to Your Server

  1. In the Developer Portal go to OAuth2 → URL Generator
  2. Select scopes: bot
  3. Select permissions: Send Messages, Read Message History, View Channels
  4. Copy the generated URL and open it in your browser to invite the bot

Step 3 — Configure OpenClaw

openclaw channels add discord

Paste your bot token when prompted. Then verify:

openclaw channels list

Step 4 — Test It

In any channel the bot has access to, mention it or send a DM. You should get a response from OpenClaw within seconds.

Discord Troubleshooting
Bot not showing up? Work through common Discord issues.
Troubleshoot →