Open-source core · Configuration guides

Clash Downloads and Setup

Choose a client for your operating system, import a YAML config, then check rule-based routing and proxy groups in the app.

  • Local config
  • Subscription updates
  • System proxy / TUN

Import, connect, and verify

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.

  1. Step 01

    Import and select a config

    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.

  2. Step 02

    Choose a mode and enable traffic capture

    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.

  3. Step 03

    Check where new connections go

    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.

Open-source core and update sources

Project history: Clash, Clash Meta, and mihomo

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.

Community contributions: Source code, changes, and issue reports

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.

Where responsibilities lie: UI, config, and core

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.

Updates: Manage the app, core, and subscription separately

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.

Download Clash clients by platform

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.

Windows

Find your system type in Settings → System → About. Pick a matching installer and quit any old client before connecting.

Go to downloads

macOS

Check About This Mac for Apple silicon or Intel, then choose an installer that supports your chip and macOS version.

Go to downloads

Android

Pick an APK that matches your device’s architecture. Grant VPN permission when the app prompts you to connect.

Go to downloads

iOS

Check the App Store listing for device support. Before switching clients, confirm that the new app can import your config.

Go to downloads

Linux

Check the available builds first. Choose a package format and CPU architecture that match your Linux distribution and machine.

Go to downloads

What should you keep when switching clients?

Export 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.

Configuration and troubleshooting guides

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.