Open-source core · Clients for every platform

Clash Toolbox · Clash Client Downloads

From the mihomo core and subscription imports to rule-based routing, find the right client and setup guide for your device.

  • YAML configuration
  • Chinese documentation

Connections & configuration

Rules / subscriptions / network

Route connections by rule

In rule mode, rules are evaluated from top to bottom, and the first match determines where traffic goes. Use domain-suffix rules for specific exceptions, then let the final MATCH rule handle everything else. Unlike global mode, which sends all intercepted connections through the selected policy, rule mode lets you route work services, local network resources, and other traffic separately. After changing rule order, start a new connection and check the logs to confirm which rule and policy matched. Existing connections may continue using their original route.

Rule mode guide →
# Example: route traffic by domain
rules:
  - DOMAIN-SUFFIX,example.com,DIRECT
  - MATCH,REJECT

Downloads by operating system

Client installers

First, distinguish desktop installers, mobile apps, and command-line cores. Then check the processor architecture, system requirements, and distribution method. When setting up a device for the first time, run only one client at a time. If an older client is still listening on a port or intercepting traffic in the background, it can be hard to tell whether the new client started correctly.

Windows

A good fit for desktop users who want a system tray, graphical subscription management, and connection logs. Check your system type under About in Settings, then match it to the architecture listed for the installer. If an older client is running, quit it from the system tray first to prevent both processes from competing for the same local listening port. If your browser connects but other apps still use a direct connection, check whether those apps honor the system proxy before deciding whether to configure TUN.

macOS

Check the processor under About This Mac: choose the Apple Silicon installer if it says Apple chip, or the Intel installer if it says Intel processor. After installation, import your configuration, then enable the system proxy or network extension as needed. When macOS asks for permission, make sure the prompt matches the action you’re taking. Troubleshoot an installer that won’t open separately from a client that can’t route network traffic. If you already have an older client, export your local configuration before upgrading or switching.

Android

Choose an installer that matches the processor architecture and system requirements listed on the download page. On the first connection, Android usually asks you to confirm a VPN connection. After granting permission, check the active configuration and connection status in the client. If a work VPN or another app using the VPN interface is already running, check for conflicts. If the connection drops only when the screen locks, review the app’s battery restrictions. If it drops only when switching networks, note what happens on Wi-Fi and mobile data separately.

iOS

Open the Clash Plus App Store listing from the download page, check the system requirements shown there, and install the app. Import a supported configuration, follow the system prompts to add a VPN configuration, then select a policy group and connect in the app. The VPN status in iOS confirms that the connection is established; it doesn’t tell you which rule a particular site used. Check the app’s connection log for that. If several VPN configurations are installed, make sure the one you want is active.

Linux

For common desktop environments, start with a graphical client and choose a package based on your distribution, processor architecture, and the download page’s support notes. Debian-based distributions typically use .deb packages; RPM-based distributions use .rpm. On a server or router running a standalone core, the environment is responsible for configuration paths, permissions, and process management. Desktop network settings and proxy environment variables in the terminal work independently, so test in the actual apps that need network access after changing either one.

Quick start

From importing a configuration to verifying a connection

The goal of your first setup is to establish a connection and see which rule it follows. Keep the client’s default ports and DNS settings at first; adjust them one at a time after the connection works. That way, if something breaks, you can undo the latest change instead of resetting the entire configuration.

  1. Import and activate a configuration

    In the client’s configuration or subscription screen, import from a URL or choose an existing local YAML file. Once the list loads, select the configuration you want and check that its policy groups and rules appear. If a refresh succeeds but the active configuration still has its old name, check whether you updated a backup entry instead. Importing a configuration and switching to it are separate steps.

  2. Choose a mode and policy

    Start with rule mode, then select an available node in the policy group responsible for proxy traffic. If you only need desktop apps that support the system proxy to connect, you can enable the system proxy. On mobile, follow the prompt to enable the VPN. To compare two nodes, keep the rules and test destination the same and switch only the node, so you can tell the difference between a mode change and a different route.

  3. Connect and check the logs

    Start a new connection from your browser or target app, then find it in the client log by domain or timestamp. Check the matched rule and outbound policy. If the connection doesn’t appear in the log, first check whether traffic is reaching the client. If it does appear but fails, check the node, name resolution, or destination site. Speed tests can be useful, but the connection result in the app you actually use matters more.

Open-source core and release sources

Project history / licensing / updates

From Clash to mihomo

The original Clash core used YAML to define proxy nodes, policy groups, and routing rules. Clash.Meta continued development around that configuration model and is now maintained as mihomo. Older articles may still use Clash.Meta for this core fork, or refer to both desktop clients and the core as Clash. When researching an issue, first check whether the article covers interface steps or core configuration fields, then compare it with the current client documentation. Familiar YAML structures can help with migration, but support for fields with the same name still depends on the core you’re using.

Source code, licensing, and community activity

The mihomo repository publishes source code, issues, and release notes. The core is licensed under GPL-3.0. To check whether a field is supported, start with the project documentation, then look at the relevant changes or issues to distinguish released behavior from proposed changes. Desktop clients are distributed by their respective projects; the core’s license does not determine a client’s license. When reporting a problem, include your system environment, reproduction steps, and redacted logs. Keep the error type and event order, but remove subscription URLs, access credentials, and private service domains.

What the client and core each do

The client provides interfaces for importing configurations, toggling features, choosing policies, and viewing logs. The core reads the active configuration and handles name resolution, rule matching, and outbound connections. Even clients that use the same core may differ in configuration directories, override behavior, and permission flows. A toggle in the interface shows that the client submitted a setting; check the active configuration and connection logs to confirm it took effect. When switching clients, reuse portable subscriptions and rules first, then configure system-specific settings. There’s no need to reproduce every toggle from the old interface.

Treat three types of updates separately

Client updates can change installation steps and interface behavior; core updates may affect field parsing and traffic interception; subscription refreshes can change nodes, policy groups, or remote rules. Before upgrading, keep a copy of the active configuration and override files, and note a test destination you can reproduce. After the update, check the active configuration, then test one direct connection and one proxied connection. If the results differ, review release notes for the layer you changed most recently. After refreshing a subscription, start by comparing policy groups. After replacing a client, check permissions and the local proxy settings first.

Common questions before installing

Where do I get nodes after installing a client?

Nodes come from a proxy configuration you provide or a subscription source you trust; the client reads them from there. Before importing, check whether you’ve been given a full configuration, a node list, or another format. See the Help Center for details on each format.

Do the ports have to stay the same when switching clients?

You can use a new port. If you manually entered the old port in a browser, terminal, or development tool, update it there too. If you run two clients at once, assign each a different local listening port. See the glossary for field definitions.

How should I compare multiple clients for the same platform?

First check that the target operating system and processor architecture are supported, then compare subscription refresh, configuration overrides, connection logs, and traffic interception. If you need to keep existing rules, check format compatibility first. See the client comparison.

Recent configuration notes

Permissions / traffic interception / troubleshooting

Permission prompts, TUN settings, and node timeouts happen at different stages. Follow the operating system’s prompts when granting permissions; check routes and connection logs if traffic interception fails; and determine whether a batch of timeouts affects only speed tests or actual requests too. The articles below cover steps for each situation.