Skip to content

Commit 97c0845

Browse files
committed
feat(plugins): externalize iMessage channel
1 parent 9878bfc commit 97c0845

23 files changed

Lines changed: 239 additions & 40 deletions

‎docs/announcements/bluebubbles-imessage.md‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
summary: "BlueBubbles support was removed from OpenClaw. Use the bundled iMessage plugin with imsg for new and migrated iMessage setups."
2+
summary: "BlueBubbles support was removed from OpenClaw. Use the official iMessage plugin with imsg for new and migrated iMessage setups."
33
read_when:
44
- You used the old BlueBubbles channel and need to move to iMessage
55
- You are choosing the supported OpenClaw iMessage setup
@@ -9,7 +9,7 @@ title: "BlueBubbles removal and the imsg iMessage path"
99

1010
# BlueBubbles removal and the imsg iMessage path
1111

12-
OpenClaw no longer ships the BlueBubbles channel. iMessage support runs through the bundled `imessage` plugin: the Gateway spawns [`imsg`](https://github.com/steipete/imsg) as a child process, locally or through an SSH wrapper, and talks JSON-RPC over stdin/stdout. No server, no webhook, no port.
12+
OpenClaw no longer ships the BlueBubbles channel. iMessage support runs through the official `@openclaw/imessage` plugin: the Gateway spawns [`imsg`](https://github.com/steipete/imsg) as a child process, locally or through an SSH wrapper, and talks JSON-RPC over stdin/stdout. No server, no webhook, no port.
1313

1414
If your config still contains `channels.bluebubbles`, migrate it to `channels.imessage`. The legacy `/channels/bluebubbles` docs URL redirects to [Coming from BlueBubbles](/channels/imessage-from-bluebubbles), which has the full config translation table and cutover checklist.
1515

@@ -23,7 +23,13 @@ If your config still contains `channels.bluebubbles`, migrate it to `channels.im
2323

2424
## What to do
2525

26-
1. Install and verify `imsg` on the Messages Mac:
26+
1. Install the official plugin on the Gateway host, then restart the Gateway:
27+
28+
```bash
29+
openclaw plugins install @openclaw/imessage
30+
```
31+
32+
2. Install and verify `imsg` on the Messages Mac:
2733

2834
```bash
2935
brew install steipete/tap/imsg
@@ -32,9 +38,9 @@ If your config still contains `channels.bluebubbles`, migrate it to `channels.im
3238
imsg rpc --help
3339
```
3440

35-
2. Grant Full Disk Access and Automation permissions to the process context that runs `imsg` and OpenClaw.
41+
3. Grant Full Disk Access and Automation permissions to the process context that runs `imsg` and OpenClaw.
3642

37-
3. Translate the old config:
43+
4. Translate the old config:
3844

3945
```json5
4046
{
@@ -55,13 +61,13 @@ If your config still contains `channels.bluebubbles`, migrate it to `channels.im
5561
}
5662
```
5763

58-
4. Restart the gateway and verify:
64+
5. Restart the gateway and verify:
5965

6066
```bash
6167
openclaw channels status --probe
6268
```
6369

64-
5. Test DMs, groups, attachments, and any private API actions you depend on before deleting your old BlueBubbles server.
70+
6. Test DMs, groups, attachments, and any private API actions you depend on before deleting your old BlueBubbles server.
6571

6672
## Migration notes
6773

‎docs/channels/access-groups.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Access groups work in the shared message-channel authorization paths:
121121
- channel-specific per-room sender allowlists that use the same sender matching rules (for example Google Chat `groups.<space>.users`)
122122
- command authorization paths that reuse message-channel sender allowlists
123123

124-
Channel support depends on whether that channel is wired through the shared OpenClaw sender-authorization helpers. Current bundled support includes ClickClack, Discord, Feishu, Google Chat, iMessage, IRC, LINE, Mattermost, Microsoft Teams, Nextcloud Talk, Nostr, QQ Bot, Signal, Slack, SMS, Telegram, WhatsApp, Zalo, and Zalo Personal. Static `message.senders` groups are channel-agnostic, so new message channels get them by using the shared plugin SDK ingress helpers instead of custom allowlist expansion.
124+
Channel support depends on whether that channel is wired through the shared OpenClaw sender-authorization helpers. Current supported channel integrations include ClickClack, Discord, Feishu, Google Chat, iMessage, IRC, LINE, Mattermost, Microsoft Teams, Nextcloud Talk, Nostr, QQ Bot, Signal, Slack, SMS, Telegram, WhatsApp, Zalo, and Zalo Personal. Static `message.senders` groups are channel-agnostic, so new message channels get them by using the shared plugin SDK ingress helpers instead of custom allowlist expansion.
125125

126126
## Discord channel audiences
127127

‎docs/channels/channel-routing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ channel converge on the agent's [main session](/concepts/main-session).
1414

1515
## Key terms
1616

17-
- **Channel**: a bundled channel plugin such as `discord`, `googlechat`, `imessage`, `irc`, `line`, `signal`, `slack`, `telegram`, or `whatsapp`, plus installed plugin channels. `webchat` is the internal WebChat UI channel and is not a configurable outbound channel.
17+
- **Channel**: a channel plugin such as `discord`, `googlechat`, `imessage`, `irc`, `line`, `signal`, `slack`, `telegram`, or `whatsapp`. `webchat` is the internal WebChat UI channel and is not a configurable outbound channel.
1818
- **AccountId**: per-channel account instance (when supported).
1919
- Optional channel default account: `channels.<channel>.defaultAccount` chooses
2020
which account is used when an outbound path does not specify `accountId`.

‎docs/channels/imessage-from-bluebubbles.md‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
summary: "Translate old BlueBubbles configs to the bundled iMessage plugin: key mapping, group allowlist gates, and cutover verification."
2+
summary: "Translate old BlueBubbles configs to the official iMessage plugin: key mapping, group allowlist gates, and cutover verification."
33
read_when:
4-
- Planning a move from BlueBubbles to the bundled iMessage plugin
4+
- Planning a move from BlueBubbles to the official iMessage plugin
55
- Translating BlueBubbles config keys to iMessage equivalents
66
- Verifying imsg before enabling the iMessage plugin
77
title: "Coming from BlueBubbles"
88
---
99

10-
BlueBubbles support was removed. OpenClaw supports iMessage only through the bundled `imessage` plugin, which drives [`steipete/imsg`](https://github.com/steipete/imsg) over JSON-RPC and reaches the same private API surface BlueBubbles had (`react`, `edit`, `unsend`, `reply`, `sendWithEffect`, native polls, group management, attachments). One CLI binary replaces the BlueBubbles server + client app + webhook plumbing: no REST endpoint, no webhook auth.
10+
BlueBubbles support was removed. OpenClaw supports iMessage only through the official `@openclaw/imessage` plugin, which drives [`steipete/imsg`](https://github.com/steipete/imsg) over JSON-RPC and reaches the same private API surface BlueBubbles had (`react`, `edit`, `unsend`, `reply`, `sendWithEffect`, native polls, group management, attachments). One CLI binary replaces the BlueBubbles server + client app + webhook plumbing: no REST endpoint, no webhook auth.
1111

1212
This guide migrates old `channels.bluebubbles` configs to `channels.imessage`. There is no other supported migration path. On current OpenClaw a leftover `channels.bluebubbles` block is inert — no runtime reads it.
1313

@@ -19,13 +19,14 @@ For the short announcement and operator summary, see [BlueBubbles removal and th
1919

2020
The shortest safe path when you already know your old BlueBubbles config:
2121

22-
1. Verify `imsg` directly on the Mac that runs Messages.app (`imsg chats`, `imsg history`, `imsg send`, `imsg rpc --help`).
23-
2. Copy behavior keys from `channels.bluebubbles` to `channels.imessage`: `dmPolicy`, `allowFrom`, `groupPolicy`, `groupAllowFrom`, `groups`, `includeAttachments`, `attachmentRoots`, `mediaMaxMb`, `textChunkLimit`, and `actions`.
24-
3. Drop transport keys that no longer exist: `serverUrl`, `password`, webhook URLs, and BlueBubbles server setup.
25-
4. If the Gateway is not running on the Messages Mac, set `channels.imessage.cliPath` to an SSH wrapper and set `remoteHost` for remote attachment fetches.
26-
5. Enable `channels.imessage`, restart the Gateway, then run `openclaw channels status --probe --channel imessage`.
27-
6. Test one DM, one allowed group, attachments if enabled, and every private API action you expect the agent to use.
28-
7. Delete the BlueBubbles server and the old `channels.bluebubbles` config after the iMessage path is verified.
22+
1. Install the official plugin with `openclaw plugins install @openclaw/imessage`, then restart the Gateway.
23+
2. Verify `imsg` directly on the Mac that runs Messages.app (`imsg chats`, `imsg history`, `imsg send`, `imsg rpc --help`).
24+
3. Copy behavior keys from `channels.bluebubbles` to `channels.imessage`: `dmPolicy`, `allowFrom`, `groupPolicy`, `groupAllowFrom`, `groups`, `includeAttachments`, `attachmentRoots`, `mediaMaxMb`, `textChunkLimit`, and `actions`.
25+
4. Drop transport keys that no longer exist: `serverUrl`, `password`, webhook URLs, and BlueBubbles server setup.
26+
5. If the Gateway is not running on the Messages Mac, set `channels.imessage.cliPath` to an SSH wrapper and set `remoteHost` for remote attachment fetches.
27+
6. Enable `channels.imessage`, restart the Gateway, then run `openclaw channels status --probe --channel imessage`.
28+
7. Test one DM, one allowed group, attachments if enabled, and every private API action you expect the agent to use.
29+
8. Delete the BlueBubbles server and the old `channels.bluebubbles` config after the iMessage path is verified.
2930

3031
## What imsg does
3132

@@ -89,7 +90,7 @@ The shortest safe path when you already know your old BlueBubbles config:
8990

9091
iMessage and BlueBubbles share most channel-level behavior keys. What changes is transport (REST server vs local CLI) and the group registry key format.
9192

92-
| BlueBubbles | bundled iMessage | Notes |
93+
| BlueBubbles | iMessage plugin | Notes |
9394
| ---------------------------------------------------------- | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9495
| `channels.bluebubbles.enabled` | `channels.imessage.enabled` | Same semantics (default `true` once the block exists). |
9596
| `channels.bluebubbles.serverUrl` | _(removed)_ | No REST server — the plugin spawns `imsg rpc` over stdio. |
@@ -102,7 +103,7 @@ iMessage and BlueBubbles share most channel-level behavior keys. What changes is
102103
| `channels.bluebubbles.groupPolicy` | `channels.imessage.groupPolicy` | Same values (`allowlist` / `open` / `disabled`); default `allowlist`. |
103104
| `channels.bluebubbles.groupAllowFrom` | `channels.imessage.groupAllowFrom` | Same. When unset, iMessage falls back to `allowFrom`; an explicitly empty `groupAllowFrom: []` blocks all groups under `groupPolicy: "allowlist"`. |
104105
| `channels.bluebubbles.groups` | `channels.imessage.groups` | Copy the `"*"` wildcard entry verbatim; re-key per-group entries by numeric iMessage `chat_id` — see "Group registry footgun". `requireMention`, `tools`, `toolsBySender`, `systemPrompt` carry over. |
105-
| `channels.bluebubbles.sendReadReceipts` | `channels.imessage.sendReadReceipts` | Default `true`. With the bundled plugin this only fires when the private API probe is up. |
106+
| `channels.bluebubbles.sendReadReceipts` | `channels.imessage.sendReadReceipts` | Default `true`. This only fires when the private API probe is up. |
106107
| `channels.bluebubbles.includeAttachments` | `channels.imessage.includeAttachments` | Same shape, same off-by-default. If attachments flowed on BlueBubbles, set this explicitly — inbound photos/media are silently dropped (no `Inbound message` log line) until you do. |
107108
| `channels.bluebubbles.attachmentRoots` | `channels.imessage.attachmentRoots` | Local roots; same wildcard rules. |
108109
| _(N/A)_ | `channels.imessage.remoteAttachmentRoots` | Only used when `remoteHost` is set for SCP fetches. |
@@ -116,7 +117,7 @@ Multi-account configs (`channels.bluebubbles.accounts.*`) translate one-to-one t
116117

117118
## Group registry footgun
118119

119-
The bundled iMessage plugin runs two group gates back to back. A group message must pass both to reach the agent:
120+
The iMessage plugin runs two group gates back to back. A group message must pass both to reach the agent:
120121

121122
1. **Sender / chat-target allowlist** (`channels.imessage.groupAllowFrom`) — matches the sender handle or the chat target (`chat_id:`, `chat_guid:`, `chat_identifier:` entries). When `groupAllowFrom` is unset, this gate falls back to `allowFrom`; an explicit `groupAllowFrom: []` disables that fallback and drops every group message under `groupPolicy: "allowlist"`.
122123
2. **Group registry** (`channels.imessage.groups`) — keyed by numeric iMessage `chat_id`:
@@ -188,7 +189,7 @@ This admits the configured senders in any group. Add `groups` entries to scope a
188189

189190
## Action parity at a glance
190191

191-
| Action | legacy BlueBubbles | bundled iMessage |
192+
| Action | legacy BlueBubbles | iMessage plugin |
192193
| --------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------- |
193194
| Send text / SMS fallback | ✅ | ✅ |
194195
| Send media (photo, video, file, voice) | ✅ | ✅ |

‎docs/channels/imessage.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ Status: native external CLI integration. The Gateway spawns `imsg rpc` and speak
2020

2121
For the common local setup, OpenClaw setup can offer a user-confirmed Homebrew install or update for `imsg` on the signed-in Messages Mac. Manual setup and SSH-wrapper topologies remain operator-managed: install or update `imsg` in the same user context that will run the Gateway or wrapper.
2222

23+
## Install the plugin
24+
25+
Install the official iMessage plugin on the Gateway host, then restart the Gateway:
26+
27+
```bash
28+
openclaw plugins install @openclaw/imessage
29+
```
30+
2331
<CardGroup cols={3}>
2432
<Card title="Private API actions" icon="wand-sparkles" href="#private-api-actions">
2533
Replies, tapbacks, effects, polls, attachments, and group management.
@@ -200,7 +208,7 @@ The helper-injection technique uses `imsg`'s own dylib to reach Messages private
200208
<Warning>
201209
**Disabling SIP is a real security tradeoff.** SIP is one of macOS's core protections against running modified system code; turning it off system-wide opens up additional attack surface and side effects. Notably, **disabling SIP on Apple Silicon Macs also disables the ability to install and run iOS apps on your Mac**.
202210

203-
Treat this as a deliberate operational choice, especially on a primary personal Mac. For production-quality OpenClaw iMessage, prefer a dedicated Mac or bot macOS user where you are comfortable enabling the bridge. If your threat model cannot tolerate SIP being off anywhere, bundled iMessage is limited to basic mode — text and media send/receive only, no reactions / edit / unsend / effects / group ops.
211+
Treat this as a deliberate operational choice, especially on a primary personal Mac. For production-quality OpenClaw iMessage, prefer a dedicated Mac or bot macOS user where you are comfortable enabling the bridge. If your threat model cannot tolerate SIP being off anywhere, the iMessage plugin is limited to basic mode — text and media send/receive only, no reactions / edit / unsend / effects / group ops.
204212
</Warning>
205213

206214
### Setup

‎docs/channels/index.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: "Chat channels"
99
OpenClaw can talk to you on any chat app you already use. Each channel connects via the Gateway.
1010
Text is supported everywhere; media and reactions vary by channel.
1111

12-
iMessage, Telegram, and the WebChat UI ship with the core install. Channels marked
12+
Telegram and the WebChat UI ship with the core install. Channels marked
1313
"official plugin" install with one command (`openclaw plugins install @openclaw/<id>`)
1414
or on demand during `openclaw onboard` / `openclaw channels add`, then need a Gateway
1515
restart. "External plugin" channels are maintained outside the OpenClaw repo.
@@ -20,7 +20,7 @@ restart. "External plugin" channels are maintained outside the OpenClaw repo.
2020
- [Discord](/channels/discord) - Discord Bot API + Gateway; supports servers, channels, and DMs (official plugin).
2121
- [Feishu](/channels/feishu) - Feishu/Lark bot via WebSocket (official plugin).
2222
- [Google Chat](/channels/googlechat) - Google Chat API app via HTTP webhook (official plugin).
23-
- [iMessage](/channels/imessage) - Included in core. Native macOS integration via the `imsg` bridge on a signed-in Mac (or SSH wrapper when the Gateway runs elsewhere), including private API actions for replies, tapbacks, effects, attachments, and group management.
23+
- [iMessage](/channels/imessage) - Native macOS integration via the `imsg` bridge on a signed-in Mac (or SSH wrapper when the Gateway runs elsewhere), including private API actions for replies, tapbacks, effects, attachments, and group management (official plugin).
2424
- [IRC](/channels/irc) - Classic IRC servers; channels + DMs with pairing/allowlist controls (official plugin).
2525
- [LINE](/channels/line) - LINE Messaging API bot (official plugin).
2626
- [Matrix](/channels/matrix) - Matrix protocol (official plugin).

0 commit comments

Comments
 (0)