Technical Reference / Protocols and Cores

Clash Proxy Protocols and Core Guide

Check the core and subscription format first, then compare handshakes, throughput, resource use, and battery drain.

Installing a client for the first time, importing a subscription, or checking a connection? Start with the Clash setup guide. This page is for readers who can already open the configuration screen and want to choose a protocol or understand why the same config behaves differently in two clients.

Clients and cores: understand the three layers

What the client, core, and proxy protocol each do

The client interface imports subscriptions, switches configurations, displays connection logs, and may request permission to use the system proxy or a virtual network interface. The core reads the configuration, applies domain and IP rules, manages proxy groups, and connects to remote servers using the selected protocol. A protocol defines how the two ends authenticate, encapsulate, and transmit data. The interface's System Proxy and TUN modes determine how local traffic reaches the core; they do not turn a Trojan entry into VLESS. Conversely, a working proxy entry does not mean the core is handling traffic from every other app on the system.

If the same config behaves differently in two interfaces, check the About screen or runtime logs to identify the core actually in use—not just the app name. A desktop client may bundle a particular core version or let you switch cores. A mobile app may parse the config itself and pass only recognized fields to the underlying core. If the connection screen shows fewer proxy groups than the file, the issue may lie in import or override handling, not connection setup. Compare using the same local copy of the config, and note the active entry and the proxy group actually selected. Distinguish between seeing an entry, being able to select it, and confirming that traffic really uses it.

How original Clash, Clash.Meta, and Mihomo are related

Original Clash established the basic structure of rules, proxy groups, and configuration files—concepts many desktop interfaces still use. Clash.Meta is a fork in that lineage, adding more protocols, transport options, and network features. Mihomo continues the Clash.Meta project. Older documentation that mentions Meta can help explain the project's history, but it does not tell you which features are included in a particular installer. Protocol implementations, encryption methods, and config fields in older builds may lag behind current documentation.

This lineage helps explain why many older configs can be migrated, but it does not mean compatibility works both ways. Proxy lists, groups, and basic domain rules from older configs can often be retained, but a config with Hysteria2 or TUIC entries will not necessarily work in the original core. Even when every node parses, DNS behavior, rule-set downloads, and TUN settings can change how traffic flows across the whole device. During migration, import a separate copy into the new client, check the group members, and test one direct destination and one proxied destination. Restore automatic switching and your usual rules only after both work as expected.

Local validation and troubleshooting boundaries

If you already have the Mihomo CLI installed, run the check below from the directory containing the saved config. The executable must be available in your terminal, and the command runs with your current user permissions. Relative paths, rule assets, and working directories may differ when launched from a graphical client, so if validation fails, start with the first error and check the referenced file rather than deleting an entire section. Passing validation only means the core accepts the config. It does not prove the remote port is reachable or replace real-world checks of certificates, authentication, and routing.

mihomo -t -f ./config.yaml

If an older client still launches but an archived version cannot handle new fields, keep the original config for reference; don't try deleting lines from it one by one. Import an edited copy under a different name so a subscription refresh cannot overwrite your changes. For a Clash for Windows migration, follow the post-discontinuation config migration steps and recheck the ports, proxy mode, and active group. For a new install, choose your OS and architecture on the client downloads page. Clash Plus is our top recommendation, but check actual platform support for configs with specific requirements.

SS and VMess: lightweight encapsulation and composable transports

Shadowsocks: check the cipher first, then any transport plugins

Shadowsocks, often shortened to SS, was designed as a relatively simple way to proxy app traffic while encrypting data between the client and proxy server. A basic connection mainly needs a server address, port, cipher, and password, making it easier to troubleshoot than setups with an additional transport layer. But SS does not have one unchanging set of parameters: older stream ciphers, common authenticated encryption methods, and newer compatible families may require different key formats. The client and server must agree on the same method and key format. Seeing “SS supported” in a client does not guarantee that every SS configuration can be imported.

