Official Remote Control: Architecture & Data Flow
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 --- BridgeKey Data Flows
- Inbound: Client Input → Bridge → Local CLI → Tool/Model.
- Outbound: Model Token Stream → Local CLI → Bridge → Real-time rendering on Client.
- Permissions: Tool execution requests (Bash, Edit) are pushed to the client for approval.
- 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.