View as markdown

Slack for Hub

Slack can reach a self-hosted Hub in two ways:

TransportPublic HTTPS requiredBest for
Socket ModeNoLocal, personal, and single-process Hub
WebhooksYesPublic server deployments

Socket Mode is the default in browser setup. Both transports support slack.mention triggers, thread replies, and scoped Slack integration tools.

Set up Socket Mode

Open Apps → Slack in Hub and keep Socket Mode selected. Hub generates the Slack manifest and walks through these steps:

  1. Create the Slack app from the generated manifest.
  2. Generate an App-level token with the connections:write scope.
  3. Install the app and copy its Bot User OAuth Token.
  4. Paste both tokens into Hub and choose Connect Slack.

Hub verifies the installation, saves it under Integrations, and opens the outbound Socket Mode connection.

Invite the bot to each channel it watches or posts to:

/invite @Remio

Socket Mode holds one live connection in the Hub process. Run one Hub process for Socket Mode and keep it running because events that arrive while Hub is stopped are missed.

Next, create a Slack trigger.

Use webhooks

Choose Webhooks when Slack sends events to a public Hub. Open Hub at its public HTTPS address before setup so the generated manifest uses the right URLs.

Apps → Slack provides a webhook manifest and asks for the App ID, Client ID, Client Secret, and Signing Secret. Saving continues to Slack so you can authorize a workspace. Always start workspace installation from Hub so the workspace binds to the active Hub organization.

Slack calls these Hub URLs:

Provider settingHub URL
Redirect URL<REMIO_HUB_APP_URL>/api/integrations/slack/callback
Request URL<REMIO_HUB_APP_URL>/api/integrations/slack/events

Configure from environment

Deployments that manage secrets outside Hub can configure one complete transport via environment variables.

Socket Mode:

SLACK_TRANSPORT=socket
SLACK_APP_ID=A01234567
SLACK_APP_TOKEN=xapp-...

The Bot User OAuth Token stays attached to each saved Slack workspace under Integrations rather than the Socket Mode environment variables.

Webhooks:

SLACK_TRANSPORT=webhook
SLACK_APP_ID=A01234567
SLACK_CLIENT_ID=...
SLACK_CLIENT_SECRET=...
SLACK_SIGNING_SECRET=...

Environment configuration takes precedence over a saved Slack app and appears as Managed by environment under Apps.

Sponsors