Use opencode from your iPhone
opencode does the work in your Mac's terminal. Leave it running, and keep reading and answering it from the phone — with the rest of the Mac one tap away.
This guide is about the opencode CLI on your own Mac, with your own providers
and config. ShiftStage calls no model and sends nothing to us: it drives the opencode you
already have.
What opencode asks, and when
opencode decides by rules in opencode.jsonc: each tool — reading, editing,
the shell, fetching from the web — is allow, ask or
deny, by pattern. Its documentation says the base policy allows almost
everything and asks before reading .env files; anything you set to
ask makes it stop and offer Allow once, Allow always or Reject. If you want it to
stop before shell commands or edits while you are away, that is where you say so.
The other ways first
opencode has its own remote path. Its docs describe a web UI served by the same server the
terminal UI uses, protected by a password, and opencode pair, which makes a
short-lived link or QR code for opencode's own app; opencode pair --remote
exposes the server through a tunnel, with a warning that it is then on the internet. If you
only use opencode and that suits you, it needs nothing else. SSH and tmux work as well.
ShiftStage is the choice when opencode is one of several agents, or when you want the diff, the files and the processes of the Mac next to the conversation.
What the phone gets
- The session as chat. ShiftStage reads the conversation opencode itself stores, read-only: your messages, its replies, each tool call with its output, every edit and created file as a card with a line-by-line diff. A turn you cancelled is marked as cancelled, not left hanging.
- Questions as buttons. A permission prompt arrives as a notification with what it wants to run and the risk named. When the model asks you to choose and prints the options as plain text, the chat still shows them as buttons, and your choice is typed back the way opencode expects.
- The real terminal under the chat, for keys and anything else.
- Git, files, processes: stage the diff line by line, commit, push; see the dev server opencode started and the port it holds.
Where the conversation lives is opencode's business, not a promised format: ShiftStage reads it as measured on opencode 1.x. If a release stores it in a way ShiftStage does not know, the session still runs, still asks, and shows the screen as text instead of inventing a chat.
Move between Mac and phone
opencode continues a session by its ID, so the conversation moves. One started in your own terminal appears under "In Mac terminals"; Continue here brings it to the phone with its history, once you allow that in the agent's settings. Back at the desk, Continue in Terminal on the Mac hands it back. Two opencode instances in one folder cannot be told apart, so then neither is offered. Details in moving a session.
On a local model
opencode works with Ollama, LM Studio and any OpenAI-compatible server; its docs say it finds
the first two on their default ports. In our runs it finished the test task against both
Ollama and llama-server with an 8B model. See
the local model guide.
Set it up once
- Install opencode, if you have not — its docs list, among others:
brew install anomalyco/tap/opencode-v2 - 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 opencode on your PATH; start it from the phone with
+ or type it in the app's terminal. 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.
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.