For ordinary apps, a basic SS entry does not need a separate outer TLS session for each connection. Subscriptions with plugins are different: the plugin may add its own transport and security settings. Some clients recognize the address in a share link but drop the plugin options, so the entry looks fine even though the server receives something unexpected. After import, expand the node details and check the cipher, connection port, and plugin type one by one. If a plugin is not recognized, don't try a stripped-down config and hope for the best. Use an implementation that explicitly supports it, or ask the provider for an alternative entry.

Check app traffic and the outer connection separately. A working web page only confirms that its traffic path is up. Calls, meetings, and other apps that rely on datagrams may fail if the node, core, or local traffic entry point does not handle UDP correctly. Instead of running more browser speed tests, join a voice call and check whether the connection logs show matching traffic. Then verify that UDP forwarding is enabled for the protocol entry and on the server. SS has fewer parameters, but that does not mean you can skip checks beyond the connection logs.

VMess: check authentication, transport, and TLS separately

VMess comes from the V2Ray ecosystem. It has its own authentication and encapsulation, and can use different underlying transports. Your config may use a direct TCP connection or a transport such as WebSocket, with TLS optionally enabled on the outer connection. Check the identifier, transport type, and outer security settings separately. The identifier maps to the server account; paths and related settings route the connection to the right endpoint; certificate settings verify the outer service. A mismatch at any layer can leave the client reconnecting indefinitely.

Older configs may include legacy authentication fields such as alterId. Modern implementations generally use newer authentication methods, so check with the provider or server configuration before migrating; don't assume an old value belongs in a new entry. Some authentication mechanisms are also sensitive to clock skew. If the same config suddenly fails on just one device—especially one that has been off for a long time or was recently restored—check that automatic time sync is enabled. If a direct connection works but WebSocket does not, check the path, Host header, and server-side routing before assuming the account is invalid.

For many short-lived connections, an extra upgrade or handshake can slow the first request. For a large file transfer, that overhead is spread across more data, and the bottleneck often shifts to the route, server-side rate limits, or device performance. If you maintain existing VMess configs, test one node with known parameters as a baseline; it is easier to diagnose than rewriting an entire subscription. If you plan to switch to SS, use a separate, known-working SS entry rather than just changing the protocol name in the existing one.

Trojan and VLESS: authentication and outer-layer security

Trojan: a valid certificate does not mean the password is correct

In common Trojan deployments, the proxy session runs inside a TLS connection. The client establishes the encrypted outer connection first; authentication data carried by the protocol then determines whether traffic can be forwarded. When checking the config, the server address sets where to connect, the server name is sent in the handshake, and certificate verification confirms the remote server's identity. These fields serve different purposes: entering an IP address does not mean the certificate is issued for that IP. Likewise, a certificate covering the right domain does not prove that the subscription password matches the server. If the certificate chain is invalid, the name does not match, or the certificate has expired, fix the relevant setting instead of disabling verification just to connect.

Read the logs in connection order: first distinguish an unreachable port from a failed TLS handshake, then distinguish an immediate disconnect after a successful handshake from a request timeout. If several known-good destinations fail before the handshake on the same network, check the address, port, and route before changing app-level rules. If the handshake succeeds but all proxied requests fail, check the credentials and server logs. Entries routed through a gateway may also require extra transport settings; changing only the server name while forgetting the subscription's path will still leave the connection unusable.

VLESS: fewer protocol fields, but not necessarily fewer combined settings

VLESS comes from the V2Ray ecosystem and has since evolved into a range of combinations in implementations such as Xray. Common basic setups do not encrypt payloads at the protocol layer, so check the required outer protection—for example, TLS if the config calls for it. A working entry may require not just an ID but also a specific transport, server name, and flow setting. A client recognizing the VLESS type only means it can handle some combinations. It does not guarantee that every extension field in a share link reaches the core, or that the core supports the specific combination required by the server.

After importing, check the node details rather than relying on the protocol label. Make sure the required transport options were retained. If the subscription specifies a flow, confirm that the value is present and supported by the core. If the outer connection requires a server name, don't casually swap it with the connection address. Some clients hide fields in the edit screen; compare the locally exported config and logs instead. If you cannot see which fields are active and there is no clear compatibility documentation, don't guess by toggling settings. Use a known-supported transport combination or ask the provider for a different format.

