Cawide Team//Updated November 28, 2026

How to run OpenCode from your iPhone in 2026

Run OpenCode from your iPhone with Cawide: launch with cawide agent opencode, answer questions in one tap, get push alerts and review git diffs.

The fastest way to run OpenCode from your iPhone is to execute the agent on your workstation and connect through Cawide with native lifecycle 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, one-tap question pills, push alerts with Cawide Pro, Voice Prompting, a single-column git diff viewer, and an in-app browser preview for your dev server.

What is the fastest way to run OpenCode on your iPhone?

To start running OpenCode from your phone today, you only need Node.js 18 or later on your computer and the Cawide app on your iPhone (iOS 17 or later).

First, install the Cawide CLI globally on your workstation:

npm install -g cawide

Next, install the OpenCode package if you have not already:

npm install -g opencode-ai

Generate an encrypted pairing QR code on your workstation:

cawide pair

Open the Cawide app on your iPhone, sign in with a free Cawide account (Apple, Google, or email), scan the QR code, and open a terminal session. Then start OpenCode in your project folder:

cawide agent opencode

You can also resume an existing OpenCode session by passing the -s flag:

cawide agent opencode -s

The agent runs directly on your computer, using your local repository files, compilers, and environment variables.

Do you need to run cawide setup opencode?

No. The command cawide setup opencode was removed because Cawide observes OpenCode through OpenCode's own server.

When you start the agent with cawide agent opencode (or resume with -s), the Cawide host CLI communicates directly with OpenCode's server to track status and capture prompt questions. You do not need any global hook installation or extra setup commands. On daemon start, Cawide automatically cleans legacy OpenCode hooks.

How do questions and approvals appear on your phone?

When OpenCode requests tool execution permissions, file edits, or user confirmation, Cawide captures the transition immediately. The session status switches from working to waiting for input. Cawide tracks four lifecycle states for OpenCode: idle, working, waiting for input, and done.

Cawide displays the prompt question with one-tap option pills (such as Allow, Deny, Allow once, or numbered choices) above the terminal. You can tap a pill to answer instantly, or respond directly in the real terminal using Enter (↵), Esc, or the arrow keys on the Smart Action Bar. Multi-select prompts are answered directly in the terminal.

If you are working in another 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 permission request OpenCode needs.
  • A Switch button takes you straight to the active session.
  • You can turn this banner on or off in Settings under "Alert when an agent needs approval".
  • A dedicated Stop button lets you interrupt a working agent at any time.

How do push alerts notify you when you step away?

With Cawide Pro, push notifications reach your iPhone the moment OpenCode needs approval, has a question, has a plan ready, finishes its task, or hits an error, even when the Cawide app is closed.

Each notification provides up to three option buttons and a Reply action so you can respond directly from your Lock Screen. On devices running iOS 17.0 or later, in-app Live Activities track agent progress. Push-to-Start Live Activities on the Lock Screen and in the Dynamic Island require iOS 17.2 or later, displaying Working, Waiting, Done, or Failed states with up to two action buttons.

All alert content is end-to-end encrypted: notification text is encrypted on your workstation and decrypted only on your iPhone. Cawide and Apple see only the agent, the alert type and opaque IDs. Push alerts require Cawide CLI 0.15.0 or later on your computer (cawide update).

Can you dictate prompts to OpenCode?

Yes. You can dictate prompts by tapping the mic key on the Smart Action Bar. Tap to talk (or hold), then tap ✓ to paste the cleaned prompt into the terminal, or ✕ to cancel.

The AI Prompting engine removes filler words, applies self-corrections (such as "wait, no"), and converts spoken lists into numbered lists while keeping every part in the language spoken without translation. You can pick up to 5 of 75 supported languages for automatic detection. Custom Vocabulary sends on-screen code terms with the audio to ensure technical accuracy. Audio is processed by a third-party speech service (named only in the Privacy policy); nothing is stored.

The Free plan includes 10 AI Prompting dictations per calendar month. Cawide Pro provides unlimited dictation. An optional auto-send toggle presses Return only for coding agents, never in a shell, a full-screen app, or a password prompt.

How do you review diffs and preview localhost dev servers?

OpenCode frequently modifies multiple files across a project. Cawide includes a native single-column git diff viewer built specifically for iPhone displays:

  • Single-column layout: Deletions and additions are presented in a unified vertical stream optimized for mobile scrolling.
  • Stage and unstage: Review modified files and tap to stage or unstage files, hunks, or selected lines.
  • Commit with message: Enter a commit message and commit staged changes directly from your phone.
  • Send lines to agent: Select specific lines in a diff and send them to any running agent for targeted feedback.
  • Safe inspection: Viewing status or diffs inside Cawide never executes repository hooks, filters, custom pagers, or external diff binaries.

When OpenCode runs your local web server, the in-app browser routes traffic through the encrypted QUIC tunnel directly to your machine. You can access any localhost port without configuring port forwarding or public tunnels. You can also run cawide open <port> on your computer as a shortcut. The in-app browser includes a built-in console log viewer, network inspector, and DOM inspector.

How much does it cost to use Cawide with OpenCode?

The core Cawide experience is free for self-hosted development:

  • Free ($0): Includes 1 computer, full 120 Hz PTY terminal streaming, one-tap approval pills, in-app approval banners, single-column git diff review, localhost web preview, and 10 AI Prompting dictations per month. Pairing your computer requires a free Cawide account (Apple, Google, or email). You can also try Demo Machine without an account.
  • Cawide Pro ($9.99/month or $69.99/year with a 14-day free trial): Adds unlimited computers, push alerts for approvals and task completions, Live Activities on the Lock Screen and Dynamic Island, and unlimited AI Prompting dictation.
  • Founding Lifetime ($99 once): Grants Pro forever for 100 slots (first 30 days at launch only, no free trial, excludes Cawide Cloud).

Subscriptions can be canceled at least 24 hours before the trial or renewal period ends in iPhone Settings › [your name] › Subscriptions.

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.