← Back to Knowledge Base

How to Connect Discord to OpenClaw

Add your OpenClaw agent to Discord servers to enable bot commands and conversational interactions.


Discord lets your OpenClaw agent reply to messages in your server. This guide follows the exact setup flow in Molten.Bot.

Before You Start

  • A running OpenClaw workspace in Molten.Bot
  • A Discord account with access to your server settings
  • About 5-10 minutes to complete setup

Step 1: Open Settings

In your workspace, use the bottom dock and click the Settings icon.

Bottom dock in Molten.Bot with the Settings icon selected.
Open Settings from the bottom dock.

Step 2: Open Channel Management

In Settings, open Channel Management, then find Discord and click Configure.

Channel Management panel in Molten.Bot showing Discord with a Configure button.
Go to Channel Management and click Configure on Discord.

Step 3: Configure Discord

In the Discord configuration dialog, complete the setup steps shown in the UI:

  1. Find your Discord user ID: in Discord Settings → Advanced, enable Developer Mode, then right-click your username and select Copy User ID.
  2. Paste that value into Your Discord User ID.
  3. Go to the Discord Developer Portal and create a new application.
  4. Open Bot and click Add Bot.
  5. Enable Message Content Intent under Privileged Gateway Intents.
  6. Copy the bot token (use Reset Token if needed) and paste it into Bot Token.
  7. In OAuth2 → URL Generator, select the bot scope and Send Messages permission.
  8. Use the generated URL to invite the bot to your server.
  9. Keep Enable this channel turned on, then click Save and restart now.
Configure Discord dialog in Molten.Bot with setup steps, Discord user ID field, bot token field, and Save and restart now button.
Add your user ID and bot token, then save and restart.

Test Your Bot

  1. Open your Discord server.
  2. Send a message that mentions the bot.
  3. Try a prompt like Summarize what happened in this channel today.
  4. Confirm your OpenClaw agent responds.

Troubleshooting

  • No response: Re-check your Discord User ID and Bot Token in Molten.Bot.
  • Bot is online but silent: Ensure Message Content Intent is enabled.
  • Cannot invite bot: Re-generate the OAuth2 URL with bot scope and Send Messages permission.

Need help? Check the OpenClaw documentation or join the community Discord.