How to Use Claude Code on Your Phone | Run Remote Control on a Home Server

Created on:December 4, 2026 at 1:09 PMReading time: 8 min
thumbnail Image

When Claude Code is working on a long task and you step away from your PC, you can no longer check its progress or answer the questions Claude Code asks you. With Claude Code's "Remote Control", you can drive a Claude Code session running on a home server or PC from your phone while you are out.

I run my websites on a mini PC at home, keep Remote Control running on that server, and work in the same sessions from both my PC and my phone. This article explains how the two ways to use Claude Code on a phone differ, how to keep Remote Control running on a server, how to set up notifications, and how to restart after a disconnect.

What You'll Learn from This Article 

  • How the two ways to use Claude Code on a phone differ
  • How to keep Remote Control running on a home server
  • How to receive permission prompts and push notifications on your phone
  • How to restart after a disconnect and after updating Claude Code
  • How Remote Control communicates and what that means for security

You can follow the steps in this article with a paid Claude plan account, a server or PC with Claude Code installed, and the Claude app on your phone. You do not need to open any ports on your router. My setup is a mini PC running Ubuntu. The steps are the same on a Linux VPS.

Two ways to use Claude Code on a phone 

From the Claude app on your phone, you can use Claude Code in two ways: "Remote Control", which drives a session running on your own machine, and "cloud sessions", which run on cloud infrastructure managed by Anthropic. Based on the official documentation, the two compare as follows.


Remote Control

Cloud sessions

Where the session runs

Your own server or PC

Cloud infrastructure managed by Anthropic

What it works on

The files, tools and configuration on your machine, as they are

You select a repository and branch to start

Machine power

The machine has to stay on

The session continues with the machine off

I use Remote Control for two reasons. First, my work involves files, Docker containers and environment variable files on the server, and the contents of a repository are not enough to finish it. Second, I want to work in the same session from several PCs and my phone. Because the session runs on the server, I can switch devices, or turn a device off, and check the progress right away from another one.

What you need 

  • A Claude account on the Pro, Max, Ultra, Team or Enterprise plan
  • A server or PC with Claude Code installed and signed in with a claude.ai account
  • The Claude app on your phone (iOS or Android)
  • tmux on the server (to keep Remote Control running after you disconnect from SSH)

If you use Claude Code with an API key, Remote Control is not available. On the Team and Enterprise plans, an Owner must first enable Remote Control for the organization.

Step 1: Start Remote Control on the server 

To start Remote Control, run claude remote-control in the directory of the project you want to work on. Typing claude rc does the same thing.

bash
cd ~/projects/my-site
claude remote-control
  1. Connect to the server over SSH and move to the project directory
  2. Run claude remote-control
  3. The first time, Enable Remote Control? (y/n) appears. Enter y
  4. When a connection URL appears, Remote Control has started. Press the spacebar to show a QR code to scan with your phone

The official documentation calls the state started by this command "server mode". In server mode, one process can run several sessions at the same time, and you can also start new sessions from your phone or another PC. If you only want to drive a session that is already open from your phone, you can run /remote-control inside that session instead. With this method, each process supports only one session.

Choosing how sessions are created (--spawn) 

In server mode, the --spawn option sets where sessions started from your phone run.

Mode

Where sessions run

same-dir (default)

All sessions share the files in the directory where you started the server

worktree

Each session gets its own git worktree

session

Runs exactly one session and rejects additional connections

I use same-dir. I edit the files of the sites running on the server directly, so worktree, which gives each session a separate copy, does not fit how I work. With same-dir, edits can conflict when several sessions change the same files at the same time.

Step 2: Keep it running in tmux 

If you start Remote Control in a terminal connected over SSH, the process ends when you disconnect. The official documentation also says to start it inside tmux or screen on a remote machine. I start it inside a tmux session.

bash
tmux new -s claude-remote
cd ~/projects/my-site
claude remote-control --spawn=same-dir
  1. Run tmux new -s claude-remote to create a tmux session named claude-remote
  2. Inside tmux, move to the project directory and run claude remote-control
  3. Press Ctrl-b and then d to detach from the tmux session
  4. Run tmux ls, confirm that claude-remote is listed, and then disconnect from SSH

To return to the running Remote Control screen, run tmux attach -t claude-remote. Restarting the server also ends the tmux session, so after a restart you need to start it again with the same steps.

