# Claude Code Remote Control: Drive Local Sessions Remotely

> Remote Control is not a cloud session. It is a window onto a Claude Code process running on your own machine, with your filesystem and MCP servers intact.

URL: https://www.matthewswong.com/en/blog/claude-code-remote-control-mobile-sessions/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-08-26
- Updated: 2026-08-26
- Category: AI

> **Key takeaway:** Claude Code Remote Control connects claude.ai or the Claude mobile app to a session running on your own machine. Execution and filesystem access stay local; your phone is only a window. The local process makes outbound HTTPS requests only and never opens an inbound port, but the transcript is stored on Anthropic servers to keep devices in sync.

I started a long migration on my laptop, closed the lid, and spent the next hour on a bus watching the same session tick through files on my phone — approving two permission prompts on the way. Nothing about that run had moved to the cloud. The laptop was still doing every byte of the work; the phone was a screen.

That distinction is the entire feature, and confusing it with Claude Code on the web leads to the wrong tool for the job in both directions. This post covers the three ways to start a Remote Control session, the flags that matter in server mode, the security model, the surprisingly long list of configurations that silently make it unavailable, and what actually works from a phone once you are connected.

## It is a window onto a local process, not a cloud session

When you start Remote Control, Claude keeps running locally the entire time. Your filesystem, your MCP servers, your tools and your project configuration all stay available, and typing an at-sign on your phone autocompletes file paths from your local project. Claude Code on the web is the opposite: it executes in cloud infrastructure, which is what you want for a repo you have not cloned, and useless for the work already open on your desk.

The consequence is that the local process is load-bearing. Close the terminal, quit the editor, or stop the process any other way and the session goes offline within seconds. To keep one alive on a remote machine after you disconnect from SSH, start it inside tmux or screen — this is the single most common way people lose a session they thought was durable.

## Three ways in, and only one of them serves more than one session

Server mode is the one worth learning properly. It keeps a process in your terminal waiting for connections, prints a session URL, and shows a QR code when you press the spacebar. It defaults to a capacity of 32 concurrent sessions, and the spawn mode decides whether those sessions fight over the same working directory or each get their own git worktree.

The other two modes serve exactly one remote session per process. Stopping a server with Ctrl+C does not archive its sessions — you have roughly four hours to bring them back from the same directory, after which you start fresh. Sessions started with the interactive flag or the slash command come back through the ordinary conversation resume path instead.

## Auto-connect, and the asymmetry that makes it safe

Remote Control only activates when you ask for it, unless auto-connect is on. You can toggle it in config, in Desktop settings, in the VS Code command menu, or with a settings key — and the settings key behaves differently depending on which file it lives in, deliberately.

> Auto-connect signs in with your own account, so a session it starts appears only in your own Claude apps and grants nobody else access. Each interactive process registers one remote session, so five terminal tabs produce five entries in the session list. If you want many sessions from one process, that is what server mode is for.

## The security model, stated plainly

Your local session makes outbound HTTPS requests only and never opens an inbound port on your machine. It registers with the Anthropic API and polls for work; when you connect from another device, the server routes messages between the web or mobile client and your local session over a streaming connection. All of it is TLS over the same transport as any other Claude Code session, using multiple short-lived credentials each scoped to one purpose and expiring independently.

Organisations on Team and Enterprise can go further with Trusted Devices, currently in beta and off until an Owner enables it. It ties Remote Control access to an enrolled device and a sign-in no more than eighteen hours old, refreshed with Face ID, Touch ID, Windows Hello or a passkey. The biometric check runs on the device through the operating system or browser, and Anthropic stores only the device's public key and basic metadata — never fingerprint or face data.

> While Remote Control is connected, the session transcript — your messages, Claude's responses and tool activity — is stored on Anthropic servers so the conversation stays in sync across devices and can survive a network drop. Execution and filesystem access stay on your machine, but the transcript leaving it is a real property to reason about. Organisations with Zero Data Retention requirements cannot enable Remote Control at all, and the disableRemoteControl setting removes the capability outright.

## The configurations that make it silently unavailable

