Use Qwen Code from your iPhone
Qwen Code asks before it edits a file or runs a shell command — unless you told it not to. Either way, a long task needs someone to answer it. That someone can be away from the desk.
This guide is about the qwen CLI on your own Mac, with your own provider,
key or local model. ShiftStage calls no model and sends nothing to us: it drives the Qwen
Code you already have.
What Qwen Code asks, and when
Qwen Code's documentation describes five approval modes, cycled with Shift+Tab or set with
/approval-mode and tools.approvalMode in
.qwen/settings.json:
plan— read-only analysis, nothing to approve;default("Ask Permissions") — every file edit and shell command waits for you;auto-edit— edits go through, shell commands still wait;auto— a model-based classifier lets safe actions through and stops risky ones;yolo— nothing waits.
Its docs are not consistent about which mode a fresh install starts in, so check yours. The modes that ask are the ones worth leaving running while you are away — and the ones that stall without you.
The other ways first
Qwen Code has remote features of its own. The docs describe qwen serve, an
experimental daemon with a web UI (qwen serve --open) that listens on loopback
without authentication unless you require a token, and "Channels" that connect it to
messengers such as Telegram. If one of those fits how you work, it needs no other
software. A terminal over SSH and tmux works too, and costs nothing.
What the phone gets
- Approvals as buttons. When Qwen Code stops on an edit or a command, the question arrives as a notification with the command named and its risk; the options become buttons. The question is read from Qwen Code's screen, so it is marked as recognised approximately, and riskier ones open the session rather than being decided on the lock screen.
- The conversation as chat. ShiftStage reads Qwen Code's own conversation
record, the file it keeps for
/resume: your messages, its answers in Markdown, each tool call with its output, and every file edit as a card with a line-by-line diff. Menus with checkboxes — "[ ] 1." — become tappable options. - The real terminal underneath, one switch away, for anything the chat does not cover.
- The diff of the whole working tree: stage line by line, commit, push.
Move between Mac and phone
Qwen Code records which process owns which conversation, so ShiftStage can find the exact
one. Started qwen in Terminal or an IDE and need to leave? It shows under "In
Mac terminals" on the phone, and Continue here moves the conversation over
with its history (once you allow it in the agent's settings). Back at the Mac,
Continue in Terminal in the agent's window hands it back. See
moving a session — the same
works for Qwen Code.
On a local model
Qwen Code speaks to any OpenAI-compatible server: OPENAI_BASE_URL, or a
modelProviders entry in its settings pointing at Ollama or LM Studio. In our
run against llama-server with an 8B model it finished the task — slowly, which
is exactly when answering from the phone pays. More in
the local model guide.
Set it up once
- Install Qwen Code, if you have not — its README gives, among others:
npm install -g @qwen-code/qwen-code@latest - Install the agent on the Mac. A signed, notarised app from our open
Homebrew tap. It shares only the folders you name.
brew install --cask shiftstage/shiftstage/shiftstage-agent - Install the app on the iPhone from the App Store.
- Pair them. Scan the code on the Mac's screen and confirm the same symbols on both devices. No account. The first pairing needs both on the same network.
The agent finds qwen on your PATH. Start a session from the
phone with + — pick Qwen Code and a folder — or just type qwen
in the app's terminal. No VPN, no port forwarding: on the same Wi-Fi the phone talks to the
Mac directly; away from home, peer to peer or through a relay that forwards only end-to-end
encrypted bytes.
Keep the Mac awake
An agent on a sleeping Mac does nothing, and nothing can reach it — ShiftStage tells you the Mac is asleep instead of timing out. For a Mac that works while you are away, turn off system sleep:
sudo pmset -a sleep 0 disksleep 0
Get it
The Mac agent: download page — one Homebrew command or a notarised disk image. The iPhone app: App Store. Free forever for one Mac on your own network, no account; $7.99 a month or $69.99 a year to reach it from anywhere.
More guides: all guides.