Skip to content

Claude Code Remote Control ​

Everyday Keep a local Claude Code session running on your machine and steer it from your phone, tablet, or any browser via claude.ai/code.

Source of truth ​

Docs: code.claude.com/docs/en/remote-control
CLI reference: cli-reference

Research preview

Available on all plans. On Team and Enterprise it is off until an Owner enables the Remote Control toggle in Claude Code admin settings.

Why use it here ​

The rest of this section moves ports (Dev Tunnels) or networks (Tailscale). Remote Control moves the session — same job as T3 Code, but first-party and routed through the Anthropic API instead of your own network.

Where Claude runsTransport
Remote ControlYour machineAnthropic API relay (outbound HTTPS only)
T3 CodeYour machineYour own network / tailnet
Claude Code on the webAnthropic cloud—

Your filesystem, MCP servers, tools, and project config stay local — @ still autocompletes paths from your project. Terminal, browser, and phone stay in sync, so you can send messages from any of them interchangeably.

Requirements ​

  • Subscription — Pro, Max, Team, or Enterprise. API keys are not supported.
  • Login — /login through claude.ai. A claude setup-token / CLAUDE_CODE_OAUTH_TOKEN token is model-requests-only and will be rejected.
  • Direct API — not available on Bedrock, Google Cloud Agent Platform, or Microsoft Foundry, and disabled when ANTHROPIC_BASE_URL points anywhere other than api.anthropic.com (LLM gateway, proxy).
  • Feature flags reachable — DISABLE_TELEMETRY, DO_NOT_TRACK, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, and DISABLE_GROWTHBOOK each disable the evaluation Remote Control depends on. Unset them in your shell and in the env block of settings.json.
  • Workspace trust — run claude in the project once to accept the trust dialog. Start from a project directory, never your home directory.

Start a session ​

Three CLI shapes, plus VS Code.

Server mode ​

bash
claude remote-control

Stays running, waits for connections, prints a session URL. Press spacebar for a QR code. This is the only mode that serves multiple concurrent sessions from one process.

FlagDescription
--name "My Project"Session title in the list at claude.ai/code
--remote-control-session-name-prefix <prefix>Prefix for auto-generated names (default: hostname)
-c / --continueResume most recent session from this directory (v2.1.200+)
--session-id <id>Resume a specific session by ID (v2.1.200+)
--spawn <mode>same-dir (default), worktree (one git worktree each), session (exactly one)
--capacity <N>Max concurrent sessions, default 32
--[no-]create-session-in-dirPre-create one session in the current directory so you can type immediately. On by default; in worktree mode this one stays in the current directory while on-demand sessions get their own worktrees
--sandbox / --no-sandboxFilesystem + network isolation (off by default)
--verboseDetailed connection and session logs

Press w at runtime to toggle same-dir ↔ worktree.

Interactive session ​

bash
claude --remote-control            # or --rc
claude --remote-control "My Project"

Full terminal session you can also drive remotely — you keep typing locally.

From a session already running ​

text
/remote-control            # or /rc
/remote-control My Project

Carries your current conversation history over. --verbose and --sandbox aren't available on this form.

VS Code ​

Type /remote-control or /rc in the prompt box. A banner shows connection status; click claude.ai/code in it to jump to the session. Run /remote-control again to disconnect. No name argument, no QR code.

Connect from another device ​

  • Open the session URL in any browser.
  • Scan the QR code to open in the Claude app (spacebar toggles it in server mode).
  • Browse the list at claude.ai/code, or tap Code in the mobile app. Remote Control sessions show a computer icon with a green dot when online.

No Claude app yet? Run /mobile for a download QR code.

/rc active sits in the terminal footer while connected — select it with ↓ and Enter for the session URL and QR panel.

Auto-connect every session ​

Remote Control only activates when you ask for it, unless you turn on auto-connect: /config → Enable Remote Control for all sessions, or set remoteControlAtStartup: true in ~/.claude/settings.json.

Project and local settings can force it off (false) but are ignored when set to true — a checked-in file can't switch Remote Control on for everyone who clones the repo.

Push notifications ​

With Remote Control active, Claude can push to your phone when a long task finishes or it needs a decision. You can also ask in-prompt: notify me when the tests finish.

/config → Push when Claude decides and/or Push when actions required. Pushes are skipped while you're typing in the connected terminal.

Security ​

Outbound HTTPS only — no inbound ports are opened on your machine. Traffic goes over TLS through the Anthropic API using short-lived, single-purpose credentials.

Transcript is stored server-side

While connected, the transcript — your messages, Claude's responses, and tool activity — is stored on Anthropic servers to sync devices and survive reconnects. Execution and filesystem access stay local. Organizations with Zero Data Retention can't enable Remote Control. Kill it entirely with the disableRemoteControl setting.

Trusted Devices (beta, Team/Enterprise) additionally requires an enrolled device plus a sign-in under 18 hours old, refreshed with Face ID / Touch ID / Windows Hello / passkey. Members manage their own at claude.ai/settings/account.

Limitations ​

  • One remote session per interactive process — use server mode for several.
  • The local process must survive. Close the terminal or quit VS Code and the session ends. Over SSH, start it inside tmux or screen.
  • ~10 minutes offline while the machine is awake times the session out; run claude remote-control again.
  • Some commands are local-only — /plugin and /resume never work remotely. /model, /effort, /fast, /color, /rename, and /autocompact work but need the value as an argument (/model sonnet, /effort high).

Troubleshooting ​

MessageFix
"requires a claude.ai subscription"claude auth login; unset ANTHROPIC_API_KEY first
"requires a full-scope login token"You're on a setup-token / CLAUDE_CODE_OAUTH_TOKEN; claude auth login instead
"not yet enabled for your account"Rollout gate or stale entitlements — claude auth logout then login; claude doctor for detail
"requires feature-flag evaluation"Unset the telemetry variable named in the message
"only available when using Claude via api.anthropic.com"Unset CLAUDE_CODE_USE_BEDROCK / CLAUDE_CODE_USE_VERTEX / ANTHROPIC_BASE_URL
"disabled by your organization's policy"Either managed disableRemoteControl, or an Owner hasn't flipped the org toggle
"Remote credentials fetch failed"Re-run with --verbose; check login, then firewall/proxy on 443