Where speed differences come from when both use TLS

The names Trojan and VLESS alone cannot tell you which has a faster first response. If the entries use different servers, transports, and certificate endpoints, a single probe measures the total difference between two routes—not the protocols. Even with the same route and endpoint, a reused connection is not comparable to a fresh one. For requests made every few seconds, check whether pages still load reliably after the connection has been idle. For large transfers, also watch for reconnects and sustained high process load over time, not just speed.

If you already have a Trojan entry with a verifiable certificate that imports cleanly, don't assume switching will improve things just because another protocol is newer. A VLESS combination is worth testing when the server explicitly supports it and the client and core preserve all required fields. Test either protocol in a manually selected group before handing it over to automatic switching; otherwise, traffic may silently fail over to another node, making a working page no proof that the original config worked. If the logs show no protocol error, compare timestamps in the client and server logs to distinguish a reused connection from a new one.

Hysteria2 and TUIC: UDP-based outer connections

Shared requirement: the network must reliably carry outer UDP traffic

Both Hysteria2 and TUIC use QUIC over UDP. This refers to the outer transport between the client and proxy server: even if an app is only browsing regular TCP-based websites, the outer connection still needs UDP to reach the right port. Conversely, a traditional proxy entry that can forward UDP app traffic does not necessarily use QUIC as its outer transport. Keeping these layers separate helps explain why a TCP-based node works on one router but a QUIC node does not. The network may be handling a particular port, packet type, or idle mapping differently; that does not mean all UDP on the device is broken.

QUIC combines reliable transport, congestion control, and encryption in one transport, and can carry multiple streams over a single connection. If one stream is waiting for lost data, other streams do not have to wait for that data as they would on a shared TCP byte stream. However, all streams still share the available bandwidth and are subject to congestion control. This can help in some high-latency or occasional-loss scenarios, but it does not guarantee higher speeds on lossy networks. Switching to QUIC cannot fix limited server capacity, an overloaded local network, or frequently dropped datagrams.

Hysteria2: set bandwidth parameters based on the actual link

Hysteria2 focuses on transport efficiency over high-round-trip-time links and offers bandwidth-related settings. Whether a configured rate is used and how it can be adjusted depends on the client implementation and server policy. If the interface shows upload and download bandwidth, check the units, whether automatic control is enabled by default, and whether both ends use compatible expectations. Your broadband plan's advertised rate is not sustained throughput to the proxy server, and mobile upload and download speeds are often asymmetric. Copying a peak download rate into the upload field can build up queues and make pages and calls less responsive.

Before tuning, record sustained performance with the defaults, then change only one direction at a time. Check whether a large transfer speeds up while small requests become less responsive. High throughput with noticeable lag does not mean the setting is better for everyday use; it may simply be piling more packets into a local or upstream queue. If network capacity varies widely throughout the day, start with a conservative setting or the implementation's automatic control. Authentication strings and certificate server names are unrelated to bandwidth. If the basic handshake fails, there is no point testing multiple bandwidth settings first.

TUIC: check the implementation generation and datagram mode

TUIC is also designed to forward TCP and UDP app traffic over QUIC. When connecting, pay particular attention to the implementation generation and field structure at both ends. Authentication fields can differ between generations; renaming an existing field does not complete a migration. If the config exposes a UDP forwarding mode, distinguish between unreliable datagrams, which are not retransmitted when lost, and data sent over a reliable stream, which is delivered reliably but may add queuing. The available modes depend on both implementations and their configuration.

After selecting a node marked as supporting the protocol, test two kinds of traffic: first, open a small, repeatable page to verify the connection, then test an app that actually relies on datagrams or check the relevant logs. A stable home network does not guarantee the same result on a shared hotspot or after switching networks on a phone. Switch from Wi-Fi to cellular and compare how long the connection takes to recover. Even when the underlying protocol supports connection migration, background restrictions, the actual implementation, and remote server state may force the client to reconnect. If you rely on the connection for work, keep a known-good TCP-based entry as a backup.

