What is VLESS: the protocol and its vless:// link explained

VLESS is a light proxy protocol from the V2Ray and Xray family. It has no encryption of its own: it recognizes the user by a UUID and leaves protection and disguise to the layer beneath it, TLS or Reality. A VLESS server is described by three choices, the transport, the security and the flow, and all three are written in its vless:// link.

Updated

On this page

What VLESS is and where it comes from

VLESS appeared in 2020 in the V2Ray project as a lighter successor to VMess. Today it is developed mostly in Xray, the core made by the XTLS team, and Xray, sing-box and the clients built on them all understand it. It is a proxy protocol: the client opens a connection to the server, sends a short header with the user ID and the address it wants, and then the data goes through as it is.

Because the protocol does so little, it adds almost no overhead, and unlike VMess it has no clock check. The price is that VLESS encrypts nothing by itself. With security=none the traffic can be read along the way, so on the open internet VLESS runs over TLS or Reality: they encrypt the stream and make it look like an ordinary website.

The user is a UUID, a 36-character ID such as b084aee0-3421-4499-a473-f4ecbba7b3b8. The server keeps a list of allowed IDs and lets no one else in. A UUID is the login and the password at once; with one per device, you can remove a device without touching the others.

Transports: how the data travels

The transport is the type parameter of the link. It decides what the connection looks like on the wire and whether it can pass through a CDN or a web server in front of the VLESS server.

  • tcp — a plain TCP connection; Xray now calls it raw, and links may carry either word. The simplest and fastest option, used by Reality with the Vision flow.
  • ws — WebSocket. It looks like a web app talking to its site and passes through CDNs and web servers such as nginx; path and host set the path and host name.
  • grpc — gRPC on top of HTTP/2. It also passes through CDNs that support it; the service name is in serviceName.
  • httpupgrade — a lighter relative of WebSocket: an HTTP request that turns into a bare data stream. Often used behind a CDN.
  • xhttp — Xray's newer HTTP transport, formerly SplitHTTP. It can send upload and download as separate requests, works with TLS, Reality and CDNs, and has its own mode parameter. Of the two main cores, only Xray has it.
  • kcp — mKCP, a transport over UDP with its own resending of lost packets. Rare in links, and missing from sing-box too.

Security: none, TLS or Reality

The security parameter says what protects the connection. This is where the encryption comes from, since VLESS itself has none.

  • none — no protection. Only for testing or when VLESS runs inside another encrypted layer; on the open internet anyone on the way can read the traffic.
  • tls — ordinary TLS, as on any HTTPS website. The server needs a domain and a certificate, and the domain goes into sni. In return, with ws, grpc, httpupgrade or xhttp the connection can go through a CDN, and the server's own address stays hidden behind it.
  • reality — the TLS handshake of a real website that belongs to somebody else. No domain or certificate of your own, and whoever probes the server sees that real site. It needs the server's public key (pbk) and a short ID (sid), and it doesn't go through a CDN.
  • fp — the browser whose TLS fingerprint the client copies: chrome, firefox, safari and others. Without it the handshake looks like a Go program rather than a browser; with Reality it is required.

The xtls-rprx-vision flow

When you open an HTTPS site through a TLS proxy, there is TLS inside TLS: the browser's own handshake travels inside the proxy's encrypted stream, and the sizes and timing of those inner packets form a pattern a careful filter can recognize. The xtls-rprx-vision flow pads the inner handshake so the pattern disappears, and once the inner TLS is up, it passes the already encrypted data on without encrypting it a second time.

Vision works only with the tcp (raw) transport and only with tls or reality; with ws, grpc, httpupgrade and xhttp the flow stays empty. It must match on both sides: if the server's user entry has Vision and the link doesn't, or the other way round, the connection fails.

A vless:// link, field by field

A VLESS link is a whole profile in one line: vless://ID@address:port?parameters#name. Below is a typical Reality link. The address is from a range reserved for documentation, and the ID and keys are made up.

