Open-source client · mihomo core

Clash for PC for Windows 11

Choose a package for your system, then work through profile import, rule-based routing, and connection checks.

  • Documentation
  • System Proxy and TUN
  • Protocol Selection

Client Settings

Profiles, traffic ingress, and rule-based routing

Keep these three areas distinct: Profiles controls which profile is in use, Settings controls how the app passes connections to the core, and Proxies controls which outbound is selected in each proxy group. A profile can be imported without being active; a proxy group can have a selection even when an app is not using the proxy. Expand the cards below to see what each setting does.

Rule-based routing
Match from top to bottom

The core checks rules in order and usually applies the first match. Domain-suffix rules are useful for a specific site and its subdomains, while GeoIP rules make decisions based on the destination address. Unlike sending every connection through the same outbound, rule mode lets you assign different policies to different traffic. Put specific rules first and catch-all rules last. If traffic is routed differently than expected, check the matched rule in the connection details before changing the rule order or proxy group.

Import a subscription
Fetch a remote profile

Paste the subscription URL on the Profiles page, import it, select the profile, then check its proxy groups on the Proxies page. Importing retrieves the file; selecting it switches the active profile. Unlike a local file you import manually, a remote subscription can be fetched again from its source. Direct edits to a cached subscription file may be overwritten on update. For local changes, use the client's override feature or save a separate local profile. Subscription URLs may contain access credentials, so don't post them in public forums.

TUN mode
Route traffic through a virtual adapter

System Proxy relies on apps reading and honoring the operating system's proxy settings. TUN mode uses a virtual network adapter and routes to send eligible traffic to the core, making it useful for apps that ignore system proxy settings. Before enabling it, check the client's permission requirements and whether another virtual adapter or network tool is running. When testing, change one ingress setting at a time and check whether requests from the same app appear on the Connections page. If networking breaks, restore the previous setting first, then determine whether the issue is traffic capture or rule behavior.

Outbound mode
Choose the routing scope

Outbound mode determines how connections that reach the core are routed; it does not capture app traffic. Rule mode evaluates the profile's rules in order. Global mode sends captured connections through the global policy. Direct mode connects without a remote proxy. Start with Rule mode for everyday use when you need different routes for different traffic. To diagnose an issue, briefly switch modes for the same destination and compare the outbound shown on the Connections page to see whether the difference comes from a rule or proxy endpoint. Restore your usual mode afterward so other apps aren't affected.

Mixed port
Local proxy endpoint

A mixed port accepts both HTTP and SOCKS proxy connections on the same listening port, so you don't need to keep track of two ports. For apps that let you set a proxy manually, enter the loopback address and the mixed port currently shown by the client; the example port isn't a fixed value. The external controller address is for managing the core, not a proxy port. If the client can't bind to the port, check whether another client or process is already using it. If you change the port, update any apps configured to use it manually.

Which layer should you check first?

Clear any filters on the Connections page, then send a new request from the same app. If nothing appears, check whether the app reads the system proxy settings, uses its own proxy settings, or connects directly. If you configured a local address and port in the app, compare them with the listening port shown in the client's Settings. Don't change rules yet: a request that never reaches the core can't match one.

Platform Downloads

Choose a Clash client for your device

Each platform link opens the corresponding tab in the download center. For desktop installers, check your system architecture first; on mobile, review the store listing or installer notes. Settings menus vary between apps. When moving from another device, first confirm the new client supports your profile format, then decide whether to import the subscription again or copy a local profile.

Windows

In Windows 11, open “Settings → System → About” and check System type to distinguish x64 from ARM64. For a first install, start with a currently maintained desktop client. When moving from an older Clash for Windows setup, keep a copy of your local profile and quit the old client before starting the new one to avoid port conflicts or repeated changes to the system proxy.

Go to downloads

macOS

In “About This Mac,” check whether your device has an Apple chip or an Intel processor, then choose the package for that platform. If you're moving from Windows to Mac, transfer your profile file or subscription URL rather than copying system proxy or startup settings. After the first launch, test a browser connection before adjusting menu bar options or launch-at-login settings.

Go to downloads

Android

Choose an installer for your device architecture. If a universal package is available, check the download card's compatibility notes if you're unsure which architecture you have. After importing a profile, approve the VPN permission prompt when you start a connection. If the connection drops after you leave the app, first check whether the system is stopping it in the background or another app is using the VPN slot, then check the subscription.

Go to downloads

iOS

