Skip to main content

Remote Control

You can take a Claude Code session started on your computer and continue it right from your phone or tablet. Code still executes on your local machine โ€” mobile acts purely as a "remote control" for that session.

How It Worksโ€‹

[Local PC]                    [Anthropic relay]              [Mobile/browser]
Claude Code โ”€โ”€HTTPSโ”€โ”€โ–ถ api.anthropic.com โ—€โ”€โ”€HTTPSโ”€โ”€ claude.ai/code
(runs code) (relays messages) (input/display)

Key points:

  • Local execution: Files, MCP servers, SSH keys, and project settings all stay on your computer
  • Outbound only: No inbound ports are opened (no VPN or port forwarding needed)
  • TLS encryption: All communication is protected over HTTPS/TLS
  • Auto-reconnect: The session survives your laptop sleeping and waking

How to Use Itโ€‹

Option 1: Start a New Sessionโ€‹

# Start a session dedicated to Remote Control
claude remote-control

# Give the session a name
claude remote-control --name "payments-module-refactor"
# Or as a positional argument
claude remote-control "payments-module-refactor"

The terminal displays a session URL and a QR code (toggle with the spacebar).

# Show verbose logs
claude remote-control --verbose

# Sandbox mode (filesystem/network isolation)
claude remote-control --sandbox

Option 2: Switch from an Existing Sessionโ€‹

If you're already using Claude Code:

> /remote-control
# Or the short form
> /rc
# Or the mobile-optimized version
> /mobile

Remote Control activates with your existing conversation history intact. /mobile displays a QR code for downloading the Claude mobile app.

Naming your session

Passing a name as an argument, like /rc payments-module-refactor, makes the session easier to find in the claude.ai/code session list. You can also name it ahead of time with /rename.

Option 3: Enable Automatically for All Sessionsโ€‹

> /config
# โ†’ "Enable Remote Control for all sessions" โ†’ true

Connecting from Mobileโ€‹

  1. Scan the QR code: Point your phone camera at the QR code in the terminal
  2. Open the URL directly: Open the displayed session URL in a browser
  3. Claude app: Check the session list at claude.ai/code or in the Claude mobile app (green dot = online)
Workspace Trust required

The first time you enable Remote Control, you may need to confirm Workspace Trust for that project directory. Only enable it on projects you trust.

Usage Scenariosโ€‹

Monitoring Long-Running Workโ€‹

# Kick off a big task from the terminal
claude remote-control
> Add error handling to every API endpoint and write tests

You can then step away and still check progress and give further instructions from your phone.

Dual-Device Workโ€‹

You can alternate input between the terminal and mobile. The conversation syncs in real time.

Using MCP Servers Remotelyโ€‹

Remote Control can access your local MCP servers. This is the key difference from web-based Claude Code (cloud VM):

Remote ControlClaude Code on the Web
Where code runsYour computerAnthropic cloud VM
Local MCP serversAvailableNot available
Local files/settingsAccessibleNot accessible
Parallel work1 per CLI instanceMultiple at once

Security Considerationsโ€‹

Safe by Designโ€‹

  • No inbound ports are opened, minimizing the network attack surface
  • Uses short-lived, scope-limited auth tokens (separate tokens for session, relay, and auth)
  • All traffic goes over TLS through the Anthropic API

What to Watch Forโ€‹

Session URL security

The session URL functions as a bearer token. Anyone who knows the URL can connect to the session, so:

  • Don't share the URL in Slack or messaging apps
  • Be careful not to expose the URL while screen sharing
  • Watch out for someone photographing the QR code over your shoulder

Limitationsโ€‹

LimitationDescription
One concurrent connectionOnly one remote connection per CLI instance
Terminal must stay openClosing the local terminal ends the session
Network timeoutThe session ends after ~10 minutes without network connectivity
Authenticationclaude.ai login required (API key auth not supported)

Plan Availabilityโ€‹

PlanStatus
ProAvailable
MaxAvailable
Team / EnterpriseAvailable (an admin must enable it in Admin Settings)
Handling network drops

Your session reconnects automatically if your laptop sleeps or the network drops briefly. After ~10 minutes without connectivity the session times out; running claude remote-control again starts a new session.