This topic describes how to integrate OpenClaw with Slack, enabling you to interact with OpenClaw directly in Slack 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.
Set up your Slack app
Create a Slack app
Go to the Slack App management page and log in. Click
Create New Appand selectFrom scratch.
In the left navigation pane, click
Socket Mode, then clickEnable Socket Mode.
In the dialog box that appears, add a
Scopefor the token. Search for and selectconnections:write, then click to confirm.
ImportantA token is generated after you confirm. Save this token securely and do not disclose it, as you will need it for the OpenClaw configuration.
Generate a bot token
In the left navigation pane, click
OAuth & Permissions. Scroll down to theScopessection, clickAdd an OAuth Scope, and underBot scopes, add the following permissions:
At the top of the page, click
Install to Workspace. In the authorization window, confirm and complete the installation.After a successful installation, a
Bot User OAuth Tokenis automatically generated. Copy this token (in the formatxoxb-xxxxxxx) and save it securely with yourApp Token.
In the left navigation pane, click Event Subscriptions, then click Enable Events.
Click
Subscribe to bot events, clickAdd Bot User Event, and add theapp_mentionandmessage.imevents, and then clickSave Changesat the bottom of the page.
Integrate with Slack
1. Configure Slack in the 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.



At the
Select channelstep, chooseSlack (Socket Mode).
Set a name for your bot.

Enter the
Bot tokenandApp Tokenyou saved earlier. Press Enter after each token.
When prompted to configure access permissions, select
Yes.
For the 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
Open Slack. In your configured Slack workspace, send a test message by mentioning the bot (@botname) in any channel.
For the first interaction, Slack automatically generates a pairing code.
Connect to your Simple Application Server remotely, and then run the following command.
ImportantReplace
<CODE>in the command with thepairing codeyou received. Do not include the angle brackets (<>) when you enter the code.openclaw pairing approve slack <CODE>You have successfully integrated OpenClaw with Slack.
