Encrypted SOCKS5 and full-host VPN, in one binary

XClient exposes a local SOCKS5 endpoint for individual apps, or brings up a TUN interface and captures every socket on the host — including root processes.

Two operating modes

Local SOCKS5 proxy

Runs without root on 127.0.0.1:18080. Point a browser, curl, or any SOCKS5-aware tool at it and traffic is tunnelled to the remote exit node. HTTP CONNECT requests are transparently translated to SOCKS5.

System-wide VPN (TUN)

Runs as root, creates a TUN device with MTU 1500, and captures all host traffic. Bootstrap, connectivity test, and rollback are sequenced so a partial install never leaves the host with traffic going into a dead tunnel.

Onboarding in four steps

  1. Register a client: choose a proxy server and set a strong password. The Central Hub generates an STH wallet and returns its address.
  2. Fund the wallet with STH. The proxy credentials are withheld until the first deposit is observed on chain.
  3. Retrieve credentials via the access endpoint. The response contains the assigned proxy_server_id, peer_id, client_hmac_secret, and kdf_hmac_secret.
  4. Start XClient with those values. The client dials the assigned server over Iroh, performs the ChaCha20-Poly1305 handshake, and begins forwarding.

Rotation is available at any time. Re-calling the rotate endpoint re-assigns the client to a different proxy server and derives fresh HMAC and KDF secrets, without changing the wallet address.

Client reference

Every environment variable, TUN mode caveat, DNS configuration, and MTU requirement is documented in the client guide:proxy-iroh client documentation