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 v2 — Provider-Agnostic Remote Control

The new bridge v2 runs a local WebSocket server with:

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.