selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

3x-ui logo

Self-host 3x-ui

v3.11.0

Web control panel for Xray-core proxy servers

ReleaseOpen SourceGPL-3.0
Docker ComposeCompose file & guide
docker compose up -d
Updated2 weeks ago
LanguageGo
Setup difficultyEasy
MobilePWA
ThemeDark mode
Stars
49 858
Port
2053 (Web panel UI)
Docker
ghcr.io/mhsanaei/3x-ui
Panel overview dashboard with server and traffic summaryAdd-inbound form for creating a proxy inboundAdd-client dialog for a client on an inboundNodes / configs screen for managing multiple servers

What is 3x-ui?

3x-ui alternatives

Should you self-host 3x-ui?

3x-ui scores 85/100 on selfhost.directory (how scoring works) and ranks #1 of 34 in Network Management. It has 49 858 GitHub stars, +1 526 in the last 30 days.

It shipped 10 stable releases in the past year. The latest, v3.11.0, came out on 25 October 2026. New versions land roughly every 2 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is GPL-3.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is netbox (79/100, 21 877 stars). 3x-ui scores higher overall. See 3x-ui vs netbox side by side.

Features

  • Built-in subscription server
  • Custom routing & load balancing
  • Login brute-force protection
  • Multi-language UI
  • Multi-node Management
  • Multi-protocol proxy inbounds
  • Multi-user support
  • Post-quantum / AmneziaWG WireGuard
  • REALITY & XTLS TLS security
  • REST API
  • Telegram & Discord bot management
  • TOTP two-factor authentication
  • Traffic quotas per client
  • Traffic statistics

3x-ui README

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

3x-ui

Release Build GO Version Downloads License Go Reference Documentation

3X-UI is an advanced, open-source web control panel for managing Xray-core servers. It provides a clean, multi-language interface for deploying, configuring, and monitoring a wide range of proxy and VPN protocols — from a single VPS to multi-node deployments.

Built as an enhanced fork of the original X-UI project, 3X-UI adds broader protocol support, improved stability, per-client traffic accounting, and many quality-of-life features.

Important

This project is intended for personal use only. Please do not use it for illegal purposes or in a production environment.

Features

  • Multi-protocol inbounds — VLESS, VMess, Trojan, Shadowsocks, WireGuard, AmneziaWG, TUIC v5, Hysteria2, MTProto, HTTP, SOCKS (Mixed), Dokodemo-door / Tunnel, and TUN.
  • Modern transports & security — TCP (Raw), mKCP, WebSocket, gRPC, HTTPUpgrade, and XHTTP, secured with TLS, XTLS, and REALITY.
  • AmneziaWG built in — DPI-resistant WireGuard runs inside the panel on a userspace network stack, with no kernel module, DKMS, or extra packages to install.
  • Native TUIC v5 server — In-process Go QUIC server with Xray routing and per-client traffic accounting; BBR and New Reno are available server-side. CUBIC is preserved in the client profile but currently falls back to New Reno on the server.
  • MTProto proxies — per-client FakeTLS secrets, ad-tags, and quotas, applied live without dropping existing connections.
  • Fallbacks — serve multiple protocols on a single port (e.g. VLESS and Trojan on 443) using Xray's fallback support.
  • Per-client management — traffic quotas, expiry dates, IP limits with trusted-address exemptions, HWID device limits, scheduled renewal cycles, live online status, and one-click share links, QR codes, and subscriptions.
  • Traffic statistics — per inbound, per client, and per outbound, with reset controls.
  • Multi-node support — manage and scale across multiple servers from a single panel, including cloning inbounds onto other nodes.
  • Outbound & routing — WARP, NordVPN, PIA, custom routing rules, load balancers with balancer-to-balancer fallback, and outbound proxy chaining. Bundled geosite and geoip categories are browsable straight from the rule editor.
  • Built-in subscription server — raw, JSON, and Clash output, auto-selected from the client's User-Agent, plus custom page templates.
  • Telegram and Discord bots for remote monitoring and management.
  • RESTful API with scoped, optionally expiring tokens and an in-panel API reference.
  • Installable panel (PWA) — pin 3X-UI to a desktop or phone home screen.
  • Flexible storage — SQLite (default) or PostgreSQL.
  • 14 UI languages with dark and light themes.
  • Fail2ban integration for enforcing per-client IP limits.

Screenshots

Click to expand Overview Inbounds

How to install 3x-ui

Install 3x-ui with Docker Compose

Environment variables
XUI_ENABLE_FAIL2BAN, XUI_DB_TYPE, XUI_DB_DSN
docker compose up -d
docker compose --profile postgres up -d

Uses SQLite by default; uncomment the XUI_DB_* env lines and start with the postgres profile for PostgreSQL. Fail2ban IP-limit bans need NET_ADMIN/NET_RAW capabilities.

How to configure 3x-ui

  • XUI_DB_TYPEsqliteDatabase backend: `sqlite` or `postgres`
  • XUI_DB_DSNPostgreSQL connection string (when `XUI_DB_TYPE=postgres`)
  • XUI_DB_FOLDER/etc/x-uiDirectory for the SQLite database file
  • XUI_DB_MAX_OPEN_CONNSMaximum open connections (PostgreSQL pool)
  • XUI_DB_MAX_IDLE_CONNSMaximum idle connections (PostgreSQL pool)

3x-ui releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Network Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…