Example
vless://b084aee0-3421-4499-a473-f4ecbba7b3b8@203.0.113.10:443?encryption=none&flow=xtls-rprx-vision&security=reality&sni=www.example.com&fp=chrome&pbk=eGjsq-1bTItSi448hnpbXv6_8OamCZWoemCtrZMB3KU&sid=07759ef874c6d4f8&type=tcp#Server-1
  • b084aee0-3421-4499-a473-f4ecbba7b3b8 — the UUID, your user ID on the server.
  • 203.0.113.10:443 — the server's address and port. A domain name works too; 443 is the usual HTTPS port.
  • encryption=none — VLESS's own encryption is off, as in almost every link. Newer Xray versions added optional VLESS encryption: such links carry a long value starting with mlkem768x25519plus here instead.
  • flow=xtls-rprx-vision — the Vision flow; it must match the server.
  • security=reality — Reality protects and disguises the connection.
  • sni=www.example.com — the website name in the handshake: for Reality, the site it borrows; for TLS, your own domain.
  • pbk and sid — Reality's public key and short ID. Both come from the server, and one changed character breaks the connection.
  • fp=chrome and type=tcp — the browser the handshake imitates, and the transport.
  • #Server-1 — only the name the client shows in its list.
  • Other transports — a WebSocket link with TLS has security=tls&type=ws&host=cdn.example.com&path=%2Fws instead and no flow, pbk or sid; %2F is an encoded slash.

VLESS and VMess

VMess is the older protocol of the same family. It encrypts the data itself and checks the time, so a device whose clock is off by more than a minute or two can't connect. VLESS dropped both and hands encryption to TLS or Reality. For a new server people pick VLESS today, most often with Reality; VMess stays where a service still hands out vmess:// links, usually over WebSocket with TLS. The separate guide on VMess and VLESS compares them in detail.

What VLESS doesn't do

  • It doesn't encrypt by itself — without TLS or Reality the traffic is readable.
  • It doesn't hide the server's IP address — if the address is blocked, no disguise helps.
  • It isn't a VPN on its own — the client app captures the device's traffic and hands it to VLESS.
  • It isn't one fixed thing on the wire — VLESS over ws with TLS and VLESS with Reality look completely different to a filter, so “VLESS doesn't work here” usually means one combination doesn't.

In Veli

A VLESS link in Veli, or your own VLESS Reality server

In Veli a vless:// link goes into one field: Profiles → Add. The app works out that it is VLESS by itself, says so under the field and makes a profile with the name from the link; several links can go in at once, one per line. On a computer VLESS runs on the sing-box or Xray module, and the app offers to install the one it needs; Xray only for links sing-box can't open, such as xhttp. On Android: Profiles → Add, then “Continue” or “Scan a QR code”.

No server yet? Profiles → Add → “Your own server”, the server's address and password, “Add the server”. On the server screen select VLESS Reality and click the install button: the app makes the keys and settings by itself, and every device gets its own UUID. “Add a device” gives a QR code and a link like the one above: Reality over TCP with the Vision flow.

FAQ

Is VLESS a VPN?

Not on its own: it is a proxy protocol. A client app turns it into a VPN by capturing the device's traffic and sending it through the VLESS connection.

Does VLESS encrypt traffic?

VLESS itself doesn't, which is what encryption=none in the link means. The encryption comes from TLS or Reality, and nearly every working link has one of them.

What is the difference between VLESS and VLESS Reality?

VLESS is the protocol, and Reality is one way to protect it: no domain of its own, and the handshake of somebody else's real website.

Why doesn't my vless:// link connect?

Most often the link was cut off when copied, the server changed its key or ID, or the network blocks that server. Paste it again whole, then ask for a fresh one.

VLESS by link or on your own server

Paste a vless:// link into Veli, or let the app install VLESS Reality on your VPS over SSH.