Magic Switch: Share Apple Magic keyboard/track-pad/mouse between two Macs
Magic Switch is a free, open-source macOS app that lets users share Apple Magic input devices between two Macs without requiring the same Apple ID or USB re-pairing.
summary is enough Provides a neat open-source solution for a common Apple ecosystem annoyance, though the core concept can be grasped quickly from a summary.
summary
Apple's Magic peripherals are notoriously difficult to share between multiple Macs without logging into the same Apple ID or using Universal Control. To bypass this restriction, an open-source utility utilizes mDNS discovery and a securely encrypted TCP channel to command Macs to release or grab Bluetooth connections. The app handles edge cases like sleep, wake, and clamshell states to prevent device lockouts, backed by a polished menu-bar UI. Discussions highlight alternative multi-device tools like Deskflow, hardware KVM switches, and Thunderbolt docks, while praising the app for trackpad support.
key points
- Apple Magic devices require a manual USB re-pairing dance or a shared Apple ID to switch between computers, complicating multi-Mac setups.
- Magic Switch establishes a securely authenticated local channel between Macs using PBKDF2-HMAC-SHA256, HKDF, and ChaCha20-Poly1305 encryption.
- The app handles sleep, wake, and connection drops gracefully to prevent devices from becoming permanently stranded on inactive machines.
who should read it
Mac users juggling multiple computers across different accounts who want to share wireless Apple peripherals.
discussion positive
consensus
Participants appreciate the tool for enabling cross-account peripheral sharing, especially for the trackpad which alternatives like Deskflow often omit.
pushback
Some users note that corporate security policies prevent installing third-party networking tools, or question why built-in options aren't sufficient.
Very useful tool. I’m using this in combination with BetterDisplay to switch between my personal and work laptop.
I have both hooked up to 2 monitors. A shortcut triggers MagicSwitch to switch my keyboard and mouse to the other machine, while it uses BetterDisplay to send a DDC command to the monitors that makes it switch inputs.
Bound the whole thing to a key combo, and now I can easily switch between two machines.
It demonstrates how to combine Magic Switch with BetterDisplay to automate monitor input switching alongside peripheral handoffs using a single shortcut.
Generated by an LLM from the article and thread. Check the sources before relying on it.