Agent Bridge
Run the bridge on your machine
The Agent Bridge routes AI generation through the provider CLIs you already pay for — Claude Code, Codex, Gemini, or Cursor — running on your own computer. It never reads, stores, or proxies your provider credentials.
~5 minute setup
Before you start
You need at least one AI CLI installed, signed in, and validated on this machine. The bridge launches the official CLI as a subprocess and streams its output back. It never sees your login, and if a detected CLI fails validation Synchronex falls back to Synchronex cloud.
| Provider | CLI | Sign in with |
|---|---|---|
| Claude | claude (Claude Code) | claude → follow the browser prompt |
| OpenAI | codex | codex → choose Sign in with ChatGPT |
gemini | gemini → choose Login with Google | |
| Cursor | agent | Cursor app or Cursor CLI login |
Install a provider CLI
Install Node 20 first, then copy the vendor setup for the CLI you want Synchronex to use locally. Once the bridge is running (see Install below), run npx @synchronex/agent-bridge@latest status to confirm the provider is validated.
Node 20
# macOS
brew install node
# Windows PowerShell
winget install OpenJS.NodeJS.LTS
# Ubuntu / Debian
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejsClaude Code
# macOS / Linux / WSL
curl -fsSL https://claude.ai/install.sh | bash
claude
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex
claude
# Validate
claude -p "Reply with exactly: ok" --output-format textOpenAI Codex CLI
# macOS / Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh
codex
# Windows / npm fallback
npm install -g @openai/codex
codex
# Validate
codex exec --json "Reply with exactly: ok"Gemini CLI
npm install -g @google/gemini-cli
gemini
# Validate
gemini -p "Reply with exactly: ok" --output-format jsonCursor CLI
Install the Cursor CLI from Cursor's official CLI docs, then sign in to Cursor with the account you want to use locally.
agent --version
agent --print --output-format text "Reply with exactly: ok"Install
Pick whichever fits how you work — all three run the same bridge.
npx — quickest to try
Node 20+. Zero install, always the latest version.
npx @synchronex/agent-bridge@latestInstall script — best for always-on
Installs a standalone binary you can start on boot.
macOS / Linux
curl -fsSL https://synchronex.ai/bridge/install.sh | shWindows (PowerShell)
irm https://synchronex.ai/bridge/install.ps1 | iexBinary — no terminal setup
Download the binary for your OS and run it from a terminal — on macOS/Linux, chmod +x it first. Rename it to synchronex-agent-bridge (synchronex-agent-bridge.exe on Windows) so it matches the commands below.
npx is quickest to try. For a bridge you want running all the time, the install script or binary gives you a real installed command — better than an ephemeral npx process for a long-running daemon.
Connect
The first run walks you through a device-code authorization: it prints a code, opens your browser, and you approve the device while signed in to Synchronex. The bridge then stays online and listens for work.
# Installed via the one-line script or binary:
synchronex-agent-bridge
# Or with npx:
npx @synchronex/agent-bridge@latestRun more than one account
One bridge can serve several Synchronex accounts from the same machine — for example your primary account for daily work plus a separate test or client account. Each account is paired independently and runs its own session authenticated with its own token, so work is only ever routed to the account that owns it. Accounts stay fully isolated.
# Sign in to the SECOND account in your browser, then on the same machine:
synchronex-agent-bridge add
# Re-run so the bridge picks up the newly paired account:
synchronex-agent-bridge
# See every account paired on this machine:
synchronex-agent-bridge statusInstalled via npm install -g @synchronex/agent-bridge? Use agent-bridge instead. With npx, prefix each command: npx @synchronex/agent-bridge@latest add.
Commands
| Command | What it does |
|---|---|
synchronex-agent-bridge | Auto: connect if needed, then serve every paired account |
… connect | Run device authorization only |
… add | Pair another account onto this machine |
… run | Start serving every paired account (fails if none paired) |
… status | List every paired account and its device |
… update | Update the installed binary (verifies checksum before swapping) |
… logout | Revoke and clear ALL accounts |
… logout --account you@example.com | Revoke and remove just one account |
Commands above assume the one-line script or binary install. Installed via npm install -g @synchronex/agent-bridge? Use agent-bridge instead. With npx, prefix any subcommand: npx @synchronex/agent-bridge@latest add.
Staying up to date
The bridge checks for a newer version each time it starts and prints a notice if one is available. With npx you always get the latest by running npx @synchronex/agent-bridge@latest. If you installed via the one-line script or a direct binary download, synchronex-agent-bridge update downloads and verifies the new binary's checksum before swapping it in. This only works for the standalone binary. Installed via npm install -g @synchronex/agent-bridge? Update with npm install -g @synchronex/agent-bridge@latest instead.
How the install script is kept safe
The curl … | sh convenience comes with a supply-chain surface, so the scripts are hardened:
- Downloads happen over HTTPS/TLS 1.2 only, pinned to Synchronex's own R2 bucket — no arbitrary hosts or redirects.
- Every binary is verified against a published SHA-256 checksum before it can run; a mismatch aborts and installs nothing. After verification, the installer runs it only to pair your account and register auto-start. Set
SYNCHRONEX_NO_START=1before piping the script to skip both steps. - Installs into a user directory (
~/.local/bin) — never with sudo or elevation. - The scripts are open and inspectable — read them before you run them.
Inspect the exact scripts: install.sh · install.ps1. Prefer no piped shell at all? Download the binary directly from the list above, or use npx.