# OpenClaw iMessage bot setup with imsg on a Mac

Canonical: https://cwyn.com/pages/openclaw-guide-first-imessage-setup.html
Last updated: 2026-11-27T03:29:31-05:00

OpenClaw operations guide

OpenClaw iMessage setup starts on a Mac signed in to Messages. Install the iMessage plugin and `imsg`, then grant the Gateway process Full Disk Access to read messages and Automation permission to send them. Text the Mac’s account from a second account you control, approve the pairing request, then text again to check for a reply.

Last updated November 27, 2026 · Published November 19, 2026

By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5 · Checked against docs, not run ([iMessage setup reference](https://raw.githubusercontent.com/openclaw/openclaw/v2026.11.5/docs/channels/imessage/setup.md))

## 1. Install the iMessage plugin and imsg

Use a Mac with a working local managed Gateway and Messages signed in to the account that will receive the test. The current [iMessage reference](https://docs.openclaw.ai/channels/imessage) documents `imsg` as the supported connection after BlueBubbles support was removed. [Basic mode](https://docs.openclaw.ai/channels/imessage/private-api) supports a simple text exchange with System Integrity Protection enabled.

If a signed-in Mac is unavailable and your sender uses Zalo, you can [set up a Zalo bot with long polling](https://cwyn.com/pages/openclaw-guide-first-zalo-bot.html) for a private reply.

On the Messages Mac, install the [iMessage plugin and Homebrew package](https://docs.openclaw.ai/channels/imessage/setup). Check that your installed `imsg` exposes the RPC command.

```
openclaw plugins install @openclaw/imessage
brew install steipete/tap/imsg
imsg rpc --help
```

## 2. Grant access in the Messages user’s session

The process running OpenClaw and `imsg` needs [Full Disk Access](https://docs.openclaw.ai/channels/imessage/setup#requirements-and-permissions-macos) to read the Messages database and Automation permission to send through Messages. Grant those permissions for the Gateway’s process context. A successful check from a different user or process leaves the service’s permissions untested.

## 3. Point the Gateway at the local Messages database

Save the example as `imessage.patch.json5`. Set `cliPath` to the absolute path of your `imsg` binary. Run `echo "$HOME"` in the signed-in Messages account and replace `/path/to/home` in `dbPath` with the result. The [channel policy](https://docs.openclaw.ai/channels/imessage/access-control) pairs new DM senders and keeps groups disabled for this test.

```
{
  channels: {
    imessage: {
      enabled: true,
      cliPath: "/usr/local/bin/imsg",
      dbPath: "/path/to/home/Library/Messages/chat.db",
      dmPolicy: "pairing",
      groupPolicy: "disabled",
    },
  },
}
```

Check the patch with the [config CLI](https://docs.openclaw.ai/cli/config) before applying it. Follow its restart hint, then check the live channel.

Before applying the patch, use the [rollback checklist in the OpenClaw Complete Setup Pack](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) to record the previous Gateway settings for the Messages database and the path to `imsg`.

```
openclaw config patch --file ./imessage.patch.json5 --dry-run
openclaw config patch --file ./imessage.patch.json5
openclaw channels status --probe
```

## 4. Pair a separate sender you control

From a different Messages account you control, send a DM to the account signed in on the Mac. Match the pairing code to the pending request before approving. The [first CLI approval](https://docs.openclaw.ai/channels/pairing) can also establish the command owner.

```
openclaw pairing list imessage
openclaw pairing approve imessage <CODE>
```

## 5. Confirm a plain text reply

Send a new plain text prompt in the same DM and check that the Mac’s Messages account replies. This tests both access to the incoming chat and the ability to send through Messages.

[Get your free CWYN Score](https://cwyn.com/pages/score.html)

## Related guides

- [Install the OpenClaw macOS app and verify a reply](https://cwyn.com/pages/openclaw-guide-macos-app-first-install.html)
- [Check a fresh OpenClaw install with Doctor](https://cwyn.com/pages/openclaw-guide-doctor-first-install.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [CWYN Score](https://cwyn.com/pages/score.html)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)

### Save the local iMessage setup

The [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) is an optional paid kit with Gateway and rollback checklists for recording the local configuration that delivered your paired text reply.
Kit details as of Nov 22, 2026

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.
