Send and read iMessages & SMS from your AI agent via macOS Messages.app — with chat history, attachments, and real-time watching.
npx clawhub@latest install imsgRequirements
imsg is a macOS-only CLI skill that lets your AI agent interact with Apple Messages.app — reading conversation history, listing recent chats, watching for new messages, and sending iMessages or SMS to phone numbers or Apple IDs. It wraps the imsg command-line tool to give your agent full read/write access to your native Messages inbox, with support for attachments and explicit service selection (iMessage vs. SMS).
npx clawhub@latest install imsgClick the Install button at the top of this page for one-click setup
imsg.imsg requires macOS with Messages.app.Retrieve a paginated, JSON-formatted list of your most recent Messages.app conversations. Useful for finding a contact's chat ID before reading history or sending a message.
Fetch message history for any chat by ID, with a configurable limit. Optionally include attachment metadata so your agent knows what files were shared.
Send text messages (and file attachments) to any phone number or Apple ID. Explicitly force --service imessage or --service sms, or let Messages.app decide automatically.
Stream new messages from a specific chat in real time using imsg watch, including attachment info — ideal for building responsive messaging workflows.
Send local files alongside text messages using --file /path/to/file. History queries can also surface attachment metadata so your agent can reference previously shared files.
The skill's guidance enforces confirmation of recipient and message content before sending, avoids messaging unknown numbers without approval, and discourages rate-limit-violating bulk sends.
Ask your agent to "text Mom I'll be late." It searches your chats for Mom's contact, confirms the number and message text with you, then sends via iMessage or SMS — all without opening the Messages app manually.
Pull the last 20 messages from a specific chat to give your agent context about an ongoing conversation before drafting a reply or summary.
Share a local image or document with a contact by providing a file path — the skill attaches it to the outgoing message automatically.
Use imsg watch on a specific chat ID so your agent can react to incoming messages in real time, enabling lightweight conversational automation over iMessage.
imsg must be granted Full Disk Access in System Settings → Privacy & Security.imsg binary — Install via Homebrew: brew install steipete/tap/imsg.npx clawhub@latest install imsgRequirements
Log in to write a review
No reviews yet. Be the first to share your experience!