1.8 KiB
1.8 KiB
summary, read_when
| summary | read_when | ||
|---|---|---|---|
| iMessage support via imsg (JSON-RPC over stdio), setup, and chat_id routing |
|
iMessage (imsg)
Status: external CLI integration. No daemon.
Model
- Clawdbot spawns
imsg rpcas a child process. - JSON-RPC runs over stdin/stdout (one JSON object per line).
- Gateway owns the process; no TCP port needed.
Requirements
- macOS with Messages signed in.
- Full Disk Access for Clawdbot + the
imsgbinary (Messages DB access). - Automation permission for Messages when sending.
Config
{
imessage: {
enabled: true,
cliPath: "imsg",
dbPath: "~/Library/Messages/chat.db",
allowFrom: ["+15555550123", "user@example.com", "chat_id:123"],
includeAttachments: false,
mediaMaxMb: 16,
service: "auto",
region: "US"
}
}
Notes:
allowFromaccepts handles (phone/email) orchat_id:<id>entries.servicedefaults toauto(useimessageorsmsto pin).regionis only used for SMS targeting.
Addressing / targets
Prefer chat_id for stable routing:
chat_id:123(preferred)chat_guid:...(fallback)chat_identifier:...(fallback)- direct handles:
imessage:+1555/sms:+1555/user@example.com
List chats:
imsg chats --limit 20
Group chat behavior
- Group messages set
ChatType=group,GroupSubject, andGroupMembers. - Group activation respects
imessage.groups."*".requireMentionandrouting.groupChat.mentionPatterns(patterns are required to detect mentions on iMessage). Whenimessage.groupsis set, it also acts as a group allowlist; include"*"to allow all groups. - Replies go back to the same
chat_id(group or direct).
Troubleshooting
clawdbot gateway call providers.status --params '{"probe":true}'- Verify
imsgis on PATH and has access to Messages DB.