Open-source split-tunnel game latency accelerator
๐งญ Route-based, not hook-based โข ๐ Measured telemetry only โข ๐ ๏ธ Self-hosted relays
Lagvex is a free, MIT-licensed alternative to commercial game boosters. It puts only your game's traffic on a faster route and leaves everything else on your normal internet connection:
- You deploy a small relay on a Linux VPS close to the game server (or run the embedded relay locally on Linux for a loopback test).
- The client watches your game's server region CIDR ranges (and, optionally, the exact peers your game process talks to) and installs routes for them.
- Those packets travel through an authenticated ChaCha20-Poly1305 encrypted UDP tunnel to the relay, which forwards them to the game server.
Lagvex touches no game memory, injects no DLLs and hooks no sockets. It works at the operating system routing layer, which is why it does not trigger kernel-level anti-cheat checks the way socket-hooking boosters can.
Honesty first: Lagvex only displays values it actually measured (probe RTT, tunnel echo RTT, packet loss, process findings). Everything it cannot measure is shown as
โwith the reason, never as an invented number.
- ๐งญ CIDR split tunneling โ only game server ranges enter the tunnel; browsers, Discord and updates keep using your local ISP path.
- ๐๏ธ Peer routing (opt-in) โ reads the OS socket tables, routes
/32routes for the public IPs your game process is actually talking to (Linux/macOS observe UDP and TCP; Windows exposes TCP peers only). Off by default. - ๐ Measured node list โ per-relay RTT history: latest, average, standard
deviation, loss and a sparkline built from real probe runs. Hover a sparkline
point to see its sample number, RTT and change from the previous sample. When
the OS permits unprivileged ICMP, an echo RTT (
ICMP x ms) is shown next to the tunnel probe. - ๐บ๏ธ Route detail โ per-hop measurement (gateway, direct relay probe, live tunnel echo, region cloud anchor) with explicit "not measured" reasons for segments the client cannot observe.
- ๐ก Relay-measured game-server segment โ while a tunnel is up, the relay itself
measures the TCP handshake to your game's server (
/probe/gameserver, one probe per source IP per two seconds, public IP literals only) and the Boost page shows the relayโserver segment plus the combined youโrelayโserver total, but only when both halves are actually measured. - ๐ Tail latency โ probe history reports p50/p95 percentiles computed from real retained runs, next to the average and spread, so a relay's worst moments are visible instead of hidden inside an average.
- โฑ๏ธ Stale-aware RTT โ a sample older than three keepalive periods is shown as
โwith "last sample is stale" rather than presented as live; the age of the last Pong and the count of Pongs are part of/api/status. - ๐ฅ Measured per-process CPU โ the process scan reports each game process's
per-core CPU percentage read from the OS's own counters (
/procon Linux,GetProcessTimeson Windows). Without a portable injection-free counter (macOS today) the API says so explicitly and the UI showsCPU โwith a "not measured on this OS" tooltip. - ๐งช TCP ping tool โ measures the TCP handshake RTT (min/avg/max/loss) to an explicit public game-server IP. Hostnames and private, loopback or link-local addresses are refused, and runs are limited to one every 2 seconds and 60 per hour. A closed port still reports a real RTT when the host answers with RST. Endpoints observed in the game-connections panel can be sent to the tool with one click.
- ๐ช Floating HUD โ a draggable latency panel inside the dashboard that reads the
same
/api/statusvalues and shows dashes until a sample exists. - ๐งพ Diagnostics snapshot โ export measured state plus non-secret settings for bug reports; import merges them back (relay PSKs are never included).
- ๐๏ธ Measured game-server history โ up to eight measured game endpoints per game are remembered (positive RTT only, IP literals only) and shown on the Boost card; the dashboard also warns when observed peers fall outside the selected region's CIDRs, so a mis-picked region is visible instead of silent.
- ๐ธ Cost & self-host calculator โ project the monthly relay transfer from your
own measured session rate, split the VPS price across a squad, and compare with a
typical paid plan. Every price and traffic figure is labelled as an estimate;
see
docs/COST.md. - ๐ก๏ธ Adaptive Reed-Solomon FEC, Packet Hedging, failover and DSCP marking โ pure-Go
GF(2โธ) Cauchy Reed-Solomon FEC automatically scales from
10:1XOR toRS 6:2,RS 4:2andRS 4:3to recover multi-packet burst losses (5โ15% loss) without waiting for retransmission RTT, backed by selective UDP packet hedging (โค256 B) and pre-measured standby failover. - โป๏ธ Dual-path redundancy (independent PSK) โ frames go to the primary relay only; the relay acknowledges progress, and frames it may have missed are retransmitted via the standby relay. Primary and standby relays may now use independent PSKs across different VPS providers.
- ๐ Free Mode (Zero-VPS) โ Cloudflare WARP / WireGuard split-tunnel โ register a
free Cloudflare WARP WireGuard profile in one click or import any
.conffile (WARP, Mullvad, AmneziaWG, personal VPS) to run over Lagvex's route-based game split-tunneling on Windows, macOS and Linux. - ๐ Relay Share URIs (
lagvex://) & Community Subscriptions โ share a self-hosted VPS relay with a squad via one copyable URI or import anhttps://relay list. - ๐ถ๏ธ Anti-DPI UDP Obfuscation (zero overhead) โ optional PSK-keyed header scrambling (salted by the random Poly1305 tag) plus variable-length handshake padding to resist ISP UDP fingerprinting and peak-hour throttling; relays auto-detect both plain and obfuscated clients on the same UDP port.
- ๐งญ Free Local Diagnostics Suite โ PingPlotter-style hop-by-hop Route Tracer, UDP DNS Resolver Benchmark (Cloudflare, Google, Quad9, OpenDNS, AdGuard), Auto Path-MTU Discovery (PMTUD) and Bufferbloat analysis โ all usable at $0 without a VPS.
- ๐ฅ๏ธ Windows, macOS and Linux client โ WinTun, native
utunand/dev/net/tunrespectively; one Go codebase, one React dashboard.
curl -fsSL https://raw.githubusercontent.com/ThanhNguyxnOrg/lagvex/main/scripts/install-relay.sh | sudo bashThe installer prints the relay endpoint, the UDP port (default 51820) and a generated
PSK. Keep the PSK: the client refuses to connect without it. Relay hosting requires a
Linux VPS with /dev/net/tun (KVM, not OpenVZ). Windows and macOS cannot host relays; the
installer fails fast there instead of pretending.
go build -o lagvex-client ./cmd/lagvex-client
./lagvex-client # opens the dashboard at http://127.0.0.1:18888Add node โ enter the relay host:port and its PSK โ pick your game and server
region โ BOOST. The dashboard shows probes and tunnel state as they are measured.
Squad rooms share a roster (who is in the room plus each member's reported RTT) so a party can see each other in one place. A room does not change anyone's relay or routes. Rooms are relayed through the connected relay's signaling endpoint; with no relay connected, a room exists only on that machine.
| OS | Virtual adapter | Notes |
|---|---|---|
| Windows 10/11 | WinTun (wintun.dll) |
Elevation needed to create the adapter |
| macOS 12+ | native utun |
DNS diagnostics read via scutil |
| Linux / Steam Deck | /dev/net/tun |
Also the only OS that can host the embedded local relay |
Game process Lagvex client Your relay (Linux VPS) Game server
โโโโโโโโโโโโโโโโ routes โโโโโโโโโโโโโโโโโโโโโโโโ AEAD UDP โโโโโโโโโโโโโโโโโโโโ UDP โโโโโโโโโโโโโโ
โ VALORANT.exe โ โโโโโโโโโถ โ WinTun / utun / tun โ โโโโโโโโโโถ โ lagvex-relay โ โโโโโโถ โ Riot / AWS โ
โโโโโโโโโโโโโโโโ (CIDR + โ ChaCha20-Poly1305 โ โ /dev/net/tun โ โโโโโโโโโโโโโโ
peers) โ split tunnel + FEC โ โโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโ
- The client connects to the relay with a PSK handshake, receives an inner IP and installs routes only for the selected game region and โ if enabled โ observed peers.
- The relay forwards packets between the tunnel and the internet, and hosts squad signaling plus health endpoints.
- See
docs/ARCHITECTURE.mdfor the packet journey, anddocs/PROTOCOL.mdfor the wire format.
| Doc | Contents |
|---|---|
docs/ARCHITECTURE.md |
Component layout, routing design, anti-cheat safety |
docs/DEPLOYMENT.md |
Relay VPS installation, hardening and operations |
docs/COST.md |
Relay VPS cost, traffic estimates and self-hosting |
docs/PROFILES.md |
Game profile schema and how to add a game |
docs/PROTOCOL.md |
Packet format, handshake and FEC |
docs/WHY_VPS.md |
Why a relay is needed and what it can/cannot fix |
docs/DISCLAIMER.md |
Legal disclaimer and anti-cheat position |
CONTRIBUTING.md |
Development setup, adding games, UI builds |
CHANGELOG.md |
Release notes |
# Go backend (client + relay)
go build ./cmd/lagvex-client
go build ./cmd/lagvex-relay
# React dashboard (required after UI changes; outputs into web/)
npm --prefix ui_source install
npm --prefix ui_source run build
# Tests
go test ./...
npx --prefix ui_source tsc --noEmit
npm --prefix ui_source test # dashboard unit tests (node:test, no extra deps)The dashboard is a React/Vite app in ui_source/; the build writes hashed bundles into
web/assets/, which the Go binary embeds. There is no separate legacy HTML/JS UI.
- No public relays are bundled. The relay list starts empty; you bring your own endpoint and PSK. Catalog entries for dead or third-party nodes are deliberately gone.
- Relay hosting is Linux-only. The relay needs
/dev/net/tun; on other systems the local relay refuses to start with a clear error. - Windows cannot see another process's UDP peers. Peer routing on Windows works with TCP observations only; the UI says so. Game traffic is mostly UDP, so keep the region CIDRs enabled there.
- The relay only probes allowlisted cloud anchors. On request it measures its own RTT to a fixed set of public cloud endpoints (rate-limited per session); the "relay โ game server" hop itself stays unmeasured and is reported as such rather than guessed.
- No region/device spoofing, no DLL/LSP injection, no anti-cheat evasion. Those are out of scope by design.
- ๐ฎ Add a game profile: capture the destination CIDRs, edit
configs/profiles.json, and run the tests. SeeCONTRIBUTING.md. - ๐ Found a bug? Export a diagnostics snapshot from the Tweaker tab and attach it โ it contains measured values and no secrets.
- ๐งช Run
go test ./...andnpx --prefix ui_source tsc --noEmitbefore opening a PR.
Lagvex is a network routing research tool. It does not read, modify or inject into any
game. Game publishers and anti-cheat vendors set their own rules about VPNs and proxies;
you remain responsible for how you use this software. Read the full text in
docs/DISCLAIMER.md.
All game titles and publisher names are trademarks of their respective owners. Lagvex is not affiliated with or endorsed by any game developer or publisher. Game artwork bundled in the dashboard is used nominatively to identify game executables and server regions.
MIT โ see LICENSE.
