By integrating Apple Shortcuts with Octoclip, you can automate the process of copying SMS verification codes (OTPs) and instantly sync them to your computer, tablet, or other devices for hands-free pasting.

IMPORTANT

This guide requires iOS 16.0 or later and the official Apple Shortcuts app pre-installed on your iPhone.


Prerequisites

Before starting, ensure that:

  1. Octoclip is installed on your iOS device and logged in.
  2. Nearby Sync or Cloud Sync is configured and active so that copied content can sync to other devices.
  3. You have enabled running untrusted shortcuts in your system settings if prompted.

1. Download the Shortcut

Download the pre-configured iCloud shortcut to your device:

1

Get Shortcut

Click the Quick Copy SMS Shortcut Link on your iOS device.

2

Safari Redirect

Safari will open the iCloud link. Tap Get Shortcut.

3

Open Shortcuts App

The system will redirect you to the official Shortcuts app. Tap the Set Up Shortcut or Add Shortcut button.

4

Grant Permissions

Grant any requested permissions for the shortcut to copy text and run.


2. Configure Automatic Extraction Trigger

Set up a background automation that runs whenever a new verification SMS arrives:

1

Open Automation Tab

Open the Shortcuts app on your iPhone and select the Automation tab at the bottom.

2

Create Automation

Tap the + (plus) icon in the top right to create a new automation.

3

Choose Message Trigger

Scroll down and choose Message as the trigger.

4

Set Message Parameters

Set the condition parameters:

  • Sender: Any Sender
  • Message Contains: Enter Verification (or common OTP keywords like Code, OTP, 验证码 depending on your typical message language).
  • Run: Select Run Immediately so it executes in the background without asking.
  • Notify When Run: Keep disabled to avoid duplicate notifications.
5

Tap Next

Tap Next.

6

Link Shortcut

In the search box, find and select the Quick Copy SMS shortcut you downloaded in Step 1.

7

Save and Finish

Tap Done to save the automation.


How to Verify Success

To confirm that your verification codes sync automatically:

  1. Request a verification SMS from any service (or have a friend text you a message containing the word "Verification").
  2. When the SMS arrives, the Shortcuts app will run in the background.
  3. Open your computer or target device and trigger a paste (⌘+V or Ctrl+V). The verification code digits should be pasted immediately.

Troubleshooting

Untrusted Shortcut Warnings

If iOS warns you that the shortcut cannot be opened because it is untrusted:

  1. Go to iPhone Settings > Shortcuts.
  2. Enable Allow Untrusted Shortcuts. (Note: If this option is grayed out, run any random default shortcut in the Shortcuts app first, then check settings again).

Automation Not Triggering

  • Verify that Run Immediately is checked in the automation options.
  • Make sure the text in the message matches the exact keyword you configured (e.g., Verification).

Still Not Solved?

If the SMS is not syncing to nearby devices, please file a support ticket in the community:

  • iOS Version:
  • Octoclip iOS Version:
  • Shortcut Trigger (Immediate/Ask):
  • Sync Method Used: Nearby Sync / Cloud Sync
  • Error message shown (if any):