One agent. All your devices. Zero context loss.
Start a conversation on your laptop. Continue from your phone. Same context, same memory, seamless.
Telegram + Discord + DingTalk + Feishu + WhatsApp + Signal + Slack + Webchat → One Brain
[Laptop - Webchat]
You: Research the top 3 competitors for our product launch
Agent: Sure! I've found that...
(detailed 20-minute research session)
--- You leave your desk, grab your phone ---
[Phone - Telegram]
You: What did you find about our competitors?
Agent: I don't have any context about competitors.
Could you provide more details?
You: ...seriously? We JUST talked about this.
You connected Telegram, Discord, DingTalk, Feishu, and webchat to your OpenClaw agent. But each channel starts a separate conversation. The agent on your phone has no idea what you discussed on your laptop.
This is the #1 pain point for single-user OpenClaw setups.
Before After
┌──────────┐ ┌──────────┐ ┌──────────────────────┐
│ Telegram │ │ Webchat │ │ agent:main:main │
│ Session A│ │ Session B│ │ │
│ "Research│ │ "What did│ │ Telegram ──┐ │
│ competi-│ │ you find│ │ Webchat ───┤ shared │
│ tors..."│ │ 🤷?" │ │ DingTalk ──┤ context │
└──────────┘ └──────────┘ │ Feishu ────┘ │
❌ Context lost │ │
└──────────────────────┘
✅ Full continuity
One config value. One gateway restart. All channels share the same brain.
clawhub install unified-session
Then tell your agent:
"Help me set up unified session so all my channels share the same conversation"
The skill handles everything: diagnose → configure → restart → verify.
Add to ~/.openclaw/openclaw.json:
{
"session": {
"dmScope": "main"
}
}Then:
openclaw gateway restart
Done. All channels now share one session.
OpenClaw uses dmScope to control how DMs are grouped:
| Setting | Behavior | Best for |
|---|---|---|
"main" |
All DMs → one shared session | Personal AI (you) |
"per-channel-peer" |
Each channel → separate session | Multi-user bots |
The default is isolation (great for bots with many users, terrible for personal assistants). This skill switches it to unified — and walks you through the entire process.
Replies automatically go back to wherever the message came from:
Message from Telegram → reply goes to Telegram ✅
Message from webchat → reply goes to webchat ✅
Message from DingTalk → reply goes to DingTalk ✅
No manual switching. The agent doesn't "choose" — OpenClaw handles it deterministically.
| Channel | Status | Tested |
|---|---|---|
| Webchat | ✅ | ✅ Real-world verified |
| Telegram | ✅ | ✅ Real-world verified |
| Discord | ✅ | ✅ Real-world verified |
| DingTalk (钉钉) | ✅ | ✅ Real-world verified |
| Feishu / Lark (飞书) | ✅ | ✅ Real-world verified |
| ✅ | Supported | |
| Signal | ✅ | Supported |
| Slack | ✅ | Supported |
| iMessage | ✅ | Supported |
| Matrix | ✅ | Supported |
When triggered, the skill:
- Diagnoses your current config (reads
openclaw.json, checks each channel'sdmScope) - Shows what needs to change (with ✅/❌ per channel)
- Applies the fix (sets
dmScope: "main"globally + per channel) - Restarts the gateway
- Verifies with test messages from each channel
Includes built-in troubleshooting for common issues:
- DingTalk Stream connections silently dropping after network changes
- Feishu WebSocket reconnection issues
- Multiple stale sessions after config migration
✅ You're the only person talking to your agent (single-user) ✅ You use 2+ channels (webchat + any phone app) ✅ You want one continuous conversation across all devices
per-channel-peer to prevent context leakage between users.
- ✅ No external services — no API keys, no network requests
- ✅ Only modifies
~/.openclaw/openclaw.json - ✅ Fully reversible: change one setting back to restore isolation
- ✅ Run
openclaw security auditafter setup to verify
- Anthropic Dispatch — phone → laptop continuity for Claude
- Apple Handoff — seamless task switching across devices
- The universal human need to not repeat yourself to your AI
| Problem | Fix |
|---|---|
| Bot forgets when switching channels | Run the skill's diagnostic. Likely dmScope not "main" |
| Messages from a channel don't arrive | openclaw gateway restart — connections silently drop |
| Multiple sessions still showing | Old sessions expire naturally after config change |
| Cron output goes to wrong channel | Set delivery.channel explicitly in cron config |
Want isolated sessions back? One change:
{ "session": { "dmScope": "per-channel-peer" } }Then openclaw gateway restart. Each channel creates its own session again.
在电脑上开始对话,拿起手机继续聊——同一个上下文,同一份记忆,无缝切换。
你给 OpenClaw 接了钉钉、飞书、Telegram、Discord、网页版……但每个渠道都是独立的对话。你在电脑上让 Agent 查个东西,出门掏出手机用钉钉问进度——它完全不记得你说过什么。
这是单用户 OpenClaw 部署的头号痛点。
# ClawHub 安装(推荐) clawhub install unified-session # 或 GitHub 安装 git clone https://github.com/1052326311/unified-session.git \ ~/.openclaw/workspace/skills/unified-session
然后对你的 Agent 说:
"帮我设置统一会话,让所有渠道共享同一个对话"
一个配置项 dmScope: "main",重启一次 Gateway,搞定。
- ✅ 多端无缝衔接 — 电脑 ↔ 手机 ↔ 平板,任意 App
- ✅ 共享记忆 — 不管从哪个 App 发消息,Agent 都记得所有上下文
- ✅ 自动回复路由 — 从钉钉发消息 → 回复自动回钉钉;从飞书发 → 回飞书
- ✅ 全渠道支持 — 钉钉、飞书、Telegram、Discord、WhatsApp、Signal、Slack、网页版
- ✅ 一次配置,永久生效
- ✅ 完全可逆 — 随时切回独立会话
- ✅ 零外部依赖 — 不需要 API Key,不需要额外服务
✅ 你是 Agent 的唯一用户(个人部署) ✅ 你用了 2 个以上渠道(网页版 + 手机 App) ✅ 你想要一个连续的对话跨所有设备
per-channel-peer),防止上下文泄露。
- 不连接外部服务,不需要 API Key,不发送网络请求
- 只修改
~/.openclaw/openclaw.json - 一个配置项即可完全回退
MIT License — see LICENSE for details.
If this skill made your life easier, give it a star! ⭐
clawhub star unified-session # on ClawHub