Slack Bridge
mautrix-slack is a puppeting bridge between Matrix and Slack, built on bridgev2. As of 2026-10-18 the latest release is v26.10 (git tag v0.2610.0, 2026-10-16).
The older matrix-appservice-slack is archived, and its README says the matrix.org instance was decommissioned on 2026-01-14 (announcement). Use mautrix-slack.
Token login gives the bridge your Slack session token and d cookie, which can act as you in the workspace. Your workspace's policies may not allow this; check with its admins. Keep the bridge database and logs private.
Full documentation: docs.mau.fi/bridges/go/slack. Supported features are listed in the ROADMAP.
Setup
Follow the generic Go bridge setup or Docker setup, using dock.mau.dev/mautrix/slack:v26.10. The default appservice port is 29335.
Configuration
The bridge uses the shared bridgev2 layout (see the overview). Set homeserver, appservice.address, database and bridge.permissions as described there. Slack-specific options live under network: and work with their defaults; these are the ones people most often change:
# network: keys from mautrix/slack v0.2610.0 pkg/connector/example-config.yaml
network:
# Only bridge DMs and group DMs, not channels
dm_only: false
# Members synced per channel (doesn't affect group DMs)
participant_sync_count: 5
backfill:
# Conversations fetched when syncing a workspace; -1 = all from client.boot
conversation_count: -1
backfill:
# Top-level bridgev2 setting (mautrix/go v0.32.0): turn on message history
enabled: true
max_initial_messages: 50
Logging in
Open a DM with @slackbot:example.com. Details: authentication. mautrix-manager can do token login for you without browser devtools.
Token login (recommended)
- Log in to the Slack web app in a browser.
- In the devtools console, read the token (starts with
xoxc-):JSON.parse(localStorage.localConfig_v2).teams.YOUR_TEAM_ID.token - Copy the cookie named
d(starts withxoxd-). - Send
login token <token> <cookie>to the bot.
After login, the bridge bridges recent chats automatically (depending on conversation_count).
App login (for relaying)
- Create a Slack app from the app manifest in the repo, create an app-level token (
xapp-), and install the app in your workspace to get a bot token (xoxb-). - From a dedicated Matrix account, send
login appand provide both tokens. - Enable
bridge.relay.enabledand, from that account, run!slack set-relayin the rooms where non-logged-in Matrix users should be relayed through the app. With the defaultbridge.relay.admin_only: truethe account needsadminpermission, or its login ID must be inbridge.relay.default_relays.
Using a dedicated account matters: the user who ran login app is bridged with the app's profile instead of their own (docs).
Email and password
The bot also offers login email (added in v26.08). It may require a CAPTCHA, which bot commands can't handle, so the changelog still recommends token login.
Using the bridge
Channels you are in appear as portal rooms after login. Use the shared bridgev2 commands (see the overview): start-chat to DM a Slack user, search to find users, bridge <chat ID> to link an existing Matrix room, and logout <login ID> (IDs from list-logins). Run help for the full list. Slack threads are bridged as Matrix threads, and Matrix replies become Slack thread replies.
Troubleshooting
- Token expired or invalid: get a fresh token and
dcookie and runlogin tokenagain (or use mautrix-manager). - Missing channels: only conversations returned by Slack are synced; raise
network.backfill.conversation_countor checkdm_only. - Rate limits: Slack rate-limits API calls; large initial syncs take time. v26.10 retries failed requests automatically.