bx
Español — Idioma

Esta página aún no se ha traducido al español; se muestra en otro idioma.

Client: Linux / Windows / agent

Linux

sudo bx setup --udp '<udp link>' '<main link>'   # paste the whole command the server printed, as-is
bx up

The Linux client uses this pair of commands directly; when you have only one link it is just sudo bx setup '<link>'. For the full steps, see install-tutorial.md.

Windows

On Windows, bx.exe is a self-contained single file — wintun.dll, sing-box, and brook are all embedded and extracted automatically on first run, so no accompanying files and no network downloads are needed. Get it from the download site https://dl.getbx.net/releases/<version>/ (versions installed before v0.5.4 will not receive new versions through auto-update and must be reinstalled manually once). There are two ways to get it:

⚠️ SmartScreen prompt on first run: the builds are not yet code-signed, so Windows will show "Windows protected your PC / Unknown publisher". Click More info → Run anyway. (Once there is a certificate, the builds will be signed and the prompt will go away.)

Graphical use (recommended): double-click the tray icon (the installer has already started it; for the portable version double-click bx.exe or run bx.exe tray) → copy your bx:// link → tray "Set Up from Clipboard…" (a UAC elevation prompt appears at this point) → "Connect" → the whole machine is taken over. The tray stays resident without elevation and only elevates, one action at a time, for actions that change the system; status, logs, disconnecting, and restarting are all in the tray.

Command-line use (advanced / automation), run in an Administrator PowerShell:

.\bx.exe setup "<client-link>"   # write config + install to C:\Program Files\bx + create the Windows service
.\bx.exe up                       # start the service and enable it at boot (system-wide capture)
.\bx.exe status                   # show status
.\bx.exe down                     # stop and disable at boot

The configuration is written to C:\ProgramData\bx\config.yaml.

Restricted networks / corporate TLS interception (MITM): release builds already embed sing-box/brook, so normally no download is ever triggered. Only when you build from source yourself, or use an architecture without embedded binaries, does bx download sing-box/brook from GitHub; if your network performs TLS interception on HTTPS (a corporate proxy with a self-signed root CA), the download will fail because the certificate is not trusted (x509: certificate signed by unknown authority) — this is bx's supply-chain verification correctly rejecting the MITM certificate, not a bug. In that case, prepare a local sing-box executable manually (matching the bx version) and point to it with an absolute path in the configuration to skip the download:

singbox_bin: C:\path\to\sing-box.exe   # use a local sing-box instead of downloading (for the brook transport: brook: <path>)

Let your agent operate bx (AI-native, optional)

Once bx setup / bx up work, hand the control plane to your agent: have your agent run

bx mcp install

and follow the claude mcp add instruction it prints (it only prints, it does not run it itself). After that, the agent can check status, reconnect safely, switch transports, and re-hijack routes — authorized as the owner, without sudo (owner = the user who ran sudo bx setup). For tool permissions and the safety flow, see Agent Tools.

Which protocol to use

bx accepts REALITY, hysteria2, trojan, shadowsocks, vmess, and brook links, so share links from elsewhere can be pasted as-is (bare links carry plaintext credentials; treat them like a password). The REALITY (TCP) + hysteria2 (UDP) pair that bx server up installs by default is the recommended combination; when you paste a link for another protocol, bx setup points out its weakness. For how to choose between protocols and combine them for failover, see Multiple transports.