Open-source core · Guides in Chinese

ClashTutorialHub

Clash client downloads and setup guides

Choose a package for your system, then follow the guides to import a subscription and set up rule-based routing for your first connection.

  • mihomo core
  • GPL-3.0 open source
  • YAML configuration
  • Rule-based routing

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.

MetaCubeX/mihomo source code repository
git clone https://github.com/MetaCubeX/mihomo.git

The original Clash and its later forks

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.

  1. 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.

  2. 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.

  3. 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.

View the full guide →

Client settings

Proxy modes and connection settings

Rule, Global, and Direct modes

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.

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.

Windows

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.

Go to downloads

macOS

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.

Go to downloads

Android

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.

Go to downloads

iOS

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.

Go to downloads

Linux

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.

Go to downloads

Installation and configuration FAQs

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.
Proxy configuration glossary →

More guides and articles

Latest Clash articles

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.

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.

Read article →

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.

Read article →

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.

Read article →

Linux penguin icon: Font Awesome, CC BY 4.0. Original vector, unmodified.