Skip to content
Projects

About

Xray panel fork of 3x-ui: native AmneziaWG (up to 3.1), anti-DPI tunnel sidecars (NaiveProxy, olcRTC, qWDTT, CSQTT, mieru, TrustTunnel, AnyTLS, AIVPN), Clash/Amnezia vpn:// / Happ subs, geodata browser & RoscomVPN routing.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
+2
in 7 days
+14
in 15 days
+19
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

docs/readme/README.en_US.md

Original

LucX-UI

Advanced Xray control panel — AmneziaWG (kernel + native, up to 3.1), import existing AWG, supervised tunnels & sidecar outbounds (NaiveProxy · olcRTC · qWDTT · CSQTT · mieru · TrustTunnel · Telegram WEB proxy), Clash / Amnezia vpn:// / Happ subscriptions, RoscomVPN geo & Happ routing.

Release Build Downloads License Donate Boosty

English | Русский | فارسی | العربية | 中文 | Español | Türkçe

[!WARNING] For personal, non-commercial, scientific, research, and educational use only. Commercial use — including VPN resale or paid panels — requires explicit written permission under PolyForm Noncommercial 1.0.0.


⚡ Quick Start

One-line installation on Linux (Ubuntu / Debian / CentOS / AlmaLinux / Arch, etc.):

