On this page
Facts
What it is
Proxy protocol over QUIC; a client app turns it into a VPN
Since, by
2022, EAimTY; v5 in June 2023
Transport
QUIC over UDP; UDP as datagrams or in streams
Encryption
TLS 1.3 of QUIC; no layer of its own
To the network it looks like
QUIC with TLS; no masquerade site or obfuscation
Usual port
No default; UDP 443 in examples
Comes as
tuic:// link (unofficial format) or JSON, YAML config
License
Spec free to implement; Itsusinn/tuic under GPL-3.0
In Veli
Windows, macOS, Linux · link
Own server from the app
No
Versions and history
- 2022
TUIC by EAimTY, protocol v4
The first release, 0.1.0, came out in March 2022, written in Rust. By 0.8 (July 2022) the protocol was version 4: login by a token hashed with BLAKE3, and the server replied to every TCP request before data flowed.
- June 2023
TUIC v5
tuic 5.0.0 came with tuic-server and tuic-client 1.0.0: login by UUID and password through a TLS exporter, no replies to commands, fragmented UDP packets. v5 does not talk to v4.
- December 2023
Itsusinn's fork
After the author stopped developing TUIC, the Itsusinn/tuic fork carried the v5 server and client on. It still publishes releases in 2026.
- February 2025
A specification without an official implementation
The author restarted TUIC as a community project: the repository moved to the tuic-protocol organisation and keeps only SPEC.md. Its list of servers names sing-box, mihomo, shoes and Itsusinn/tuic.
How TUIC works
The spec describes TUIC as commands over a multiplexed TLS stream, designed mainly for QUIC. Every command starts with two bytes, the version (0x05 today) and the type, and there are five types.
Authenticate (
0x00)What it doesCarries the UUID and a 32-byte token over a unidirectional stream
Connect (
0x01)What it doesOpens a TCP relay: one bidirectional stream per connection, data right after the address
Packet (
0x02)What it doesCarries a UDP packet or a fragment of it, with a session ID, packet ID and fragment numbers
Dissociate (
0x03)What it doesEnds a UDP session and frees the server's socket
Heartbeat (
0x04)What it doesKeeps the connection alive while relays are open, sent as a QUIC datagram
- The token is not the password. It is derived from the current TLS session with the exporter of RFC 5705, the UUID as the label and the password as the context. The password never crosses the wire, and the token is useless in another session.
- No waiting. Login runs in parallel with the first requests; the server holds them after the header until the token checks out.
- No replies. No command gets an answer. What a server does with a bad token or an unreachable address is up to the implementation: close the connection or the stream, or ignore it.
0-RTT, UDP modes and congestion control
- Two kinds of 0-RTT. At the protocol level TUIC never waits for a reply: login, TCP and UDP requests go out together. Separately, QUIC itself can resume a connection with 0-RTT data (
zero_rtt_handshake). That one is off by default, and the reference server warns that it is open to replay attacks. - UDP mode
native. Packets go as QUIC datagrams: like plain UDP they can be lost, but there are no acknowledgements to wait for. Packets bigger than a datagram are split into fragments and put back together on the other side. - UDP mode
quic. Each packet goes in its own unidirectional QUIC stream, so none are lost and packets bigger than the path MTU get through, at the cost of more overhead. The server answers in the mode of the first packet of the session. - Full Cone NAT. The client numbers its UDP sessions, and the server keeps one socket per session that accepts packets from any address, which games and calls need.
- Congestion control is chosen by each side in its own config:
cubic(the default in the reference server and in sing-box),new_renoorbbr. On lossy linesbbrusually slows down less. - sing-box adds its own
udp_over_streammode, which needs a sing-box server and conflicts withudp_relay_mode.
TUIC v4 and v5
The spec warns that different protocol versions are not guaranteed to be compatible, and v4 and v5 are not. When people search for “tuic v5”, this is the difference:
Login
v4 (0.8, 2022)A token hashed with BLAKE3
v5 (since June 2023)UUID plus a token from the TLS exporter and the password
TCP
v4 (0.8, 2022)The server replies to Connect, then data flows
v5 (since June 2023)No reply: data follows the header at once
UDP packet
v4 (0.8, 2022)32-bit session ID, no fragments
v5 (since June 2023)16-bit session ID, fragments with packet and fragment numbers
Errors
v4 (0.8, 2022)Fixed error codes for version and login
v5 (since June 2023)Left to the implementation
Link
v4 (0.8, 2022)
tuic://token@host:portv5 (since June 2023)
tuic://uuid:password@host:port
- Who still speaks v4: mihomo reads a link with a token and no password as v4. NekoBox for Android refuses it: “TUIC v4 is no longer supported”.
The tuic:// link, field by field
TUIC has no official link format: the spec doesn't define one. The common form comes from a dae project discussion of July 2023, and mihomo's code calls it “a temporary unofficial TUIC share link standard”. sing-box has no links at all: apps built on it turn a link into its JSON fields uuid, password, congestion_control, udp_relay_mode and tls.
tuic://3f8b2a6c-5d1e-4c7a-9b0f-2e6d8a1c4b7e:s3cretPass@203.0.113.26:443?congestion_control=bbr&udp_relay_mode=native&alpn=h3&sni=vpn.example.com#Server-1- 3f8b2a6c-…:s3cretPass: the UUID and the password, separated by a colon. Both are needed in v5.
- 203.0.113.26:443: the server and its UDP port. There is no default port.
- congestion_control:
cubic,new_renoorbbrfor the client's sending side. - udp_relay_mode:
nativeorquic, see above. - alpn: the protocol named in the TLS handshake, often
h3. It must match the server; the reference server sets none by default. - sni: the name for TLS, the domain on the certificate.
disable_sni=1leaves the name out of the handshake. - allow_insecure=1: don't check the certificate. NekoBox and v2rayN read it; mihomo drops it when converting a subscription.
- #Server-1: the profile name, which carries no settings. The QUIC 0-RTT switch is not part of the link.
What a censor sees
To the network TUIC is QUIC with TLS. The first packet, the QUIC Initial, can be decrypted by anyone on the path, and it shows the server name from sni and the ALPN if one is set. After the handshake everything, the UUID and token included, is encrypted.
TUIC has no masquerade website, no obfuscation layer and no port hopping. A client without valid credentials gets a QUIC handshake and nothing web-like after it: the reference server simply gives a new connection 3 seconds (auth_timeout) to authenticate.
Filtering QUIC by server name applies to TUIC as to any QUIC. Zohaib et al. (USENIX Security 2025) found that from April 2024 the Great Firewall reads the name in Initial packets and drops the client's UDP to a blocked name for 180 seconds. The authors told TUIC's developers, among others, about ways around it, such as splitting the ClientHello across packets.
What is not known: no published study we know of looks at TUIC traffic itself rather than QUIC in general. Where a network drops UDP, TUIC has no TCP fallback, so a TCP profile next to it is the usual answer.
Strengths and weaknesses
Strengths
- Never waits for a reply: login, TCP and UDP requests go out at once
- The password never crosses the wire: the token is bound to the TLS session
- Two UDP modes:
nativefor games and calls,quicfor lossless delivery and big packets - A short, open specification with servers in sing-box, mihomo, Itsusinn/tuic and shoes
Weaknesses
- UDP only: no connection where UDP is closed, and not through a CDN
- No disguise of its own: no masquerade, obfuscation or port hopping; the name is visible in the QUIC Initial
- No official implementation or link format, so clients differ in fields such as
allow_insecure - v4 and v5 are incompatible, and some clients have dropped v4
- The QUIC 0-RTT option is open to replay attacks, so it usually stays off
Where it works
Programs and servers from our comparison tables that list this protocol.
Clients
- Hiddify
- Karing
- v2rayN
- NekoBox for Android
- NekoRay
- Throne
- Clash Verge Rev
- Clash Party
- FlClash
- Shadowrocket
- Stash
- mihomo
- sing-box
- PassWall
- PassWall 2
- OpenClash
Servers and panels
- 3X-UI
- S-UI
- Hiddify Manager
Sources
- TUIC protocol specification (SPEC.md, version 0x05)
- TUIC repository: implementations and license
- TUIC v4 protocol (impl-0.8 branch)
- TUIC v5 reference server config (impl-1.0 branch)
- EAimTY: why TUIC restarts as a community project (2025, Chinese)
- sing-box docs: TUIC outbound
- dae discussion 182: TUIC share link format
- Zohaib et al., SNI-based QUIC censorship of the GFW (USENIX Security 2025)