Open-source clients and documentation

Clash Origin

Clash client downloads and setup guides for every platform

Choose a Clash client for your platform, start by importing a subscription, then follow the steps to configure routing rules and verify your connection.

  • mihomo core
  • Open source and free
  • YAML configuration
  • Rule-based routing

Clash setupand routing rules

Configuration files define rules and available proxies; the client lets you enable a configuration, switch proxy groups, and inspect connections. First identify which layer you need to change, then find the right setting.

Choose and switch proxy groups

When a rule matches, it can pass the connection to a proxy group, which then selects an outbound proxy. Open the client’s Proxy page, find the group named in the rule, and check its current selection. Select a proxy manually to keep traffic on a specific route and compare options one at a time. A URL-test group chooses based on probe results; a fallback group tries available members in order. Unlike global mode, changing one group affects only traffic routed through it. Send a new request and check the connection list to confirm the actual outbound proxy; existing connections may keep using the previous selection.

proxy-groups:
  - name: PROXY
    type: select
    proxies: [DIRECT, REJECT]

See how to configure proxy groups →

Get started with Clash

For your first setup, get one connection working and make its behavior easy to inspect. Confirm whether the request reached the client and which rule it matched before changing URL testing, startup behavior, or other advanced settings.

  1. Choose and install a client

    Go to the download page, choose your operating system, and check the system requirements and processor architecture. After installing, open the client and make sure the main window loads properly. If you already have a similar tool installed, quit it first so you can tell which app is handling your connections. When prompted for system permissions on first launch, review what access is being requested and why.

  2. Import and enable a subscription

    Open the Subscription or Config page and choose Import from URL or open a local file. After saving, select the entry and confirm it is now the active config. Then open Proxy groups to check the available outbound proxies. If the list is empty, start with the import log: a failed request and a config parsing error are different problems with different fixes. Note the name of your previous config before switching so you can switch back if needed.

  3. Connect and verify routing

    Select rule mode and use the client’s recommended method to route traffic through it. Send a new request to a site you can normally access, then open the Connections page and check the destination domain, matched rule, and outbound proxy. If there’s no entry, check how traffic is being routed. If there is an entry but the request failed, check the relevant proxy group and error log. Change one setting at a time.

Can load webpages but aren’t sure where your traffic is going? Close and reopen the test page to avoid reusing an existing connection, then compare connection records before and after changing a setting. A latency test alone doesn’t confirm that a real request works.

Download Clash clientsfor your platform

These links open the download list for each platform. For a first install, start with a graphical client that is still maintained. When migrating from an older client, first check whether you can import your existing subscription, then configure the system proxy, startup behavior, and shortcuts.

Windows

Open Settings → System → About to check your system type, then choose an installer supported by the download page. If you’ve used an older client on this computer, note its config name and local proxy port. Quit the old client before starting the new one.

Use a browser to verify your first connection, then configure the client to start at login. If pages stop loading after a restart, check which client launched and whether the system proxy points to the port it currently uses.

macOS

Open About This Mac from the Apple menu to see whether your Mac has Apple silicon or an Intel processor, then choose the matching installer. If the download completes but the client won’t launch, check the macOS version and architecture requirements; changing proxy settings won’t fix an installation issue.

If another network tool is in the menu bar, check which one is controlling the system proxy. If only some apps disconnect after your Mac wakes from sleep, send a new request and check the connection list. That’s more useful than repeatedly importing the config.

Android

Check your phone’s operating system version and architecture before choosing an installer. The first time a client starts its proxy service, the system usually asks you to approve a VPN connection. Approve it, then check the client’s status. If you already use another VPN, note that the two services may replace each other.

If the connection drops only after the screen locks, note when it happens, then check the app’s background activity or battery restrictions. If the problem occurs only when switching networks, test mobile data and Wi-Fi separately.

iOS

Open the Clash Plus App Store listing from the download page. Check device compatibility, install the app, and import your config. When the app first sets up a VPN connection, follow the system prompt to approve it, then return to the app and check the active config and connection status.

If you used the same subscription on an older device, make sure the imported config is selected on the new one. A VPN Connected status means the tunnel is established; check the client’s connection records to see which outbound proxy is actually being used.

