Knowledge Base
📝 Context Summary
Claude Code Remote Control: Mobile & Web Bridge
1. Overview
Claude Code Remote Control is a synchronization protocol that decouples the AI agent’s control interface from its execution environment. It allows developers to initiate complex tasks in a local terminal and maintain control via a mobile device or web browser, without migrating the workload to the cloud.
Unlike cloud-based IDEs, Remote Control ensures that local context—filesystem access, environment variables, and Model Context Protocol (MCP) servers—remains active and reachable on the host machine.
2. Architecture & Security
The system functions as a secure bridge between the local terminal and Anthropic’s interface.
2.1 Outbound-Only Polling
- No Inbound Ports: The local machine does not open inbound ports or expose itself to the public web.
- Polling Mechanism: The local
claudeprocess initiates an outbound HTTPS connection to Anthropic’s API to poll for instructions. - Data Flow: Only chat messages and tool outputs flow through the encrypted bridge. Files and MCP servers remain on the local machine; the mobile app acts merely as a “remote window” into the local session.
2.2 Session Persistence
The protocol includes automatic reconnection logic. If the host machine sleeps or the network drops, the session state is preserved. When the machine comes back online, the bridge re-establishes the connection automatically.
3. Setup and Usage
3.1 Requirements
- Plan: Claude Pro or Claude Max subscription.
- Version: Claude Code v2.1.52 or higher.
- Auth: Must be authenticated via
/login.
3.2 Commands
| Command | Function |
|---|---|
claude remote-control |
Initializes a new remote session and generates a QR code/URL. |
/rc |
Toggles Remote Control from within an active session. |
/config |
Can be used to set Enable Remote Control for all sessions to true. |
4. Strategic Utility
This feature represents a shift toward “Headless” Agent Management. It enables a “Fleet Commander” workflow where long-running, complex coding tasks (e.g., refactoring a codebase, running test suites) are initiated at a workstation but monitored and guided from a mobile device during the execution phase.
Sources
- [1][Claude Code Remote Control](/kb/claude-code-remote-control/)