Speed and resource use: break testing into four parts

Test fresh connections separately from reused ones

A client's node latency is usually the time taken to send a request to a chosen probe address; it is not the pure network round trip from your device to the server. It may include DNS resolution, the handshake, routing from the remote server to the destination, and the destination's response to a small request. To compare two protocols, keep the device, network, probe address, and destination fixed, turn off automatic selection, and confirm which node is actually in use. If you control the servers, use endpoints in the same data center with similar resources. Otherwise, label the result as overall node performance, not a protocol comparison.

For a fresh-connection test, disconnect and send a new request, making sure the core has not reused the previous connection. For a warm-connection test, send follow-up requests within the same healthy session and observe the effect of reuse. Power-saving behavior, DNS caches, and connection pools can all change the results, so record those conditions. Don't focus on the single lowest reading. Alternate the test order, repeat several times, and look at typical response times and occasional slow requests. If only the first request is noticeably slow, focus on DNS and the handshake. If requests also stall during an active session, check packet loss, congestion, server load, and rate limits.

Use sustained throughput for large files and system load for concurrency

A short speed test can make a connection look slow while it is ramping up, or mistake a cache hit for a faster route. Use the same sufficiently large file, download tool, and concurrency, then measure speed after it stabilizes and note any dropouts. Test uploads and downloads separately because bandwidth, queues, and server limits differ. Add an interactive test too: while a transfer is running, open a small page and see whether it responds quickly. For meetings and remote work, responsive small requests can matter more than peak download speed.

Don't judge resource use by startup memory alone. Basic SS entries typically have fewer encapsulation layers; overhead for VMess or VLESS depends on the added transport; and Trojan's TLS implementation, QUIC packet processing, congestion, and retransmissions can all affect CPU load. On low-powered devices, processor speed, hardware crypto support, core implementation, and packet volume may matter more than the protocol name. Check load when idle, during a single transfer, and under concurrent traffic, then compare the time taken to complete the same task.

Four ways to measure connection performance
MetricKeep constantWhat the result tells you
Connection setupSame destination; distinguish fresh connections from reused onesMeasures the full request path, not pure network latency
Sustained throughputSame file, concurrency, and transfer directionAffected by the remote route, device, and rate limits
Responsiveness under loadFetch the same small resource during a transferReveals queuing and occasional stalls
Resource useSame device, mode, rules, and workloadSeparate the client process from the background core

Keep automated tasks and system mode consistent

When comparing memory use, separate the graphical client from the core process where possible, while keeping the rule set, log level, and runtime the same. One client may load a large rule set and run bulk background speed tests while another uses a single manually selected node; comparing total memory in the system task manager will not isolate protocol differences. System Proxy and TUN modes also cover different apps. Switching modes can change request volume, DNS resolution, and how local traffic is handled. Keep the same endpoint throughout testing and change only the node being compared.

If repeated tests give opposite results, don't force a protocol ranking. Retest under low load to rule out Wi-Fi interference and background sync, then confirm you are reaching the same address and content source. Record the device, mode, time, destination, and node exit; testing on another device gives you a useful comparison. Retest the failure you actually see in daily use—for example, downloads stalling every evening or the first request after waking timing out. This is more useful than adding more speed-test sites.

Mobile battery drain: watch wakeups and reconnects

Idle battery drain is not the same as foreground data use

Encryption is not the only cause of battery drain on a phone. At idle, small amounts of traffic can repeatedly wake the radio. Periodic node checks, subscription updates, background app requests, keepalives, and reconnect attempts can all reduce the time the network stays idle. Foreground, high-volume tasks are more affected by wireless transmission, screen brightness, heat, and processor load together. So even if a protocol finishes a large download faster, repeated disconnects on a particular route while the phone is idle can erase that advantage. Compare scenarios before drawing conclusions about battery life; a download with the screen on does not predict overnight standby drain.

