imbridge
iMessage for Python and AI agents on macOS. Send messages, reply inline, tapback with any emoji, and receive everything as it arrives, straight through Messages.app. No server to run, no Electron app, no cloud relay, and no way for a bug to message your contacts.
import asyncio
from imbridge import IMBridge
ALEX = "+15551234567" # the one conversation this agent works in
async def answer(text: str) -> str:
... # call your model or agent here
async def main():
async with IMBridge(allow=[ALEX]) as im: # imbridge sends nowhere else
chat = im.chat(ALEX)
async for message in chat.messages(): # this chat's new texts, tapbacks and inline replies
if message.text and not message.reaction:
await chat.react(message, "👀") # "seen it, on it", with any emoji
await chat.reply(message, await answer(message.text)) # threaded under their message
asyncio.run(main())
Or skip the code and give Claude, Cursor or any other MCP client the tools directly:
pip install "imbridge[mcp]"
imbridge allow +15551234567 # the chats it may use; asks you to confirm
claude mcp add imessage -- imbridge mcp # then: "text Alex that I'm running late"
Why imbridge
- Nothing to host. Your agent imports a library. There's no server process, Electron app or web UI. Besides your code, the only moving part is a small helper inside Messages, which talks to your process over a token-protected localhost socket.
- It can't spam your contacts. imbridge sends nowhere until you allow a chat, either in your code or with
imbridge allow, which only a person at a terminal can run. A chat handle refuses messages from other chats, rate limits stop runaway loops, and with two numbers on one Apple ID it only answers on the one you choose. - Any-emoji and sticker tapbacks. The classic six, any emoji, or a sticker, as iOS 18 and macOS 15 allow. BlueBubbles' released helper and imsg can only send the classic six.
- Real iMessage features. Inline replies, tapbacks, polls, photos and files, edits and unsends, message effects, typing indicators and read receipts, done by Messages itself rather than by scripting its UI.
- Current. Tested on macOS 27. It fixes a macOS 26+ crash in BlueBubbles' helper when it replies or reacts while someone is typing.
How it compares
As of September 2026, from each project's code:
| imbridge | BlueBubbles Server | imsg | imcore-bridge | |
|---|---|---|---|---|
| What you run | a Python library, CLI and MCP server | an Electron app with a REST/WebSocket server | a Swift CLI with a JSON-RPC mode | a Node/Bun library |
| Send and receive text | ✓ | ✓ | ✓, even without disabling SIP | ✓ |
| Inline replies | ✓ | ✓ | ✓ | ✓ |
| Tapbacks you can send | classic, any emoji, stickers | classic | classic | classic, any emoji |
| Edit and unsend | ✓ | ✓ | ✓ | ✓ |
| Polls | create, vote, tally | ✗ | create, vote¹ | create, vote¹ |
| Send Later | Messages' own, checked | the server's own scheduler | ✗ | Messages' own |
| Stickers | send, stick on, tapback | ✗ | send, stick on | send |
| Bold, italics, text effects | ✓ | ✗ | bold, italics | ✓ |
| Send link previews | ✗ (coming) | ✗ | ✓ | ✗ |
| MCP server | ✓ | ✗ | ✗ | ✗ |
| Sends only to chats you allowed | ✓ | ✗ | ✗ | ✗ |
| Needs SIP disabled | yes | for Private API features | for its helper's features | yes |
| Latest release | 0.5.0, September 2026 | 1.9.9, May 2025 | 0.15.9, September 2026 | 0.2.3, September 2026 |
¹ Each vote carries only the newly chosen option, so voting for a second option replaces the first. imbridge sends your whole current choice under the poll's own session, the way Messages does.
If you only need plain text in and out and don't want to touch SIP, imsg does that well. imbridge is for when your agent needs the whole conversation from Python, and for keeping it to the people you chose.
How it works
localhost socket + token
your Python ───────────────────────────────▶ helper inside Messages.app ──▶ iMessage
▲ (calls IMCore directly)
│ read-only SQLite
└────────────── ~/Library/Messages/chat.db ◀── Messages
- Sending goes through a small helper library loaded into Messages. It calls IMCore, Apple's private Messages framework, so a reply or tapback is the same operation as tapping it in the app. The helper is BlueBubbles' Private API helper with a few patches, built from source.
- Receiving reads
chat.db, Messages' own database, read-only. Tapbacks, inline replies, attachments and group chats come through as structured fields.
Requirements
- An Apple Silicon Mac signed in to iMessage in Messages. Built for macOS 11.5 and later; tested on macOS 27.0.
- Python 3.10 or later.
- System Integrity Protection disabled, plus two related settings (below). macOS allows no other way to load a helper into Messages; BlueBubbles' Private API and imsg's helper have the same requirement.
Warning: disabling SIP lowers the security of the whole Mac, not just Messages. If you can, run imbridge on a Mac dedicated to it (an old Mac mini is ideal). While SIP is off, iPhone and iPad apps from the App Store won't open.
Setup
1. Let macOS load the helper (once):
- Shut down, then hold the power button until "Loading startup options" appears. Choose Options, then
Continue, and pick your user if asked. Then choose Utilities > Terminal, run
csrutil disable, and restart. - In Terminal:
sudo nvram boot-args="-arm64e_preview_abi" sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool true
- Restart again.
2. Give Full Disk Access to the app that runs your Python (Terminal, iTerm, VS Code, or your agent's app) under
System Settings > Privacy & Security > Full Disk Access. imbridge needs it to read chat.db.
3. Install and check:
pip install imbridge
imbridge doctor # checks every requirement, including that the helper matches your macOS version
imbridge start # loads the helper into Messages (restarting Messages, hidden) and waits until it answers
The first imbridge start may ask to let your terminal control Messages, because imbridge quits and relaunches it to
load the helper. Allow it. To run the latest code instead of a release, use
pip install git+https://github.com/christianblandford/imbridge. That builds the helper, so it needs the Xcode
Command Line Tools (xcode-select --install).
4. Decide where imbridge may send. Until you do, it only reads. If your Apple ID has more than one phone number
(two iPhones, say), also tell each program which number it is with IMBridge(address="+15550002222") or
IMBRIDGE_ADDRESS; see Which of your numbers it answers on. List the chats in
your code with IMBridge(allow=["+15551234567", "Family"]), or allow them once for every program on this Mac,
including the CLI:
imbridge chats # find the chat: a phone number, an email, a group's name, or its GUID
imbridge allow +15551234567 # asks you to confirm
imbridge allowed # what's allowed; `imbridge disallow <chat>` takes one back
Who imbridge may message
imbridge is built so that a bug in your code, or an agent getting creative, can't message people you didn't choose:
-
The allowlist. Messages, replies, tapbacks, typing indicators and read receipts only go to allowed chats; anything else raises
SendNotAllowedbefore Messages is touched. A chat can be allowed two ways, and both are deliberate:- In your code:
IMBridge(allow=["+15551234567", "Family"])takes phone numbers, emails, group names and chat GUIDs.start()checks that each one matches exactly one chat, so a typo fails immediately. Someone you have no conversation with yet has to be marked as new,NewContact("+15557654321"), so that check still catches a mistyped number. A running program can't add chats; there's noallow()to call from a loop. - For every program on the Mac:
imbridge allow <chat>asks for confirmation and refuses to run without a terminal, so an agent driving the CLI can't add chats itself. It takes someone new too, and says so when you have no conversation with them yet.
Allowing every chat takes a deliberate
allow=ANY_CHATin code, orimbridge allow --any. - In your code:
-
Chat handles.
chat.messages()yields only that chat's messages, andchat.reply()andchat.react()raiseWrongChatfor a message from any other chat. -
Rate limits. At most 10 messages and tapbacks a minute to one chat and 30 in total, counted across every imbridge process on the Mac, or it raises
RateLimited. You can change them withIMBridge(max_per_chat=..., max_total=...). -
Your own messages are left out of every stream unless you ask for them (
include_from_me=True), so a bot doesn't answer itself.
Which of your numbers it answers on
A Mac signed in to your Apple ID receives messages sent to every address on it. With two iPhones on one Apple ID, texts to your personal number and texts to your bot's number arrive in the same place, and even in the same chat when one person texts both. So tell each program which address it is:
async with IMBridge(address="+15550002222", allow=["+15551234567"]) as im: # or IMBRIDGE_ADDRESS=+15550002222
...
- It only sees messages sent to that address. Streams and history leave everything else out.
- It only sends from that address. Messages replies from whatever address a conversation is on, so imbridge
refuses (
WrongAddress) to send in a chat that's on another address. It also refuses to reply or react to a message that was sent to another address. - New conversations too. Messages starts a new iMessage conversation from the address chosen under Messages >
Settings > iMessage > "Start new conversations from", and a new SMS conversation through the iPhone that forwards
texts to this Mac. imbridge can't pick a different one, so it refuses (
WrongAddress) to start a conversation that would go out from another address. - Without an address, imbridge refuses to read or send (
AddressNotChosen) while this Mac has recent messages at more than one of your phone numbers. If a second number turns up while a program is running, the stream stops with the same error instead of passing that message on. Useaddress=ANY_ADDRESSto deliberately take every number.
imbridge doctor lists the numbers in use, every Message and chat has an address, and the CLI takes --address.
Python API
async with IMBridge(allow=["+15551234567"]) as im:
chat = im.chat("+15551234567") # or an email, a group's name, or a chat GUID
guid = await chat.send("hello", effect="confetti") # returns the new message's GUID
await chat.send(["Meeting ", Span("moved", bold=True), " to ", Span("3pm", effect="big")])
await chat.reply(guid, "replying inline") # a Message or a message GUID
await chat.react(guid, "love") # love, like, dislike, laugh, emphasize, question
await chat.react(guid, "🔥") # ...or any emoji
await chat.react(guid, "🔥", remove=True)
await chat.send_file("chart.png") # a photo, GIF, video or document
await chat.send_file("chart.png", reply_to=guid) # ...as an inline reply
await chat.send_sticker("party.png", on=guid) # a sticker, stuck onto a message (or on its own)
await chat.react_with_sticker(guid, "party.png") # a sticker as a tapback
await chat.send_location(37.3349, -122.0090, name="Apple Park") # a location pin
later = await chat.send_later("Happy birthday! 🎂", datetime(2026, 10, 3, 9, 0)) # Messages' Send Later
chat.scheduled() # what's waiting; chat.cancel_scheduled(later) takes it back
poll = await chat.send_poll(["Pizza", "Sushi"], question="Lunch?")
await chat.vote(poll, "Pizza") # keeps your other choices; chat.unvote(poll, "Pizza")
await chat.typing() # typing indicator on; chat.typing(False) turns it off
await chat.edit(guid, "fixed a typo") # your own messages: up to 5 edits, within 15 minutes
await chat.unsend(guid) # within 2 minutes
await chat.mark_read()
chat.history(50) # latest messages, oldest first
async for message in chat.messages(include_from_me=False):
...
async for message in chat.changes(): # messages as they're edited or unsent
...
async for message in chat.messages(include_events=True): # plus people added, removed or leaving, renames
if message.event or im.mentions_me(message): # in a group: answer only when @mentioned
...
await im.send("+15557654321", "hi") # allowed as NewContact("+15557654321"): starts a chat
im.chats(20) # recent chats, newest first; each has .can_send
im.message(guid) # one message, or None
im.poll(guid) # a poll's options, votes and question (from any of its messages)
await im.focus_status("+15551234567") # True if their Focus silences notifications; None if not shared
async for message in im.all_messages(): # every chat: be deliberate about who you answer
...
A group's name only works when no other chat shares it; otherwise imbridge refuses and lists the candidates' GUIDs
(imbridge chats shows which is which).
A chat has guid, name, is_group, participants (everyone but the address the program runs as),
last_message_at, address (which of your addresses it's on) and can_send. IMBridge also has send,
send_file, reply, react, edit, unsend, typing and mark_read that take a chat or message GUID directly;
the same allowlist and limits apply. iMessage keeps one tapback per person per message, so a new tapback replaces your
previous one.
Formatting. Besides a plain string, send() and reply() take a list of strings and Spans
(from imbridge import Span):
Span(text, bold=True, italic=True, underline=True, strikethrough=True), Span(text, effect="explode") for an
animated text effect (TEXT_EFFECTS: big, small, shake, nod, explode, ripple, bloom, jitter, somersault, squish,
stretch), or Span("Sam", mention="+15551234567") to @mention someone in the chat. An unknown effect or a mention of
someone outside the chat is refused before anything is sent (Messages would quietly send plain text). iOS 18 and
macOS 15 or later show formatting; older devices get the plain text. A new conversation starts with plain text.
Stickers. send_sticker(path, on=None, label=None) sends an image as a sticker, the way Messages sends the
stickers you make from photos: on its own, or stuck onto one of the chat's messages with on.
react_with_sticker(message, path) uses one as a tapback, which replaces your previous tapback on that message like
any other. A PNG or HEIC with a transparent background looks like one. Incoming stickers are attachments with is_sticker; one stuck onto a
message is a reaction of kind sticker, and one used as a tapback is kind sticker_tapback.
Location pins. A pin someone sends arrives with location set: the coordinates, the place's name and address
when it has them, and the Apple Maps link (Messages offloads old attachments, and a pin whose file is gone has no
location). send_location(latitude, longitude, name=None) sends a pin for the coordinates you give, as Messages
sends a place from Maps; imbridge never shares where the Mac is.
Send Later. send_later(text, at) schedules a message with Messages' own Send Later: it goes out at the start of
that minute (from a minute to 14 days ahead) even if your program, or Messages, isn't running then. The allowlist
and rate limits apply when it's scheduled, so disallowing the chat afterwards doesn't stop it: cancel it with
cancel_scheduled(). scheduled() lists what's waiting. imbridge refuses chats with yourself, where your own devices
get a scheduled message at once, and checks that Messages really held each message in the right chat
(SendLaterFailed if not).
Retrying safely. send(), reply() and send_file() take a guid you choose (a UUID, like
str(uuid.uuid4())). Record it before sending; after a timeout or a crash, im.message(guid) tells you whether the
message went out, and sending again with the same guid doesn't deliver it twice: Messages drops the duplicate.
Starting conversations. im.send() to a phone number or email you have no conversation with starts one, over
iMessage if they have it and SMS otherwise. They have to be allowed: IMBridge(allow=[NewContact("+15557654321")])
in code, or imbridge allow +15557654321. The number needs its country code; a local number is refused, so a missing
+1 can't reach a stranger. See which address it goes out from.
Files. send_file() sends photos, GIFs, videos and documents. Messages is sandboxed and can only read files inside
~/Library/Messages, so imbridge first copies the file to ~/Library/Messages/Attachments/imbridge/. That copy becomes
the attachment Messages keeps, like every other file in its Attachments folder.
Every Message has these fields:
| field | |
|---|---|
guid, rowid |
the message's ID, and its row in chat.db |
chat_guid, is_group, chat_name |
where it was sent |
sender, is_from_me |
the sender's phone number or email; None when you sent it |
text, date, service |
the text (decoded from attributedBody when needed), a UTC datetime, and iMessage/SMS/RCS |
reply_to |
the GUID of the message this is an inline reply to |
reaction |
set when the row is a tapback: kind (love…question, emoji, sticker_tapback, or sticker for one stuck on the bubble), emoji, removed, target_guid, target_part |
attachments |
each with a path on disk, mime_type, name and is_sticker |
edited_at, edit_count |
set once it's been edited; text is then the edited text |
unsent_at |
set once its sender took it back; text is then None |
scheduled_for |
for your own message waiting in Send Later: when it goes out |
location |
set when the message is a location pin: latitude, longitude, name, address and the Maps url |
mentions |
the phone numbers and emails it @mentions; im.mentions_me(message) checks for this program's address |
poll |
set when the message is a poll (or an update adding a choice to one): options (each with id and text), creator, session, update_of |
vote |
set when the message is a vote in a poll: poll_guid and options, the voter's whole current choice (empty when they took it back) |
event |
set when the row is a change to a group rather than a message (streams and history include these with include_events=True): kind (added, removed, left, renamed, photo_changed, photo_removed, other), person (who was added, removed or left; None is you), name (for renamed) and code. sender is who made the change. |
address |
which of your addresses it was sent to (or, for your own messages, sent from) |
Options. IMBridge(allow=..., address=..., max_per_chat=10, max_total=30) are covered above. inject=True loads the helper
into Messages whenever none answers; pass inject=False if something else manages Messages. poll_interval (default
0.5 seconds) sets how often streams check for new messages. Reading (streams, history, chats, message) only
touches chat.db, so it works without the helper.
Errors. SendNotAllowed means the chat isn't allowed. RateLimited means a limit was hit. EditLimit means
iMessage's own limits on editing or unsending have passed (kind says which). SendLaterFailed means Messages
didn't hold (or cancel) a Send Later message as asked. AddressNotChosen
means this Mac gets messages at several of your phone numbers and the program hasn't said which it is. WrongAddress
means a chat or message is on another of your addresses, or a new conversation would start from one. WrongChat
means a chat was handed another chat's message. ChatNotFound means no existing conversation matches, and it isn't
someone a conversation can be started with. HelperError means the
helper refused or failed; its subclasses are HelperNotConnected and HelperUnauthorized. FullDiskAccessError
means chat.db can't be read.
Edits and unsends. When someone edits a message, its row in chat.db changes rather than a new one being added, so
edits and unsends don't appear in the message streams. chat.changes() and im.changes() report them as they happen,
each with edited_at or unsent_at set, and im.message(guid) always reads the current text. On macOS 26 and later,
an unsend clears the text and marks the message only inside message_summary_info; imbridge reads both that and the
older date_retracted column.
Polls. A poll arrives as a message with poll set, and each vote as a message with vote set. im.poll(message)
(or chat.poll) puts them together: the current options, everyone's current choice (choices, with None for
you), counts(), voters(option), and the question. Messages never shows a poll's title; the question is the message
its creator sent right after it, which imbridge finds for you. Messages also sends a plain "Sent a poll" with every
poll for devices that can't show polls. It doesn't display that, and neither do imbridge's streams and history.
send_poll(options, question=...) sends a poll and then its question, like Messages; both count toward the rate
limits and are checked before either goes out. A vote carries your whole current choice, so vote(poll, "Pizza")
adds Pizza to what you picked before and unvote(poll, "Pizza") takes it back (unvote(poll) takes back
everything). Options can be given by text or id, and a vote that wouldn't change anything isn't sent. Polls need
iOS 26 or macOS 26 or later on the other end.
Effects: slam, loud, gentle, invisible_ink, echo, spotlight, balloons, confetti, love, lasers,
fireworks, celebration, shooting_star.
Environment variables: IMBRIDGE_ADDRESS is the default address (any for ANY_ADDRESS). IMBRIDGE_PORT sets the port the helper dials (default 45700 for the first user account on
the Mac, one higher for each further account). IMBRIDGE_HELPER loads a helper dylib other than the bundled one.
Command line
imbridge doctor # check this Mac's setup
imbridge start # load the helper into Messages
imbridge allow CHAT | --any # let imbridge send to a chat (asks you to confirm)
imbridge disallow CHAT | --any
imbridge allowed
imbridge send +15551234567 "hello" [--reply-to GUID] [--effect confetti] [--text-effect big]
imbridge send-file +15551234567 photo.jpg [--reply-to GUID]
imbridge send-sticker +15551234567 party.png [--on GUID] [--label "a party hat"]
imbridge react-sticker GUID party.png # a sticker as a tapback
imbridge send-location +15551234567 37.3349 -122.0090 [--name "Apple Park"]
imbridge send-later +15551234567 "Happy birthday!" --at "2026-10-03 09:00"
imbridge scheduled [--chat CHAT] [--json] # what's waiting in Send Later
imbridge cancel GUID # cancel a message waiting in Send Later
imbridge send-poll +15551234567 Pizza Sushi [--question "Lunch?"]
imbridge vote GUID Pizza [--remove] # the poll's GUID; keeps your other choices
imbridge reply GUID "inline reply"
imbridge react GUID 🔥 [--remove]
imbridge chats [-n 20] [--json]
imbridge history +15551234567 [-n 20] [--json]
imbridge poll GUID [--json] # a poll's question, options and votes
imbridge focus +15551234567 # whether they have notifications silenced
imbridge watch [--chat CHAT] [--json] [--from-me] [--events] # stream new messages; --json: one object per line
imbridge mcp [--address ADDRESS] # the MCP server, over stdio (pip install "imbridge[mcp]")
imbridge <command> --address +15550002222 # start, the sends, history, watch and mcp take it
send, send-file, send-poll, vote, reply and react print the new message's GUID. They follow the same allowlist and rate limits as the
library.
Using it with an AI agent
- As a library, inside your agent's loop, like the example at the top.
examples/ping_bot.py is a runnable
bot for one chat. For request/response code,
im.new_messages(since=rowid, wait=30)returns what arrived since a point, waiting up towaitseconds. - As an MCP server for Claude Code, Claude Desktop, Cursor and any other MCP client (below).
- From the shell, for any agent that can run commands: it reads new messages from
imbridge watch --chat CHAT --jsonand answers withimbridge reply GUID "..."orimbridge react GUID 👍.
Whichever way, allow the chats it may use beforehand (imbridge allow, in your own terminal). An agent can't allow
more on its own, and in a chat with yourself it won't see the received copies of what it just sent, so it never answers
itself.
MCP server
pip install "imbridge[mcp]" adds imbridge mcp, which serves these tools over stdio:
| tool | |
|---|---|
list_chats |
recent chats, and whether the agent may send in each (can_send) |
read_messages |
a chat's latest messages |
check_messages |
messages since the last check; wait_seconds waits for a reply |
read_poll |
a poll's question, options and votes |
focus_status |
whether someone has notifications silenced by a Focus |
send_message |
a new message, optionally with a bubble or text effect; or a new conversation with someone the user allowed |
reply |
an inline reply to a message |
react |
a tapback with any emoji or a classic |
send_poll, vote |
send a poll (and its question), or vote in one |
send_location |
send a location pin |
send_later, list_scheduled, cancel_scheduled |
Send Later: schedule a message, see what's waiting, cancel it |
edit_message, unsend_message |
change or take back a message it sent, within iMessage's limits |
show_typing |
the typing indicator |
whoami |
the address it answers on and the chats it may send to |
Sending goes through the same allowlist, address rules and rate limits as the library. A refused send tells the model the user has to allow the chat, rather than leaving it to hunt for a workaround.
Claude Code:
claude mcp add --scope user imessage -- imbridge mcp # --scope user: every project
claude mcp add --scope user imessage -- imbridge mcp --address +15550002222 # when your Apple ID has several numbers
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json) and Cursor
(~/.cursor/mcp.json) take the same entry. Apps started from the Dock don't get your shell's PATH, so use the full
path that which imbridge prints, then quit and reopen the app:
{
"mcpServers": {
"imessage": {
"command": "/full/path/to/imbridge",
"args": ["mcp", "--address", "+15550002222"]
}
}
}
The app that starts the server (Claude Desktop, Cursor, or the terminal Claude Code runs in) needs Full Disk Access to
read chat.db.
Limitations
- Apple Silicon only; the helper is built for arm64e.
- New conversations go out from the address Messages picks (see above), so a program on another address can't start them.
- New conversations are one-to-one. The helper can also create and manage groups, but the Python API doesn't wrap that yet.
- Messages restarts, hidden, whenever imbridge loads the helper, which closes its windows.
- Streams check
chat.dbevery half second (seepoll_interval), so new messages can take up to that long to arrive. - SMS goes through your iPhone, so Text Message Forwarding must be on.
- The helper uses private Apple APIs, which a macOS update can change.
imbridge doctorchecks them before loading the helper.
Troubleshooting
- Run
imbridge doctorfirst. Before anything is loaded, it checks SIP, the boot-arg, library validation, Full Disk Access, and that every private API the helper calls still exists on your macOS. That last check matters after macOS updates: a helper that calls something Apple removed would crash Messages on launch. SendNotAllowed: allow the chat in your code (IMBridge(allow=[...])), or withimbridge allowin your own terminal.- Helper logs:
log stream --predicate 'subsystem == "imbridge"' - Messages disappears when the helper loads. It restarts hidden; open it from the Dock as usual.
- The helper won't stay loaded. Quit BlueBubbles Server if it's installed: it relaunches Messages with its own helper.
AddressNotChosenorWrongAddress: see Which of your numbers it answers on.imbridge doctorlists the numbers in use.- Testing in a chat with yourself. Everything you send also comes back as received, and Messages replaces your own tapback rows with the ones that come back.
Security
- The helper can do anything Messages can, including send as you. It only takes requests from your Mac: imbridge
listens on
127.0.0.1/::1, and each request must carry a token that imbridge generates (stored in~/Library/Application Support/imbridge/token, readable only by you) and passes to Messages when it launches it. - Everything the other side can see is limited to allowed chats and rate-limited, as described above.
- The bigger trade-off is SIP; see the warning above. To report a vulnerability, see SECURITY.md.
How the helper is built
helper/UPSTREAM pins a commit of
BlueBubbles' helper, and helper/patches
applies imbridge's changes in order:
- Any-emoji tapbacks, per-part text styles, and a typing-indicator crash fix
- Skip chat items without
-index(the macOS 26+ crash when replying or reacting while someone is typing) - A build fix for current clang
- imbridge's transport: its own port, the token, line-delimited requests, and fast reconnects
helper/build.sh builds it with only the Xcode Command Line Tools. Released wheels include the built helper.
Development
git clone https://github.com/christianblandford/imbridge && cd imbridge
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]" # also builds the helper
.venv/bin/pytest && .venv/bin/ruff check .
Releases are cut by pushing a version tag; see RELEASING.md.
Credits and license
imbridge is licensed under Apache-2.0. Its helper is built from BlueBubbles' Private API helper, also Apache-2.0; imbridge's any-emoji tapbacks started as a patch to it. NOTICE lists the bundled third-party code.
imbridge is not affiliated with or endorsed by Apple. iMessage and Messages are trademarks of Apple Inc.
Release files for imbridge 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imbridge-0.5.0.tar.gz | 125.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imbridge-0.5.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
Total release size: 306.8 kB
Release files / imbridge-0.5.0.tar.gz
| Download URL | imbridge-0.5.0.tar.gz |
|---|---|
| Size | 125.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69b64ef0740e4b00a85512990b3ae2d5e19bc245932703d03b4abd6e5a7b4061
|
|
BLAKE2b-256 checksum How to use checksums |
d8fc00222a3e36672f4eb95aafe101ed1f25a83540f77b78005e5ce80226d43f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / imbridge-0.5.0-py3-none-macosx_11_0_arm64.whl
| Download URL | imbridge-0.5.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 181.0 kB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
60ac3184523f5275f5dd3bced5d824e557af66e10b4f4129a7953cdf5b21c629
|
|
BLAKE2b-256 checksum How to use checksums |
179d2c56816ed257a904f0b8ab59f35752174e9a7bf060562268a72f13aa8a87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log