Linux

For desktop use, choose a graphical client and match the package format to your distribution and processor architecture. If the package won’t install, read the package manager’s error and check whether dependencies are missing, the architecture is wrong, or your distribution isn’t supported. Don’t mistake an installation issue for a config parsing error.

For servers or routers, see the mihomo core section on the download page. Unlike a desktop client, a core package requires you to manage the config file, process, and logs yourself. If you just want to import a subscription through a graphical interface, choose a desktop client.

Still using a client marked “No longer maintained” on the download page? Treat its archived package as a reference for legacy setups. When switching to a maintained client, keep a working copy of your config and test importing, rule matching, and local network access separately before removing the old tool.

Browse all clients →

The open-source Clash ecosystemand the mihomo core

The download page links to apps and cores from different projects; this site doesn’t publish a single unified client. Knowing the difference between a core, a client, and a subscription source helps you find the right documentation for your issue.

  • MetaCubeX / mihomo
  • GPL-3.0
  • Public source code and issue trackers

Project history

Early versions of Clash used a single config format for proxies, proxy groups, and routing rules. Over time, other core branches and independently maintained graphical clients emerged. mihomo is the continuation of the original Clash Meta branch. It retains familiar config structures while adding protocol and networking features.

Older articles saying “Clash supports this field” may refer only to the branch used at the time. When following an older guide, check the project name and settings page before deciding whether a field applies to your device. A successful import doesn’t mean every advanced setting is active; verify behavior with a real connection.

What the client and core do

The core parses configs, applies rules, and handles connections. The client interface imports subscriptions, displays proxy groups, and may also manage the system proxy, background services, or network permissions. Even two clients using similar cores can differ in menu layout, defaults, and system integration.

If an import fails, start with the config parsing log. If a toggle does nothing, check permissions, system routing status, and messages from the client. If the same config behaves differently in two clients, record the active mode and config in each one instead of assuming similarly named settings work the same way.

Repositories, documentation, and bug reports

The public mihomo repository includes source code, license information, release notes, and issue reports. To look up an unfamiliar config field, search for its full name first. When reporting a problem, include your operating system, expected and actual results, and the shortest steps to reproduce it so maintainers can distinguish a config issue from a software bug.

For desktop tray, mobile background activity, or installation permission issues, start with the relevant client project. Check core issues when you can reproduce a rule parsing problem independently. Before sharing screenshots or logs, remove subscription URLs, proxy credentials, and any unnecessary personal browsing history.

Updating apps, cores, and subscriptions

A client update changes the app; a core update can change config parsing and connection behavior; refreshing a subscription replaces content provided by the remote config. If a problem starts after an update, first identify what changed. Reinstalling the app and overwriting the config at the same time makes it much harder to find the cause.

Before refreshing a subscription, save a working local copy. After the update, check whether proxy group names or rule references have changed. You can reimport a config when switching clients, but you’ll generally need to recheck startup settings, traffic routing, and system permissions in the new client.

Get the mihomo source code

These commands are for users who have Git installed and want to read or contribute to the source code. They only clone the repository locally; they don’t install a client or change network settings. For everyday installation, choose an app from the client download page.

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

Clash config guidesand troubleshooting notes

Choose an article based on what you need to do: before switching clients, understand subscription formats; if a working subscription won’t refresh, check the request and update settings; when comparing core features, check the fields your current config actually uses.

Why Clash subscriptions fail to update and how to set the auto-refresh interval

Learn why updates fail due to expired subscription URLs, blocked requests, or a mismatched User-Agent, and how to set the auto-refresh interval in different clients.

If your old config still connects, keep it and first determine whether the request failed or the config couldn’t be parsed. Check the request result for the former; for the latter, inspect the response content and confirm the client supports its format.

Read article →

Clash subscription formats explained: YAML configs, Base64 links, and subscription conversion

Learn how Clash YAML configs, generic Base64 subscriptions, and single-proxy links differ—and what happens to rules and proxy groups when you convert between formats.

Before switching clients, figure out whether you have a complete config or just a list of proxies. Both may come as URLs, but they don’t necessarily provide the same proxy groups and rules after import.

Read article →
Browse all articles → Troubleshoot by symptom