Windows
Find your system type in Settings → System → About. Pick a matching installer and quit any old client before connecting.
Go to downloadsOpen-source core · Configuration guides
Choose a client for your operating system, import a YAML config, then check rule-based routing and proxy groups in the app.
First, understand where traffic enters, how it is matched, and where it exits. System proxy and TUN determine how traffic reaches the core; rules select an outbound route, and proxy groups choose from the available outbounds.
The config.yaml shown above is a UI reference snippet, not a complete, ready-to-use configuration. PROXY is a custom group name; DIRECT and REJECT are built-in outbounds for direct connections and rejected traffic, respectively.
Select Rule mode on the Proxies page, then add match conditions in order under the active config's rules section. The core checks them from top to bottom and uses the outbound for the first match. Domain suffix rules cover specific site domains; GEOIP matches by the destination IP's geographic location. They serve different purposes. Put specific exceptions first, then use MATCH for any remaining traffic. Unlike Global mode, Rule mode can route different connections from the same app in different ways. After editing, open Connections and check that each destination and matched rule look right.
Define a group name in proxy-groups, list its available outbounds under proxies, then reference the group name in your rules. Open the Proxies page in the client, expand a group of type select, and choose an option. Unlike specifying an outbound in every rule, a proxy group lets multiple rules share one selection, so you don't have to rewrite the rules whenever you switch outbounds. To choose a route automatically based on test results, consider url-test. Tests only reflect performance to the test URL, not speeds across all sites. If something goes wrong, check which outbound the connection actually used.
If an app ignores the system proxy, first check whether your client supports TUN. Then turn on the relevant setting and grant any requested permissions. TUN receives packets routed by the system through a virtual network interface; the system proxy provides a proxy address only to apps that honor that setting. After enabling TUN, start a new connection in the same app and check the Connections page to see whether the destination appears and the expected rule matches. If another VPN is running, limit your test to one traffic-capture method to avoid mistaking route priority conflicts for an outbound issue. Turn TUN off afterward and check whether local services are reachable again.
Add a compatible remote URL on the Configuration or Subscription page. Once it downloads, select the config and check that its proxy groups appear on the Proxies page. A local file changes only when you reimport or save it; a remote config can be fetched again by the client according to its settings. Edits to a cached copy of a remote config may be overwritten on the next refresh. To keep custom rules, use the client's override feature if available, or save a separate local config. If a refresh fails, determine whether the request failed or the config couldn't be parsed. Don't delete the old copy until you know the replacement works.
Choose a client for your operating system and CPU architecture, then check the active core under About or Settings. Desktop clients often separate imports, outbounds, and traffic capture into different pages; mobile clients typically also require VPN permission from the OS. A client that can read YAML may not support every extension field it contains. When moving between devices, start with a config containing only the essential proxies and rules, then verify one connection. Add rule sets, DNS, and TUN settings afterward. If a local file can't be found, check whether its path still points to the old device and whether the new client can access that directory.
For first-time setup, change only what's necessary. Confirm the config is active, enable one traffic-capture method, then verify the result in the connection log. This makes it easier to tell whether a problem is with importing, traffic capture, or outbound routing.
Open the Configuration page to import a local YAML file or fetch a remote config from a subscription URL. After saving, select the newly imported entry, then check the group names on the Proxies page. Seeing a file in the config list doesn't mean it's active. If parsing fails, start with the first error in the log.
Set the routing mode to Rule and confirm the current selection in your proxy group. On desktop, if the app uses the system proxy, start by testing that. If you need system-wide traffic capture, authorize TUN as prompted by the client. On mobile, follow the OS prompts to establish a VPN connection. Don't change the mode, outbound, and DNS settings all at once; change one thing at a time.
Start a new request, then check its destination, matched rule, and final outbound on the Connections page. Existing connections may keep using the route selected before a change; close old sessions in the app and try again if needed. If the new request isn't listed, check traffic capture first. If it appears but gets no response, use the logs to trace parsing and dialing.
Clash was the name of an earlier core and is also commonly used to describe clients that follow its configuration structure. Clash Meta built on that foundation and was later released as mihomo. In older guides, “Clash” may not refer to the app you're currently using. Before following a guide, check its config fields and core name against the About page on your device. If only the menu layout differs, search for the setting by name. If a field isn't recognized, consult the documentation for your current core rather than copying values from an old screenshot.
For example, Rule in a desktop menu may be a UI option, while mode: rule is a core configuration value. Some clients rewrite the runtime config at startup, so a change to a file on disk may not show up in the UI—and that doesn't necessarily mean the syntax is wrong. First confirm you're editing the config the client has activated, then check whether a higher-priority override is set in the UI.
mihomo's core repository publishes source code, discussions, commits, and releases under the GPL-3.0 license. If a config field triggers an error, check the repository documentation and change history to confirm which config format it applies to. If the system proxy toggle doesn't reset, check the client repository instead: tray behavior, permission prompts, and changes to system settings are usually handled by the client. Similar symptoms can point to different components, so consult the relevant project's maintenance records.
When reporting an issue, include your operating system, client, steps that trigger the issue, and relevant logs. Say whether it failed on the first import or only after switching networks, and list the fewest steps needed to reproduce it reliably. Before sharing a config, remove subscription URLs, credentials, and personally identifiable network details. Keep only the fields that trigger the error and the context needed to understand them.
The client displays status and manages configuration; the core parses rules, establishes connections, and forwards traffic. An extra toggle in the UI doesn't mean the core gained a new capability, and the same field may have a different settings page in each client. To confirm a change took effect, check the active config, runtime logs, and actual connections. For example, changing a proxy group only affects outbound selection for traffic that uses that group; it can't send requests the client hasn't captured into the core.
When switching devices, preserve the relationships between rules and proxy groups, but review ports, system permissions, and file paths. Local rule files referenced by a desktop client aren't automatically copied to your phone with the YAML config. Start with a basic config you know loads, then add external dependencies one at a time. This makes differences easier to track than copying the entire directory.
An app update usually replaces the client itself. The core may be bundled with the app or managed separately. Refreshing a subscription only replaces remotely provided config content; it doesn't update the client. Before switching, keep a working local config and any override rules. After an update, check the active config and system proxy or TUN status, then test a connection that worked before. If problems began only after a subscription update, compare old and new proxy group names and rule references before reinstalling the app.
Choose your operating system, then check the CPU architecture, package format, and required permissions. These links are for GUI clients; consider a standalone core only if you need to manage its process, config directory, and system routes yourself.
Find your system type in Settings → System → About. Pick a matching installer and quit any old client before connecting.
Go to downloadsCheck About This Mac for Apple silicon or Intel, then choose an installer that supports your chip and macOS version.
Go to downloadsPick an APK that matches your device’s architecture. Grant VPN permission when the app prompts you to connect.
Go to downloadsCheck the App Store listing for device support. Before switching clients, confirm that the new app can import your config.
Go to downloadsCheck the available builds first. Choose a package format and CPU architecture that match your Linux distribution and machine.
Go to downloadsExport the active config first. Also keep any overrides, per-app settings, and proxy group selections stored separately by the client. After installation, import the base config and confirm that its groups and rules are restored before reapplying traffic-capture settings one by one. Don't overwrite the entire app directory: caches, internal databases, and config layouts may not be compatible. If a group disappears after importing into the new app, check which config is active before re-entering all your subscriptions.
To check whether a local proxy port is working, connect to it from an app that supports manual proxy settings. A successful connection confirms the client has a working entry point, but not that it captures all device traffic. Choose between the system proxy, explicit proxy settings, and TUN based on how the target app handles proxies. For compatibility and installation questions, start with the FAQ, then consult the guide for your specific issue.
Start with a symptom you can observe: if the connection drops only when the screen locks, check whether the OS keeps background services running. If an error mentions a domain, check for DNS resolution failures. If a connection works but uses the wrong outbound, check rule priority and proxy group selection.
Covers VpnService permission prompts, always-on VPN, and per-app proxy settings, with battery optimization and autostart steps for popular Android devices to help prevent background disconnects.
Explains log levels and common error fields, mapping dial tcp failures, i/o timeout, no such host, and rule matches to proxy, DNS, or config issues so you can find the cause faster.
Using a ready-to-adapt rules section, this guide covers rule matching order, when to use DOMAIN-SUFFIX or GEOIP, a MATCH catch-all, and how to split rules with rule-provider.