惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
博客园_首页
Jina AI
Jina AI
WordPress大学
WordPress大学
小众软件
小众软件
阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 三生石上(FineUI控件)
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
美团技术团队
IT之家
IT之家
爱范儿
爱范儿
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
量子位
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
博客园 - 【当耐特】

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
[codex] Add Slack relay mode for incoming messages (#9470...
sjf-oa · 2026-06-22 · via Recent Commits to openclaw:main
11

---

2-

summary: "Slack setup and runtime behavior (Socket Mode + HTTP Request URLs)"

2+

summary: "Slack setup and runtime behavior (Socket Mode, HTTP Request URLs, and relay mode)"

33

read_when:

4-

- Setting up Slack or debugging Slack socket/HTTP mode

4+

- Setting up Slack or debugging Slack socket, HTTP, or relay mode

55

title: "Slack"

66

---

778-

Production-ready for DMs and channels via Slack app integrations. Default mode is Socket Mode; HTTP Request URLs are also supported.

8+

Production-ready for DMs and channels via Slack app integrations. Default mode is Socket Mode; HTTP Request URLs are also supported. Relay mode is intended for managed deployments where a trusted router owns Slack ingress.

991010

<CardGroup cols={3}>

1111

<Card title="Pairing" icon="link" href="/channels/pairing">

@@ -41,6 +41,37 @@ Both transports are production-ready and reach feature parity for messaging, sla

4141

**Pick HTTP Request URLs** when running multiple Gateway replicas behind a load balancer, when outbound WSS is blocked but inbound HTTPS is allowed, or when you already terminate Slack webhooks at a reverse proxy.

4242

</Note>

434344+

### Relay mode

45+46+

Relay mode separates Slack ingress from the OpenClaw gateway. A trusted router owns the

47+

single Slack Socket Mode connection, chooses a destination gateway, and forwards a typed

48+

event over an authenticated websocket. The gateway continues to use its bot token for

49+

outbound Slack Web API calls.

50+51+

```json5

52+

{

53+

channels: {

54+

slack: {

55+

mode: "relay",

56+

botToken: { source: "env", provider: "default", id: "SLACK_BOT_TOKEN" },

57+

relay: {

58+

url: "wss://router.example.com/gateway/ws",

59+

authToken: { source: "env", provider: "default", id: "SLACK_RELAY_AUTH_TOKEN" },

60+

gatewayId: "team-gateway",

61+

},

62+

},

63+

},

64+

}

65+

```

66+67+

The relay URL must use `wss://` unless it targets localhost. Treat the bearer token and

68+

router route table as part of the Slack authorization boundary: routed events enter the

69+

normal Slack message handler as authorized activations. A router-provided `slack_identity`

70+

in the websocket `hello` frame can set the default outbound username and icon; an explicit

71+

identity supplied by the caller still wins. The relay connection reconnects with the same

72+

bounded backoff timing used by Socket Mode and clears the router-provided identity whenever

73+

it disconnects.

74+4475

## Install

45764677

Install Slack before configuring the channel:

@@ -863,7 +894,8 @@ The default manifest enables the Slack App Home **Home** tab and subscribes to `

863894864895

- `botToken` + `appToken` are required for Socket Mode.

865896

- HTTP mode requires `botToken` + `signingSecret`.

866-

- `botToken`, `appToken`, `signingSecret`, and `userToken` accept plaintext

897+

- Relay mode requires `botToken` plus `relay.url`, `relay.authToken`, and `relay.gatewayId`; it does not use an app token or signing secret.

898+

- `botToken`, `appToken`, `signingSecret`, `relay.authToken`, and `userToken` accept plaintext

867899

strings or SecretRef objects.

868900

- Config tokens override env fallback.

869901

- `SLACK_BOT_TOKEN` / `SLACK_APP_TOKEN` env fallback applies only to the default account.