OpenClaw operations guide
OpenClaw iMessage bot setup with imsg on a Mac
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 · Published
By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5 · Checked against docs, not run (iMessage setup reference)
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 documents imsg as the supported connection after BlueBubbles support was removed. Basic mode 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 for a private reply.
On the Messages Mac, install the iMessage plugin and Homebrew package. 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 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 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 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 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 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.