Concord is a proxy core written in Rust. It reads Clash profiles, routes connections by rules through proxy groups to
an outbound protocol, and runs either on its own or inside an application over a control API. Across the measured
Linux, macOS and Android workloads, Concord uses 40% to 73% less peak memory than mihomo, spends less CPU per byte in
most cases, and reaches higher throughput on several proxied, VPN and TUN paths, while some metrics tie and two Linux
TUN request/response CPU rows and the UDP request/response p50 latency trail sing-box. It also includes capabilities
mihomo does not ship, notably HTTPS interception (MITM) with Surge, Loon, Quantumult X and Stash modules, and a
NaiveProxy outbound.
| Measured against | Throughput | Core CPU | Peak memory |
|---|---|---|---|
Linux SOCKS5 (5 cases vs mihomo v1.19.33) |
Down tie to +44.0%; UDP up to +60.5% | -5.1% to -38.5% (down) | -40.3% to -52.5% |
Linux OpenVPN & WireGuard (vs mihomo v1.19.33) |
OpenVPN +111%; WireGuard +54.3% | -23.8% to -83% | -51.8% to -55% (OpenVPN) |
Linux TUN (direct, MTU 1500 vs sing-box v1.15.0-alpha.13) |
+52.2% down; +166.7% 8-flow | Down -35.7%; RR trails (up to +19.4% CPU) | -63.6% to -67.0% |
macOS SOCKS5 (5 cases vs mihomo v1.19.33) |
hysteria2 +45.7% up; ss-aes128 +20.7% down |
-17.0% to -46.6% (proxied down) | -55.8% to -72.8% |
| Android phone (link-bound, vs FlClash's Go/mihomo core) | Link-bound (TCP ties; direct UDP +3.8%) |
-37.1% to -59.2% (direct) |
-55% cold-start PSS |
Android emulator TUN (vs SFA / sing-box v1.15.0-alpha.13) |
+17.8% to +30.5% (MTU 1500; 9000 ties) | -13.2% to -25.4% (MTU 1500; 9000 ties) | -40% to -46% |
Every figure above is taken from docs/performance.md, which gives the full tables, methodology, confidence intervals and what is not covered yet (including Windows and macOS TUN).
Against upstream mihomo v1.19.33 on a Linux arm64 VM: both as the SOCKS5 client in front of the same mihomo server
over loopback, every process pinned to its own CPUs, six rounds of fresh processes (pre-release build of 0.1.0).
Figures are Concord relative to mihomo; higher is better for rates, lower for CPU and memory, and "tie" means no
significant difference.
| Case | Download | Upload | UDP | CPU per GB, download | New connections/s | Peak memory, download |
|---|---|---|---|---|---|---|
direct |
tie (+1.5%) | tie (+2.7%) | +29.2% | -5.1% | +36.7% | -40.3% |
ss-aes128 |
+30.7% | +2.2% | +58.9% | -20.2% | +23.7% | -49.4% |
trojan-tls |
+44.0% | tie (+2.2%) | +60.5% | -31.4% | +41.3% | -48.5% |
vmess-grpc-tls |
+5.1% | +16.9% | -21.2% | +13.3% | -52.5% | |
hysteria2 |
tie (+7.2%) | tie (-0.3%) | +35.4% | -38.5% | tie (+2.5%) | -52.3% |
Across the same five cases, request/response CPU per transaction is -24.3% to -47.8%, UDP CPU per GB is -25.6% to
-52.0% with -20.3% to -41.5% p99 round-trip latency, and new-connection p99 latency is -21.8% to -56.6% (hysteria2
ties).
- Linux OpenVPN and WireGuard (against mihomo
v1.19.33): against a real OpenVPN 2.6.19 server,openvpn(UDP) reaches +111% download, +72% upload and +100% multi-flow throughput with -67%/-83% core CPU per GB and -55% peak memory;openvpn-tcpreaches +45.7% download (server-bound), -49.0% download and -23.8% upload CPU per GB, and -51.8% peak memory, with upload rate and connection p99 tying. Against a Linux kernelwg0peer (MTU 1408),wireguardreaches +27.5% throughput (-36.6% CPU per GB) at the default 212 KiB buffer and +54.3% single-flow / +54.0% four-flow throughput (-32.9% / -33.6% CPU per GB, Jain fairness 0.999 against 0.650) at 7 MiB, plus -47.7% to -48.2% core CPU per transaction on 64-byte request/response. - Linux TUN (
direct, MTU 1500, againstsing-boxv1.15.0-alpha.13default Go stack): Concord leads on download (+52.2%, -35.7% CPU per GB), upload (+24.3%, -20.0% CPU per GB), eight-flow throughput (+166.7%, -26.3% CPU per GB) and peak memory (-63.6% to -67.0%), and ties on UDP stream throughput, CPU and p99; it trails on request/response CPU (+7.0% per TCP transaction, +19.4% per UDP GB) and UDP request/response p50 latency (+6.7%), with rates and p99 tying. - macOS (against mihomo
v1.19.33): peak memory is -55.8% to -72.8% across all five cases, proxied download CPU per GB is -17.0% to -46.6%, request/response CPU per transaction is -37.8% to -56.7%, andhysteria2leads on upload (+45.7%), download (+21.2%) and UDP (+39.1%); several rate cells tie within the VM's A/A resolution or are not judged. - Android: on a Xiaomi Mi 11 over a link-bound Wi-Fi hotspot against FlClash's Go (mihomo) core, CPU per GB is
-37.1% to -59.2% on
direct(30.0 against 66.4 MiB cold-start PSS, -55%; UDP rate +3.8%, transactions/s +3.6%) and -21.5% to -47.3% onhysteria2,tuicandwireguard(withhysteria2download CPU per GB tying at -18.7% and peak memory -48.7% to -56.2%); against SFA (sing-boxv1.15.0-alpha.13) in the same sessions, CPU per GB is -44.2% to -68.8% onhysteria2(-46.4% per transaction), -25.0% to -45.8% ontuic(-46.8% per transaction) and -11.2% to -45.0% onwireguard(-40.1% per transaction), with peak memory -45.1% to -54.7%. In the Android emulator on a link that loads the core against SFA, Concord leads by +18.6% download, +17.8% upload and +30.5% four-flow throughput at MTU 1500 (-13.2% to -25.4% CPU per GB), ties at MTU 9000, and peak memory is -40% to -46% at both MTUs.
See docs/performance.md for every metric, how to reproduce the runs, and Not Covered Yet.
- Your existing Clash profiles, with stricter handling. Clash rules, proxy groups (including
smart), providers and DNS. A node Concord cannot build or does not support is set aside with a structured warning (concord -t) instead of failing the whole profile. - HTTPS interception (MITM) and module compatibility (not in mihomo). Optional MITM for listed hosts, with
header, URL and body rewrites (
jqfilters, Map Local and request-body mocks), QuickJS scripts (http-request,http-response,ruleanddns),URL-REGEX,USER-AGENTandSCRIPTrules, REJECT variants, and native reading of Surge.sgmodule, Loon plugins, Quantumult X snippets and Stash.stoverride. - Broad protocol coverage and server inbounds. Outbounds: Shadowsocks, ShadowsocksR, VMess, VLESS with REALITY,
Trojan, AnyTLS, Snell (up to v6), Hysteria, Hysteria2, TUIC, ShadowQUIC, mieru, WireGuard (with AmneziaWG options),
OpenVPN, MASQUE, Tailscale, NaiveProxy (not in mihomo), Gost relay, SSH, SOCKS5 and HTTP; over WebSocket, gRPC,
HTTP/2, HTTPUpgrade, xhttp, ShadowTLS, JLS, gost-plugin and sing-mux; with ECH and browser TLS fingerprints. The same
executable also runs protocol server inbounds (
listenersfor Shadowsocks, VMess, VLESS with Vision, Trojan, AnyTLS, TUIC, Hysteria2 with masquerade, ShadowTLS v1–v3, sing-mux and Mux.Cool). - Built-in TUN. A single native Rust userspace TCP/IP stack (CUBIC, Reno and BBR) on macOS, Linux, Windows and Android, beside mixed, HTTP, SOCKS, redirect and TProxy listeners.
- Control and embedding API. JSON-RPC 2.0 with live streams, described by
schema/api.json, and the Clash REST API for dashboards such as metacubexd, zashboard and yacd.
| Platform | Architectures | Form |
|---|---|---|
| macOS | arm64, x86_64 | Executable concord |
| Linux | arm64, x86_64 | Executable concord |
| Windows | arm64, x86_64 | Executable concord.exe |
| Android | arm64, armv7, x86_64 | Library libconcord.so |
git clone https://github.com/concord-net/concord
cd concord
cargo build --release -p concord-desktop
target/release/concord run -c config.yaml| Option | Meaning |
|---|---|
-c, --config <file> |
The Clash profile to run (default: config.yaml in the home directory) |
-d, --directory <dir> |
The home directory (default: ~/.config/concord) |
-h, --help |
Print the options |
To validate a profile without running it and print JSON warnings, run concord -t -c <file> (add --android to check
it as the Android build loads it).
docs/usage.md covers building on Windows, running as a server, the home directory, geodata, reloading and dashboards.
Applications can also embed Concord, as a child process on desktop or as libconcord.so on Android, and drive it
through the JSON-RPC API. FlClash is built this way.
docs/compatibility.md lists where Concord differs from mihomo.
GPL-3.0-or-later; see LICENSE. Code and designs taken from other projects are listed in THIRD_PARTY_NOTICES.md.