Skip to Content
Sindre Sorhus
Back to Hyperduck

Updated

How to Run a Shortcut on Your Mac from iPhone

By Sindre Sorhus, who makes the Hyperduck app

With Hyperduck

  1. 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.
  2. On the Mac, make the shortcut in the Shortcuts app, like one named “Start Backup”.
  3. On the iPhone, open the Shortcuts app, make a new shortcut, and add the “Run Shortcut on Mac” action of Hyperduck.
  4. In the “Shortcut” field of the action, type the name of the Mac shortcut, exactly: “Start Backup”.
  5. 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

Download on the App Store

$5, one-time purchase for all platforms

Requires
macOS, iOS, or visionOS 26 or later
Family Sharing
Yes
Updated
October 2026
US App Store rating
4.9/5 (174 ratings)

More about Hyperduck

Without an app

The Shortcuts app on iPhone can run a command on the Mac over SSH:

  1. On the Mac, turn on “Remote Login” in “System Settings › General › Sharing”.
  2. On the iPhone, make a new shortcut, and add the “Run Script Over SSH” action.
  3. 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.
  4. 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.