Docs/Server/Slack

Connect Slack

Create a Slack app for your workspace, connect it to HolaClaw Server, and talk to your agent in direct messages and channels.

4 min read Updated November 17, 2026
  • Server
  • Channels
  • Slack

This guide connects your HolaClaw Server agent to a Slack workspace through a Slack app of your own. When you finish, people you invite can message the agent directly and mention it in channels you approve.

The app uses Socket Mode: the daemon opens the connection to Slack, so the server needs no public address and no open port. One app serves one workspace. For a second workspace, create a second app and a second channel instance.

Commands are written as holaclaw …. Run them the way your deployment does, for example docker exec -i holaclaw holaclaw … in the container.

Step 1: Create the Slack app

  1. Open api.slack.com/apps and choose Create New App, then From a manifest.
  2. Pick the workspace and paste the manifest below. Change both HolaClaw names to what the bot should be called.
  3. Create the app.
manifest.yamlyaml
display_information:
  name: HolaClaw
features:
  app_home:
    messages_tab_enabled: true
    messages_tab_read_only_enabled: false
  bot_user:
    display_name: HolaClaw
    always_online: true
oauth_config:
  scopes:
    bot:
      - app_mentions:read   # mentions in channels
      - channels:history    # messages in public channels it is in
      - groups:history      # private channels
      - im:history          # direct messages
      - mpim:history        # group direct messages
      - chat:write          # replies, and updating approval prompts
      - files:read          # files people send it
      - files:write         # files it sends
      - users:read          # people's display names
settings:
  event_subscriptions:
    bot_events:
      - app_mention
      - message.channels
      - message.groups
      - message.im
      - message.mpim
  interactivity:
    is_enabled: true        # the buttons of approval prompts
  socket_mode_enabled: true

Step 2: Get the two tokens

HolaClaw needs both:

Token Starts with What it is for
App-level token xapp- Opening the Socket Mode connection
Bot User OAuth Token xoxb- Reading users and files, posting replies
  1. In the app's settings, open Basic Information, then App-Level Tokens, then Generate Token and Scopes. Add the scope connections:write and generate. Copy the xapp-… token.
  2. Open Install App and choose Install to Workspace, then allow. Copy the Bot User OAuth Token, xoxb-….

Step 3: Add the channel

Add a channel instance to channels.toml. The name in brackets (slack-main here) is yours to choose.

channels.tomltoml
version = 1

[channels.slack-main]
type  = "slack"
agent = "main"

[channels.slack-main.access]
dm       = "invite"
rooms    = "approved"
reply    = "mention"
reply_to = "rooms"

In a Slack channel, the bot answers only when mentioned. In a direct message it answers everything. Every key is in the channels.toml reference.

Step 4: Store the tokens and restart

Each command reads one token from stdin, so it stays out of your shell history. Paste the matching token at each prompt:

Terminal
read -rs TOKEN && printf %s "$TOKEN" | holaclaw auth set channels.slack-main bot_token; unset TOKEN
read -rs TOKEN && printf %s "$TOKEN" | holaclaw auth set channels.slack-main app_token; unset TOKEN
holaclaw check --offline

check reports SEC003 while a token is missing. The daemon reads channels.toml only at start, so restart it (restart command for your deployment). Then holaclaw status should show the channel connected.

Step 5: Say hello

The bot answers only people who have redeemed an invite. Start with yourself. Find your identity id and mint an invite:

Terminal
holaclaw identity list
holaclaw invite create --identity <owner id> --channel slack-main

In Slack, open the app under Apps in the sidebar, or search for its name. Send it the code as a direct message, on its own. The bot links your Slack account and answers. The code works once, for 15 minutes by default, and the bot never stores that message.

An owner code is for the owner

Whoever redeems an invite acts as that identity. Never send a code minted for your own identity to someone else.

To invite someone else, create their identity with its first invite and send them the code:

Terminal
holaclaw identity create --name Carla --invite slack-main

Invite people covers roles and removing access.

Use it in a channel

  1. In the Slack channel, add the bot with /invite @HolaClaw (use your bot's name).
  2. With rooms = "approved", the channel is approved the first time the owner or an admin mentions the bot there. Until then the bot stays silent in that channel, whoever mentions it.

Adding the bot approves nothing by itself. Slack has no room invite codes: approval always comes from an owner or admin mentioning the bot.

In an approved channel, mention the bot (@HolaClaw …) to talk to it. It answers in a thread on the mention, and inside a thread it stays in that thread. A group direct message with the bot counts as a room, not a direct message.

Next steps

Was this page helpful?

Can’t find what you need?

Ask the community on Discord.