Choose your operating system, then check the package architecture. For everyday use, start with a GUI client: it lets you import subscriptions, switch proxy groups, and review logs. Consider the standalone core when you already have a service manager and need to use an existing configuration on a server or router.
Check the system type on your device’s About page to distinguish common x64 PCs from ARM devices. A matching processor architecture doesn’t guarantee that a client supports your OS, so also check the system requirements listed on its download card.
Before migrating from an older Clash client, back up your subscription URL and custom rules, then fully quit the old app. After launching the new client, check the system proxy status in the tray and verify the listening ports to ensure both clients aren’t handling the same connections.
Check your chip in About This Mac. Choose the Apple Silicon package for Apple chips or the Intel package for Intel models. Don’t infer the architecture from the OS name or the computer’s appearance; the same macOS release can run on both types of hardware.
Open the client from the menu bar and import your configuration before choosing between the system proxy and TUN. If macOS displays a prompt while you install the app or enable a network feature, verify the app’s source and the requested permission, then follow the current on-screen instructions.
Choose a package that matches the instruction set supported by your device. A 64-bit phone processor doesn’t necessarily mean the OS supports 64-bit apps. If you’re unsure, check your device specifications and see whether the client offers a universal package.
The first time you enable a feature that routes traffic, Android may ask you to allow a VPN connection. If the connection drops after switching apps, check whether the client is still running, then look for battery management, background restrictions, or another VPN that could be interfering.
Open the App Store from the download page and check the client’s minimum OS version and device compatibility. If you already use Clash YAML on desktop, check which import formats and protocols the mobile client supports; don’t assume every desktop configuration feature is available on mobile.
After importing, verify the configuration name and selected proxy group, then approve the VPN configuration if prompted. If your phone already has a work VPN or a managed network profile, understand what the existing connection is for before deciding when to switch.
For desktop clients, choose a package format for your distribution, then check the CPU architecture. Debian-based distributions and RPM-based distributions generally use different package formats. Even when the format matches, check the desktop environment and runtime requirements.
When evaluating a standalone core for a headless host, consider the configuration directory, process management, and network permissions separately. A listening address inside a container is not the same as the proxy endpoint on its host. Be clear about the actual runtime environment when troubleshooting.
For a first-time installation, you only need one working configuration. After importing it, make sure it’s selected as the active configuration—not merely listed in the client. If you plan to switch clients, also note the entry settings, default proxy group, and subscription update method saved separately in the client interface; these often aren’t included in a YAML file. Recreate a minimal working setup in the new environment first, then restore your existing rules step by step.
When reading settings, start by separating three steps: how an app sends connections to the core, how the core identifies each connection’s destination, and how rules select an outbound. System proxy and TUN are traffic entry points; DNS and sniffing help identify destinations; routing rules choose the next hop. A successful node test only shows that the test connection worked—it doesn’t prove that the app you’re troubleshooting is using the same route.
The entries below are indexed by configuration key. Names in the UI vary by client: an option may be in the main settings, on a configuration override page, or available only in YAML. Before troubleshooting, confirm which configuration is active. If the client supports overrides, account for those values too. For protocol options and compatibility details, see the protocol guide.
How the client and core work together
mihomo reads the configuration, handles connections received through local entry points, and selects an outbound based on the configured policy. Tray menus, subscription management, and system proxy toggles are usually provided by the client; different interfaces can use the same type of core. When troubleshooting startup, check separately whether the UI opened, whether the core loaded the configuration, and whether the local port is listening. The mixed port accepts both HTTP and SOCKS requests and helps identify where apps should connect.
mixed-port
Rule matching and outbound selection
In rule mode, connections are checked against rules from top to bottom. The first match is sent to its designated proxy group or outbound. To make an exception for one domain within a broader domain policy, place the more specific rule first and keep the fallback rule last. Global and direct modes don’t route traffic through this same rule set. After making a change, check the connection details for the matched rule and final outbound so you don’t mistake a proxy group selection for a rule that failed to apply.
mode: rule
Route traffic through a virtual network interface
The system proxy relies on apps honoring the system proxy settings. Apps that don’t may need TUN to route their traffic through a virtual network interface. Whether a connection is captured also depends on system routes, exclusions, and permissions. Before enabling TUN, check for an existing VPN or another virtual interface. If LAN access also stops working, first revert the TUN setting to confirm the difference, then check the route scope and DNS separately. Avoid changing multiple variables at once.
tun.enable
Protocol types and transport requirements
Shadowsocks, VMess, Trojan, VLESS, Hysteria2, and TUIC use different handshakes, parameters, and transport requirements. When importing a node, make sure its type matches the server, then check the transport, encryption, and authentication fields. QUIC-based protocols also depend on UDP connectivity on your current network. A simple latency test isn’t a substitute for testing an actual connection; on mobile, also check how it reconnects when you switch networks.
proxies
Subscription updates and local overrides
A complete Clash YAML can define nodes, proxy groups, and rules; a node list or share link usually contains only connection details. Before importing, identify the format you were given and choose the corresponding option in your client. Automatic updates may replace the original configuration. Put personal rules in an override layer explicitly supported by the client, or save them in a separate local configuration. If a proxy group is empty after an update, first check that the group name still matches the provider name.
proxy-providers
Domain resolution and destination detection
DNS resolves domain names; sniffing attempts to recover a destination domain from identifiable connection data. They aren’t interchangeable. If a domain rule unexpectedly falls through to the default, check whether the logs show a domain or an IP address, then see which entry point handled the DNS request. Before switching enhanced mode, consider how local services rely on DNS. Change one setting at a time and retest the same destination to tell whether the change came from resolution, detection, or rule order.
dns.enhanced-mode
mihomo core
mihomo reads the configuration, handles connections received through local entry points, and selects an outbound based on the configured policy. Tray menus, subscription management, and system proxy toggles are usually provided by the client; different interfaces can use the same type of core. When troubleshooting startup, check separately whether the UI opened, whether the core loaded the configuration, and whether the local port is listening. The mixed port accepts both HTTP and SOCKS requests and helps identify where apps should connect.
mixed-port
Rule-based routing
In rule mode, connections are checked against rules from top to bottom. The first match is sent to its designated proxy group or outbound. To make an exception for one domain within a broader domain policy, place the more specific rule first and keep the fallback rule last. Global and direct modes don’t route traffic through this same rule set. After making a change, check the connection details for the matched rule and final outbound so you don’t mistake a proxy group selection for a rule that failed to apply.
mode: rule
TUN mode
The system proxy relies on apps honoring the system proxy settings. Apps that don’t may need TUN to route their traffic through a virtual network interface. Whether a connection is captured also depends on system routes, exclusions, and permissions. Before enabling TUN, check for an existing VPN or another virtual interface. If LAN access also stops working, first revert the TUN setting to confirm the difference, then check the route scope and DNS separately. Avoid changing multiple variables at once.
tun.enable
Multi-protocol support
Shadowsocks, VMess, Trojan, VLESS, Hysteria2, and TUIC use different handshakes, parameters, and transport requirements. When importing a node, make sure its type matches the server, then check the transport, encryption, and authentication fields. QUIC-based protocols also depend on UDP connectivity on your current network. A simple latency test isn’t a substitute for testing an actual connection; on mobile, also check how it reconnects when you switch networks.
proxies
Subscriptions and configuration
A complete Clash YAML can define nodes, proxy groups, and rules; a node list or share link usually contains only connection details. Before importing, identify the format you were given and choose the corresponding option in your client. Automatic updates may replace the original configuration. Put personal rules in an override layer explicitly supported by the client, or save them in a separate local configuration. If a proxy group is empty after an update, first check that the group name still matches the provider name.
proxy-providers
DNS and sniffing
DNS resolves domain names; sniffing attempts to recover a destination domain from identifiable connection data. They aren’t interchangeable. If a domain rule unexpectedly falls through to the default, check whether the logs show a domain or an IP address, then see which entry point handled the DNS request. Before switching enhanced mode, consider how local services rely on DNS. Change one setting at a time and retest the same destination to tell whether the change came from resolution, detection, or rule order.
dns.enhanced-mode
mihomo · Rules
Rule syntax examples
Domain suffixDOMAIN-SUFFIX,example.com,DIRECT
Fallback matchMATCH,DIRECT
Configuration entry points
Moderule
Entry port7890
03 / Project and maintenance
mihomo open-source project and maintenance resources
The core project, GUI clients, and configuration providers are maintained by different parties. When behavior differs, first identify who handles configuration parsing, UI controls, or subscription updates. Then look for information from the right source.
From Clash to mihomo
The original Clash established a workflow centered on rules, proxy groups, and YAML configuration. Clash Meta extended that workflow with more protocols and traffic-handling capabilities, and the project later continued under the name mihomo. As a result, Clash Meta in older documentation and mihomo in newer docs often refer to the same project lineage. You can still use older tutorials for the basics of rule order and proxy groups, but check current documentation for option names, default field values, and runtime permissions. A software name containing Clash doesn’t tell you which core it bundles.
Explore open-source development in the repository
MetaCubeX publishes mihomo’s source code, and the core is licensed under GPL-3.0. You can inspect the source, trace changes in commit history, and find additional context in issue discussions about how a setting behaves in a particular environment. The license applies to the core project; it doesn’t mean every client interface or subscription uses the same license. When reading issues, note the reporter’s OS, traffic entry point, and configuration scope. Similar error titles can refer to UI failures, configuration parsing errors, or network issues—and are easy to confuse if you don’t look beyond the title.
Check whether an old configuration can be migrated
When migrating from an older core, you can usually keep common nodes, proxy groups, and rules, then review fields specific to the core. Check remote rule providers, local file paths, and GUI client preferences separately. A relative path that worked before may point somewhere else in the new client’s working directory, and proxy selections saved in the UI may not be included in the configuration file. After importing, test one destination expected to go direct and another with a specified policy, then compare the connection logs. Once both match expectations, restore overrides and DNS settings one at a time.
Separate the core, client, and subscription updates
Core release notes describe changes to protocol implementations, configuration parsing, or network behavior. Client release notes cover UI, packaging, and OS integration. After a desktop app update, the core in use also depends on how the app bundles or manages it. Refreshing a subscription updates remote configuration or node data; it doesn’t update the app. If connections fail after an update, identify which layer changed, note the current mode, entry point, and matched rule, then retest the same destination. This makes it easier to isolate the cause than reinstalling, switching nodes, and changing rules all at once.
Common questions
I imported a subscription. Why isn’t the client handling any traffic?
Importing only adds the configuration. Activate it first, then check whether the system proxy or TUN is enabled and whether the target app is using that entry point. View connection steps
Why do some apps connect while others ignore the system proxy?
Apps handle system proxy settings differently. First check whether the target app’s requests appear in the connection list; then decide whether to inspect the app’s own proxy settings or consider TUN. View troubleshooting
Can I use the mixed port and external controller port interchangeably?
They serve different purposes: the mixed port receives proxy requests, while the external controller port provides a management API. Check which address the app or dashboard points to before changing either one. View port terminology
Do I need to share my full subscription when reporting a configuration issue?
Start with the steps that trigger the issue, the core and client names, and a minimal configuration snippet with subscription URLs, credentials, and private domains removed. That’s usually enough to investigate. View troubleshooting tips
04 / Configuration notes
Subscription imports and client troubleshooting
Choose an article based on the symptoms. If a subscription downloads but won’t import, first check what the server returned. If the core fails to start because a port is in use, identify the process listening on it. If only certain Windows Store apps can’t reach the local proxy, distinguish loopback permissions from whether the system proxy is working. These issues can all look like connection failures, but the troubleshooting steps differ.
Troubleshooting
Startup fails because port 7890 is in use: find the process and change the mixed port
Use commands on Windows, macOS, and Linux to find the process using a port, then update mixed-port and the system proxy port so they match.
How to import a subscription URL into a client: Clash YAML, Base64, and share URI formats
A complete walkthrough of importing subscription links, explaining the differences and compatibility of YAML configurations, Base64 node lists, and individual share links.