Clients for five platformsCore engine: mihomoLicense: GPL-3.0Configuration format: YAML
GPL
Open-source license
mihomo · GPL-3.0
YML
Text-based configuration
Proxies, proxy groups, and rules
GIT
Public development history
Source code, releases, and issue tracker
Open-source projects and configuration compatibility
How Clash and mihomo are related
You install a client, but the core engine reads the configuration, matches rules, and establishes connections. Understanding the distinction helps you find the right documentation.
The original Clash established a configuration model built around proxies, proxy groups, and rules: rules determine which group handles a connection, and the group decides which proxy to use or whether to connect directly. Later forks kept this basic approach while adding protocol support and configuration fields. Older guides can still help explain routing, but for errors involving newer protocols or fields, consult the documentation for the core engine you’re using rather than copying settings from outdated screenshots.
What the client and core engine each do
The graphical client imports configurations, displays proxy groups, and provides controls; the mihomo core reads the configuration and handles traffic. Even two clients using the same core may have different menus, subscription update methods, and system permission requirements. Likewise, seeing a configuration name in the interface doesn’t mean every protocol in it is supported. When migrating, check separately whether the client can import the file and whether the core recognizes its proxies and rules.
Clash Meta and mihomo
mihomo is a continuation of Clash.Meta. In older articles, Meta usually refers to a core fork, not necessarily the name of a client to download. Basic rules and proxy groups are often reusable, but transport options, rule-set formats, and client-generated overrides need to be checked separately. If you have an older configuration, back it up and import a copy first. For unfamiliar fields, consult the protocol and core engine reference instead of rewriting the entire configuration.
Release history and update checks
mihomo is released under GPL-3.0. Core changes are documented in the public repository’s commits, releases, and issue discussions. Graphical clients have their own release schedules, so a core release doesn’t mean the changes are already included in a client. Before updating, check whether the release notes affect your protocols or configuration fields. After updating, repeat your usual tests to confirm that proxy groups, rule matches, and local ports still behave as expected. The command above retrieves the source code; for everyday use, choose a graphical client from the downloads page.
First connection
Get started with Clash in three steps
For your first test, use one configuration, one proxy group, and one app. Get that path working before adding rules or routing more traffic through the client.
Install a client
Choose your system on the downloads page, then check the architecture and package type before downloading. Once the desktop client is open, find its Configuration or Subscription page. On mobile, if a system permission prompt appears when you connect, make sure it refers to the client you just installed.
Before migrating from an older client, save your existing configuration and custom rules, and note your mixed port and frequently used proxy groups. Fully quit the old client before testing the new one to avoid both apps listening on the same port or repeatedly changing system proxy settings.
Import and activate a configuration
If you have a subscription URL, open the Configuration page, choose the option to add a new profile, and import it from a link. For a local configuration file, choose file import instead. Once it appears in the list, select it and open the Proxies page to confirm that its proxy groups expand.
A successful subscription download doesn’t guarantee that the configuration parsed successfully. If the profile appears in the list but won’t activate, check whether the error points to the file format or a specific field. Subscription URLs may contain personal access credentials, so when asking for help, share only the error and relevant fields—not the full URL.
Choose a mode and test the connection
Start in Rule mode and select a proxy from a group in your configuration. On desktop, test with an app that follows the system proxy settings; on mobile, connect from the client. Open a familiar site, then check the connection log to see which rule matched.
If the connection doesn’t work as expected, first check whether the request appears in the log. If there’s no entry, check whether traffic is reaching the client. If there is, inspect the matched rule and proxy. Change one setting at a time so you can tell what made a difference.
Find the mode selector on the client’s Proxies page or home screen. Rule mode matches connections against the configuration’s rules, routing each one to a direct connection or a proxy group. Global mode sends all connections entering the core to the global proxy group, making it useful for brief comparison tests. Direct mode has the core connect directly. These modes determine how the core handles traffic it receives; they don’t mean every app on the device is routed through the client. After switching modes, make a new request and check where it goes in the connection list. Existing connections won’t show the effect of the change.
Proxy mode
RuleGlobalDirect
Traffic that bypasses the system proxy
Some desktop apps ignore system proxy settings, so other apps may have no connection records even when your browser works. Look for TUN mode in the client’s network settings; it uses a virtual network interface to receive traffic routed by the system. Compared with simply telling an app to connect to a proxy port, TUN can cover more traffic but relies more heavily on system permissions, routing, and DNS settings. Before enabling it, make sure the client supports your system. Then test both the target app and your local network. If the system proxy already meets your needs, there’s no need to switch.
TUN mode
Auto routeOff
Local port for apps configured manually
Find Mixed Port in the client’s settings. This listener accepts both HTTP and SOCKS proxy connections, making it suitable for apps where you can configure a proxy manually. Enter the local port the client is actually listening on—not the remote proxy’s port or the control port used to manage the core. Use the same value in both places. If the logs say the port is already in use, check whether an old client or another tool is still running in the background before choosing a different port. For local use only, keep the listener bound to localhost.
Mixed Port7890
Allow LAN connections
Connection logs and rule matches
In Rule mode, the core usually checks rules in configuration order and uses the first match. A catch-all rule near the end handles connections that didn’t match earlier rules. To test, open the client’s connection list, select a new request, and check its destination, matched rule, and final policy. A speed test only reflects the specific request it makes; it can’t replace this check. If a broad rule matches first, more specific rules below it won’t take effect. Save the original configuration, move the relevant rule, then make a new request to verify the change.
rules:
- DOMAIN,example.org,DIRECT
- MATCH,DIRECT
How traffic gets in.How rules handle it.
System proxy settings, an app’s manual proxy, and TUN determine how traffic enters; Rule, Global, and Direct determine what happens after it reaches the core. Keep these separate when troubleshooting—don’t change the entry point and mode at the same time. For step-by-step help, see the proxy mode guide and TUN setup guide.
Downloads
Download a Clash client for your platform
Start with your operating system, then check the processor architecture, installation format, and maintenance status. When package names look similar, follow the platform-specific notes on the downloads page. If you just want to use a proxy on your computer or phone, choose a graphical client. Standalone core packages are for users who already know how they plan to deploy them.
Check your system type under Settings → System → About, and distinguish common x64 PCs from ARM devices. Choose a compatible client, then check whether an installer is available. If you used Clash for Windows before, compare the new client’s import options to preserve your configuration. For your first test, quit the old app so its background process doesn’t keep occupying the proxy port.
Open About This Mac from the Apple menu and choose the package for Apple Silicon or Intel, based on the chip or processor listed. Once installed, you can check the connection status from the menu bar. If you previously configured a manual proxy for an app, check its address and port after migrating; changing clients won’t update an app’s own settings.
Packages may be available for ARM or as universal builds. Choose based on the architecture notes on the downloads page. For your first test, import your configuration and connect while the app is in the foreground, then try both Wi-Fi and mobile data. If the connection drops only after the screen locks, check the system’s background activity and battery settings before blaming your proxy or subscription.
Open the app’s listing in the App Store from the downloads page and check its stated system requirements. After opening the client, import your subscription from the Configuration page and approve the connection permission when prompted. If your device is managed by a school or company, ask your administrator whether adding a network configuration is allowed. Don’t change existing management settings on your own.
First check how your Linux distribution manages packages, then match the format and architecture on the downloads page—for example, DEB is common on Debian-based systems and RPM on Fedora-based ones. Even with a graphical client installed, support for system proxy settings can vary between desktop environments and apps. Only look for a core package if you specifically plan to run the core on a server or router; check the downloads page for the right architecture and deployment notes.
Are a subscription link and a proxy the same thing?
No. A subscription link lets the client retrieve a configuration or proxy list; a proxy is one connection option in that configuration. Before updating, check whether your current configuration came from a subscription or a local file, since refreshing a subscription may replace the downloaded configuration.
Why isn’t the proxy with the lowest latency always the fastest?
Latency tests usually target a specific address over the current network. A quick response to a small request doesn’t mean sustained transfers will be fast. For a fair comparison, keep the network, destination, and proxy mode the same, then check how the site or app you need actually performs.
Do I need TUN mode to proxy just one app?
If the app supports HTTP or SOCKS proxies, first enter the client’s local address and mixed port in the app itself. Check the connection log to confirm requests are reaching the client. Consider TUN only if you need the system to route traffic through it.
Does switching to Direct mode mean the client is turned off?
No. In Direct mode, the core makes direct connections for the traffic it receives, but the system proxy or virtual network interface may still be active. To return to a state where the client isn’t handling traffic, turn off the relevant traffic-capture option in the client and test with a new connection.
The client connects, but can you still use an older configuration? Or why is just one device running slowly? Pick an article that matches your issue instead of starting the installation over.
Platforms
Run mihomo on a router or secondary router: an OpenWrt deployment overview
Explore ways to run the core directly on an OpenWrt main router or secondary router, with an overview of transparent proxying, DNS interception, and connecting LAN devices.
For readers who have tested a configuration on one device and are considering routing traffic centrally through a gateway. First identify which devices will use the gateway, then assess your router’s resources and how to restore its original settings.
Original Clash, Clash Meta, and mihomo: feature support and configuration differences
Trace the history and relationship between three generations of core engines, compare protocol support, rule types, and configuration fields, and explain what to change when using an older configuration with a newer core.
If a configuration imports but some proxies can’t be selected, this article helps distinguish unsupported protocols from incompatible fields. Note which core engine the client is actually using so you don’t mistake interface differences for changes in configuration syntax.
Troubleshoot slow Clash speeds by layer: check proxy quality, network congestion, and local settings
Break slow speeds into three areas—proxy, network, and local setup—and show how to investigate each, including DNS, TUN, concurrent connections, and rule matches, without blindly switching proxies.
Before troubleshooting, note the affected device, network, and app, then compare results using the same destination. This helps reveal settings that affect just one app and distinguish slowdowns at certain times from persistent issues.