Coding on iPhone

An iPhone is enough to direct a coding agent, because directing is mostly reading and typing short instructions. The agent runs on an always-on EnvHaven workspace, and the phone opens it in Safari.

Updated November 23, 2026

Agents changed what a phone is good for. Writing code on a five-inch screen was never pleasant; telling an agent what to change, reading its diff and opening the result is. The phone’s job is to be a good window onto an agent running elsewhere, and an EnvHaven workspace is that elsewhere: a Linux machine of its own that never sleeps.

On a workspace

  1. Open your workspace in Safari from the EnvHaven dashboard.
  2. Tap Launch at the top left and choose an agent. The first time, tap Sign in: for Claude Code that means approving the workspace on claude.ai and entering the short code the page shows, so your Claude plan works with no API key.
  3. Give it a task; most agents start without approval prompts, because the workspace itself is the sandbox.
  4. Lock the phone. The agent keeps working on the workspace.

Once signed in, an agent gets a green dot in the Launch menu and an icon in the top bar, so the next start is one tap. The sign-in is saved on the workspace, which means your laptop is signed in too.

What makes a phone workable

  • Keys the touch keyboard lacks. Agents expect Esc to interrupt, Tab to complete, Ctrl combinations and arrow keys. The workspace terminal adds a key bar with esc, ctrl, alt, tab and the arrows above the iOS keyboard.
  • A session that does not care when the phone locks. The agent runs on the workspace, so locking the phone or switching apps changes nothing.
  • Seeing the result. The app the agent builds is live at the workspace’s preview address; open it in another tab and check it on the device it is for.

Other ways in

  • An SSH app, same session. Termius and Blink connect to the workspace over SSH and land in the same tmux session the browser shows (how). First add your public key, or import it from GitHub, under Remote Access in the workspace’s EnvHaven sidebar.
  • The vendor’s app. In the Claude app, the Code tab drives cloud sessions and Claude Code sessions on your own computer through Remote Control. The ChatGPT app reaches Codex tasks. Each works with its own vendor’s agent.
  • A server you manage yourself. The same SSH apps connect to any server where the agent runs in tmux, once you have installed and set up what a workspace arrives with.

Start a task on your laptop, leave, and pick up the same session on the phone. That is the whole trick, and it only needs the session to live somewhere that never sleeps.