• Open-source proxy core · mihomo

Clash Meta Official SiteClash Clients & Routing Rules

Choose a client by platform, from importing YAML subscriptions to verifying rule matches.

  • Install by platform
  • Configuration examples
  • Troubleshooting handbook

CONFIG / ROUTING

mihomo Rule Matching Index

Routing rules determine which policy handles a connection. In rule mode, the core typically checks rules from top to bottom: specific sites and local network exceptions come first, followed by broader rules, with MATCH handling anything left over. When two rules match the same destination, changing their order can change where the connection goes. Policy group names are defined in the configuration; PROXY in this example is not a built-in policy found in every configuration.

To troubleshoot, open the client’s Connections page and compare the destination domain, matched rule, and selected node. If the connection doesn’t appear at all, first check whether the app’s traffic is reaching the client. If it appears but uses the fallback, check the match type, rule set loading status, and rule order. The snippets below show individual configuration entries, not complete configurations you can use to replace a subscription.

Define and reference rule sets

To maintain rules separately, define a rule set under rule-providers and reference it by name in rules. After importing, check the source type and rule behavior, then confirm in the client that the provider loaded successfully. When migrating an old core configuration, don’t assume every build supports the same formats. For example, check core support and rule set behavior before using mihomo’s MRS format. Whether a rule set updates and where it appears in the matching list are separate issues: a successful update won’t move it ahead of rules listed above it.

Rule provider · Local classic rule set

rule-providers:
  local-sites:
    type: file
    behavior: classical
    path: ./rules/local-sites.yaml
rules:
  - RULE-SET,local-sites,DIRECT

PACKAGES / OS

Clash clients by platform

Open the downloads page for your operating system, then confirm the processor architecture and package format. For everyday use—importing configurations, switching policies, and checking connections—choose a graphical client. Download the mihomo core separately only if you need a background deployment or want another tool to manage the configuration. An older client that still launches may not support every field in a newer subscription. When migrating, keep the original configuration and custom rules.

Check your system type in About, then choose the package for your architecture. After connecting for the first time, use a browser to verify that the system proxy is working. When migrating from an older client, quit its process and turn off its system proxy first to prevent the two clients from competing for ports or repeatedly changing system settings. If only certain apps have trouble, check whether they use the system proxy.

In About This Mac, check whether your machine has an Apple silicon or Intel processor, then choose the matching build. If you’re asked to authorize a service or network extension on first launch, review the app and purpose shown in the prompt before allowing it. If the configuration is enabled but no connections appear, check the current proxy status in system network settings before reinstalling the client.

Choose a package for the processor architecture supported by your device. When you start a connection for the first time, Android will ask you to authorize a VPN. After granting permission, test with a browser, then confirm that the apps you want to route are included. If connections drop only when the screen locks or the network changes, check background activity restrictions first. Use the client logs to tell whether the process was stopped or the node connection failed.

iOS

Check the client’s store link and system compatibility on the page for your platform. On the first connection, follow the system prompt to allow a VPN configuration, then return to the client and confirm which configuration is active. Desktop overrides and local file paths may not transfer directly. After importing, test the policies you use most from the original subscription, then add local exceptions one at a time.

Choose a package for your Linux distribution and architecture. If needed, run uname -m to check the machine architecture. Proxy settings for the desktop environment, terminal, and background services may be independent. Even after verifying with a browser, check separately in each app that needs a proxy. For background deployments, also confirm that the service account can access the configuration directory.

SETUP / FIRST CONNECTION

Import a configuration and connect for the first time

When setting up a client for the first time, establish a connection you can test repeatedly before changing any rules. Change one type of setting at a time: if you replace the subscription, change DNS, and enable TUN all at once, it’s much harder to tell which change caused a problem.

  1. Import a configuration and check its format

    Open the client’s Subscriptions or Configurations page, then add the Clash subscription URL from your provider or import an existing YAML file. After a successful import, select and apply the configuration. Then check that the Proxies page lists policy groups and the Rules page shows matching entries. If the URL returns only a list of nodes, check whether it uses a proxy provider format; full configurations and node lists may use different import options. If an update fails, keep the configuration that still works. Check whether the response is a login or error page instead of assuming a successful download means the content was parsed correctly.

  2. Choose rule mode and enable traffic capture

    Select Rule mode in the client, then open the Proxies page and expand the policy groups defined in your configuration. Confirm the selected outbound policy for each group. On desktop, enable the system proxy first to test apps that honor that setting. To capture other traffic, configure TUN separately as directed. On mobile, start the connection in the client and follow the system prompts to authorize it. Before switching proxy methods, note the current mode and policy. If something goes wrong, restore the previous settings, open a new connection, and compare. Remember: Rule mode determines how traffic is routed; System Proxy or TUN determines how traffic reaches the core. They are not interchangeable.

  3. Verify routing in the connection log

    Visit one destination expected to connect directly and another expected to use a proxy. On the Connections page, check the matched rule, policy group, and actual outbound node. A page loading successfully only confirms that the request completed; it doesn’t prove routing is correct. After changing rules, close existing connections or send a new request so the browser doesn’t reuse an old connection. If a connection fails, first check whether the destination appears in the log, then use the logs to distinguish DNS failures, upstream connection failures, and incorrect rule matches. When reporting an issue, include only the relevant time range and necessary error details. Remove private domains, node addresses, and full subscription URLs.

