Bridge Mode
Remote control Clew Code from anywhere via WebSocket bridge.
Overview
Bridge mode allows you to connect to a running Clew Code instance remotely. There are two systems:
- Bridge v1 (Legacy CCR) — The original Claude Code Remote system, tied to claude.ai OAuth
- Bridge v2 (Provider-Agnostic) — A standalone WebSocket server that works without claude.ai
Bridge v2 — Provider-Agnostic Remote Control
The new bridge v2 runs a local WebSocket server with:
- One-time auth tokens (SHA-256 hashed)
- Session management
- Optional NAT-traversal relay
- No dependency on any provider's backend
Commands
❯ /remote listen # start the WebSocket server
❯ /remote connect <url> # connect to a remote instance
❯ /remote token # generate a one-time auth token
Relay Mode
For NAT traversal, use the optional relay server:
bun run relay # start the relay server
Bridge v1 Commands
❯ /bridge # configure bridge mode
Note: Bridge v1 requires a claude.ai subscription.