You need a Discord bot token to deploy an OpenClaw assistant on Discord. This OpenClaw setup guide walks through the full process: creating an application, adding a bot, getting the token, and inviting it to your server.
If you want the full Discord bot hosting overview before setup, see OpenClaw Discord Bot Hosting.
For practical deployment patterns and post-deploy behavior tips, see Run an AI Discord Bot with OpenClaw.
OpenClaw Discord Bot Setup (Support Terms)
If you searched for openclaw discord bot token, openclaw discord bot setup, or openclaw add discord channel, this page is the canonical setup flow for ClawCloud deployments.
Already have your Discord bot token? Jump to Step 5: Deploy on ClawCloud.
What you need before starting
- A Discord account
- Access to the Discord Developer Portal
- Permission to invite apps to your Discord server
- About 5 minutes to complete setup
Step 1: Create a Discord application
Go to the Discord Developer Portal and sign in with your Discord account.
Click "New Application" in the top right. Give it a name (this is internal — your bot's display name is set separately). Click Create.

Step 2: Add a bot
In your new application, click "Bot" in the left sidebar.

Click "Reset Token" to generate a bot token. Discord will show the token once — copy it now.

MTE5MDg3NjQ0NjY4NTk2NTQwMA.GBjPJt.example_token_here
Save this token somewhere safe. You'll paste it into the ClawCloud deploy wizard.
Step 3: Configure bot permissions
While you're on the Bot page, scroll down to "Privileged Gateway Intents" and enable:
- Message Content Intent — Required so the bot can read and respond to messages.
- Server Members Intent — Recommended for role-based allowlists and user matching.
- Presence Intent — Optional.
Click Save Changes.

Step 4: Invite the bot to your server
Go to "OAuth2" in the left sidebar, then click "URL Generator".
Under Scopes, select:
botapplications.commands
Under Bot Permissions, select:
- View Channels
- Send Messages
- Read Message History
- Embed Links
- Attach Files
- Add Reactions (optional)
Bot scope:

Message permissions:

Generate the URL:

Copy the generated URL at the bottom and open it in your browser. Discord will ask you to authorize the bot.
Complete the authorization flow: select your server, click Continue, review permissions, click Authorise, and confirm the success message.

Step 5: Deploy on ClawCloud
Go to the ClawCloud deploy wizard, Discord will be preselected, and paste the bot token. Your bot will be live in under a minute.
Step 6: Verify and tune your bot
- Send a DM to your bot and confirm it replies.
- Send a message in your server and confirm the bot can respond.
- Tune behavior after first deploy with these guides.
- How to Configure OpenClaw Group Chat Behavior
- How to Change the OpenClaw DM Policy
- How to Switch AI Models on Your OpenClaw Bot
- How to Unlock DM Access on Your OpenClaw Bot
Troubleshooting
Bot is online but not responding
Make sure you enabled Message Content Intent in Step 3. Without it, the bot cannot read regular message content.
Also confirm the bot was invited to the correct server in Step 4.
Bot token invalid error
Tokens can only be viewed once when generated. If you lost it, return to the Bot page and click Reset Token to generate a new one.
Slash commands missing
Make sure you included applications.commands in OAuth scopes during Step 4. If needed, regenerate the invite URL and re-authorize the bot.
Bot not appearing in server
Make sure you completed Step 4 and authorized the bot for the correct server. The bot must be invited before it can respond.
What to read next
- Deploy an OpenClaw Discord Bot (use case)
- Run an AI Discord Bot with OpenClaw (blog)
- OpenClaw CLI Commands: The Complete Reference
- Getting Started with OpenClaw on ClawCloud
- OpenClaw Discord Bot Hosting
For more details on Discord channel configuration, see the OpenClaw Discord documentation.