bash <(curl -fL https://raw.githubusercontent.com/AlexeyLCP/lucx-ui/main/install.sh)

Optional install from Yandex (SourceCraft) when GitHub is unreachable. No tokens or git — panel, geo and scripts come in one package:

mkdir -p /tmp/lucx-dist && curl -fsSL https://codeload.sourcecraft.tech/alexeylcp/lucx-ui/tarball/refs/heads/dist | tar -xz --strip-components=1 -C /tmp/lucx-dist && sudo bash /tmp/lucx-dist/install.sh --yandex

Later x-ui update uses the same source (/etc/x-ui/install-source).

🛠️ Advanced Installation & Configuration (Cloud-Init, Docker, PostgreSQL, Env Vars)

Non-Interactive Install (Cloud-Init)

XUI_NONINTERACTIVE=1 bash <(curl -fL https://raw.githubusercontent.com/AlexeyLCP/lucx-ui/main/install.sh)

Credentials are saved to /etc/x-ui/install-result.env.

Docker

Images are published on every release tag (ghcr.io/alexeylcp/lucx-ui):

docker run -d \
  --name lucx-ui \
  --restart unless-stopped \
  --cap-add=NET_ADMIN \
  --cap-add=NET_RAW \
  -p 2053:2053 \
  -v $PWD/db/:/etc/x-ui/ \
  ghcr.io/alexeylcp/lucx-ui:latest

Or docker compose up -d (pulls the same image; docker compose build builds locally).

PostgreSQL: uncomment the XUI_DB_* lines in docker-compose.yml and:

docker compose --profile postgres up -d

Key Environment Variables (/etc/default/x-ui)

Variable Description Default
XUI_DB_TYPE Database engine (sqlite or postgres) sqlite
XUI_DB_DSN PostgreSQL DSN —
XUI_ENABLE_FAIL2BAN Enable Fail2ban IP-limiting true
XUI_LOG_LEVEL Log level (debug, info, warning, error) info

🛡️ Why LucX-UI?

3x-ui is an excellent multi-protocol panel with a modern React 19 + Ant Design 6 frontend. LucX-UI keeps everything 3x-ui offers and adds what upstream does not: kernel AmneziaWG (alongside upstream's native amneziawg), import of existing AWG, tunnel sidecars (NaiveProxy · olcRTC · qWDTT · CSQTT · mieru · TrustTunnel · Telegram WEB proxy), richer subscriptions (Clash Meta AWG, Amnezia vpn://, Happ), and RoscomVPN geo packs + Happ profiles (geodata browser is already upstream since PR #6165 / v3.7.0):

Compare with 3x-ui
Feature 3x-ui LucX-UI
AmneziaWG inbound (kernel sidecar via awg-quick) ✗ ✓
Native AmneziaWG inbound (amneziawg, userspace) ✓ ✓
Import existing host AWG (awg-multi / toolza3 / Docker) ✗ ✓
Kernel AWG without module → embedded amneziawg-go ✗ ✓
Live AWG client/inbound speed in the panel ✗ ✓
AWG CPS obfuscation (TLS / DNS / SIP / QUIC + browser fingerprints) ✗ ✓
AWG outbound — VPN chaining to upstream AWG servers (awgo-N) ✗ ✓
AWG3 / HeaderProtectionKey ✗ ✓
AWG 3.1 (RandomTrailers / DisableCookies anti-DPI) ✗ ✓
Client config version presets (1.5 / 2 / 3 / 3.1) ✗ ✓
In-panel AWG diagnostics (routing / NAT / peers / handshakes) ✗ ✓
AWG in Clash Meta + Amnezia subscription /awg/ (.conf / vpn://) ✗ ✓
NaiveProxy tunnel sidecar (Caddy + forward_proxy, supervised) ✗ ✓
Per-client NaiveProxy credentials + naive+https:// in subscriptions ✗ ✓
NaiveProxy → Xray routing (SOCKS loopback bridge, optional) ✗ ✓
olcRTC tunnel sidecar (WebRTC via meet rooms, supervised) ✗ ✓
qWDTT tunnel sidecar (WireGuard over VK TURN, supervised) ✗ ✓
CSQTT tunnel sidecar (TURN/RTP, supervised; not qWDTT) ✗ ✓
mieru tunnel sidecar (mita, per-client traffic, supervised) ✗ ✓
TrustTunnel sidecar (AdGuard VPN protocol, HTTPS-like, supervised) ✗ ✓
Sidecar outbounds (Naive / mieru / TrustTunnel client → SOCKS, routing & balancers) ✗ ✓
Geodata browser — pick geosite/geoip categories from panel ✓ ✓
RoscomVPN geo pack (geoip/geosite_ROSCOM.dat, RKN geoblock lists) ✗ ✓
Happ routing profiles (RoscomVPN deeplink + custom) ✗ ✓
Smart Cluster outbound links ✗ ✓
React 19 + AntD 6 + Vite 8 + Zod 4 frontend ✓ ✓ (inherited)
All Xray protocols (VLESS / VMess / Trojan / Shadowsocks / ...) ✓ ✓
Telegram WEB proxy inbound (tproxy, t.me/webproxy) ✗ ✓
Frictionless upstream sync (LUCX-HOOK isolation) — ✓

A kernel sidecar (like 3x-ui's MTProto mtg) means AWG runs as a real kernel interface — not a userspace shim — so Xray routes decrypted traffic through its own TUN inbound, giving you the full routing, sniffing and domain-rule power of Xray on AWG traffic. No module — the same LucX awg inbound runs on embedded amneziawg-go. Upstream's native amneziawg protocol stays in the panel next to it.


🌟 About LucX-UI

LucX-UI is an enhanced fork of 3x-ui (currently synced to upstream v3.7.0). Beyond stock Xray protocols it adds AmneziaWG in two modes — kernel sidecar awg (same idea as MTProto/mtg) and upstream's native amneziawg, up to AWG 3.1; import of awg-multi / toolza3 / Docker; panel-supervised tunnel sidecars (NaiveProxy, olcRTC, qWDTT, CSQTT, mieru, TrustTunnel), extended subscriptions (Clash Meta AWG, Amnezia /awg/ + vpn://, Happ routing), Telegram WEB proxy (tproxy), and stock RoscomVPN geo (category browser shared with upstream v3.7.0). 100% upstream compatibility via strict LUCX-HOOK isolation.

🛡️ AmneziaWG (AWG) Features
  • AWG Inbounds & Outbounds — Kernel sidecar (awg-quick), client mode dial-out to upstream AWG servers (awgo-{id}), 10-second automatic reconcile loop, and DKMS kernel module builder.
  • Two engines — both AmneziaWG (kernel) (awg-quick when the module is present) and upstream's native amneziawg. No module — LucX awg inbounds run on embedded amneziawg-go (SOCKS into Xray); the kernel path is unchanged when the module is there.
  • Import existing AWG — Inbounds banner: awg-multi / toolza3 / Docker Amnezia. Keys, IPs, port and obfuscation copied as-is; kernel iface renamed in place (handshakes stay).
  • Live speed — Clients / Inbounds speed columns for AWG (Xray stats never see it).
  • Advanced Obfuscation — Lite/Standard/Pro presets (Jc/Jmin/Jmax/S1–S4/H1–H4), CPS packet mimicry (TLS, DNS, SIP, QUIC), and browser TLS fingerprints (Chrome, Firefox, Safari).
  • AWG3 / HeaderProtectionKey — AmneziaWG 3 header protection with auto-generated 32-byte keys; server-side version ceiling gates feature emission per client.
  • AWG 3.1 — RandomTrailers (random packet tail, size-based anti-DPI) and DisableCookies; kernel module + tools auto-upgrade to v3.1 on panel update.
  • Client Version Presets — Generate client configs for AWG 1.5 / 2 / 3 / 3.1 from a single inbound — pick the format your client app understands.
  • Live Signature Capture — Convert real QUIC handshakes from front domains into I1–I5 obfuscation parameters.
  • Routing & Diagnostics — Dual routing modes (Kernel NAT and Route through Xray with policy routing & sniffing) + one-click in-panel diagnostics.
🚇 Tunnel Sidecars (NaiveProxy, olcRTC, qWDTT, CSQTT, mieru, TrustTunnel, Telegram WEB proxy)
  • NaiveProxy — Caddy with the forward_proxy plugin (klzgrad fork, HTTP/2 padding) runs as a panel-supervised sidecar: rendered Caddyfile, start/stop/restart with crash-reviving reconcile, and a three-level health probe (process → TCP → TLS).
  • Per-client credentials — every enabled panel client automatically gets a personal basic_auth pair (derived from the panel secret, nothing stored); disabling a client revokes it on the next reconcile.
  • Subscriptions — each client's subscription carries their personal naive+https:// link alongside their Xray/AWG links (standard format for NekoBox / husi / Exclave), plus a QR code and a strong-password generator in the panel.
  • Panel UX — Auto TLS (Let's Encrypt) or your own cert/key, raw-Caddyfile mode with caddy adapt validation, Caddyfile preview, process logs, binary upload/download.
  • Route through Xray (optional) — toggle makes Caddy dial destinations via a hidden loopback SOCKS bridge (upstream socks5://127.0.0.1:…, native forward_proxy — no binary patch) tagged lucx-tunnel-naive, so NaiveProxy traffic gets full Xray routing / sniffing / domain rules (same pattern as MTProto). Default stays direct egress.
  • olcRTC — TCP-over-WebRTC tunnel via a legal video-call room (openlibrecommunity/olcrtc, WTFPL): Jitsi / Yandex Telemost / WB Stream. No public ports on the VPS — the binary joins the room as a silent participant. Panel renders server YAML, supervises the process, and exposes a copyable olcrtc:// connect URI for owenclave / olcbox clients.
  • qWDTT — WireGuard tunnelled through VK Calls TURN relays (SpaceNeuroX/proxy-turn-vk-android, GPL-3.0 server). Requires root (TUN + NAT). Panel supervises the process, exposes qwdtt:// / wdtt:// URIs and subscription JSON for the Android client. Operator supplies live VK call hashes.
  • CSQTT — TURN/RTP tunnel (amurcanov/csqtt, PolyForm NC). Not wire-compatible with qWDTT (not on the same host). One password = one device. Share csqtt://… — encrypted with AES-256-GCM since core 2.5.0 (the password never travels in plaintext). Clients: CSQTT Android APK; iOS anton48/vk-turn-proxy-ios in CSQTT mode. LucX commercial grant does not cover CSQTT.
  • mieru — censorship-resistant proxy over a custom protocol instead of TLS (enfein/mieru mita, GPL-3.0). Multi-client with per-panel-client HMAC credentials, per-client traffic & online accounting, and a mierus:// share link. Clients: mieru CLI, mihomo, Clash Verge Rev, husi, Exclave.
  • TrustTunnel — the AdGuard VPN protocol (TrustTunnel/TrustTunnel, Apache-2.0): traffic indistinguishable from HTTPS (HTTP/1.1 + HTTP/2 + QUIC). Reuses the panel's ACME certificate (needs a domain with an issued cert), emits a tt://? deep link for the Flutter / CLI clients.
  • Telegram WEB proxy (tproxy) — tproxy-server + official MTProxy + Caddy TLS reverse_proxy on hostname:443, share link t.me/webproxy. Route-through-Xray is currently parked (direct MTProxy egress; see lucx.211).
  • Sidecar outbounds — client-mode Naive / mieru / TrustTunnel: paste a share link (naive+https:// / mierus:// / tt://), the tag shows up in routing rules and balancer pools (same as AWG outbound). Disable = blackhole (fail-closed, does not leak to direct). Client binaries ship in the tarball (naive-client, mieru-client, trusttunnel-client).
📦 Subscriptions, Geodata & Client Routing
  • Amnezia subscription — dedicated /awg/{subId} endpoint returns a pure AmneziaWG .conf (or ?format=vpn → vpn://… body) for AmneziaVPN / Happ; also listed next to Clash / JSON / base64 links in the panel and Telegram bot.
  • AWG in Clash Meta — subscription emits AmneziaWG peers via amnezia-wg-option so Clash Meta clients can consume AWG alongside VLESS/Trojan.
  • Geodata browser — open any geoip*.dat / geosite*.dat from the routing UI, search categories, multi-select into a rule (in upstream since PR #6165 / v3.7.0 by STRENCH0).
  • RoscomVPN geo pack — stock geoip_ROSCOM.dat / geosite_ROSCOM.dat (hydraponique/roscomvpn-geoip, roscomvpn-geosite): RKN geoblock lists (category-geoblock-ru, category-ru, ads, YouTube / Telegram / Steam, …). Update from panel Version → Geofiles or x-ui menu.
  • Happ routing profiles — Settings → Happ: built-in RoscomVPN deeplink profile plus free-text custom (from hydraponique/roscomvpn-routing).
🚀 Core 3x-ui Features
  • Protocols: VLESS, VMess, Trojan, Shadowsocks, WireGuard, Hysteria2, HTTP, SOCKS, TUN.
  • Transports & Security: REALITY, TLS, XTLS, gRPC, WebSocket, XHTTP, Fallbacks.
  • Management: Traffic quotas, IP limits (Fail2ban), live online status, subscriptions, Telegram bot, REST API, Multi-node support, SQLite / PostgreSQL.
📸 Screenshots Overview Inbounds

🔄 Migration from 3x-ui and existing AWG

LucX-UI shares the same Xray-core / SQLite (or PostgreSQL) database schema base as 3x-ui, and AWG tables are created automatically on first run. To install over an existing 3x-ui setup, back up your database first and run the standard install command:

cp /etc/x-ui/x-ui.db /etc/x-ui/x-ui.db.bak
bash <(curl -fL https://raw.githubusercontent.com/AlexeyLCP/lucx-ui/main/install.sh)

The AWG kernel module is built automatically by the installer (bin/install-awg-module.sh, DKMS). After install, run x-ui in the console to confirm AWG kernel module version and start adding AWG inbounds from the panel.

After install: subscription endpoints (/sub/, /json/, /clash/, /awg/) listen on a separate port (default 2096), not the panel port — reverse proxies must forward that too. Keep custom geo groups under a separate filename — stock names (geoip.dat / geosite.dat and _IR / _RU / _ROSCOM) are overwritten on geofile update.

AWG keys in the panel

There is no separate “keys” screen. A key is a client on an AmneziaWG inbound:

  1. Inbounds → Add inbound, protocol AmneziaWG (kernel) (or native amneziawg).
  2. Clients → Add client, attach to that inbound.
  3. QR / download .conf / subscription /awg/{subId}.

Default inbound subnet is /24 — up to ~253 clients.

From existing AWG on the host

If the server already runs awg-multi, toolza3 or Docker Amnezia, the panel does not tear down foreign awg0/awg1. Inbounds shows an Import existing AWG banner: preview peers → one inbound per interface. Keys / IPs / port / obfuscation are copied as-is. A kernel iface is renamed in place (awg{id}) — handshakes stay. Userspace/Docker: stop the old manager; those clients reconnect once.

Without a kernel module, LucX awg inbounds still come up on embedded amneziawg-go. Upstream's native amneziawg protocol is available in the panel next to it.


📜 License & Terms

This project is published under two licenses for first-party code, plus third-party binaries/data kept under their upstream terms (full matrix in LICENSING.md):

License matrix
Component License
Original 3x-ui codebase GPL-3.0
LucX-UI components (internal/awg/, internal/lucx/, LucX frontend pages) PolyForm Noncommercial 1.0.0
bin/caddy-naive-* (Caddy) Apache-2.0
forward_proxy plugin (klzgrad) MIT
NaiveProxy / bin/naive-client-* (klzgrad/naiveproxy) BSD-3-Clause
bin/olcrtc-* (openlibrecommunity/olcrtc) WTFPL
bin/qwdtt-* (SpaceNeuroX/proxy-turn-vk-android) GPL-3.0
bin/csqtt-* (amurcanov/csqtt) PolyForm Noncommercial 1.0.0 (amurcanov; LucX grant does not cover it)
bin/mieru-* (mita, enfein/mieru) GPL-3.0
bin/trusttunnel-* (TrustTunnel/TrustTunnel) Apache-2.0
AmneziaWG kernel module & tools (amnezia-vpn) GPL-2.0 (module; installed on host)
Stock geo .dat (Loyalsoldier / IR / RU / ROSCOM) Upstream of each dataset (see LICENSING.md)

Tunnel binaries are child processes — the panel does not link them. qWDTT GPL applies to that binary and its sources, not to LucX PolyForm code. CSQTT is third-party PolyForm NC: redistribute with their LICENSE; LucX commercial permission does not sublicense it.


🤝 Acknowledgements & Credits

LucX-UI stands on the shoulders of many open-source projects and people. Thank you.

Testers & contributors
  • VladufQa, Kirill Rudenko (PR #13 — AWG routeThroughXray), 302ba (Alex) (PR #24), Aleksandr SacredX, alireza0, the 3x-ui team (MHSanaei and contributors).
Financial supporters (Boosty, by tier)

The same list is shown on the panel's Sponsors page (/panel/sponsors).

  • Handshake: VladufQa, пётр смолин (Pyotr Smolin)
  • Pong: Сила Растений (Sila Rasteniy), Mr. Zaic
  • Ping: Камслат Глорихо (Kamslat Glorixo), Михаил Ляшенко (Mikhail Lyashenko)
  • Subscribers: Игорь (Igor), Aleksandr S.
Upstream PRs we ported
Projects & inspiration
Project What we use License
MHSanaei/3x-ui Base panel GPL-3.0
amnezia-vpn — kernel module & tools AmneziaWG protocol / AWG3 GPL-2.0 (module)
klzgrad/naiveproxy NaiveProxy protocol / client ref BSD-3-Clause
klzgrad/forwardproxy + Caddy NaiveProxy sidecar binary MIT + Apache-2.0
openlibrecommunity/olcrtc olcRTC core binary WTFPL
SpaceNeuroX/proxy-turn-vk-android qWDTT server binary GPL-3.0
amurcanov/csqtt CSQTT server binary PolyForm NC
anton48/vk-turn-proxy-ios CSQTT iOS client GPL-3.0
enfein/mieru mieru mita server binary GPL-3.0
TrustTunnel/TrustTunnel TrustTunnel endpoint binary Apache-2.0
elector1337/3x-ui-naive Caddyfile integration design reference —
Bebrik2283555/Ex3-ui Tunnel-sidecar panel concept (qWDTT / olcRTC) —
hydraponique/3x-ui, roscomvpn-geoip, roscomvpn-geosite, roscomvpn-routing RoscomVPN geo pack + Happ routing profiles Upstream
Loyalsoldier/v2ray-rules-dat, chocolate4u/Iran-v2ray-rules, runetfreedom/russia-v2ray-rules-dat Stock geoip/geosite datasets Upstream
pumbaX/awg-multi-script, hoaxisr/awg-manager AWG ops inspiration —
phenomenonRT, mimicry generator phenomenonrt.github.io/generatorM AWG preset for Minecraft Bedrock (RakNet): the minecraft cps profiles —
bogdanfinn/tls-client, refraction-networking/utls TLS fingerprint references for CPS —

☕ Support the project

LucX-UI is free for personal use. Liked it? Star the repo ⭐ — it helps others find the project and keeps development going. Donations are optional and always appreciated:

Donate
Method Details
⭐ GitHub Star Star AlexeyLCP/lucx-ui
🟠 Boosty (subscription) boosty.to/alexeylcp
🟠 Boosty (one-time) boosty.to/alexeylcp/donate
🇷🇺 YooMoney (RUB, Russia) yoomoney.ru/to/41001989176429
💎 USDT (TON) UQC48dE4i35bjEU4jljx0h1CGeXMu77eKZwN5W4gbcibmqDs
💠 USDT (ERC-20) 0xA49aBc042c5BB3d682788D3DEB2eAC833343a873

🛠️ For Developers

Architecture, build & upstream sync (click to expand)

Architecture & isolation rule. All LucX code lives in isolated packages (internal/awg/, internal/lucx/); changes to upstream 3x-ui files go only inside // LUCX-HOOK / // END LUCX-HOOK markers so that every upstream release is a near-trivial port. See AGENTS.md for the full architecture map, the 10 rules, known issues and debug patterns.

Build from source (requires Go 1.27+, Node.js 24+, gcc — Linux only, CGO for SQLite):

cd frontend && npm run build && cd ..
go build -o /tmp/x-ui .
# pre-push hygiene: bin/check-lucx.sh  (LUCX-HOOK + internal/awg|lucx)

Upstream sync procedure (current base — upstream v3.7.0; merge upstream tags/main, not old v3.5→v3.6):

git fetch origin --tags
git merge --no-commit --no-ff origin/main
# resolve block by block (see AGENTS.md Rule 8) — never blanket --ours/--theirs
git grep -c "LUCX-HOOK"  # compare marker counts before/after to detect lost blocks
go build ./... && go vet ./... && go test ./internal/awg/... ./internal/lucx/...

Explore related projects

Loading…