Windows
Check your processor architecture before installing. If you’re switching clients, back up your settings and custom rules, then quit the old client before enabling the system proxy in the new one.
Go to DownloadsProtocol and Core Reference
Choose an installer for your platform, check which protocols the mihomo core supports, then follow the setup guides to import subscriptions and route traffic with rules.
config.yaml / Field Reference
Read the configuration in three layers: proxies defines available connections, proxy-groups determines how to choose among them, and rules routes each request to a policy. DNS and TUN affect which domains the core can see and which traffic it can receive. If a request takes the wrong route, first determine whether it never reached the core, failed to match a rule, or was assigned to a proxy that cannot connect.
In Rule mode, the core checks rules from top to bottom. Use DOMAIN for an exact domain and DOMAIN-SUFFIX for a domain and its subdomains. If two rules cover the same domain, put the more specific exception first. Unlike sending all incoming traffic through a global policy, rule-based routing lets you send selected services direct and route the rest through a policy group. Put MATCH last so it does not catch requests meant for later rules. After saving, check the Connections list to see the matched rule and outbound policy.
rules:
- DOMAIN,docs.example.com,DIRECT
- DOMAIN-SUFFIX,example.com,Manual Selection
- MATCH,DIRECT
The type field tells the core which protocol to use when parsing a proxy configuration. For Shadowsocks, check the encryption method and password; for Trojan, check the password and the domain used for certificate validation. Hysteria2 also requires a network path that can carry UDP to the server. Matching port numbers do not make two protocols compatible, and renaming a configuration cannot convert it. When migrating, first confirm the core supports the protocol, then check that the fields match the server, and finally test a real request.
proxies:
- name: ss-demo
type: ss
server: example.com
port: 8388
cipher: chacha20-ietf-poly1305
Rules can point to a stable policy group name, so you can change the group’s members without editing every rule. Use select to choose an outbound manually, url-test to select based on probe results, and fallback to use the first available option in order. Probes use a specified test URL, so their results reflect performance only to that URL—not your actual workload. On mobile devices, reduce probe frequency if you do not need frequent switching to avoid keeping the network active.
proxy-groups:
- name: Manual Selection
type: select
proxies:
- ss-demo
- DIRECT
In Fake-IP mode, matching DNS queries receive a mapped address. When the core handles the resulting connection, it can map that address back to the domain and apply domain-based rules. redir-host returns the resolved IP address instead. If device discovery or local network services need real addresses, add the affected names to fake-ip-filter. After making changes, confirm the app’s DNS queries pass through the core, clear old caches, and try again; otherwise, you may still see earlier results.
dns:
enable: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- "printer.example.com"
System proxy settings affect only apps that read them. TUN receives traffic through a virtual network interface and routing, making it useful for covering more apps or handling UDP. Before enabling it, check system permissions and look for conflicts with existing VPNs, virtual adapters, or LAN routes. Automatic routing does not necessarily capture all traffic. After enabling TUN, test both the target app and local services, and preserve any required routes to devices such as printers and gateways, depending on client support.
tun:
enable: true
stack: mixed
auto-route: true
auto-detect-interface: true
A full subscription is usually imported as a standalone configuration, and updates may overwrite local changes. proxy-providers manages remote proxy lists separately; policy groups reference providers with use, while the main configuration keeps its own rules. Remote content must match the provider format supported by your core; a full configuration and a generic share link are not interchangeable. Before changing the update interval, confirm that a manual refresh succeeds and that the target policy group has loaded its members.
proxy-providers:
sample:
type: http
url: https://example.com/provider.yaml
path: ./providers/sample.yaml
interval: 86400
platform / Installation Options
First check your device’s operating system, processor architecture, and installation permissions. Then confirm the client can import your configuration. Desktop clients may connect through the system proxy or a virtual network adapter, while mobile clients usually require permission to add a system network extension. Whether an installer runs and whether a subscription imports are separate questions. When moving between devices, you can keep using protocols supported by the server, but recheck local ports, traffic routing, and network adapter settings.
Check your processor architecture before installing. If you’re switching clients, back up your settings and custom rules, then quit the old client before enabling the system proxy in the new one.
Go to DownloadsCheck the chip listed in About This Mac, then choose the Apple Silicon or Intel installer. After setup, test the system proxy in a browser before deciding whether you need TUN mode.
Go to DownloadsChoose an installer that matches your device’s architecture. Grant VPN permission and test the connection with an app you use regularly. If you already use another VPN, check which one is active.
Go to DownloadsCheck the client and its system requirements in the App Store. After installing, follow the system prompts to add a VPN configuration. Local listening ports, external controller settings, and virtual network adapter fields in a desktop YAML file may not apply on mobile, so confirm the client’s import options before migrating. Test over both Wi-Fi and cellular data to distinguish a configuration issue from a connection problem limited to one network.
Go to DownloadsFor desktop use, start with a graphical client and choose the package format for your distribution. Check that the installer and processor use the same architecture. For servers or routers, look into the mihomo core separately. Desktop proxy settings may not apply to terminals or background services. If a browser works but a service cannot connect, check that service’s proxy environment and listening address before changing routes.
Go to Downloadsprofile / Initial Setup
For the initial setup, verify one path: the client has the right configuration enabled, the target request reaches the core, and it takes the expected direct or proxy route. Once these checks pass, enable automatic testing, adjust DNS, or turn on TUN. This makes it easier to identify which later change affected the result.
Use the client’s Configuration or Subscription menu to import a Clash-format URL explicitly provided by your service, or import a local YAML file. After importing, confirm the new entry is active, then open the proxy page and check that its policy groups have members. If the list is empty or the format is rejected, check whether the URL returns a full configuration, a proxy list only, or a webpage that requires sign-in; these are not interchangeable import formats. Subscription URLs may contain access credentials, so when reporting an issue, share only the error and fields with credentials removed.
For your first test, start in Rule mode. On the proxy page, select the policy group referenced by your rules and pin one outbound in that group to prevent automatic switching during the test. On desktop, enable the system proxy first and check whether your browser uses it. On mobile, confirm system permission and VPN status. Global is useful for briefly testing a specific outbound; Direct provides a direct-connection comparison. The mode controls how the core handles connections it has received—it does not enable or disable traffic capture. A page opening in your browser does not prove other apps are going through the core.
Visit one service expected to connect directly and another expected to use a proxy. In the Connections view, check the destination domain, matched rule, and outbound policy. If there is no record, make a fresh request to rule out a cached page, then check the proxy entry point. If the record shows the wrong route, see whether an earlier rule matched first. If the rule is correct but the connection fails, check the logs for DNS, handshake, or timeout errors. Change one setting at a time and repeat the same tests. This helps distinguish a rule issue, a DNS problem, and an unreachable remote server—without reinstalling the client at the first sign of trouble.
upstream / Project Background
The original Clash combined proxy definitions, policy groups, and routing rules in a single YAML file. Clients for desktop and mobile platforms followed. Many resources use “Clash” as a general term for this class of tool, not a specific installer. If you still use an older configuration, check whether a guide covers the original core or a later fork. When menus or fields look outdated, use errors in your current client’s logs to identify differences. Keep a working copy of your old configuration and test changes in a separate copy; repeatedly overwriting the same file can make issues hard to reproduce.
Graphical clients typically handle configuration imports, connection displays, system service installation, and start/stop controls. The core interprets rules, resolves domains, and establishes proxy connections. Different clients can use the same core while providing their own configuration overrides. An open-source license for the core does not necessarily apply to every graphical client. To troubleshoot, first reproduce the issue with a minimal configuration. If DNS resolution fails or a protocol field is unrecognized, check the core documentation. If an import button, menu item, or system permission behaves unexpectedly, check the client project’s documentation. When reporting an issue, include the operating system, entry point, mode, and reproduction steps, and remove access credentials from URLs.
mihomo continues development of the Clash.Meta core. It retains the basic configuration structure for proxies, proxy groups, and rules, while adding protocols and network settings. The fact that familiar fields remain in older configurations does not mean a configuration generated by the newer core will work with the original. In particular, newer type values, DNS policies, and TUN settings may be rejected by an older core or may no longer provide the same traffic routing. When choosing a core, list the protocols and transport settings you actually need, then check them against the documentation for the client’s built-in core. There is no need to replace a stable everyday setup for protocols you do not use.
Updating a client mainly affects its interface and system integration, and may also replace its bundled core. Refreshing a subscription retrieves configuration or proxy lists; it does not add new protocol support to the app. If connections fail after an update, compare the active configuration with the last working copy. Check whether policy group names changed, local rules were overwritten, and the startup log recognizes the same fields. If the client supports separate overrides, keep personal rules in the local layer and let subscription updates manage the remote proxy list. Keeping notes on startup and reproduction steps is more useful for diagnosis than repeatedly switching outbounds.
notes / Technical Notes
Start by identifying the layer where the problem occurs. If an app reports a DNS resolution error, there is no need to begin with a speed test. If a phone disconnects only when locked, desktop troubleshooting steps may not apply. These three articles cover DNS, background app behavior, and connection paths, with tests you can run while keeping your current configuration intact.
Learn how Fake-IP uses reserved-range addresses to speed up DNS handling, how it differs from redir-host, and when to configure fake-ip-filter.
Explore why always-on VPN services use power on mobile, and how protocol, DNS, automatic testing, and system battery optimization settings affect battery life.
Troubleshoot slow speeds in three layers—from the proxy node and network route to local settings—with checks and adjustments for each, so you can avoid switching nodes blindly.