Bridge & Remote Control Architecture
Overview
The Bridge system connects your local terminal to Claude.ai web interface. It enables remote control - you can interact with your local codebase from anywhere via the web.
Plain text
┌─────────────────────────────────────────────────────────────────────────────┐
│ BRIDGE ARCHITECTURE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ LOCAL TERMINAL │ │ CLAUDE.AI │ │
│ │ │ │ (WEB) │ │
│ │ ┌────────────┐ │ WebSocket │ ┌────────────┐ │ │
│ │ │ Claude │◄─┼─────────────►┼─│ Web UI │ │ │
│ │ │ Code CLI │ │ │ │ │ │ │
│ │ └─────┬──────┘ │ │ └─────┬──────┘ │ │
│ │ │ │ │ │ │ │
│ │ ┌─────▼─────┐ │ │ ┌─────▼─────┐ │ │
│ │ │ Bridge │ │ REST API │ │ Bridge │ │ │
│ │ │ Core │◄──┼─────────────►├──┤ Server │ │ │
│ │ │ (local) │ │ │ │ (cloud) │ │ │
│ │ └───────────┘ │ │ └───────────┘ │ │
│ │ │ │ │ │
│ │ ┌───────────┐ │ │ │ │
│ │ │ Local │ │ │ │ │
│ │ │ Files │ │ │ │ │
│ │ └───────────┘ │ │ │ │
│ └──────────────────┘ └──────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ BRIDGE MODES │ │
│ │ │ │
│ │ FULL DUPLEX: Web UI ◄──► Local CLI (bidirectional) │ │
│ │ OUTBOUND ONLY: Local → Web (one-way streaming) │ │
│ │ VIEWER ONLY: Web → Local (read-only remote control) │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