Guide
OpenClaw + Slack: Run an AI Agent in Your Slack Workspace
Slack is an official OpenClaw channel. Install the @openclaw/slackplugin, hand it a bot token and an app token, and OpenClaw answers mentions, DMs, and threads — using its full tool set, skills, and memory — right inside your workspace.
Install the Slack Plugin
Slack runs as an official channel plugin. Install it once on your OpenClaw host:
openclaw plugins install @openclaw/slackThe plugin declares the slack channel and reads its credentials from environment variables.
Create the Slack App
- Go to api.slack.com/apps and click Create New App → From scratch.
- Name it (e.g. “OpenClaw”) and pick your workspace.
- Under OAuth & Permissions, add bot scopes:
app_mentions:read,chat:write,im:history,im:read,im:write,channels:history,files:read. - Enable Socket Mode (Settings → Socket Mode). Generate an app-level token with the
connections:writescope — this is yourSLACK_APP_TOKEN(starts withxapp-). - Install the app to your workspace and copy the Bot User OAuth Token(
xoxb-) — this is yourSLACK_BOT_TOKEN.
Configure OpenClaw
Set the tokens in the environment OpenClaw runs in:
export SLACK_BOT_TOKEN=xoxb-...
export SLACK_APP_TOKEN=xapp-...Then enable the channel in ~/.openclaw/openclaw.json:
{
"channels": {
"slack": {
"dmPolicy": "open",
"allowFrom": ["*"]
}
}
}Like Discord, Slack apps are install-scoped to your workspace, so dmPolicy: "open" with allowFrom: ["*"]is safe — only members of your authorized workspace can reach the bot. Restart the gateway and invite the bot to a channel with /invite @openclaw.
What the Bot Can Do
- Reply when @-mentioned in any channel it's invited to
- Accept DMs from workspace members
- Keep per-thread context so a thread is one conversation
- Run OpenClaw tools — web search, MCP servers, skills, browser automation
- Accept file uploads (PDFs, images, code) as multimodal input
Easiest Path: Connect Slack from the Dashboard
Prefer not to wrangle tokens? On OpenClaw Launch, Slack is available as a one-click Connect Platforms option for Hermes Agent instances — the OAuth flow handles tokens for you. If you want the same managed experience for an OpenClaw agent, deploy and reach out at [email protected]; for self-hosted OpenClaw, the plugin steps above are the path today.
Security
The bot only acts within your single authorized workspace, and workspace admins can revoke the install at any time under Manage apps. Scope the bot to specific channels by only inviting it where you want it active.
What's Next?
- OpenClaw + Discord — Discord channel setup
- Hermes Agent + Slack — the Hermes equivalent
- OpenClaw Gateway — how channels connect
- OpenClaw Architecture — where channels fit