Xray-core is an open-source proxy engine. It is a single command-line program that accepts network connections, decides where each one should go and forwards it, often to another Xray-core running on a server. It began in 2020 as a fork of V2Ray's core, and VLESS, XTLS, REALITY and XHTTP are among the project's own protocols. Xray-core has no window of its own: people reach it through an app built on top of it, or through a configuration file on a server.
The details below come from the Xray project's documentation and its repositories on GitHub, all read 3 December 2026. We did not install or run any of this software ourselves, so nothing below is a test result.
What Xray-core is
The program's own help text opens with one line: "Xray is a platform for building proxies" (command reference). Xray-core is the engine that several proxy protocols run in, not a protocol itself, and whoever sets it up chooses which ones to use.
It is published by Project X, whose GitHub organization is named XTLS. The README says the project "originates from XTLS protocol, providing a set of network tools such as Xray-core and REALITY" (Xray-core on GitHub). GitHub lists Go as the repository's language and the Mozilla Public License 2.0 as its license. It shows the repository was created on November 9, 2020, and the latest release is dated November 9, 2026.
The names overlap. The documentation separates two of them this way: "XTLS are brilliant ideas for TLS we study, while Xray is the best practice we maintain" (Project X documentation). Here is how the project's own pages use each name:
- Xray-core is the program.
- Xray is short for the same thing, and
xrayis the name of the executable file. - XTLS is the name of the GitHub organization, and what the project calls its ideas for TLS.
- Project X is what the project calls itself.
Where Xray-core came from
Xray-core started as a fork of V2Ray. The README's credits say that "Xray-core v1.0.0 was forked from v2fly-core 9a03cc5", a specific commit in the v2fly organization's v2ray-core repository. GitHub dates that first release to November 25, 2020.
The two have grown apart since: the documentation's front page says Xray-core "originally branched from v2ray-core, but it has evolved independently for a long time and should no longer be treated as a fully compatible drop-in replacement". It adds that some configuration structures still resemble V2Ray's, while environment variables, API prefixes and many features differ.
Both projects still publish releases. V2Ray's latest release on GitHub is dated August 2, 2026, and Xray-core's November 9, 2026 (both read 3 December 2026). The guide to what V2Ray is covers the older project.
What is inside Xray-core
Xray-core reads a configuration, and the documentation says "there is no difference in the configuration format between the client and the server; only the actual configuration content differs" (configuration reference). So the same program can be the client on one machine and the server on another. The file is JSON by default, and TOML and YAML also work.
The configuration has sections for logging, DNS, statistics and more. Four of them describe how traffic moves:
- Inbounds receive incoming data. On a client that is traffic from the device's own apps; on a server it is traffic from clients.
- Outbounds send data on. The first outbound in the list is the primary one, used when no routing rule matches.
- Routing picks an outbound for each connection by rule. The documentation gives the common case of telling domestic destinations from foreign ones and sending each through a different outbound.
- Transport settings control how an inbound or outbound talks to its peer: the transport method that carries the data, and the transport security around it.
Each inbound and outbound speaks one proxy protocol. The documentation's list for outbounds includes VLESS, VMess, Trojan, Shadowsocks, SOCKS, HTTP, WireGuard and Hysteria. The transport methods include RAW, XHTTP, mKCP, gRPC, WebSocket and HTTPUpgrade, and transport security, when it is switched on, is TLS or REALITY (transport reference). The guides to what VLESS is and what Shadowsocks is cover two of those protocols.
The documentation calls the way these pieces fit together "free combination": VLESS over RAW with REALITY, for example, or VLESS over XHTTP with TLS.
Running it is one command, xray run -c config.json, and adding -test checks a configuration without starting the server.
Xray-core vs V2Ray
Both repositories hold code for VMess, VLESS, Trojan, Shadowsocks and WireGuard, and the documentation says some of Xray-core's configuration structures and usage patterns still resemble v2ray-core's.
What Xray-core adds is its own set of protocols. The documentation lists "original protocols such as VLESS, XTLS, XUDP, XHTTP, and REALITY", which "cover proxying, flow control, multiplexing, transport, and security". VLESS is in both projects. REALITY, XHTTP and the Vision flow are not: a search of V2Ray's code on GitHub finds none of the three (searched 3 December 2026).
- Started: V2Ray came first; Xray-core was forked from it in November 2020.
- License: MIT for V2Ray, Mozilla Public License 2.0 for Xray-core.
- Protocols in both: VMess, VLESS, Trojan, Shadowsocks, WireGuard.
- In Xray-core's code only: REALITY, XHTTP, Vision.
- Configuration: similar in structure, no longer interchangeable.
Some apps with V2Ray in their name are built on Xray-core: the README's list of clients built on it includes v2rayN and v2rayNG.
XTLS, REALITY and XHTTP in brief
Each of these is something you switch on in an Xray-core configuration.
- REALITY is a kind of transport security. The documentation describes it as "a modified form of TLS that uses the appearance and handshake characteristics of a target site as camouflage" (REALITY reference).
- XHTTP is a transport method, one of the ways the data stream is carried. The REALITY reference names it, with RAW and gRPC, as the transport methods REALITY can be used with.
- Vision is a flow-control mode for VLESS, which the documentation calls XTLS Vision.
The documentation says that from the outside REALITY's "traffic shape is consistent with ordinary web browsing". The transport reference also warns that "using TLS or REALITY does not mean that proxy traffic has the same characteristics as ordinary HTTPS traffic", and that being able to communicate securely "does not imply the ability to circumvent censorship". The guide to what VLESS is, linked above, goes through all three in detail.
How people use Xray-core
On a server
The release of November 9, 2026 has ZIP archives for Windows, macOS, Linux, FreeBSD, OpenBSD and Android (releases on GitHub). For a Linux server there is an official install script, XTLS/Xray-install, and an official Docker image (install guide). The README also lists web panels, among them 3X-UI and Marzban.
A server needs a matching client. The transport reference says that for settings that require negotiation, "both sides usually need compatible configurations": if one side uses WebSocket, the other must too.
On a phone or computer
On a phone or a desktop, an app can have Xray-core inside and put a screen on it. The README lists such apps by platform (read 3 December 2026): v2rayNG on Android, v2rayN on Windows, macOS and Linux, and Happ and Streisand under its heading for iOS, among others. To be listed, a project has to "build their core experience on Xray-core".
An app of this kind is a client: it connects to an Xray server that you run, or one that someone gives you the details of. The client guides for iPhone and iPad, Android and Mac go through the apps one by one.
App developers can build the core in through a wrapper. The project's own, libXray, describes itself as "a wrapper around Xray-core to improve the client development experience" (libXray on GitHub).
Other cores
Xray-core is not the only engine that speaks these protocols. Under the heading "Others that support VLESS, XTLS, REALITY, XUDP, PLUX...", the README names Amnezia VPN, mihomo and sing-box as cores.
An app with the servers included
The other route is a VPN app whose maker runs the servers, so there is nothing to configure. Tegant VPN is our own app, and it works this way. Tegant's XRay option runs VLESS with Vision and Reality, Trojan over TLS, VLESS with XHTTP over TLS, and VLESS with XHTTP over Reality. In the app you switch from WireGuard to XRay, pick a server and connect. On iPhone, iPad and Mac, Tegant's XRay option runs on Xray-core.
XRay is part of Tegant Premium on iPhone, iPad, Mac and Android, and it is available in 15 of Tegant's 18 server countries; France, Italy and Spain are WireGuard only. The free tier, where it is available, is WireGuard only. No VPN can guarantee access on every network, and that includes ours.
Rules on VPNs differ from country to country and change often, so check the current law where you are. Our guide to how VPN rules differ by country has more.
Xray-core questions
Is Xray-core a VPN?
No. Xray-core is a proxy engine: software that forwards connections according to a configuration. A VPN app can use it as the tunnel between your device and the app maker's servers, which is why the two words get used together.
Is Xray the same as V2Ray?
No. Xray-core was forked from V2Ray's core in 2020 and has developed separately since. Its documentation says it "should no longer be treated as a fully compatible drop-in replacement".
Is Xray-core free?
The software is free and open source, under the Mozilla Public License 2.0. A server is not: someone has to rent and run it, whether that is you or a VPN provider.
What is XTLS?
XTLS is the name of the GitHub organization that publishes Xray-core, and the project's name for its ideas about TLS. Vision, the flow-control mode for VLESS, carries the name: the documentation calls it XTLS Vision.
How do I install Xray-core?
Download the ZIP archive for your system from the project's releases on GitHub and extract it. On macOS the install guide also gives brew install xray, and for a Linux server the project maintains an install script, XTLS/Xray-install. After installing, it needs a configuration before it does anything.
How do I check the Xray-core version?
Run xray version. The command reference describes it as "Show current version of Xray".
Is there an Xray app for iPhone?
Xray-core's README lists several under its heading for iOS, Happ and Streisand among them (read 3 December 2026). They are clients, so you still need a server to connect to.
Tegant VPN supports WireGuard and, with Premium, XRay, so you can switch protocols depending on your network. Learn more about Tegant VPN.