Ask Siri on your Mac
Say “Hey Siri, Ask Mobster” or “Hey Siri, give Mobster a task”. Siri asksWhat should Mobster do?. Say the task, and Siri shows the answer and says it.
Mobster for Mac has to be installed and signed in, with your iPhone set up. When it isn’t running, Siri and the Shortcuts app start it.
Get the answer back in a shortcut
- In the Shortcuts app, make a new shortcut.
- Search the actions for
Mobsterand add Ask Mobster. - Type the task in the action, or put a variable there, such as Provided Input from Ask for Input, or Shortcut Input.
- To choose the phone or send the result on, click the arrow on the action. Phone lists this Mac’s phones; leave it empty for your first one. Send to lists the connectors that send results, such as Zapier or a Slack channel.
- Add what happens with the answer, such as Show Result, Append to Note, Save File, Send Message or Send Email. Mobster Answer goes in as the answer’s text.
- Run it. The first time, Shortcuts asks
Allow "Dinner address" to run actions from "Mobster"?, with your shortcut’s name. Choose Allow.
What the action returns
Mobster Answer, with these details for the next step to use:Approvals and questions
When the task wants to send, buy, post or delete, it waits for you in Mobster on your Mac, and the shortcut waits with it. Choose Send or Don’t send there, and the shortcut gets the answer once the task ends. A question from Mobster waits the same way: answer it in Mobster. Nothing in the shortcut approves anything.- The action waits up to 15 minutes for the task to end.
- Mobster waits 10 minutes for an approval. Then the task ends without that step, and Status is
approval_timeout.
When the task can’t start
The shortcut stops with an error that says why:Run a workflow from a shortcut
Run Mobster Workflow runs one of your workflows and returns its result, the way Ask Mobster returns an answer.- Publish the workflow in Mobster and make it a tool:
asTool: trueon the workflow, the same setting that makes it an MCP tool (From MCP and the terminal). The action lists only those workflows, so your list stays short. - In the Shortcuts app, add Run Mobster Workflow and choose the workflow. Each one shows its inputs under its name, such as
who (text), count (a number, default 3). - In Values, give each input one line, like
who: Sam. A number is written as a number,trueorfalse(oryesorno) answers a yes-or-no input, and a list is its items between commas or a JSON list. A whole JSON object works too, such as{"who": "Sam", "count": 2}. An input with a default can be left out. - In Input, put text for the workflow’s steps to read, such as Shortcut Input or a note’s text. It reaches the workflow’s Shortcut trigger as
input: data for its steps, never their instructions. A workflow with no Shortcut trigger starts at its manual one with the same input.
- Answer is the workflow’s result as text.
- Data is the result as JSON when it’s an object or a list.
- Status is
completed, or how the run ended, such asapproval_denied. - Task ID is the run’s id.
Mobster couldn't run the workflow: … when the values don’t fit, and the line says why, such as Give “Answer DMs” a value for who (text), like who: ..., “Answer DMs” has no input called colour. It takes: who, count. or count is a number. Nothing runs then.
Run a shortcut from Terminal
shortcuts run runs a shortcut from Terminal or a script. End the shortcut with Stop and Output, set to Mobster Answer, and it prints the answer:
-i passes the task: shortcuts run "Phone task" -i "What's my battery level?". The first run asks to share the input with Mobster. Choose Always Allow.
Use the script
Raycast, Alfred and Siri on your iPhone call a small script that runsmobster chat --new --json with your words. It also runs a saved workflow by name, and works with mobster serve instead of the Mac app (mobster chat).
- Mobster for Mac is open with your iPhone set up, or
mobster serveis running. With neither, the script saysMobster isn't running on your Mac. Open it and try again.and starts nothing. - The script finds the
mobstercommand inside Mobster for Mac in/Applicationsor~/Applications, or on yourPATH. SetMOBSTER_BINto use another copy. - The scripts are in
~/Library/Scripts/Mobster:
mobster serve running and no model key set, it prints this (17 Oct 2026, Mobster 0.4.0; with MOBSTER_URL and MOBSTER_API_TOKEN_FILE set to the server’s address and token file):
The script always exits 0, because launchers show any other exit code as their own failure. It refuses empty text and text over 4,000 characters. Your words reach
mobster as one argument and are never run as a command. Each launch starts a new conversation, so a follow-up goes in Mobster.
With
mobster serve instead of the Mac app, approvals and questions wait for you in mobster chat on a terminal.
The script in a shortcut
- Open Shortcuts. In Shortcuts › Settings › Advanced, turn on Allow Running Scripts.
- Make a new shortcut.
-
Add Ask for Input. Set it to Text, with the prompt
What should Mobster do?. -
Add Run Shell Script. Set Shell to
zsh, Input to Provided Input, Pass Input to as arguments, and the script to: - Add Show Result, with Shell Script Result.
MOBSTER_WAIT=60 .
Run a saved workflow
The Run Mobster Workflow action needs no script (Run a workflow from a shortcut). With the script,--workflow runs one of your workflows by its name, with a value for each blank as NAME=VALUE. A blank you leave out takes its default.
NAME= for each blank that has no default. The button’s tooltip shows the line.
In a shortcut, use the same Run Shell Script step with a fixed name and a blank from Ask for Input:
Mobster couldn't start the task: No workflow is called …, with the names you have.
Get the answer back with the script
With--json first, mobster-task.sh waits until the task ends and prints one JSON object. Get Dictionary from Input turns it into a dictionary, so the rest of the shortcut can use the answer.
-
Make the shortcut as in The script in a shortcut, with this as the Run Shell Script step’s script:
- Add Get Dictionary from Input, with Shell Script Result.
-
Add Get Dictionary Value, set to get Value for
answer. That’s the whole answer, as text. - Add what happens with it, such as Append to Note, Save File, Send Message or Send Email.
--json goes before --workflow too: mobster-task.sh --json --workflow "Inbox check" folder=Inbox.
Approvals and questions wait for you in Mobster, as with the action. With --json the script waits up to 600 seconds, or MOBSTER_WAIT seconds. When that runs out first, the task goes on in Mobster and status says where it was.
The shortcut on your iPhone returns as soon as the task starts, because the task uses the phone’s screen. To get answers on your iPhone, send them to a Slack channel or another tool with a connector.
Siri and Shortcuts on your iPhone
The iPhone’s shortcut sends your words to the Mac over SSH, with a key that can only start Mobster tasks. Your Mac has to be awake and on the same network as the phone.1
Turn on Remote Login on the Mac
In System Settings › General › Sharing, turn on Remote Login and click its info button. Set Allow access for to Only these users, with only your account in the list. Leave Allow full disk access for remote users off.The same pane shows the
ssh command that logs in to this Mac. It holds your account name and your Mac’s address, which ends in .local, such as your-mac.local. The shortcut needs both.2
Make the shortcut on the iPhone
- In Settings › Apps › Shortcuts › Advanced, turn on Allow Running Scripts.
- In Shortcuts, make a new shortcut named Ask Mobster.
- Add Ask for Input, set to Text, with the prompt
What should Mobster do?. - Add Run Script Over SSH. Set Script to Provided Input, Host to your Mac’s address (
your-mac.local), Port to22, User to your Mac account name, and Authentication to SSH Key. - Tap SSH Key, then Share Public Key, and send it to your Mac with AirDrop or Notes.
- Add Show Result, with Shell Script Result.
3
Give the key one job on the Mac
Paste the phone’s public key in place of That adds one line to
ssh-ed25519 AAAA… and run:~/.ssh/authorized_keys:4
Ask
Say “Hey Siri, Ask Mobster”, then the task.
ssh-task.sh answers Started. Watch it in Mobster on your Mac. as soon as the task starts, without waiting for the answer: the iPhone is usually the phone the task drives, and a shortcut still on screen would get in its way. The answer and any approval are in Mobster on your Mac.What the key can do
- It can only start a Mobster task.
command=makes the Mac’s SSH server runssh-task.shwhatever the phone asks to run.restrictturns off the terminal, port, agent and X11 forwarding, and~/.ssh/rc. The key gets no shell, can’t copy files and can’t open tunnels. - The text is words, not a command.
ssh-task.shrefuses text with line breaks or other control characters, text that starts with-or/, shell syntax (`$(${;|&&<>), requests from scp, sftp, rsync and git, and anything over 4,000 characters. Everything else goes tomobster chatas one argument. - Approvals stay on the Mac. A task from the phone follows the same rules as one you type in Mobster: it stops and waits for you before it sends, buys, posts or deletes.
- Anyone who can use your iPhone can start tasks with this shortcut. They can’t approve them.
- Remote Login is SSH for your whole account, not only for this key. Your Mac’s password works over it too, from your network. Allow only your account, use a strong password, and turn Remote Login off when you stop using this.
sshd on localhost (OpenSSH 10.2, macOS 26.5): plain text reached mobster chat as one argument, and shell syntax, line breaks, a login with no command, a terminal, port forwarding, sftp and scp were refused. That test didn’t include an iPhone.
Turn it off
-
Remove the key. The phone’s key then opens nothing on your Mac:
- Turn off Remote Login in System Settings › General › Sharing, unless something else uses it.
- Delete the Ask Mobster shortcut on the iPhone.
Raycast
- In Raycast’s Settings › Extensions, click +, choose Add Script Directory, and pick
~/Library/Scripts/Mobster/raycast. TheLibraryfolder is hidden in the file dialog: press ⌘⇧G and paste the path. - Open Raycast, type
Ask Mobster, press Tab, type the task and press Enter. Raycast shows the line at the bottom of its window.
Alfred
Alfred’s workflows need the Powerpack.- In Alfred Preferences › Workflows, click +, choose Blank Workflow and name it Mobster.
-
Right-click the canvas and add Inputs › Keyword. Set the keyword to
mob, choose Argument Required, and set the title toAsk Mobster. -
Add Actions › Run Script. Set Language to
/bin/bash, choose with input as argv, and set the script to: -
Add Outputs › Post Notification, with the text
{query}. - Connect Keyword to Run Script, and Run Script to Post Notification.
-
In Alfred, type
mob What's my next calendar event?and press Enter.
{query} inside the script. Alfred pastes {query} into the script’s text, so your words would depend on its escaping options.
Nothing you say or type here approves a send, a purchase, a post or a delete: you approve those in Mobster.