Open-source core · Choose by platform

Clash Client Downloadsand Setup Guide

Choose a multi-platform client for your device, then follow the documentation to import a subscription, configure rule-based routing, and test the connection.

Open-source coreSubscription importRule-based routing

Quick Configuration Reference

Clash Proxy Modes and Rules

Keep two things separate: system proxy and TUN determine which connections the client handles; proxy mode and rules determine which route those connections take. A subscription provides the configuration, and the core interprets and applies it.

Rule-Based Routing

↗

In Rule mode, rules are checked from top to bottom against domains, addresses, or rule sets. The first match determines the policy. Put common direct-connection exceptions before the fallback, and place narrower domain conditions before broader rules that could override them. Unlike sending all traffic to one proxy group, rule-based routing lets apps on the same device use different paths. After changing the order, check the connection log to see which rule matched the destination, then decide whether to adjust the rule or the policy group.

DOMAIN-SUFFIX,example.com,DIRECT GEOIP,LAN,DIRECT MATCH,PROXY

Proxy Mode

↗

Rule mode is suited to everyday use with an existing routing configuration. Global mode sends traffic handled by the client through the global policy, making it useful for temporarily ruling out the effects of routing rules. Direct mode applies the direct policy to connections already handled by the client. Direct mode does not disable the system proxy or close the client. After switching modes, start a new connection before checking the result; browsers may reuse existing connections. If only Global mode works, check rule matches and policy group selection before changing installers.

RulesGlobalDirect

System Proxy and TUN

↗

System proxy settings mainly affect apps that honor the OS proxy configuration. If a browser works but an app does not appear in the connection list, check whether it uses separate network settings. TUN captures traffic through a virtual network interface; routing rules and exclusions determine what it covers. Check permission requirements before enabling it, then test websites, LAN addresses, and behavior after waking from sleep. Choose the capture method you need; there is no need to enable both by default.

  • System Proxy
  • TUN Mode

Importing and Updating Subscriptions

↗

Import a subscription compatible with your client from the configuration page. After confirming the update succeeded, select that configuration—importing it does not enable it automatically. Before scheduling updates, refresh it manually once to distinguish an unreachable URL from an incompatible response format or a client parsing error. To keep personal rules, use the client's local override feature when available; avoid editing remote configuration directly, as a refresh may overwrite your changes. Subscription URLs may contain access credentials, so hide the full URL before sharing logs or screenshots.

  • Subscription UpdatesScheduled
  • Update interval example24 h

Core and Protocol Compatibility

↗

The client interface edits and switches configurations; the core parses rules and establishes connections. Seeing policy groups in the interface only shows that the configuration was read—it does not guarantee that every protocol and transport option will work. When switching clients, check which core the new client uses, then review protocol, transport, and subscription format support. Even if both clients use mihomo, check override features, system permissions, and traffic capture separately, as those settings may not carry over with the subscription.

type: hysteria2type: tuic

Common Configuration Checks

If traffic still goes through a proxy despite a direct rule, don't remove the fallback yet. Reload the destination in your browser and check the connection list for the domain, matched rule, and final policy. If a general rule set above it matched, move the domain-specific exception ahead of that rule set and try again. If only an IP address appears, check how the app resolves domains and whether the core receives domain information for matching. Test one rule at a time so you can trace the result.

View a rule order example

Choosing an Installer

Download Clash for Your OS

The same platform may have several clients and package formats. Before choosing one, check your OS version and processor architecture. If you already have a subscription, confirm that the client supports its protocols.

Windows

For everyday desktop use, choose a client with a graphical interface so you can review connections and switch policies easily. Check the system type under Settings > About, then match it to the architecture listed on the download page; a 64-bit OS does not necessarily mean the processor is x64. Before replacing an old client, back up your local configuration and quit the old app to avoid both clients changing system proxy settings or competing for the same local port.

macOS

Check About This Mac to see whether your Mac has Apple silicon or an Intel processor, then choose the matching installer. Before migrating, keep remote subscriptions separate from rules stored locally; don't copy one app's data directory directly into another. Grant only the permissions the client actually needs when prompted on first connection. If you only need browser traffic to use the proxy, test the system proxy first and decide later whether to enable a virtual network interface.

Android

