Repository navigation
First public release of macoun-matrix, a Matrix to iMessage puppeting bridge for Linux. It is a fork of corten-matrix, built from that project's MPL-2.0 source archive of 2026-11-01, with registration data and anisette supplied by a relay on a Mac you own.
This is alpha software. Keep a backup of the bridge database and state directory.
What is in it, compared with the corten-matrix snapshot
- Validation data (NAC) and anisette come from pluggable HTTP providers. The default is
tools/macoun-relayon a Mac, reached over a private network with a bearer token and a pinned certificate. There is no public anisette fallback. - The bridge keeps working while the Mac is briefly away: early IDS re-registration, retry backoff capped at 30 minutes, and message flow while the CloudKit bootstrap retries.
- A relay outage and its recovery are reported as bridge states, so they show up as notices in the management room.
- Startup holds back only the chats that need the CloudKit pass. An encrypted index of the attachment zone and an incremental copy of the recycle bin make later starts a handful of CloudKit requests.
- The recycle bin is read in full before a local chat deletion is undone.
delete-portalanddelete-all-portalsrecord the deletion, so the room is not created again at the next start.- iMessage groups can be created and managed from Matrix:
new-group, rename, photo, add, remove, leave, including the room's own invite and remove. - An outbound send limiter with persisted, encrypted state. A refused send fails visibly in the room.
- Outbound text without a real link preview is sent as plain text.
disable_icloud_contactsconfig option.- A dockerized Linux amd64 build with fail-closed rustpush patches.
Installing
There are no binaries. The build links MPL-2.0, AGPL-3.0 and SSPL v1 code, which cannot be redistributed in binary form together; see NOTICE.md. Build it for your own account:
git clone --branch v0.1.0 https://github.com/312-dev/macoun-matrix.git
git clone https://github.com/OpenBubbles/rustpush.git
git -C rustpush checkout "$(cat macoun-matrix/third_party/rustpush-upstream.sha)"
git -C rustpush -c url.https://github.com/.insteadOf=git@github.com: \
submodule update --init --recursive
docker build -t macoun-build:local macoun-matrix/docker -f macoun-matrix/docker/Dockerfile.build
docker run --rm --memory 6g \
-e MACOUN_VERSION=0.1.0 -e MACOUN_COMMIT="$(git -C macoun-matrix rev-parse HEAD)" \
-v "$PWD/macoun-matrix:/src" -v "$PWD/rustpush:/rustpush:ro" \
macoun-build:local bash -c 'git config --global --add safe.directory "*"; scripts/macoun-build-linux.sh build'Then follow docs/setup.md. If you are moving an existing corten-matrix 1.3.x login across, read step 6 first.
Requirements
- Linux amd64 host with Docker, and a Matrix homeserver you control.
- A Mac that stays on, macOS 13 to 15 (not macOS 27), signed in to iCloud with the Apple ID you bridge.
- A private network between them.
Known limits
- Group management from Matrix is new and lightly tested.
- Carrier (SMS/MMS/RCS) groups cannot be managed from Matrix.
- Apple Silicon relays and macOS 26 are untested.
- Not affiliated with Apple Inc. or the Corten-Matrix Project. iMessage is a trademark of Apple Inc.