Snell
Overview
Section titled “Overview”Snell is a lightweight encrypted proxy protocol from Surge (salt + AES-GCM record layer). MiaomiaowuX implements the Snell v4 / v5 / v6 server inside its embedded (forked) xray core, with TCP + UDP, obfs and multi-user support. Per-user traffic stats / rate-limit / device-limit all go through the existing xray dispatcher, sharing the same multi-user capabilities as VLESS / Trojan, and it has been verified interoperable with upstream sing-box / mihomo.
Version comparison
Section titled “Version comparison”| Version | Multi-user model | Obfs / shaping | Notes |
|---|---|---|---|
| v4 | Per-user PSK (trial-decrypt per PSK) | obfs: none / http / tls | Widest compatibility; supported by mainstream clients |
| v5 | Per-user PSK | obfs: none / http / tls | Same wire format as v4, with refinements |
| v6 | Per-user PSK (hidden salt) | mode: default / unshaped / unsafe-raw | Stronger anti-blocking (hidden salt + shaping); needs newer clients |
Adding a node (wizard)
Section titled “Adding a node (wizard)”In Node Management → Add Node, pick the Snell protocol; the version buttons are ‘v4/v5’ or ‘v6’. On save the Clash config is stored into the node table by default. Snell is only available on servers in embedded Xray mode.

Snell: protocol-specific settings choose the version (v4/v5 or v6), obfs (none / http / tls) with obfs host, and the v6 shaping mode; each user has its own PSK
Simple mode
Section titled “Simple mode”Just enter server address and port; the PSK is auto-generated, then submit.
Expert mode
Section titled “Expert mode”Additionally configure obfs / shaping and multiple users: v4 / v5 set obfs (none / http / tls) and obfs-host; v6 set mode (default / unshaped / unsafe-raw). One PSK per user (for v4, v5 and v6 alike).
Client compatibility
Section titled “Client compatibility”- Surge: native Snell support (v1–v6), the original Snell client
- mihomo / Clash.Meta: Snell v1–v5 (v6 needs a newer core); MiaomiaowuX’s Clash subscription outputs v4 / v5
- sing-box: recent versions support Snell; MiaomiaowuX’s sing-box subscription outputs v4–v6 (v5 folded to v4)
- MiaomiaowuX subscription conversion currently covers only Clash and sing-box clients (other clients have limited Snell support)
- Auth field is settings.users[].psk (not clients[] / password); Add-Inbound ‘Simple mode’ auto-generates the PSK
- v4 and v5 share the same wire format (plaintext salt + AES-128-GCM records); v6 hides the salt (via PSK-derived shuffle / mask) and adds traffic shaping. All three versions use one PSK per user, and the server tells users apart by trial-decrypting with each PSK
- v6 supports three shaping modes: default (shaped), unshaped, unsafe-raw (raw core, debug only); v4 / v5 support obfs (none / http / tls), v6 no longer uses obfs
- Snell uses plain TCP transport, no TLS / streamSettings; per-user traffic stats / rate-limit share the same xray dispatcher path as VLESS / Trojan
Config examples
Section titled “Config examples”Snell v4 / v5
Section titled “Snell v4 / v5”{ "tag": "snell-in", "listen": "0.0.0.0", "port": 8443, "protocol": "snell", "settings": { "users": [ { "psk": "your-psk", "version": 4, "obfsMode": "none", "email": "user@example.com" } ] }}Snell v6
Section titled “Snell v6”{ "tag": "snell-in", "listen": "0.0.0.0", "port": 8443, "protocol": "snell", "settings": { "users": [ { "psk": "your-psk", "version": 6, "v6Mode": "default", "email": "user@example.com" } ] }}v4, v5 and v6 all use a separate PSK per user. obfsMode applies to v4 / v5 only: omit it when none, or set http or tls plus obfsHost for obfuscation; v6 sets its shaping mode with v6Mode.