Run a local LLM coding agent and drive it from your iPhone
A model on your own Mac, an agentic CLI pointed at it, and the phone to answer it from anywhere. No cloud model in the loop, and the conversation stays between your devices.
ShiftStage works with the tool, not the model behind it. Claude Code, Codex, opencode and Qwen Code pointed at a local model server are the same sessions as with a cloud model: the conversation view, the tool's questions as buttons, a push when a turn ends. There is no special mode for local models, and none is needed.
The other ways first
If you want to chat with the model, not have it edit code, you need no agent at all: Open
WebUI or llama-server serve a chat page of their own, and ShiftStage opens such
a page on the phone under Machine → Local servers, like any development server on the Mac.
If you already reach the Mac over SSH and tmux, an agent on a local model runs there just
as well. What ShiftStage adds is the agent's questions as notifications, the diff, and no
VPN to set up.
The quickest way: Ollama
Install Ollama, download a model once, and start the tool through it — in the app's terminal, or in a terminal on the Mac:
ollama pull qwen3:8b
ollama launch claude --model qwen3:8b
ollama launch points the tool at the local model itself. ShiftStage looks
past the launcher, recognises the tool it started and lists it under Terminal & AI like
any other session — with its conversation, read from the tool's own record.
Pointing a tool at a server yourself
Each server answers at its own address on the Mac: Ollama at
http://localhost:11434, LM Studio at http://localhost:1234,
llama-server from llama.cpp at http://localhost:8080. Then:
- Codex —
codex --ossfor Ollama,codex --oss --local-provider lmstudiofor LM Studio. - Claude Code —
ANTHROPIC_BASE_URL=<address> ANTHROPIC_AUTH_TOKEN=local claude --model <model>. - Qwen Code —
OPENAI_BASE_URL=<address>/v1 OPENAI_API_KEY=local qwen -m <model>. - opencode — a provider of type
@ai-sdk/openai-compatiblewithbaseURLset to<address>/v1inopencode.json.
Gemini CLI talks only to Google's API and does not work with local models.
What we measured
On an M3 Pro with 18 GB, with qwen3:8b, we gave each tool the same small task —
create a file, then run ls. Through Ollama, Codex, opencode and Claude Code
finished it in a minute and a half or so; through llama-server, opencode,
Claude Code and Qwen Code did. The failures were the 8B model going in circles, not the
connection: the same tool succeeded against the other server. Slow, but it works — and an
agent that is slow is exactly the agent you want to leave alone and answer from the phone.
Choosing a model
The agent needs a model that can call tools — run commands, edit files — and a large context window: Ollama's own guide for Claude Code asks for 64k or more. Qwen3 and Qwen3 Coder handle tool calls; the 8B model fits into 16 GB of memory, the 30B Coder wants 32 GB or more. If a session goes in circles, a bigger model helps more than a different tool. Models that think out loud show only their answer in the conversation, not the reasoning.
What the phone gets
- The tool's questions as a notification with the command named and its risk; the options become buttons.
- The conversation — replies, commands and file edits — for Claude Code, Codex, opencode and Qwen Code, and the real terminal behind it.
- The diff of what the model wrote, staged line by line before it lands.
- The Mac's load: the process list shows what the model server costs.
With a local model nothing goes to a model provider, and ShiftStage sends nothing to us: the traffic between phone and Mac is end-to-end encrypted.
Set it up once
- 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.
On the same Wi-Fi the phone talks to the Mac directly; away from home the connection goes peer to peer, or through a relay that forwards only end-to-end encrypted bytes. A Mac that serves a model all day is worth a look at the Mac mini guide; for the tools themselves see opencode and Qwen Code.
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.