This document shows how to integrate the OpenClaw service with Discord. This integration lets you interact with OpenClaw directly in Discord using natural language.
Prerequisites
Before you configure the messaging channel, you must purchase and configure a Simple Application Server instance with the OpenClaw application image. You can follow the steps in this section or refer to Deploy OpenClaw image. If you have already completed this setup, you can skip this section.
Prepare Discord
Log in to the Discord Developer Portal, click the
New Applicationbutton, enter a name for theDiscord Bot, agree to the terms, and click theCreatebutton.

Go to the
Applicationpage, clickBotin the left navigation bar, and clickReset Tokento generate a new token.
ImportantAfter you confirm, Discord generates a token. Important: Copy this token and store it securely. Do not share it publicly. You will need this token for the OpenClaw configuration.
On the
Botpage, scroll down toPrivileged Gateway Intentsand enableMessage Content Intent,Server Members Intent, andPresence Intent. ClickSave Changesat the bottom.
Click
OAuth2on the left side of the page and selectOAuth2 URL Generator.Configure
Scopes. We recommend that you first selectbotandapplications.commandsbased on the principle of least privilege.
Configure
Bot Permissionsand selectView Channels,Send Messages,Read Message History,Embed Links,Attach Files, andAdd Reactions.
In a browser, open the
Generated URLat the bottom of the page and select the Discord server where you want to add the bot. Click Continue and grant authorization to invite the bot to the corresponding Discord server.ImportantYou must have administrator permissions for the Discord server you select.
Integrate with Discord
1. Configure Discord in the OpenClaw wizard
-
Go to the Servers page in the Simple Application Server console.
On the server card, click Remote Connection.

In the Remote Connection dialog box, select Connect with One-click on Workbench and click Log On Now.

After you log on to the server, run the following command.
NoteUse your keyboard for the following steps. Use the arrow keys to navigate and press Enter to confirm your selections.
openclaw onboardA prompt will ask if you understand the risks. Select
Yesto continue.
For the
Onboardingmode, selectQuickStart.
For
Config handling, selectUse existing values.
For
Model/auth provider, selectSkip for now>All providers>Keep current.NoteIf you have already configured the Model Studio API Key in the previous steps, you can skip this step. If you have not yet configured a model, you must configure the model API Key at this step from the command line.



Next, in the
Select channelstep, selectDiscord (Bot API).Enter the
Discord bot tokenthat you saved in the previous step.Set Configure access permissions to
Yes.For Access Permission Mode, select
Open (allow all channels).Configure Skills. Select
No. For an initial deployment, limiting permissions improves stability and security.
Enable Hooks (if prompted). Select
session-memory.
Select
Restartto apply the configuration.
Install command completion (if prompted). Select
No.ImportantSelecting
Yescan cause high CPU load on the server, which may lead to performance issues with OpenClaw.After you complete these steps, the system automatically finishes the deployment. The deployment is complete when the configuration wizard closes and the command-line interface appears.
2. Test the bot
In your Discord server's contact list, click the Discord bot you added and send it a message.
During the first interaction, the bot automatically generates a pairing code.

Remotely connect to your Simple Application Server and run the following command:
ImportantReplace
<code>in the command with yourPairing code. Do not include the <> symbols.openclaw pairing approve discord <code>OpenClaw is now connected to Discord.
