Back to Hyperduck
Updated
How to Run a Shortcut on Your Mac from iPhone
By Sindre Sorhus, who makes the Hyperduck app
With Hyperduck
- Install Hyperduck on your iPhone and on your Mac. Both must use the same Apple Account with iCloud. Open it on the Mac, and keep it running.
- On the Mac, make the shortcut in the Shortcuts app, like one named “Start Backup”.
- On the iPhone, open the Shortcuts app, make a new shortcut, and add the “Run Shortcut on Mac” action of Hyperduck.
- In the “Shortcut” field of the action, type the name of the Mac shortcut, exactly: “Start Backup”.
- Run the iPhone shortcut. The shortcut runs on the Mac.
To give the Mac shortcut text as its input, expand the action, and fill in “Input”.
Tips
- By default, the Shortcuts app comes to the front on the Mac when the shortcut runs. To prevent this, turn on “Open Shortcuts URLs in the background” in the settings of Hyperduck on the Mac.
- If the Mac is offline, it gets the command the next time that it is online.
- Add the iPhone shortcut to the Home Screen, or say its name to Siri.
- One use is to shut down the Mac from the iPhone.
Get Hyperduck
Send links from your iOS and visionOS devices to your Mac
$5, one-time purchase for all platforms
- Requires
- macOS, iOS, or visionOS 26 or later
- Privacy
- No data collected
- Family Sharing
- Yes
- Updated
- October 2026
- US App Store rating
- 4.9/5 (174 ratings)
Without an app
The Shortcuts app on iPhone can run a command on the Mac over SSH:
- On the Mac, turn on “Remote Login” in “System Settings General Sharing”.
- On the iPhone, make a new shortcut, and add the “Run Script Over SSH” action.
- Enter the address of the Mac, your user name, and your password, and type the command
shortcuts run "Start Backup", with the name of the Mac shortcut. - Run the iPhone shortcut.
Apple: Run shortcuts from the command line
This needs no app, but it works only when the iPhone can reach the Mac, like on the same network. Hyperduck works from anywhere, with no setup of the network.