On cellular networks—especially with a weak signal—the same config may repeatedly rebuild sessions or retransmit data, while idle performance may be different on stable Wi-Fi. QUIC, TLS, and basic SS each have transport costs, but actual battery use also depends on network behavior; the protocol name alone is no battery-life rating. Rule out weak signal and hotspot switching, then check whether the client is probing or retrying frequently. If only one node disconnects, check its stability and the current network's mapping behavior rather than assuming every protocol of that type drains battery.

Run two repeatable tests

For the first test, keep the network and device location fixed, turn off the screen, and record standby behavior during two comparable periods—with and without the proxy connected. Keep sync, backups, and push notifications as consistent as possible, and make sure there are no system updates or large uploads. If the battery-level difference is small, don't treat a single percentage point in the status bar as proof that one protocol is better. Check client connection counts, background activity in the system battery settings, and whether an app kept waking the network during the test.

For the second test, keep screen brightness and network conditions fixed. Make a call or download the same file for the same length of time, and note completion time, device heat, and any dropouts. A brief spike in CPU use that finishes quickly may use less battery than a lower-power task that runs much longer. System battery reports may also split power attributed to the traffic-routing service and individual apps imperfectly. Use the app list to find clues, not as a precise measure of protocol energy use. Only decide whether to switch nodes for a cellular scenario when the test is repeatable.

Tune checks, split tunneling, and background recovery

On mobile, reducing unnecessary checks is often the easiest win. If an automatic proxy group keeps polling a large number of nodes, narrow the check list or increase the probe interval if the client allows it. Subscription updates do not need to run on the same short interval as connection probes: the first fetches config changes, while the second checks node availability. Keep one stable node selected manually, then re-enable automated tasks one at a time to find what is causing extra wakeups. If battery life is fine but automatic retries take a long time, improve route stability instead of blindly slowing every check.

If the proxy stops working when the screen locks, changing protocols may not help. The OS may restrict background activity, or the virtual network service may need to restart after a network change. First check whether the system still shows the connection and whether the client logs a disconnect or reconnect, then verify the app has the necessary background permissions. Don't disable every battery restriction for an edge case; change one setting at a time and retest. If only a few apps need the proxy, check whether the client supports per-app routing and verify with a real request that necessary traffic is still covered.

Subscriptions and config compatibility: a successful import is only the start

Distinguish share links, subscription responses, and full configs

A single share link usually describes one remote proxy entry. A subscription URL is a way to fetch a set of entries or a config; the server may return a list of links or a complete YAML file. The same subscription service may provide different content depending on the selected format. When a client reports “Import successful,” it only means it accepted some kind of input. It does not guarantee that every protocol entry was parsed or that the rules and proxy groups are enabled. If the node count is not what you expected, first check that you fetched the format intended for your client, then see which entries were skipped in the logs.

Some subscriptions wrap a list of links in encoded text. Being able to decode the text does not mean the current client can read every protocol field inside it. A full config may also include proxy definitions, rules, groups, and separately downloaded proxy or rule sets. If nodes appear but their groups do not, check whether the import added entries to the node list or enabled the file as a complete config. If you manage multiple sources, read Profiles, multiple subscriptions, and local config management to understand the roles of remote updates and local overrides.

Config example: use a direct-connection baseline to check the local entry point

The minimal test config below contains no remote proxies. Save it as a separate local file and load it with Mihomo; requests sent to the local mixed port will be forwarded directly according to its rules. This is only for separating checks of the local entry point from remote handshakes—not a replacement for your subscription. First make sure the port is not in use by an older client, quit other clients that may be routing traffic, and send a request from a browser or tool explicitly configured to use the local port. Do not overwrite your original config. When finished, switch back to your everyday config and restore your previous system network settings.

mixed-port: 7890
allow-lan: false
mode: rule
rules:
  - MATCH,DIRECT

If the direct-connection baseline cannot open a destination you know is reachable, first check whether the client logs show the request, whether the mixed port is active, and whether the system still points to an old port. If the baseline works but the full config does not, check the matching rule in the active config, confirm the selected node supports the protocol, and see whether external rule resources have finished downloading. A successful direct connection to a destination only confirms that the local entry point and destination path covered by the baseline work; it says nothing about proxy-side DNS, the remote endpoint, or traffic routing for other apps.

