Protocol and Core Reference

Download Clash ClientsChoose a Proxy Protocol

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.

  • Choose a Client
  • Open-Source Core
  • Configuration Examples

config.yaml / Field Reference

Clash Configuration and Core Features

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.

Route Traffic by First Matching Rule

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
6
Popular Proxy Protocols Covered Here
5
Supported Platforms
GPL-3.0
mihomo Core Open-Source License

platform / Installation Options

Choose a Clash Client for Your Device

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.

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 Downloads

macOS

Check 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 Downloads

Android

Choose 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 Downloads

iOS

Check 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 Downloads

Linux

For 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 Downloads

profile / Initial Setup

Import a Subscription, Choose a Mode, and Test the Connection

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.

  1. Import and Enable a Configuration

    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.

  2. Set Rule Mode and Choose an Outbound

    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.

  3. Compare Connection Logs with What Actually Happens

    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

How Clash, Meta, and the mihomo Core Fit Together

Project History: Original Clash and Its Successors

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.

Open-Source Ecosystem: Clients and Core

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.

Configuration Compatibility: Meta to mihomo

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.

Updates: Keep the App, Core, and Subscription Separate

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

Troubleshooting DNS, Mobile, and Network Routes

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.

Linux icon: Font Awesome Free, CC BY 4.0. Clash Download