Core, desktop, and mobile projects in the Clash ecosystem

  • Clash Plus
  • mihomo
  • Clash Verge Rev
  • FlClash
  • Clash Nyanpasu
  • Clash Meta for Android

SOURCE / MAINTENANCE

The mihomo open-source project and who maintains what

Check the source code to understand the core’s license, default behavior, and configuration handling. Check a client’s release notes to see how a package is built for a given system and integrated with the core. These resources answer different questions. This site collects client download links and Chinese configuration guides; each client’s release and maintenance are handled by its respective project.

Project history and migrating older configurations

mihomo continues development of the Clash Meta core. Older guides often use Clash, Clash Meta, and graphical clients interchangeably, but these names don’t always refer to the same program. Before migrating, check the active configuration in your old client, which core it uses, and whether it has separate override files. You can start by migrating the subscription and policy groups, then add custom rules. If an import reports an unsupported field, identify the configuration section where the error occurs and check how the old and new cores define that field. There’s no need to rewrite the entire configuration. Keep the original file so you can roll back quickly if migration fails.

Community source code and client ecosystem

mihomo’s source repository is public, and the core is licensed under GPL-3.0. You can review the implementation of rule matching, outbound handling, and configuration parsing in the repository, and track changes through commits and release notes. Graphical clients provide their own subscription management, interfaces, or platform integrations, with different maintenance scopes and update schedules. The projects listed here belong to the same tool ecosystem, but that doesn’t mean they share accounts, subscription services, or maintainers. When referencing a configuration example, specify whether it’s a core field or a client interface action to avoid conflating the two.

Core, client, and rule data

The core parses configurations, matches rules, and establishes outbound connections. The client starts and manages the core, and may merge subscriptions with local overrides before loading them. Geographic databases, remote rule sets, and proxy lists each have their own sources. Even with the same subscription, two devices can behave differently because of active overrides, rule data, or traffic capture settings. When troubleshooting a discrepancy, compare the configurations actually loaded and the connection logs on both devices, then make a new request to the same destination. Don’t compare only the subscription names displayed in the interface.

Release updates and troubleshooting

Before updating, read the relevant project’s release notes and check for changes to configuration migration, platform permissions, or package architecture. If your setup is stable, keep the working configuration and test the new installation with your usual policies, local network access, and required DNS settings. When reproducing an issue, note the operating system, client, traffic capture method, and steps that trigger it. If configuration parsing fails, reduce the file to the smallest snippet that reproduces the error. Check the client project first for system permissions or tray issues; compare with the upstream repository for rule parsing problems that can be reproduced in the core alone.

Get the mihomo source code

If you have Git installed, clone the repository to inspect the implementation and history. This command does not install a client.

View the upstream source repository ↗

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

Frequently asked questions

The client says it’s connected, but why doesn’t an app show up in the log?

First check whether the app uses the system proxy or is covered by the current VPN, TUN, or per-app settings. On the same device, visit the same destination in a browser for comparison. If the browser appears in the log but the app doesn’t, check the traffic capture scope before changing the rules. Browse the FAQ.

Why does a connection still hit the fallback after I add a local rule?

Check the order of the rules actually loaded by the client. Some overrides append new rules to the end of the list, after the fallback. If the rule is in the right position, check whether the destination in the log is a domain or an IP address, and whether the rule set loaded successfully. Browse rule terminology.

Should I delete the old configuration if a subscription update fails?

Keep the configuration that still works, then determine whether the request failed, the response was unexpected, or a field in the configuration failed to parse. Note whether the error occurred during download, parsing, or application to narrow down the cause. See the subscription troubleshooting steps.

NOTES / CLIENT GUIDES

Choosing a client and migration guides

For help choosing a client, migrating an older configuration, or troubleshooting background disconnects on mobile, explore the guides below. Client comparisons cover interfaces and platform support; migration guides focus on preserving existing configurations; mobile guides explain system permissions and background behavior.

Choosing a Client

Moving on from the discontinued Clash for Windows: migrate subscriptions, rules, and overrides

For users still on an older client: learn how to export subscriptions and custom rules, move to a maintained mihomo-based client, and check system proxy and DNS behavior after migration.

Read the migration guide →
Choosing a Client

Choosing a mihomo client: Clash Verge Rev vs. FlClash vs. Clash Plus

Compare popular mihomo clients by platform support, interface, TUN support, and configuration management, with recommendations for desktop and mobile.

Compare clients →
Platforms

Using Clash Meta on Android: VpnService permissions and battery optimization exemptions

Understand the VpnService authorization flow, per-app proxy settings, and how to exempt the client from battery optimization to prevent background termination across Android manufacturers.

Read the Android guide →