For a phone or tablet, choose a package that matches the app architecture supported by your OS; if a universal package is available, check the download page for details. When the client requests system VPN permission, make sure another app isn't already using that connection, then test both foreground access and recovery after locking the screen. If disconnects happen mainly while the screen is locked, check battery management and background activity restrictions before assuming the network route is at fault.

iOS

Open the app's App Store page from the download page and check device compatibility and system requirements. After installing, use one configuration for your first connection, then test what happens when switching between cellular and Wi-Fi. If access fails, temporarily disable other network filters or VPN configurations on the device for comparison, then restore them one at a time to identify whether the issue is caused by app permissions, configuration, or the current network.

Linux

For a desktop, choose a graphical client and check the package format against your distribution and architecture; for a server or router, consider running the core separately. Testing with a browser alone does not prove that every app uses the same proxy: desktop apps, terminal programs, and background services may each read different settings. Check the target app's connection log and confirm that it still uses the expected configuration after a restart.

Browse all clients → Read the client selection guide

First Connection

Get Started with Clash

For your first setup, follow one verification path: use a known-compatible configuration, choose one traffic capture method, and check the result with a new connection. Once the basics work, enable startup or scheduled updates if needed.

  1. Import and Enable a Configuration

    Paste a trusted subscription URL on the configuration or subscription page, or import a local configuration file supported by the client. Once the profile appears, select it manually and check that its proxy groups match your expectations. If import fails, start with the client's error message. Opening a URL in a browser only confirms that it is reachable; it doesn't prove that the response is a compatible configuration.

  2. Choose a Mode and Connect

    If you already have routing rules, start in Rule mode and select the policy you want in the proxy group. On desktop, start with the system proxy. If you need to capture traffic from apps that don't honor it, enable TUN as described in the client documentation. On mobile, follow the OS prompts to let the client establish a VPN connection.

  3. Check the Match Log

    Use the target app to open a page you haven't visited before, then check the connection list for the destination domain, matched rule, and final policy. If no connection appears, first check whether traffic is reaching the client. If a connection is logged but fails, determine whether the problem is DNS resolution or the upstream connection. This narrows troubleshooting to one layer.

Read the full guide →

Source Code and Release Sources

The Clash Open-Source Ecosystem and mihomo

Core projects, graphical clients, subscription providers, and documentation sites each serve different purposes. Identify the source first, then consult the relevant project's documentation or release notes.

The Original Project and Its Forks

The original Clash handled proxy listeners, connection policies, and rule matching through a single configuration. Graphical clients later added interfaces for editing configurations, switching policies, and viewing logs. After the original project was discontinued, the community continued to maintain forks and use many of the same configuration conventions. As a result, older guides on rule order and policy groups may still apply, but download sources, setting names, and OS permission prompts may have changed. When reading an older article, identify the client and core it covers first. If a menu is missing, don't assume the installation is broken based on an old screenshot.

Community Code and Issue Reports

You can find open-source core code, commit history, and issue discussions in the upstream repository. These are useful for understanding how a configuration option is parsed. For issues with importing, startup, or OS permissions in the interface, check the client project's resources instead. Before reporting a problem, specify where it occurs and include your OS, traffic capture method, and relevant logs. Replace real domains with public examples and remove full subscription URLs and credentials. A minimal example that shows when the issue does and doesn't occur is more useful than sharing your entire personal configuration.

How Clash Meta Relates to mihomo

mihomo is a continuation of Clash.Meta. It retains common Clash rule and proxy group syntax while expanding support for protocols, transports, and network settings. A client with Clash in its name does not necessarily use the same core as another client, and the same configuration field may require specific protocol or OS support. When migrating, keep the original configuration that works and test the new file as a separate profile. After confirming basic connectivity, compare address matching, DNS behavior, and override results before making the new configuration the default.

Clients, Cores, and Subscriptions Update Separately

Client releases may update the interface, OS integration, and bundled core. Subscription refreshes retrieve remote configuration, while geodata and rule sets may have their own update mechanisms. These changes don't have to happen together. If an update causes a problem, use timestamps and logs to identify which layer changed, then compare against a saved configuration or older rules. Don't assume a failed subscription update means the client is outdated, and don't reinstall the whole app just to refresh a rule set. Find installers and supported platforms in the download center; for project details, see About This Site.

More from the Manual

Clash Configuration and Troubleshooting Guides

Moving a configuration to another device, setting up a LAN gateway, or connecting a store app to a local proxy involves different OS settings. These guides walk through each scenario and explain what to check.

Browse all articles →