Use Grok Build from your iPhone
Grok Build asks before it runs a command or edits a file, unless you switched that off. A long task stalls on the first question nobody answers. Answer it from your phone or your wrist.
This guide is about xAI's grok CLI — Grok Build — running on your own Mac with
your own xAI account or key. (Not the community grok-cli, which is a different
project.) ShiftStage calls no model and sends nothing to us: it drives the Grok Build you
already have.
What Grok Build asks, and when
Grok Build has three permission modes, set with permission_mode in
~/.grok/config.toml or switched in the session:
ask— commands and edits wait for you;auto— an Auto-review classifier lets routine calls through and asks you about the rest;always-approve(/always-approve) — nothing waits.
The first time it opens a folder it also asks whether you trust it. The modes that ask are the ones worth leaving running while you are away — and the ones that stall without you.
What the phone gets
- Approvals as buttons. When Grok Build stops on a command or an edit, the question arrives as a notification with the command named and its risk; its numbered options become buttons, and "tell Grok what to do instead" becomes a text field. Riskier questions open the session rather than being decided on the lock screen.
- The conversation as chat. ShiftStage reads the session record Grok Build
keeps under
~/.grok/sessions: your messages, its answers in Markdown, each tool call with its output, every file edit as a card with a line-by-line diff, and a refused command marked as stopped. Images you paste in go to the model as images. - Busy, done, cancelled. The session shows when Grok Build is working, and
the end of a turn arrives as a push. Stop from the phone cancels the turn without closing
grok. - Your commands. The / menu lists Grok Build's built-in commands and your own
from
.grok/commandsand.grok/skills. - The real terminal underneath, one switch away, and the diff of the whole working tree: stage line by line, commit, push.
Pick it up from the Mac
Started grok in Terminal and need to leave? It shows under "In Mac terminals" on
the phone — ShiftStage knows which process owns which session — and Continue
here moves the conversation over with its history (once you allow it in the agent's
settings). See moving a session.
On your own model
Grok Build talks to any OpenAI-compatible endpoint you add as a model in
config.toml (base_url, api_key). We run it that way
ourselves when we test it. More in
the local model guide.
Set it up once
- Install Grok Build, if you have not — xAI's installer:
curl -fsSL https://x.ai/cli/install.sh | bash - 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 grok on your PATH and in ~/.grok/bin.
Start a session from the phone with + — pick Grok Build and a folder — or just
type grok 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, see keeping the Mac awake.
Get it
The Mac agent: download page — one Homebrew command or a notarised disk image; Grok Build needs agent 1.2 or later. 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.