
Xray-core
Open source proxy core with XTLS, VLESS, and REALITY protocols
Replaces Astrill Vpn

Who it's for
Deploy Xray-core on a VPS to serve multiple clients with fine-grained routing rules. Configure protocol fallbacks, set per-user traffic limits via a panel like Marzban or 3X-UI, and select protocols suited to the network environment.
If you need a consumer-ready VPN with a GUI client app and no server to manage, a commercial VPN subscription is a better fit. Xray-core requires you to operate and maintain the server infrastructure yourself.
The libXray library and community bindings (Xray-core-python, AndroidLibXrayLite) let you integrate the proxy engine into mobile apps, desktop clients, or backend services. Existing Flutter and Android libraries document the integration path for mobile platforms.
If you only need basic HTTP or SOCKS proxying without protocol diversity or XTLS, a simpler library covers the use case with less integration overhead.
Run a self-hosted Xray-core instance outside the restricted network and connect via VLESS-XTLS or REALITY, which are designed to resist active probing and traffic classification. Available clients cover iOS, Android, Windows, macOS, and Linux, so one server serves all platforms.
If standard VPN protocols like WireGuard or OpenVPN pass through your network undetected, Xray-core's additional protocol complexity adds setup overhead without proportional benefit.
Paired with a panel like Remnawave or 3X-UI, Xray-core supports per-user accounts, traffic quotas, and subscription link generation for mobile clients. This covers shared proxy services for small teams or groups.
If you need commercial SLA guarantees, dedicated support, or compliance certifications for your network infrastructure, a managed service is more appropriate than a self-hosted proxy core.
The problem
Routing traffic on monitored or censored networks forces a choice: rely on commercial VPN subscriptions or accept the restrictions. Commercial providers offer fixed server locations, opaque protocols, and per-seat pricing that scales poorly for teams. You cannot inspect their infrastructure, modify their routing logic, or audit the code running your network traffic. For organizations and individuals who need censorship bypass or private tunneling, this means trusting a third party with all network metadata. The secondary challenge is protocol diversity. Different network environments block different protocols. An approach that works on one network may fail on another if the underlying protocol fingerprint is recognizable. Xray-core addresses both challenges by providing a multi-protocol engine you run yourself: XTLS and REALITY are specifically designed to resist active probing and traffic classification, which is the pain point commercial VPN protocols commonly face.
How it works
Supports VMess, VLESS, Shadowsocks, Trojan, Socks5, WireGuard, and HTTP as inbound and outbound protocols within a single binary. Each inbound and outbound can use a different protocol, allowing mixed configurations without deploying separate services for each client type.
XTLS extends standard TLS to reduce timing differences that distinguish proxy traffic from legitimate HTTPS. REALITY builds on this by borrowing certificate configurations from real sites to further resist active probing. Both protocols are designed to make classified traffic harder to detect under deep packet inspection.
Built-in DNS resolver with support for custom DNS servers, domain-level routing, and IP-range rules. Routes specific domains or IP ranges through different outbounds, enabling split-tunneling configurations where only certain traffic passes through the proxy.
Multiple community panels, including 3X-UI, Marzban, Remnawave, and Hiddify, sit on top of the core and provide a browser interface for user accounts, traffic quotas, subscription link generation, and connection monitoring. The core has no built-in UI; panels are separate open source projects.
Official and community clients cover Windows (v2rayN, Furious), Android (v2rayNG), iOS and macOS (Happ, Streisand), Linux (v2rayA, Furious), and OpenWrt routers (PassWall). The libXray library enables embedding the core in mobile apps via Flutter or Android native code.
Features
- Multi-protocol proxy engine
- XTLS and REALITY protocol support
- DNS resolver and traffic routing rules
- Third-party web panel ecosystem
- Cross-platform client support
How to install
Deploy using the official Docker image or install on macOS via Homebrew.
docker pull ghcr.io/xtls/xray-core
brew install xrayRecommended for this setup
Strengths
- XTLS and REALITY protocol innovation: Xray-core originated the XTLS protocol and developed REALITY, both designed to reduce the TLS fingerprint differences that distinguish proxy traffic from legitimate HTTPS. These protocol designs directly address active probing techniques used by deep packet inspection systems, which most commercial VPN implementations do not architect around.
- 42,000+ GitHub stars with active maintenance: Over 42,000 GitHub stars and 5,900 forks reflect widespread real-world adoption. The repository received commits through October 2026 and maintains only 55 open issues, suggesting a responsive maintainer team rather than a backlogged or stale project.
- MPL-2.0: auditable and forkable: Mozilla Public License 2.0 allows commercial use, modification, and distribution. Unlike proprietary VPN protocols, you can inspect the full implementation. File-level modifications to Xray-core itself must remain under MPL-2.0, but building services on top of an unmodified core does not trigger that requirement.
- Single binary handling multiple protocols simultaneously: One running instance handles multiple inbound and outbound protocols at the same time, serving VMess to one client group, VLESS-XTLS to another, and routing WireGuard traffic outbound without deploying separate proxy processes for each protocol.
Trade-offs
- No built-in management interface: Xray-core is a headless binary configured via JSON files. There is no built-in dashboard, user management, or traffic statistics panel. Third-party panels like 3X-UI or Marzban provide this functionality but are separate projects requiring their own deployment and maintenance.
- JSON configuration complexity: Routing rules, DNS overrides, and multi-protocol chains are configured in JSON. Multi-inbound setups with fallbacks and different protocols are not trivial to write correctly, and configuration errors typically surface as silent connection failures rather than clear error messages.
- Requires server administration knowledge: Deployment assumes access to a VPS or server, the ability to configure firewall rules, and familiarity with TLS certificates and network routing concepts. Consumer VPN apps abstract all of this; Xray-core does not. Running a production instance means managing updates, uptime, and certificate renewal yourself.
Tech stack
FAQ
No. Xray-core was forked from v2fly/v2ray-core in November 2020. It shares the original codebase but has diverged significantly, adding XTLS, REALITY, XHTTP, and other protocols not present in the v2ray-core upstream. The XTLS and VLESS protocol improvements originated with the Xray project. They are separate projects maintained by different teams.
Inbound and outbound protocols include VMess, VLESS, Shadowsocks, Trojan, Socks5, HTTP, WireGuard, and DNS. XTLS and REALITY are TLS-layer enhancements available on VLESS connections, designed to help traffic blend with legitimate HTTPS and resist fingerprinting by deep packet inspection systems.
Yes, under MPL-2.0. You can run Xray-core commercially, including using it as part of a paid service. The file-level copyleft means modifications to Xray-core's own source files must be released under MPL-2.0, but building a service on top of an unmodified core does not trigger the copyleft requirement.
No. Xray-core is a headless binary configured by JSON files. Web management panels such as 3X-UI, Marzban, and Remnawave are separate open source projects that wrap the core and provide a browser interface for user management and traffic monitoring. Installing a panel separately is the standard approach for multi-user deployments.
Both are Go-based proxy cores supporting multiple protocols, including Shadowsocks, VMess, and WireGuard. sing-box is a separate project with its own configuration format and routing syntax. XTLS and REALITY support originated in Xray-core and was later added to sing-box. Both projects appear in the same client apps in some cases; the choice typically comes down to configuration syntax preference and which panel ecosystem you are building on.