Skip to content

Host Bridge

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

Host Bridge (redstart-bridge)

redstart-bridge is a lightweight Axum + Tokio daemon that supervises a persistent stdio ACP agent process and exposes it over WebSocket.

Endpoints

Path Description
/, /ws, /acp ACP JSON-RPC 2.0 WebSocket endpoint (echoes requested Sec-WebSocket-Protocol subprotocols).
/pair HTML pairing page displaying the branded Redstart QR code and redstart://connect?... URI.
/pair.svg Standalone branded SVG QR code.
/healthz JSON health check ({"status":"ok","agent_running":true,"connected_clients":1}).
/favicon.ico Embedded Redstart circular navy badge icon.

CLI Options & Environment Variables

Flag Env Var Default Description
--bind REDSTART_BIND 127.0.0.1:9123 Local bind address.
--command REDSTART_CMD agy ACP agent binary to spawn.
--cwd REDSTART_CWD (inherited) Working directory for the spawned agent process.
--token REDSTART_TOKEN (none) Optional shared bearer token (Authorization: Bearer <token> or ?token=).
--public-path REDSTART_PUBLIC_PATH /acp Public Tailscale Serve path for pairing URI generation.
-- <args...> — acp (when command == agy) Arguments forwarded to the spawned agent command.

Using Other ACP Agents

redstart-bridge is agent-agnostic and caches the ACP initialize result per child process lifetime. Reconnecting or concurrent clients receive the cached initialize response with their own request ID without re-sending initialize to stricter single-init agents. The cache automatically resets if the child process exits or restarts.

Examples:

# Antigravity (default)
redstart-bridge --cwd ~/source/repos

# Claude Code ACP adapter
redstart-bridge --command claude-code-acp --cwd ~/source/repos

# Codex ACP adapter
redstart-bridge --command codex-acp --cwd ~/source/repos

# Gemini CLI
redstart-bridge --command gemini --cwd ~/source/repos -- --experimental-acp

# OpenCode
redstart-bridge --command opencode --cwd ~/source/repos -- acp

Pairing Subcommand

redstart-bridge pair \
  --cwd ~/source/repos \
  --path /acp \
  --svg ./redstart-pair.svg

If --url is omitted, redstart-bridge pair auto-detects your Tailscale MagicDNS hostname via tailscale status --self --json.

Clone this wiki locally