Official Remote Control: Architecture & Data Flow

⏱ Est. reading time: 3 min Updated on 5/7/2026

Understanding the architecture helps in troubleshooting and evaluating security.

Component Topology

flowchart TB
    subgraph LocalMachine[Local Machine]
      CLI[Claude Code CLI]
      WS[WebSocket Client]
      CLI --- WS
    end
    subgraph Anthropic[Anthropic Backend]
      Bridge[Remote Control Bridge]
      Auth[OAuth / JWT]
      Push[Push Service]
    end
    subgraph Clients[Remote Clients]
      Web[claude.ai/code Web]
      App[iOS / Android App]
    end
    WS <-->|WebSocket + Polling| Bridge
    Bridge --- Auth
    Bridge --> Push
    Web --- Bridge
    App --- Bridge

Key Data Flows

  1. Inbound: Client Input → Bridge → Local CLI → Tool/Model.
  2. Outbound: Model Token Stream → Local CLI → Bridge → Real-time rendering on Client.
  3. Permissions: Tool execution requests (Bash, Edit) are pushed to the client for approval.
  4. State: Files, Git, and Shell remain strictly local. Only transcripts are mirrored to the cloud.

Note: v2.1.69 optimized the polling frequency from 1-2 seconds to once every 10 minutes when stable, reducing server load by 300x.