Open the app's App Store listing from the download center and review its compatibility notes first. After installing, import a subscription supported by that client in its profile settings, then add the VPN configuration when prompted. If the same subscription works on your computer but won't import on your phone, check which protocols and profile fields the client supports before changing your system network settings.

Go to downloads

Linux

Check whether your distribution uses DEB or RPM, then verify the processor architecture listed for the package. Choose a desktop client if you need a graphical profile manager; for a headless server, see the Core section of the download center. Desktop environment proxy settings may not apply to terminals or background services, so identify which process is making the request when troubleshooting.

Go to downloads

Browse all clients →

Get started with Windows 11

From profile import to connection checks

Start by testing a single app. First confirm the client can read the profile, then make sure its requests reach the core, and finally check the matched rule and outbound. This makes it easier to pinpoint the step that failed if the connection doesn't work.

  1. Prepare a profile

    Choose a package and import a profile

    Install a client that matches your system architecture, then open the Profiles page and import a subscription from its URL or choose an existing local profile file. After importing, select the new profile and confirm it's active, then check the Proxies page for the groups defined in that profile. If import fails, check whether the error points to a failed network request or a profile parsing issue. For a network error, verify that the subscription URL is reachable; for a parsing error, check the format and core compatibility.

  2. Choose how to route traffic to the core

    Enable System Proxy

    Set outbound mode to Rule, then enable System Proxy in the client. Send a request from a browser that honors system proxy settings. Leave TUN off for now so you can test one ingress method at a time. If another app uses its own network settings, check whether you can enter a proxy there. Only use a virtual adapter if you need TUN mode, and then check permissions and compatibility with other network tools.

  3. Check connection records

    Verify the rule and outbound

    Return to the client's Connections page, find the request you just made, and check its destination, matched rule, and outbound policy. Don't rely only on whether a page loads: the browser may have reused an existing connection, or the rule may have routed the request directly. Use a new request for each comparison and change one setting at a time. If the system reports a certificate error, don't bypass the warning. Note the error code, then compare the system clock and the result with the proxy turned off.

Read the full guide →

Project and Upstream

The open-source Clash ecosystem and mihomo core

This site brings together download links and documentation in Chinese. Refer to each project's upstream repository for source code, license terms, and release history. Desktop interfaces, proxy cores, and subscription services are provided by different projects or providers, so identify which layer is involved when troubleshooting.

Project history: legacy clients and later forks

The original Clash brought proxy protocols and rule-based routing together in one core, while desktop clients added interfaces for managing profiles and connections. Clash for Windows was an older client in this ecosystem, not the core itself. When following an old guide, don't copy interface labels, profile paths, or steps based on the product name alone. Before migrating, confirm that the target app is maintained and identify its core, then follow its import instructions. An older interface may still open without recognizing fields added later.

Open-source collaboration: check the relevant repository

Window layout, tray behavior, and launch at startup are client integration issues; rule parsing, protocol support, and connection handling usually belong to the core. Before checking upstream issue reports, note your operating system, client, and core versions, then identify the steps that trigger the error. The same “connection failed” message can have very different causes. Before filing an issue, keep the settings and error details needed to reproduce it, but remove subscription URLs, account details, and private domain names. If the issue comes from subscription content, check with the provider who supplied the profile.

Core lineage: from Clash.Meta to mihomo

mihomo continues the Clash.Meta fork. It shares some configuration concepts with the original Clash, such as proxy groups and ordered rules, but supported protocols, DNS fields, and rule types aren't identical. Similar-looking client interfaces don't mean they support the same profile. If a profile fails to import after you switch cores, start with the field and section named in the error, then compare the configuration item by item. For protocol, DNS, and rule details, see Protocol Reference; check field names in the Quick Reference.

Updates: distinguish the app, core, and subscription

Updating the desktop app can change menus or system integration; updating the core can change profile parsing or connection behavior; updating a subscription fetches new content from its provider. These are separate operations. If a problem started after an update, first identify which one changed. Keep a local profile that still works and compare behavior using the same destination. If the client bundles the core with its installer, check both the app and core release notes. After updating a subscription, confirm that the expected profile is still active.

Get the mihomo source code

If Git is installed, run the command below in a terminal. It only retrieves the source repository; it won't install a desktop client or change your system proxy settings.

git clone https://github.com/MetaCubeX/mihomo.git

Articles and Guides

Clash troubleshooting and core selection guides

Find the right guide for the symptom: check the error code first for browser certificate warnings; compare core fields if an older profile won't import; investigate app loopback restrictions only when a Store app is the one that can't connect.

Browse all articles →