Xray compatibility and the rain-core laboratory
RainClash is a free, open-source proxy client for Android, Windows, macOS and Linux. It ships rain-core, a patched mihomo (Clash Meta) engine with client-side Xray compatibility and reproducible interoperability checks.
On this page
What runs inside RainClash
The application builds rain-core from a numbered patch series on a pinned mihomo base. The core keeps Clash rules, proxy groups, DNS and TUN while adding Xray-compatible client features. RainClash imports supported Xray JSON and sing-box JSON fields into the core's configuration; it does not run those engines or promise their complete configuration languages.
You supply a server or subscription. RainClash is the client, not a subscription service. Download the application and follow the quick start on the website.
Compatibility by feature
| Feature | Scope and evidence |
|---|---|
| VLESS REALITY and Vision | TCP, TLS, REALITY, ML-DSA-65 verification and Vision are in the recorded live lab. |
| XHTTP | The automated lab includes XHTTP and XHTTP over TLS; separate peer checks cover h2 modes, h3, download-settings and the client-side h2 flow governor. |
| VLESS Mux.Cool and XUDP | The core has a real-Xray interop suite. Vision with UDP-only mux is supported; Vision with TCP mux is rejected. |
| ECH | VLESS TLS is in the automated lab. Separate peer checks cover config and DNS query-server forms; ECH with REALITY is inert, as in stock Xray. |
| finalmask and fragmentation | The patch series includes finalmask; separate peer checks record fragment-opts on VLESS and Trojan. This does not prove every finalmask combination. |
| Other proxy families | The live matrix includes VMess WS, Trojan TLS/WS, Shadowsocks 2022, and sing-box peers for Hysteria2, TUIC and AnyTLS. |
| Configuration import | Share links, Xray JSON and sing-box JSON pass through the Dart importer before the core's parse/apply/listener path. Supported fields are converted; unsupported or unsafe nodes can be skipped with a report. |
What the laboratory verifies
The laboratory source and instructions generate temporary keys, certificates and peer configurations, start stock servers, import a corpus with RainClash's Dart importer, then send traffic through the core's mixed listener.
A live case passes only when both checks succeed:
TCP returns HTTP 200 with the expected RAIN-ORIGIN-OK response body.
UDP returns the expected UDP-ECHO datagram payload.
This checks data transfer beyond a successful handshake or header-only latency probe. The recorded results are dated December 1, 2026 on Linux: 26 live nodes against stock Xray 26.11.9 and sing-box 1.13, five rejected adversarial links and format assertions. Additional peer audits are identified separately in the report, including checks against Xray 24.12.31. Historical results describe those versions and configurations, not every future release or network.
TLS fingerprints and versions
The bundled rain-core is based on mihomo v1.19.34 and pins metacubex/utls v1.9.0-alpha.1. These are TLS ClientHello templates selected by client-fingerprint, not HTTP User-Agent strings or installed browser versions.
| Configuration name | ClientHello template |
|---|---|
chrome / chrome155 | Chrome 155 |
firefox / firefox160 | Firefox 160 |
firefox156 | Firefox 156 |
chrome133 | Chrome 133 |
firefox148 | Firefox 148 |
chrome120 / firefox120 | Chrome 120 / Firefox 120 |
safari | Safari 26.3 |
safari16 | Safari 16.0 |
ios | iOS 14 |
android | Android 11 OkHttp |
edge | Edge 85 |
360 / qq | 360 7.5 / QQ 11.1 |
firefox156 and firefox160 use the same ClientHello layout in this series. Xray-style aliases include hellochrome_155, hellofirefox_160 and their _auto names. random chooses Chrome, Safari or Firefox once per Core process; randomized generates a template without a fixed browser version. REALITY can adapt key shares according to its ML-KEM policy. These names do not promise a constant JA3/JA4 value or identical behavior to a browser.
Sources: the browser default patch, Firefox templates and the pinned uTLS profile map.
Import safety and limits
Malformed REALITY keys, REALITY parameters without REALITY security, unsupported QUIC/KCP share-link transports and malformed ECH values are among the rejected cases. The importer reports skipped nodes and security losses rather than silently turning an unsafe REALITY link into plain TLS.
Successful import proves conversion; a live peer test proves the tested transport can transfer data.
A Linux core lab does not establish Android VPN lifecycle, desktop packaging or every platform's network behavior.
Matching XHTTP client and server modes matters. Some mismatches also fail with stock Xray.
Server-side Xray roles, the full Xray routing language and arbitrary Xray settings are outside this compatibility claim. mKCP and server-side finalmask are not in the patch series.
Laboratory results do not guarantee access on a censored network, service availability or any particular throughput.
For routing inside RainClash, use RCX auto routing and site lock. Providers can use the integration guide.
Reproduce and inspect
Use a disposable test environment with Go, Flutter, a prepared RainClash checkout and the peer versions named in the lab instructions. Set XRAY_BIN and SINGBOX_BIN to the test binaries, then run from the application checkout:
dart tool/prepare.dart
XRAY_BIN=/path/to/xray SINGBOX_BIN=/path/to/sing-box python3 tool/rain_lab/run.py allThe command creates local test listeners and stops its peers after the run. The lab README documents the individual steps and cleanup command. Review the import audit, peer audit and rain-core provenance for the boundaries and patch credits.