OpenClaw crossed 150,000 GitHub stars faster than almost any open-source project in history. A chunk of that growth came from teams wiring it directly into Slack - because Slack is where the work already is, and an agent that lives there can do real things: pull a Notion doc, summarise a thread, open a GitHub issue. The question that doesn't get asked loudly enough is whether most of those deployments are actually configured safely.
Two releases in the past two months changed the answer. If you set up your OpenClaw Slack integration before late June, you may still be running the old shape.
How the OpenClaw Slack integration actually works
OpenClaw's Slack integration is production-ready and one of the more thoughtfully designed channel setups around. It supports both direct messages and channels, handles access control properly, and offers two deployment modes depending on your infrastructure preferences.
The two modes are not interchangeable.
Slack support covers DMs and channels via Slack app integrations. Default transport is Socket Mode; HTTP Request URLs are also supported.
Socket Mode is what most guides walk through - you create a Slack app, generate an app-level token with connections:write scope, and the OpenClaw gateway opens a persistent outbound WebSocket to Slack's servers. No inbound port required. That makes it easy to run behind a firewall, on a dev laptop, or on a VPS.
The problem is scale. Slack can maintain multiple Socket Mode connections for one app and may deliver each payload to any connection. Separate OpenClaw gateways that share a Slack app therefore need equivalent routing and authorization configuration. Otherwise, use a separate Slack app per gateway, a single relay ingress, or HTTP Request URLs behind a load balancer.
Most small deployments ignore that and end up with duplicate-response bugs or dropped messages as they add agents.
What relay mode actually changes - and why it matters
Relay mode, merged June 21 and shipped June 28, is the architectural fix. Relay mode separates Slack ingress from the OpenClaw gateway. A trusted router owns the single Slack Socket Mode connection, chooses a destination gateway, and forwards a typed event over an authenticated WebSocket. The gateway still uses its own bot token for outbound Slack Web API calls.
That separation is the point. Instead of every gateway competing for the same event stream, one router owns ingress and dispatches to whichever agent should handle the message.
The PR adds Slack mode: "relay" with reverse WebSocket ingress, relay auth and gateway config, relay-provided outbound identity, schema/docs/SecretRef metadata, tests, and generated metadata.
At +1,205 lines across 34 files, it's not a small patch - it's a real architectural layer.
Relay mode is for managed deployments where a trusted router owns Slack ingress. If you're running a single agent for a small team, Socket Mode is fine. The moment you want two agents with different identities - or you're deploying into a production environment where you don't want Slack credentials distributed across multiple services - relay mode is the right shape.
The secret egress gap that 2026.8.1 closes
This is the one most coverage has not touched. The 2026.8.1 highlight is secret egress host binding: each shared-store secret is now bound to exact HTTPS destination hosts across CLI, Gateway RPC, and Control UI so unbound sentinel substitution fails closed before plaintext egress.
What does that mean in practice? Before this fix, a secret stored in OpenClaw's shared store - your Slack bot token, your LLM API key, a database credential - could be substituted into a request that went to an unexpected host. The fix pins each secret to the specific HTTPS host it belongs to. If something tries to send a secret somewhere it isn't bound, the request fails closed - it does not send.
A structural change in how nodes communicate: remote node events are now marked untrusted by default, and their outputs are sanitized before reaching the main agent. This closes a class of attack where a compromised node could inject trusted System: prompts into the primary agent's context.
The secret egress fix is the network-layer complement to that - it closes the exfiltration path that the prompt-injection attack was trying to reach.
From late March through mid-April 2026, OpenClaw shipped what community analysts described as the longest and most technically dense security block in the project's history. The changes span privilege containment, workspace integrity, network defenses, and cross-component trust. Teams running OpenClaw in production or on multi-user systems should treat this block as a required upgrade, not optional. The August egress fix continues that pattern.
What you still need to do yourself
The fixes are not automatic. Here is the current checklist if you're running OpenClaw in Slack:
Update to 2026.8.1. The release ships stronger secret egress security, atomic model and runtime switching, shared plugin lifecycle monitors, SQLite snapshot backup and restore, macOS app profile isolation, and gateway reliability upgrades. All of those are relevant to production deployments.
Audit your secret bindings. The new secret egress system requires you to declare which host each secret is allowed to reach. Secrets created before 2026.8.1 may not carry that binding. Check the docs at docs.openclaw.ai and rebind explicitly.
Decide between Socket Mode and relay mode before you scale. Pick Socket Mode for single-gateway hosts, dev laptops, and on-prem networks that can reach
*.slack.comoutbound but cannot accept inbound HTTPS. Pick relay mode for anything with multiple agents or a dedicated ingress layer.Test access controls with a non-authorised account. Actually try messaging the bot from an unauthorised user. Try messaging from a channel not in your allowlist. Make sure the agent properly ignores what it should ignore. Wildcards in the wrong place can give everyone access during what was supposed to be a pilot.
Enable DM pairing unless you deliberately want a public agent. For most business deployments, DM pairing should be enabled. The only exception is fully public-facing agents where you intentionally want anyone to interact with them.
The honest summary: OpenClaw's self-hosted nature mitigates some security risks compared to cloud-hosted alternatives, but it also means you are responsible for security, not a provider. That trade-off has always been true. What's new is that the defaults are finally getting tighter - but only if you update.
OpenClaw Slack integration: common questions
What is OpenClaw relay mode for Slack?
Relay mode separates Slack event ingestion from the OpenClaw gateway. A single trusted router owns the Slack Socket Mode connection and dispatches typed events to whichever gateway should handle them. It's the right architecture for teams running multiple agents or wanting to keep Slack credentials in one place rather than distributed across services.
Is it safe to run OpenClaw in a shared Slack workspace?
As of 2026.8.1, meaningfully safer than before - but safety depends on your configuration. Secret egress host binding (new in 2026.8.1) prevents credentials from being sent to unexpected hosts. You also need DM pairing enabled, a channel allowlist, and access controls tested against unauthorised users before going live.
What hardware does a self-hosted OpenClaw Slack bot need?
OpenClaw's documentation recommends at least 2 vCPUs and 4 GB RAM for development and testing. Production workloads are better served by 4 vCPUs and 8 GB RAM, with at least 20 GB of SSD storage. If you add local model inference via Ollama, budget significantly more RAM.
How much does it cost to run OpenClaw in Slack?
OpenClaw itself is free and open-source (MIT license). Your costs are LLM API usage. Expect $50-$500 per month depending on model choice, usage volume, and whether you run continuous background tasks. Lighter usage with a cheaper model can stay under $50 per month.
Can I run multiple agents with separate Slack identities?
Yes.
Use one Slack app per agent identity. Each Slack app maps to one account ID in channels.slack.accounts, and bindings route each account to its OpenClaw agent. This gives each agent true individual DMs plus group-chat presence in shared channels.
Relay mode makes this substantially cleaner to operate at scale.