Open-source core mihomo · Cross-platform clients

Clash downloads
& routing guides

Choose a client for your platform, follow the documentation to import a subscription, and use proxy groups to route different connections.

01 / CONFIGURATION

Clash routing and connection settings

Rules select a policy; the system proxy and TUN determine how traffic reaches the core. The interface examples below show where to find common settings. Understand these two steps before configuring them.

Rule editor

A domain-suffix rule sends a domain and its subdomains to a specified proxy group. Geo rules match based on the destination IP's region. In Rule mode, the core checks rules from top to bottom and stops at the first match. Put exceptions for individual sites before broader rules, and keep the fallback rule at the end. After editing, make sure the proxy group name matches the configuration, then start a new connection and check the logs. Don't judge the result using an existing connection. In this example, PROXY is a proxy group name that must be defined in the configuration.

Traffic routing

Desktop browsers usually use the system proxy setting. Some apps ignore it, in which case you may need TUN. Before switching, check the permissions required by your client and whether another network tool is already using a virtual network interface. Allow LAN is a separate setting that lets other devices access the proxy's listening port. Leave it off if you're only using the proxy locally. If you need to share it, make sure the network is trusted and restrict access to specific devices.

Proxy modes

Use Rule mode for everyday routing, sending office network traffic, sites that need a proxy, and connections to block through their respective policies. To tell a rule issue from an outbound connection issue, temporarily switch to Global mode, select a proxy in the global proxy group, and test the same address. Direct mode sends connections already routed through the core straight out. When testing is done, switch back to Rule mode, start a new connection, and check which rule matched in the logs.

Import subscription

Get a subscription URL compatible with your client from a trusted source. In the configuration page, import it by URL, wait for it to download and parse, then set the new configuration as active. A successful import only means the file was readable; it doesn't guarantee that its proxies work. After updating, make sure the proxy group still points to the intended outbound. If you want to keep custom rules, first check how your client supports overrides so a refresh doesn't overwrite your changes.

Log level

To investigate routing, start at the info level and search by destination domain and time. Then check the matched rule, proxy group, and connection result. Switch to warning if you only want to see issues. If the regular logs aren't enough, enable debug briefly and reproduce the issue once. Return to your usual level afterward. Before sharing logs, redact private network addresses, subscription URLs, and any other information that could identify your account.

Settings troubleshooting checklist

If a rule is present but never matches, first make sure the active configuration is the same file you're editing. Then check whether a broader rule above it is matching first. A site's homepage and static assets may use different domains, so a page loading successfully doesn't tell you where every request went. Find the domain that actually made the request, put its exception before any broader rule that catches it, and move just one rule at a time before reloading the page to check again.

02 / PLATFORMS

Download Clash clients by platform

Start with your operating system, then check your processor architecture and installation type. Apps on different platforms may use similar configuration syntax, but their installers, system permissions, and menus aren't interchangeable.

Windows

Check your PC’s architecture before choosing an installer. If you’re switching clients, export your configuration and turn off the old client’s system proxy.

Go to downloads

macOS

In About This Mac, check whether you have Apple silicon or Intel. Pick the matching installer and turn off the old client’s proxy before switching.

Go to downloads

Android

Pick a package that matches your device and Android version. Disconnect any active VPN, then test the new client on Wi-Fi and mobile data.

Go to downloads

iOS

Check the App Store listing for Clash Plus and its iOS requirements. On first launch, review the VPN permission prompt before importing your configuration.

Go to downloads

Linux

Match the desktop package to your distribution and CPU. For servers or routers, see the core downloads instead.

Go to downloads

If there are several options for your platform, narrow them down by system compatibility, then compare how each handles rule editing, logs, and subscription updates. Compare Clash clients.

View all clients

Platform icons: Simple Icons; Linux icon from Font Awesome Free (CC BY 4.0).

03 / OPEN SOURCE

The open-source Clash ecosystem and mihomo core

The core determines configuration compatibility; the client handles installation and system integration. When troubleshooting, switching apps, or reading the source code, first identify which layer you're dealing with.

From classic Clash to mihomo

Early versions of Clash used configuration files to define proxy nodes, proxy groups, and routing rules. Although the original project is no longer maintained, many projects in the ecosystem still use the same configuration concepts. Formerly known as Clash.Meta, mihomo continues this model and extends support for protocols, rules, and traffic routing. So when an older guide says “Clash,” it may mean the original core or a client that uses similar rule syntax. If an older app rejects a field, check which core is actually running and look up the relevant documentation. Don't rely on the app's name alone to determine what it supports.

How the open-source community verifies behavior

mihomo is licensed under GPL-3.0. Its public source code, changelog, and issue discussions can help clarify how an option actually works. For example, if the docs say a type of match is supported but your results differ, use a minimal configuration to rule out interference from proxy groups and traffic routing, then compare against the upstream implementation and known issues. When reporting a problem, include your system, steps to reproduce, expected behavior, and actual result. A few rules that reproduce the issue are usually enough; private subscription files, internal domains, and account details aren't needed.

What the client and core each do

The client provides the configuration and proxy pages, system tray or mobile interface, and handles tasks such as managing the system proxy and requesting permissions. The core parses the active configuration, matches connections, and chooses where to route them. If the interface says a subscription updated successfully but the expected proxy group is missing, check the active configuration. If the group looks right but the logs show no connections from the app, check the traffic routing path first. Once the connection reaches the core, follow the matched rule and outbound in the logs. This order helps avoid guesswork across network settings, the client interface, and rule files.

Clients, cores, and rule data update separately

Installing a different client package may also replace the bundled core. Updating a subscription usually refreshes only the remote configuration. Updating geo data or rule sets changes the matching scope for those data. One “update successful” message can't stand in for all three. Keep a working copy of your configuration before making changes. Change one layer at a time, then check representative connections in Rule, Global, and Direct modes. If a new issue appears after installing a different package, test the same configuration before and after the change to see whether the cause is the software or the subscription.

What to keep when migrating from an older client

Prioritize your local rules, manually defined proxy groups, and subscription sources you can import again. Window layout, port numbers, and proxy settings remembered by the operating system may not migrate with the configuration. After importing, check that proxy group names still match, then confirm the system proxy and the port recorded by local apps are consistent. Don't enable extra traffic routing features right away. First test one direct connection and one that needs a proxy, then restore the remaining settings one at a time so you can undo the last change if something goes wrong.

04 / FIELD NOTES

Clash tips and configuration notes

Choose an article based on what you're working on: just installed a client? Start with the interface. Imported a subscription but connections aren't working? Begin with troubleshooting. Planning a router deployment? First map out the gateway and DNS responsibilities.

10 Clash Questions for Beginners: Subscriptions, Modes, and Connection Issues

Start with subscription sources, first-time imports, and choosing a mode, then work through common issues such as every proxy timing out or browser traffic bypassing the proxy. Each answer starts with an observable result to help you decide whether to check the configuration, outbound, or traffic routing next.

Clash Interface Overview: What the Proxy, Configuration, and Logs Pages Do

Find the right page for each task: choose an outbound on the proxy page, import and update subscriptions on the configuration page, and check matched rules or failed connections in the logs. On the settings page, distinguish the system proxy from TUN so you don't confuse traffic routing with switching proxy modes.

View all articles
Download the latest Clash version