Step 3: Connect from the Claude app on your phone 

  1. Install the Claude app on your phone and sign in with the same account you use for Claude Code
  2. Tap "Code" in the app's navigation
  3. Select the session running on your server from the session list

According to the official documentation, Remote Control sessions appear in the list with a computer icon and a green status dot while the server is online. On a PC, open claude.ai/code in a browser to select a session from the same list.

When I am out without a PC, I start a new session from my phone and give it instructions. After I get home, I open the same session on my PC and keep working.

Receiving permission prompts and push notifications on your phone 

When Claude Code shows a permission prompt or a multiple-choice question, it also appears on the connected phone. The prompt stays open until you answer it, so answering from your phone while you are out lets the work on the server continue.

To notice when a prompt appears, turn on push notifications.

  1. On your phone, allow notifications from the Claude app
  2. Run /config in Claude Code
  3. Turn on "Push when Claude decides" and "Push when actions required"

"Push when Claude decides" sends a notification when Claude Code judges one is useful, such as when a long task finishes. "Push when actions required" sends a notification when a permission prompt or question appears. I use push notifications every day, and when one arrives while I am out, I answer from my phone.

If notifications do not arrive, the official documentation lists these three things to check.

  • If /config shows "No mobile registered", open the Claude app on your phone
  • On iOS, check that Focus modes and notification summaries are not suppressing notifications
  • On Android, exempt the Claude app from battery optimization

From the phone you can choose among four permission modes, "Manual", "Accept edits", "Plan" and "Auto". "Bypass permissions", which skips all permission prompts, cannot be selected from the phone.

Restarting after a disconnect and after updating Claude Code 

When the server sleeps or the network drops briefly, Remote Control reconnects automatically once the server is back online. You only need to restart it yourself in these cases.

Situation

How to restart

The network was unreachable for about 10 minutes and the process exited

Run claude remote-control in the same directory

The server was restarted

Create a tmux session and run claude remote-control

Claude Code was updated

Stop Remote Control and start it again

Running claude remote-control in the same directory restores the sessions that were running before it stopped. This works for about four hours after the server stops. After that, it starts a new session.

Updating Claude Code does not change a running Remote Control process, which keeps running on the version it started with. The official documentation says to stop Remote Control and start it again after an update. When you stop Remote Control with Ctrl+C, the running sessions stop responding on your phone. I go back to the tmux screen when no work is running, stop it, and start it again.

How Remote Control communicates and how secure it is 

The phone and the server do not connect directly. They exchange messages through Anthropic's servers. Remote Control works with only outbound HTTPS traffic from the server to the Anthropic API, so you do not need to open any ports on your router. It also works on a home server that is not exposed to the internet.

Diagram of a phone or PC and a home server exchanging messages over HTTPS through Anthropic's servers. Only outbound connections from the home server are used

All commands run and all files are read and written on your own server. On the other hand, while Remote Control is connected, the contents of the session (messages, Claude Code's responses and tool activity) are stored on Anthropic's servers.

Instructions sent from your phone run with the permissions of the user who started Claude Code on the server. Anyone who can sign in to your Claude account can drive the sessions on your server.

To limit which devices can do this, you can use "Trusted Devices". With it turned on, only enrolled devices can view and steer Remote Control sessions. Once your last sign-in is more than 18 hours old, you are asked to confirm with Face ID or a passkey. On the Pro, Max and Ultra plans, you can turn on "Require trusted devices" yourself in your Claude settings.

Summary 

Of the ways to use Claude Code on your phone, Remote Control fits when you want to work with the files and configuration on your server as they are. Keeping it running on the server lets you drive the same session from either your PC or your phone and answer permission prompts while you are out. Running Remote Control on a server and using it from your phone takes three steps.

  1. Run claude remote-control in the project directory on the server
  2. Start it inside a tmux session so it keeps running after you disconnect from SSH
  3. Select the server's session from "Code" in the Claude app on your phone

Restarting the server ends the tmux session, and after an update a running process stays on the old version of Claude Code, so in both cases you need to start Remote Control again.

Related articles and tools 

Running a Production Server with Claude Code | Managing 6 Sites on One Home Server | Ryusei.IO

How I manage six websites on a single home mini PC with Claude Code: how I split CLAUDE.md, make it ask before risky operations, restrict unattended runs, and put repeated procedures into skills.

faviconryusei.io

Latest Tips