← All posts

Guide

How to control your AI coding agent from your phone

How to control your AI coding agent from your phone

In 2026 there are four real ways to control a coding agent from your phone: Anthropic's native Remote Control (run claude remote-control or /rc and pair with claude.ai/code or the Claude mobile app — free, and since Claude Code v2.1.110 it can push notifications to your phone), SSH into tmux from a mobile client, a self-hosted web terminal, or a purpose-built remote layer like Backgrind's Live mode. If you only run Claude Code and can leave the terminal open, native Remote Control is the free default; the alternatives earn their keep when you also run other agents (Codex, Cursor, OpenCode), want sessions that survive a closed window, or want an end-to-end-encrypted link.

Here's the situation an AI coding agent puts you in that nothing before it did: you kick off a real task — "refactor the auth module, run the tests, open a PR" — and then there's nothing for you to do for ten minutes except wait. So you walk away. You make coffee, you take the dog out, you sit down to dinner. And somewhere in those ten minutes the agent finishes, or worse, stops and asks "can I run git push?" — and just sits there, blocked, until you're back at the keyboard.

The fix is to take the agent with you. Not the laptop — your phone. If you can watch the terminal stream live on your phone, type a follow-up, and tap "allow" on a prompt while you're nowhere near your desk, the dead time disappears. This guide covers what "remote control" actually has to do, the native and DIY ways to get there, where they fall short, and how to do it without putting your code on the open internet.

Desktop agent runs here claude / cursor Encrypted relay sees ciphertext only never your code Phone view stream type commands approve / deny
The agent keeps running on your desktop. A relay forwards the encrypted session to your phone, which can watch, type, and answer prompts — without the relay ever seeing your code in the clear.

Why you'd want to leave your desk mid-task

Agentic coding has a rhythm: a burst of describing what you want, then a long stretch where the agent works and you don't. That stretch is the whole point — it's the time the tool buys you back. But it's only yours if you can actually leave. If "leaving" means the agent silently blocks on the first prompt and you lose twenty minutes, you end up tethered to the desk anyway, watching a terminal do nothing. That's the exact babysitting problem in a different costume.

Phone control changes the math. The agent's long task overlaps with your life instead of pausing it. You check the stream from the couch, you fire the next task from the kitchen, you approve the push from the bus. The work continues; you just stop being the bottleneck.

What "remote control" actually has to do

It's tempting to think a screenshot or a "done" notification is enough. It isn't. A real remote setup has four jobs, and most DIY approaches only do one or two:

The native option: Claude Code Remote Control

If your agent is Claude Code, check the built-in path first. Anthropic shipped Remote Control in late February 2026: run claude remote-control (or /rc) in a session and it pairs with claude.ai/code and the Claude mobile apps, so you can watch, type, and approve from your phone while the agent keeps running on your machine — free, with code staying local. Since v2.1.110 it can also send a mobile push when a long task finishes or needs confirmation (enable "Push when Claude decides" in /config). Its limits are the flip side of its simplicity: it drives Claude Code only, the terminal has to stay open, and it's one remote session per instance — the full comparison is in Remote Control vs Live mode.

The DIY options, and where they break

You can absolutely rig this up yourself. People do. Each path gets you part of the way:

The pattern across all of these: the ones that let you actually type and approve are the ones that put a live shell on the network, and securing that is the hard part you inherit.

Doing it securely

This is the part worth slowing down on, because the failure mode is severe. A remotely reachable terminal is a remotely reachable terminal — if it's exposed and weakly authenticated, it's an open door to your whole machine. Three rules keep you safe:

Frequently asked questions

Can you control Claude Code from your phone?

Yes — natively. Run claude remote-control (or /rc) in a session and pair it with the Claude mobile app or claude.ai/code: you can watch the terminal, send prompts, and answer approval requests from your phone while the agent keeps running on your machine. It is free and your code stays local.

Does Claude Code send push notifications to your phone?

Yes, since Claude Code v2.1.110 (April 2026). With Remote Control connected and "Push when Claude decides" enabled in /config, Claude can send a mobile push when a long task finishes or needs confirmation. You need the Claude mobile app signed into the same account, with notifications allowed.

How do I control Codex, Cursor, or other agents from my phone?

Anthropic's Remote Control only drives Claude Code, so anything else needs a general mechanism: SSH from a mobile client into the tmux session the agent runs in, a self-hosted web terminal (with TLS and auth you maintain yourself), or Backgrind's Live mode, which mirrors any agent session — Claude Code, Codex, Cursor, OpenCode — to your phone's browser.

Is it safe to control a coding agent from your phone?

It is if the link follows three rules: no publicly open port (a desktop-initiated connection or a private network like Tailscale), end-to-end encryption so the relay only ever sees ciphertext, and an explicit short-lived pairing step instead of a long-lived password. A misconfigured self-hosted web terminal is the main way people get this wrong.

Does the remote session survive if the terminal closes?

With native Remote Control, no — it bridges a live local session, so the terminal has to stay open on the desktop. Backgrind runs agents under a background daemon, so sessions survive the window closing or the UI restarting, and your phone reconnects to the same live session.

Where Backgrind fits

Backgrind's Live mode is this guide, built in. The agent runs on your desktop in Backgrind's always-on-top overlay exactly as it normally would; Live mode mirrors that session to your phone or iPad through the browser. You watch the terminal stream in real time, send commands, switch between sessions, and answer "needs you" prompts — it's drive, not a read-only mirror.

The security model is the one above, by default. Pairing is desktop-initiated with a one-time code (scan a QR or paste it), the link is end-to-end encrypted with a per-pairing key, and the relay only ever forwards ciphertext — your code never sits readable on our server. There's no separate web account to create and nothing extra to trust.

Pair Live mode with several agents running at once and the whole loop comes together: tasks running in parallel on your machine, a chime when one needs a decision, and your phone as the remote that answers it. See it in the live demo.