Slack
This page covers everything you need to use KiloClaw with Slack: connecting your bot, controlling who can DM it, and adding it to channels.
Connecting KiloClaw to Slack
Create a Slack app from the OpenClaw manifest and link it to your KiloClaw dashboard.
Step 1: Create a Slack App from the OpenClaw Manifest
- Go to Slack App Management and click Create New App → From a Manifest
- Copy the manifest from the OpenClaw docs
- Paste the manifest JSON into Slack's manifest editor
- Customize the manifest before creating:
- Rename the app to your preferred name wherever it appears
- Update the slash command if desired (e.g.,
/kiloclaw)
- Click Create
Step 2: Generate Tokens
You need two tokens from Slack:
App-Level Token
- In your Slack app settings, scroll down to App-Level Tokens
- Click Generate Token
- Add the
connections:writescope - Generate and copy the token (starts with
xapp-)
Bot User OAuth Token
- In the left sidebar, click Install App
- Install the app to your workspace
- Copy the Bot User OAuth Token (starts with
xoxb-)
Step 3: Connect Slack to KiloClaw
- In the KiloClaw UI, find the Slack integration section (may show "not configured")
- Enter both tokens:
- The
xapp-app-level token - The
xoxb-bot user OAuth token
- The
- Click Save
- Scroll to the top of the KiloClaw UI and click Redeploy. Wait for the instance to come back up
Step 4: Pair Slack with KiloClaw
- In Slack, DM the app and send any message — this triggers the pairing flow
- The app will return a pairing code
- Return to app.kilo.ai/claw and confirm the pairing code and approve
- You should now be able to DM the bot from Slack. You will need to add the bot to any individual channels and tell it to update its config for any channels you want it to participate in.
Changing Response Behavior
By default, KiloClaw can respond to any DMs and will not respond in Slack channels, even if added.
Making KiloClaw DM-Only (from you)
By default, KiloClaw will respond to DMs from any user in Slack.
Step 1: Find your Slack user ID
- In Slack, click your name or profile picture
- Click Profile
- Click the More (⋯) menu → Copy member ID
Your user ID starts with U (e.g. U12345678).
Step 2: Configure DM-only access
Tell your KiloClaw agent:
"Set my Slack DM policy to allowlist with my user ID
U12345678and disable group/channel responses."
Or configure it directly in the OpenClaw Control UI config:
{
"channels": {
"slack": {
"dmPolicy": "allowlist",
"allowFrom": ["U12345678"],
"groupPolicy": "disabled"
}
}
}
This allows only your user ID to DM the bot and blocks it from responding in any channels.
Adding KiloClaw to a Slack Channel
By default, KiloClaw will not respond in Slack channels, even if added. To have KiloClaw participate in a Slack channel:
Step 1: Invite the bot to the channel
- Open the Slack channel where you want to add the bot
- Type
/invite @YourBotName(use whatever name you gave your app) - The bot should appear in the channel member list
Step 2: Get the channel ID
Channel IDs are more reliable than names. To find a channel's ID:
- Open the channel in Slack
- Click the channel name at the top to open channel details
- Scroll to the bottom — the channel ID starts with
C(e.g.C01234567)
Step 3: Configure the channel
Tell your KiloClaw agent (via DM):
"Allow responses in Slack channel
C01234567. Require an @mention to respond."
Or configure it directly:
{
"channels": {
"slack": {
"groupPolicy": "allowlist",
"channels": {
"C01234567": {
"requireMention": true
}
}
}
}
}
Set requireMention: false if you want the bot to respond to every message in the channel without needing an @mention.
You can restrict which channel members can trigger the bot by adding a users allowlist inside the channel config entry. See the OpenClaw Slack documentation for advanced access control options.