Windows
For desktop users who want tray controls and system proxy support. Check your OS version and architecture, then review the installer requirements.
Go to downloadsChoose a client by operating system, check core compatibility, then use the config.yaml examples to see how rules route traffic.
mixed-port: 7890allow-lan: falsemode: ruleproxy-groups: - name: Select automatically type: url-test proxies: [DIRECT] url: https://example.com/ interval: 300rules: - DOMAIN-SUFFIX,example.com,DIRECT - GEOIP,CN,DIRECT - MATCH,Select automatically
This example uses only the DIRECT policy to show how rules reference a proxy group. The ports shown are examples; check them against the ports your client actually listens on.
Tags list only the platforms and cores covered on this site. The order is for browsing, not a performance rating.
Source Code · Clients · Config
The Clash ecosystem uses a configuration model where rules evaluate connections and policies determine their outbound route. Clash.Meta was one core fork; it later continued development under the mihomo project name. In older articles, “Clash Meta” may refer to either a core or a client, so identify which one before migrating. Discontinued desktop clients can still help identify the source of an old config, but which systems and cores they run on depends on their release period. Archived builds are not maintained alternatives.
Open-source communities maintain the core, graphical clients, and rule resources separately. Desktop clients typically manage subscription lists, tray menus, and connection views; mobile clients also need to work with network permissions provided by the operating system. Even with the same subscription imported on two devices, local overrides, system proxy state, and startup behavior may differ. To sync across devices, share nodes and routing logic, but keep each device’s ports, permissions, LAN exceptions, and traffic interception settings separate.
mihomo reads the config, parses rules, and routes connections. The client loads the intended file into the core and requests the permissions required by the platform. A successful import only means the client accepted the file; it does not mean every field is active. When migrating an older config, check the runtime logs first for unsupported fields, missing proxy groups, or unavailable rule resources. Once the config loads, check whether the operating system is sending the target app’s traffic to the client. This order helps distinguish config errors from traffic interception issues.
An app release may change the bundled core, installation requirements, or interface behavior. Refreshing a subscription updates the content provided by its source, while geolocation data and remote rule sets may have their own update schedules. Updating the app is not a substitute for refreshing rules. Before an update, keep a working copy of your local overrides. Afterward, test the same domain and compare the matched rule and actual outbound route. If the result changes, check the active config and rule resources first, then review the release notes for changed defaults or deprecated fields.
The MetaCubeX/mihomo repository is where to browse the code, license, issues, and release history. Cloning the repository downloads source code; it does not install a client or import a subscription. If you just need a graphical client, go straight to the downloads for your operating system.
git clone https://github.com/MetaCubeX/mihomo.git
Check your operating system and processor architecture first, then decide whether you need a graphical client or a standalone core. These links take you to the client list for each platform.
For desktop users who want tray controls and system proxy support. Check your OS version and architecture, then review the installer requirements.
Go to downloadsFor users who manage connections from the menu bar. Choose a build for Apple silicon or Intel, then check OS compatibility.
Go to downloadsFor routing mobile app traffic through the system VPN. Choose a package for your device’s supported ABI and approve the VPN permission when connecting for the first time.
Go to downloadsFor users installing from the App Store and connecting through the system VPN. Check that the client supports your subscription format before importing it.
Go to downloadsDesktop users should choose a package for their distribution. For servers and routers, check the standalone core and processor architecture separately.
Go to downloadsPackage format and processor architecture are separate requirements. Desktop downloads may use package formats for different distributions and architectures for different processors. Mobile devices depend on supported application binary interfaces (ABIs), so the chip model alone does not tell you whether an app will install. Don’t choose a package just because it’s the smallest or has the shortest name. If your device isn’t listed among the graphical client builds, check whether the standalone core supports it, then decide whether you’re comfortable with manual configuration and process management.
If you’re migrating from an older Clash for Windows or ClashX Meta setup, back up the active config, custom rules, and override files first. Save subscriptions you can retrieve again separately from rules you maintain by hand. Before launching the new client for the first time, disable the old client’s system proxy or traffic interception to prevent the two apps from competing for a listening port—or one app from clearing system settings the other is using when it exits. Remove the old app only after confirming the new config loads successfully.
Clients don’t all handle subscriptions the same way. Some leave the original file intact and merge overrides at runtime; others save imported content as a client-managed copy. If a config change has no effect, check the active config’s name and source, then see whether the latest subscription refresh overwrote your changes. Before sharing a config or logs, remove access tokens from subscription URLs, node credentials, and any unnecessary device or network identifiers.
For a reliable test, make a log-enabled app connect and note the test domain, matched rule, and outbound route. Once you’ve confirmed the result, test other apps. If a browser connects but a desktop app doesn’t appear in the logs, first check whether that app uses the system proxy instead of switching nodes right away. Follow the quickstart guide for initial setup. For permissions, traffic interception, and platform-specific details, see the cross-platform user guide.
mode: rule
rules:
- DOMAIN,blocked.example.com,REJECT
- DOMAIN-SUFFIX,example.com,DIRECT
- GEOIP,CN,DIRECT
- MATCH,DIRECT
Rule mode checks connections against the list in order; the first matching rule determines where traffic goes. This example rejects a specific host before allowing other domains with the same suffix. Swap the two lines and the host will match the suffix rule first. GeoIP matching depends on the relevant data file and can’t replace precise domain exceptions. Unlike global mode, which sends all traffic through one outbound route, rule mode makes it easier to keep local traffic direct. After editing, check the connection logs to confirm the matched rule, then verify that the final fallback policy is what you expect.
proxy-groups:
- name: Select automatically
type: url-test
proxies: [DIRECT]
url: https://example.com/
interval: 300
tolerance: 50
A proxy group gives rules a reusable outbound name, so you can change its members without editing each rule. This example contains only a DIRECT member to show the structure; add defined nodes to the group when you want to compare different outbounds. Test intervals are in seconds and tolerance is in milliseconds; adjusting them can reduce frequent switching when candidates perform similarly. For a fixed primary-and-backup order, a group that selects by availability is a better fit. A successful test request only shows that a candidate can reach the test address; it doesn’t verify connectivity to your actual destination.
dns:
enable: true
enhanced-mode: fake-ip
fake-ip-filter:
- "+.lan"
nameserver:
- 1.1.1.1
After enabling DNS in the core, first confirm that app queries are actually going through this resolver chain. Fake-IP mode maps domains to temporary addresses, making domain-based routing possible; add LAN names that require real addresses to the filter list. The upstream in this example does not handle private local domains, so choose suitable resolvers for your network. If an address works but its domain doesn’t, first check upstream reachability and whether the domain resolves, then inspect the matched policy. This helps avoid mistaking a DNS issue for a node failure.
tun:
enable: true
stack: mixed
auto-route: true
auto-detect-interface: true
System proxy settings mainly affect apps that honor them. On supported platforms, TUN uses a virtual network interface and routing to capture more traffic. Before enabling it, confirm the client has the necessary permissions and note your existing settings. Test an app that doesn’t use the system proxy, then check that LAN services and any existing VPN still work. If the network goes down only after TUN is enabled, turn it off to restore the previous traffic handling, then investigate the default route, network interface selection, and permissions. There’s no need to change nodes and DNS at the same time.
First check whether the core can read the active config. YAML uses spaces for indentation; keep indentation consistent within each list. Proxy group names, node names, and rule references must match exactly. If you rename an item, check every rule that refers to it. A connected status in the interface doesn’t prove routing is complete if subscriptions, rule providers, or geolocation data haven’t loaded. For a parse error, fix the first issue reported in the logs and reload before testing again. That way, you won’t keep testing against a config that never took effect.
Next, check whether traffic interception is working, then whether the outbound route is available. If a test request doesn’t appear in the connection logs, check the system proxy, the app’s own proxy settings, and TUN status. If the request appears but matches the wrong rule, check rule order, mode, and match conditions. If it matches correctly but the connection fails, check the destination, upstream node, or DNS. Change one thing at a time and keep the original config for comparison. Testing the same domain with and without the proxy is more useful for troubleshooting than relying on the latency number in the client interface.
The local proxy port must match the address and port configured in the app using it. For local use only, keep allow-lan: false; don’t enable LAN access just to work around a port conflict. If the logs say the listen address is already in use, stop the duplicate proxy process or change the listening port and update the settings of apps that use it.
These three config guides cover how to choose an outbound, interpret node metrics, and manage traffic when running the core on a router.
Compare the three groups’ outbound selection behavior alongside their YAML syntax: choose based on test results, fail over in candidate order, or distribute new connections across multiple members.
For readers with working nodes who are setting up automatic outbound selection. First decide whether your use case requires a fixed outbound, then adjust the test interval and tolerance if needed.
Evaluate response time to test endpoints, data limits and billing, actual exit location, and protocol support separately. Then rule out nodes that don’t fit your use case.
For readers with several possible outbounds that perform differently in practice. Comparing the same use case at similar times and on the same network is more informative than looking at a single set of speed-test results.
Compare the roles of a primary and secondary router, then see how plugins, containers, and standalone binaries differ in network permissions, config directories, and update workflows.
For readers considering a shared routing setup for multiple devices. Before you start, document your current gateway and DNS paths, and plan how to test with just one device.