# How to approve Claude Code and Codex from your iPhone

> Learn how to approve Claude Code and Codex actions from your iPhone: in-app banners on Free and closed app push notifications with Cawide Pro.

Source: https://cawide.dev/blog/approve-coding-agent-from-phone

When running autonomous AI coding agents like [Claude Code](https://cawide.dev/agents/claude-code) or [Codex](https://cawide.dev/agents/codex), the agent periodically pauses at decision boundaries to ask for confirmation before editing files, executing terminal commands, or invoking external tools. With Cawide, you can supervise and approve these requests directly from your iPhone without staying at your desk.

## Quick workflow: approving agent prompts on mobile

1. **Launch your agent**: Start Claude Code (`claude`) or Codex (`cawide agent codex`) inside a Cawide session on your computer.
2. **Receive the alert**:
   - **In-app (Free)**: When working in another session on your iPhone, an alert banner with a **Switch** button appears across active sessions to highlight the prompt.
   - **When closed (Pro)**: In Cawide Settings, turn on Push alerts to receive notifications and Lock Screen Live Activities even when Cawide is closed.
3. **Review and respond**: Tap **Switch** on the banner or open the notification to jump into the waiting session. Tap an option pill (**Allow** or **Deny**), press **Enter (↵)** on the Smart Action Bar, or type custom instructions into the real terminal.

## How Cawide captures agent decision boundaries

Instead of requiring manual hook scripts or fragile terminal scraping, Cawide uses dedicated integrations:

- **Claude Code**: On macOS and Linux, the Cawide daemon automatically installs a POSIX launcher shim in `<config_dir>/bin/claude` that passes per-launch `--settings` with all 15 hook events without modifying `~/.claude/settings.json`. On Windows, `claude.cmd` uses process probing.
- **Codex**: Observed via its own server and launched with `cawide agent codex` for live mobile status (`cawide setup codex` was removed).
- **OMP and OpenCode**: OMP connects via an extension (`cawide setup omp` or automatically on daemon start if `~/.omp/agent` exists), while OpenCode is launched with `cawide agent opencode`.

When an agent enters the waiting-for-input state, the daemon immediately updates the session status from `working` to `waiting for input` and relays the prompt over an encrypted QUIC tunnel to your phone.

## In-app Free banners vs closed app push on Pro

Cawide separates notification delivery into two distinct tiers:

### In-app banners on the Free plan

When Cawide is active on your iPhone:

- If you are working in another session, an alert banner with a **Switch** button appears across active sessions to highlight the waiting prompt.
- The banner displays the agent name, the prompt or tool command, and a **Switch** button.
- Tapping **Switch** immediately jumps to the waiting session in one tap.
- In-app banners are included on every plan, including the Free plan (which supports 1 paired computer), without any paid subscription.

### Closed app push alerts on Cawide Pro

When you lock your phone, step away from your workstation, or switch to other apps, [Cawide Pro](https://cawide.dev/docs/plans) delivers native notifications:

- **Needs approval**: Alerts you the moment an agent pauses and requests confirmation.
- **Finished**: Notifies you when an agent finishes its task.
- **Stopped**: Notifies you if an agent terminates unexpectedly or encounters an error.
- **Live Activities**: Displays live status on the Lock Screen and Dynamic Island (iOS 17.0 or later for in-app Live Activities; iOS 17.2 or later for Push-to-Start Live Activities).
- **Enabling alerts**: In Cawide Settings on your iPhone, turn on Push alerts to get notified with Live Activities on the Lock Screen when an agent needs approval, finishes or stops, even when Cawide is closed.
- **CLI requirement**: Push alerts require Cawide CLI 0.15.0 or later on your computer (`cawide update`).

## End-to-end encrypted notification privacy

Notification content is end-to-end encrypted using ChaCha20-Poly1305 on your computer and decrypted only on your iPhone. Cawide servers and the Apple Push Notification service (APNs) see only the agent name, the alert category, and opaque identifiers.

## Responding in the genuine terminal

Cawide never relies on superficial confirmation dialogs or simulated inputs. When you switch to a waiting session, you interact directly with the real PTY terminal running on your computer:

- Tap pre-rendered option pills such as **Allow** or **Deny** shown above the terminal.
- Tap **Enter (↵)** on the Smart Action Bar to confirm default options.
- Tap **Esc** to cancel an operation or dismiss an autocomplete prompt.
- Use the arrow keys (**←, ↑, ↓, →**) on the Smart Action Bar to navigate interactive CLI menus.
- Type custom feedback or modify commands using the keyboard with genuine terminal fidelity.