This is where I lost an afternoon. Remote Control is not available on Bedrock, Google Cloud's Agent Platform or Microsoft Foundry, it needs subscription authentication rather than an API key, and it refuses if you point the base URL at anything other than the Anthropic API — including your own LLM gateway or proxy. Less obviously, four separate privacy environment variables each disable the feature-flag evaluation that availability depends on, so a session that has one of them set fails in a way that looks like a bug rather than a policy.

## What a phone can actually do

Once connected, a device shows the conversation as it happens, including compaction progress and the point where the conversation was compacted. You can attach photos and files, which Claude sees directly or downloads to your machine and passes as file references. Commands split into three groups, and knowing which is which saves a lot of typing into a phone that will not answer:

- Text-output commands work everywhere — compact, clear, context, usage, recap, reload-plugins and exit.
- Model, effort, fast, colour and rename work if you pass the value as an argument, because the phone has no picker or slider to open.
- Terminal-only commands such as plugin and resume never work remotely, argument or not.

## Choosing between Remote Control and Claude Code on the web

Both surfaces are the same claude.ai interface, which is exactly why people pick the wrong one. The only question that matters is where the session runs, and everything else follows from it.

| Question | Remote Control | Claude Code on the web |
| --- | --- | --- |
| Where does execution happen | Your machine | Cloud infrastructure |
| Local MCP servers and config | All available | Not available |
| Repo you have not cloned | No — it needs a local checkout | Yes, that is the point |
| Survives closing the laptop | No — the local process must stay up | Yes |

Use Remote Control when the work is already local and you want to keep steering it from somewhere else; use the web when you want to start something without any local setup at all. The rule I now follow is to start anything I might want to leave running inside tmux, because the one failure this feature cannot recover from is the terminal window I closed without thinking.

## Sources & further reading

- Claude Code docs — Continue local sessions from any device with Remote Control
- Claude Code docs — Claude Code on the web
- Claude Code docs — Settings reference (remoteControlAtStartup, disableRemoteControl)
- Claude Code docs — Environment variables
- Claude Code docs — Security
- Claude Code docs — Data usage
- Claude Code docs — Cross-session messaging
- Claude Code docs — Git worktrees

## Source links

- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/claude-code-on-the-web
- https://code.claude.com/docs/en/settings-reference
- https://code.claude.com/docs/en/env-vars
- https://code.claude.com/docs/en/security
- https://code.claude.com/docs/en/data-usage
- https://code.claude.com/docs/en/cross-session-messaging
- https://code.claude.com/docs/en/worktrees

## FAQ

### Does Claude Code Remote Control run my code in the cloud?

No. Remote Control connects claude.ai or the Claude mobile app to a session running on your own machine, and Claude keeps running locally the entire time. Your filesystem, MCP servers and project configuration all stay available. The transcript is stored on Anthropic servers to keep devices in sync, but execution and filesystem access never leave your machine.

### Why is Remote Control unavailable in my Claude Code session?

The most common causes are an API key instead of a subscription login, a provider other than the Anthropic API such as Bedrock or Microsoft Foundry, or ANTHROPIC_BASE_URL pointed at a gateway or proxy. Four privacy variables — DISABLE_TELEMETRY, DO_NOT_TRACK, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC and DISABLE_GROWTHBOOK — each disable the feature-flag evaluation it depends on.

### What happens to my Remote Control session if I close the terminal?

The session goes offline within seconds, because Remote Control runs as a local process. If you stopped a server-mode process you have roughly four hours to bring its sessions back from the same directory. To keep a session alive on a remote machine after disconnecting from SSH, start it inside tmux or screen.

### Can a repository turn Remote Control on for everyone who clones it?

No, and the asymmetry is deliberate. Claude Code honours remoteControlAtStartup set to false in project or local settings and turns auto-connect off for that repository, but it ignores a true from those files. Only your user settings or managed settings can turn auto-connect on.

### Which slash commands work from the Claude mobile app?

Text-output commands work everywhere — compact, clear, context, usage, recap, reload-plugins and exit. Model, effort, fast, color and rename work if you pass the value as an argument, since the phone has no picker to open. Terminal-only commands such as plugin and resume do not work remotely at all.

---

- HTML version: https://www.matthewswong.com/en/blog/claude-code-remote-control-mobile-sessions/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/claude-code-remote-control-mobile-sessions/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
