Windows
In Settings → System → About, check whether your processor is x64 or ARM64 and download the matching package. For a first test, enable the system proxy and verify the browser’s outbound connection in the client.
Go to Downloadsmihomo core · clients for every platform
Choose a package for your platform, then follow the examples to set up subscription imports and rule-based routing.
Configuration Examples
Each example focuses on one related set of fields. When editing an existing configuration, find the section with the same name and merge the example at the same indentation level. After applying it, check the connection log to confirm the matched rule is the one you expect.
mode: rule
rule-providers:
local-domains:
type: file
behavior: domain
format: yaml
path: ./rules/local.yaml
rules:
- DOMAIN-SUFFIX,example.com,DIRECT
- RULE-SET,local-domains,DIRECT
- MATCH,DIRECT
In rule mode, rules are checked from top to bottom, and processing stops at the first match. This example checks domain suffixes first, then loads a local rule provider; unmatched connections use the final fallback to connect directly. Before referencing a rule provider, prepare a file containing a payload list and make sure its contents match the rule type. Unlike global mode, rule mode lets you route specific traffic independently. To troubleshoot, check the matched rule on the connection page, then make sure exceptions appear before broader rules. A rule being present in the file alone doesn’t mean it took effect.
proxy-groups:
- name: Outbound Selection
type: select
proxies:
- DIRECT
- REJECT
rules:
- DOMAIN-SUFFIX,example.com,Outbound Selection
- MATCH,DIRECT
Proxy groups keep outbound choices separate from rules. Once a rule references a group, you can change its options without rewriting the rule. This example uses a select group with built-in DIRECT and REJECT outbounds, affecting only requests for the example domain. After adding a subscription, you can add existing client nodes to the group. Unlike a manual selection group, a URL-test group picks a member based on probe results, while a fallback group prefers the first available member. Probe results only reflect access to the test URL; verify service availability with an actual request.
Advanced Config →dns:
enable: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- '+.local'
nameserver:
- 9.9.9.9
Fake-IP assigns virtual addresses to domain names. Once the core handles a connection to one of these addresses, it uses the mapping to recover the domain for routing. Unlike returning a real address directly to an app, this approach depends on both the DNS query and the subsequent connection following the correct processing path. If a printer or LAN service becomes unavailable, first check whether the affected domain needs to be excluded, then test local name resolution and connection routing separately. The filters in this example only control whether a virtual address is assigned; they do not replace a local resolver or guarantee that traffic to the domain connects directly.
Advanced Config →tun:
enable: true
stack: mixed
auto-route: true
auto-detect-interface: true
The system proxy only works for apps that read the relevant proxy settings. On supported platforms, TUN routes traffic through a virtual network interface, which can help when an app ignores the system proxy. Before enabling it, check the client’s permission requirements and note the current proxy settings. After applying the change, test your browser, the target app, and local devices while watching the connection page. If the target app still doesn’t appear, check for routing conflicts or another VPN before changing the network stack; changing it won’t fix an invalid proxy-node configuration.
Advanced Config →allow-lan: false
log-level: info
proxy-providers:
local-nodes:
type: file
path: ./providers/local.yaml
Subscriptions usually refresh by fetching remote content, so edits made directly to a downloaded copy may be lost on update. Clients that support overrides let you maintain settings such as LAN access, log level, and added rules separately. This example shows the merged fields: device settings are at the top level, while local node files are read separately by a provider. Clients handle appended and replaced lists differently. After updating a subscription, inspect the final configuration and verify proxy group names, rule order, and file paths—not just whether the override is enabled.
Advanced Config →external-controller: 127.0.0.1:9090
allow-lan: false
The external controller API lets you inspect connections and logs and switch proxy groups. It is separate from the proxy port that carries app traffic, so don’t enter the proxy port as the controller address if the dashboard won’t connect. This example binds the API to the local loopback address. For actual use, set a separate secret locally and configure the dashboard with the same secret. If the port is already in use, choose another listening port and update the dashboard settings. Don’t expose the controller on all network interfaces or forward it to the public internet unless you’ve clearly defined the network boundaries.
Advanced Config →Open-Source Ecosystem
The client provides the interface, imports configurations, and integrates with the system; the core parses configurations and handles connections. Knowing where one ends and the other begins helps you decide whether to check client settings or core logs.
git clone https://github.com/MetaCubeX/mihomo.git
Clash originally referred to a proxy core project and later became a common name for related graphical clients. mihomo originated from Clash.Meta, retaining core configuration structures for rules, proxies, and proxy groups while developing its own fields and behavior. Common rules in older configurations may still work, but that doesn’t mean every client can interpret newer options. If you run into migration issues, check the client’s core information to identify the project in use, then consult that core’s documentation. When copying DNS or TUN settings from an older guide, make sure the fields belong to the core configuration and not to a client-specific interface option.
The mihomo core is open source under GPL-3.0. The repository’s license, release notes, and issue tracker can help you understand redistribution terms, feature changes, and known issues. Check each client’s own project for its license and download channels; the core’s license doesn’t determine them. The Git command above downloads source code, not a graphical client installer. When searching for similar issues, use the exact error message and operating system. If you need to share logs, include only the relevant excerpt and remove subscription URLs, access keys, internal domains, and proxy-node connection details.
The same subscription may be combined with local ports, interface toggles, and overrides differently by each client. A successful import only confirms that the content was read; it doesn’t mean traffic is routed according to the original file. First check which configuration is selected, then make a new request from the connection page and verify, in order, whether the connection appears, which rule matched, and which outbound handled it. If there’s no connection record, check whether the system proxy or virtual interface is routing traffic. If a record appears but the outbound is wrong, check rule order and group selection. Existing long-lived connections may continue using their original outbound, so establish a new connection when testing.
Client updates can change the interface and installed components; core updates may affect protocol support or configuration behavior; subscription updates mainly fetch new remote configuration. You don’t need to perform all three during the same troubleshooting session. If a problem starts after an update, keep a working configuration and identify which layer was updated. Once the client starts normally, test subscription refreshes, proxy groups, and routing rules one at a time. If only certain domains are affected, check whether their rule provider updated separately before reinstalling the client. When moving to another device, save local overrides and rule files separately; exporting the subscription alone may not include those changes.
The installer provides the client. You still need to import a trusted subscription URL or local file on the configuration page, then select that configuration. If the import fails, make sure the subscription returns a format supported by the client, not a sign-in or error page. See the subscription import steps and FAQ.
Choose rule mode to route different traffic by domain, address, or rule provider. To quickly check whether a particular outbound can connect, switch to global mode for a comparison test, then switch back to rule mode and check which rules match. See the guide to choosing a mode.
A latency test checks a specific probe URL; it doesn’t confirm that every domain and protocol is reachable. When testing the destination, first check whether the connection appears on the connection page. If it does, inspect the actual outbound and DNS result. If the probe also fails, see the troubleshooting FAQ to distinguish a single node timeout from timeouts across all nodes.
If the target app works through the system proxy, you can keep your current settings. Try TUN only if an app ignores the system proxy, and check the platform’s permission requirements first. After switching, test LAN devices and any existing VPN to make sure their routes don’t conflict. See the TUN configuration guide.
Blog
Start with what you observe: check the logs if the app exits during startup, check DNS if the resolution path is unclear, and rule out shared network issues if every node times out.
Find client log locations on each platform, then follow troubleshooting steps for five common causes: configuration syntax errors, port conflicts, missing core files, insufficient permissions, and leftover services.
Read Article →Learn what causes DNS leaks and how to test for them, with configuration examples for enhanced-mode, nameserver-policy, respect-rules, and TUN DNS hijacking.
Read Article →Follow a step-by-step path from local network and system time to expired subscriptions, port conflicts, and protocol settings, with a check for each stage.
Read Article →