Cawide Team//Updated November 25, 2026

How to run Claude Code from your iPhone in 2026

Learn how to run Claude Code from your iPhone using Cawide, complete with terminal streaming, agent approval alerts, and git diffs.

The fastest way to run Claude Code from your iPhone is to execute the agent on your workstation and connect through a native mobile terminal with dedicated approval hooks.

Cawide pairs your iPhone with your macOS, Linux, or Windows computer over an encrypted QUIC tunnel. You get a real 120 Hz PTY terminal, prompt editing with touch-friendly controls, approval banners, push alerts with Cawide Pro, a single-column git diff viewer, and an in-app browser preview for your dev server.

What is the fastest way to run Claude Code on your iPhone?

To start running Claude Code from your phone today, you only need Node.js 18 or later on your computer and the Cawide app on your iPhone.

First, install the Cawide CLI globally on your workstation:

npm install -g cawide

Next, generate an encrypted pairing QR code:

cawide pair

Open the Cawide app on your iPhone (iOS 17 or later), sign in with a free Cawide account (Apple, Google, or email), scan the QR code, and open a terminal session. Launch Claude Code by typing claude in your project folder. No global hook setup is needed: Cawide uses an automatic POSIX launcher shim on macOS and Linux when you run claude inside a Cawide session. The agent begins running directly on your computer, using your local repository files, compilers, and environment variables.

Why do mobile SSH apps fail when running Claude Code?

Traditional SSH clients such as Prompt or Termius were designed for remote system administration, not interactive AI coding agents. When using conventional SSH on a phone, developers hit three major friction points:

  1. Fragile TCP connections: Traditional SSH runs over a single TCP connection. When your iPhone turns off its screen, enters low power mode, or switches from office Wi-Fi to 5G cellular, the underlying TCP connection breaks. The SSH client drops, and your terminal buffer freezes.
  2. Missing agent state awareness: Standard SSH terminals treat all text equally. An SSH app cannot distinguish between an agent compiling TypeScript files and an agent paused waiting for you to approve a dangerous bash command. If you look away, the agent sits idle for hours.
  3. Impossibly difficult mobile typing: AI prompts frequently require backticks, pipe characters, tildes, quotation marks, and control keys. On standard mobile keyboards, switching between punctuation layers and pressing Ctrl+C or Escape requires awkward multi-finger acrobatics.

Cawide replaces fragile TCP transport with QUIC peer-to-peer tunnels using iroh, provides native SwiftTerm emulation, and introduces a dedicated Smart Action Bar for one-tap modifier access.

How does Cawide handle tool approvals while you are away from the computer?

When Claude Code decides to edit a file, run a build script, or execute a terminal command, it pauses execution and waits for user confirmation.

Through Cawide's automatic POSIX launcher shim on macOS and Linux, the host CLI captures this lifecycle transition immediately without any global hook setup. Cawide updates the session status from working to waiting for input.

If you are currently looking at another terminal session, inspecting repository files, or reviewing a diff, Cawide displays an alert banner at the top of your screen:

  • The banner quotes the exact question or tool command Claude Code wants to execute.
  • A Switch button takes you straight to the active session.
  • You can tap an option such as Allow or Deny, or answer directly in the real terminal by tapping Enter (↵), Esc, or the arrow keys on the Smart Action Bar.

If you step away from your desk to grab coffee or take a walk, you do not have to leave your laptop screen open. With Cawide Pro, a push alert reaches your phone the moment Claude Code reaches a decision point, even when Cawide is closed (in-app Live Activities work on iOS 17.0+, and Push-to-Start Live Activities require iOS 17.2+).

Can you dictate prompts to Claude Code?

Yes. Tap the mic key in the Smart Action Bar to dictate your prompt instead of typing on a software keyboard. AI Prompting removes filler words, understands self-corrections, and pastes a clean prompt into the terminal in any mix of languages. Learn more on the Voice Prompting feature page.

How do you review git diffs and commit code from your phone?

Claude Code frequently generates multi-file diffs across dozens of project files. Reading standard terminal diffs on a narrow smartphone display is painful because lines wrap awkwardly and context markers get jumbled.

Cawide solves this with a native, single-column git diff viewer built specifically for iPhone screens:

  • Single-column layout: Deletions and additions are presented in a unified vertical stream optimized for vertical scrolling.
  • Stage and unstage files: Review modified files one by one and tap to stage or unstage changes directly from your phone.
  • Commit with message: Enter your commit message and commit staged changes without typing complex git syntax.
  • Comment to Agent: When an agent introduces a bug or misses an edge case, you can select the hunk and tap Comment to Agent. Cawide feeds your feedback directly back into the Claude Code prompt so the agent can self-correct.
  • Safe inspection: Viewing status or diffs inside Cawide never executes repository hooks, filters, custom pagers, or external diff binaries.

What happens when your phone switches from Wi-Fi to cellular networks?

One of the most frustrating aspects of mobile development is network switching. When you leave your apartment or step into an elevator, your iPhone transitions from Wi-Fi to cellular data.

Because Cawide uses QUIC connection migration:

  • Your session keeps running on your host machine without interruption.
  • When your IP address changes, the QUIC connection migrates cleanly without tearing down the cryptographic handshake.
  • If your phone enters a complete subway dead zone, the session continues executing on your computer. When connectivity returns, Cawide reconnects automatically, replaying missed scrollback or restoring a full terminal screen snapshot.

In benchmarks measured on Apple Silicon, loopback round trip latency is p50 2.75 ms and p99 14.35 ms (200 samples), with terminal throughput reaching 24 MB/s and full 256 KiB scrollback replay completing in 31 ms. Real-world latency adds your network round trip.

How do you preview localhost web apps started by Claude Code?

When Claude Code creates a new web component or starts a Next.js dev server, you need to verify the user interface on a real mobile viewport.

Instead of configuring third-party port forwarding tunnels or ngrok, you can browse any localhost port directly in the Cawide app, or run the Cawide CLI:

cawide open 3000

This routes traffic from http://localhost:3000 through your existing encrypted QUIC tunnel directly into Cawide's in-app browser.

You can inspect your web application on a real iOS device with built-in mobile developer tools:

  • Real-time console logs showing errors and warnings.
  • Network inspector tracking active API requests and response statuses.
  • DOM inspector for verifying elements and layout dimensions.

You can run Claude Code, review code changes, approve commands, and verify the resulting frontend without sitting at your desk.

Run coding agents from your pocket

Install the Cawide CLI on your computer and control your AI agents from your iPhone with a real terminal and instant approval alerts.