Migration and updates: change things in stages

First confirm the config format accepted by the client and its working directory, then restore proxy definitions, groups, and rules in stages. For manually defined groups, check that member names match. For remote rule sets, verify separately that requests succeed, the format is recognized, and the matching order is as expected. Rules are matched from top to bottom; if a broad rule matches too early, the intended proxy entry may never get that traffic. For more on matching behavior, check each item against the rule syntax and matching order guide.

If a manual edit works but the config breaks again after a subscription refresh, check whether you edited the original that remote updates overwrite or saved the change in the client's separate override area. Before sharing backups or screenshots, remove subscription URLs and authentication details; keep only field names, error locations, and necessary network context. A subscription URL may grant access to the config, so do not post it publicly. If an update fails, first identify whether the request failed, the downloaded content failed to parse, or the config imported but was not set as active. See troubleshooting for common causes and fixes at each stage.

Choosing a client: rule out incompatible setups first

Everyday use across devices: choose a config you can maintain

If you regularly switch between a computer and phone, first check whether both can read the same subscription format, retain the required fields, and use the same proxy-group logic. A basic SS setup supported by both clients or a Trojan entry with clearly documented parameters can reduce the work of transferring settings. There is no need to migrate a VMess setup that already works just to use a newer protocol name. What matters for maintenance is whether either platform drops transport parameters, whether you need separate copies of rule files, and whether subscription updates reset your current selection. Compare performance only after these checks pass.

For client recommendations, Clash Plus is our top pick. Check the OS and architecture on the client downloads page, then test it with your actual subscription. On desktop, compare Clash Verge Rev and FlClash on supported platforms. On Android, Clash Meta for Android can be a useful compatibility check if your config specifically targets it. Choose based on whether the client handles your actual transport combination and lets you inspect logs and edit proxy groups—not on whether its interface looks like the one on another device. If the settings differ, read our client comparison guide rather than copying one platform's steps to another.

Long-distance connections, calls, and frequent network changes

On high-latency routes with occasional packet loss, Hysteria2 and TUIC are worth testing alongside your existing TCP-based entries if outer UDP is available and the server settings are clear. Focus on sustained throughput and whether interactive traffic suffers during transfers. If Wi-Fi conditions change frequently or the remote UDP port is unreliable, use a stable TCP-based entry for everyday tasks and retest QUIC when conditions improve. Keeping a backup does not mean your automatic group has to monitor every candidate; a small, clearly defined set is easier to troubleshoot when something goes wrong.

For meetings, voice calls, and other real-time apps, check jitter, packet loss, and recovery after a network change—not just peak download speed. First confirm the app's traffic uses the intended entry point, then test in a real session: can both sides hear each other, does the connection drop when the app returns from the background, and how long does it take to reconnect on another network? For remote desktop or services with frequent short requests, add a load test: start a download and check whether the session remains responsive. This is closer to real-world performance than a single low-latency result on the client's probe screen.

Older devices, legacy configs, and clear acceptance criteria

On devices with limited memory or processing power, start by reducing unnecessary background rule sets and probes before comparing protocol overhead. Fewer encapsulation layers do not automatically make the whole client lighter, and an older app launching successfully does not mean it supports every new protocol. Archived clients can help establish how an original config worked; for a migration, first check which fields the new core accepts. If only one type of node is lost on import, keep the working entries and troubleshoot that protocol's transport and authentication separately. Make changes in stages instead of reinstalling, rewriting rules, and changing subscriptions all at once.

Set the same acceptance criteria for every candidate: it imports and retains the required parameters, rule matches are inspectable, everyday apps work continuously, and the connection recovers within an acceptable time after disconnecting. For the first test, use one manually selected node. Once it passes, add it to your usual proxy groups and check that it still works after automatic updates or a device restart. An entry that fails these criteria is not a good default, even if it once produced an impressive speed test. If you have chosen a client and protocol and are ready to enable the proxy or test the connection, continue with the subscription import steps in the guide.

Download Clash