Import subscriptions · Config fields · Cross-platform clients

Clash Subscription Guide

Choose a client for your platform, then enable your config with the subscription import steps. For routing or DNS changes, refer to the Chinese YAML field reference.

  • Open-source core
  • Chinese documentation
  • YAML examples

Find a client for your platform

From subscription import to active config

Open the client’s Config or Subscription page, choose import from URL, paste the full link, and confirm the config appears in the list. First, make sure the server returns a format your client supports. A full Clash config can include both proxy groups and rules. A node-only list is not a full config and requires client support for that format. If parsing fails, check that you copied the subscription URL rather than a login page URL, and that you included the query string. The example below shows a different approach: an existing config uses a proxy provider to fetch nodes; it does not paste a full config into a node source.

config.yaml · Proxy provider snippet
proxy-providers:
  work:
    type: http
    url: "https://example.com/sub?token=xxxx"
    path: ./providers/work.yaml

Before installing / OS and architecture

Download a Clash client for your platform

The same subscription won’t necessarily work in every client. Check your device’s operating system, architecture, and subscription format before choosing an installer. If you already have a client that can read the config, test a copy before switching software just to change one field. For a comparison of features, maintenance status, and core support, see the client selection guide.

Windows

Check your system type under Settings → System → About, then match it to the architecture on the download page. When migrating from an older client, back up your local config and overrides, quit the old app, and then start the new one. If both apps try to use the same local port, the config may load even though the proxy service won’t start. For your first test, use only one traffic-interception method. Make a new request in your browser, then check whether it appears in the connection list.

Go to downloads

Android

Choose an installer for an architecture supported by your device. If you’re unsure, check whether the client offers a universal build. On the first connection, you’ll usually need to approve the system VPN permission. If another VPN is already running on your phone, disconnect it before testing. If the connection works in the foreground but drops when the screen locks, check the app’s background activity restrictions rather than assuming the subscription has expired.

Go to downloads

iOS

Open the store listing from the download page and make sure your device meets the system requirements. After installing, import and select a config, start a connection, and approve the VPN configuration prompt. To verify it’s working, check the app—not just the system status—and confirm which subscription is active. If the same device works on mobile data but not Wi-Fi, record both test results and first check whether the current network can reach the subscription URL and test address.

Go to downloads

macOS

Check About This Mac to see whether your device has an Apple chip or an Intel processor, then choose the matching installer. After installing, you can start by testing with the system proxy, which is honored by apps that follow system settings. If your browser connects but a command-line tool has no connection record, check how that tool reads proxy settings. Only test TUN separately if you need a different traffic-interception setup, so you don’t mix up the two options while troubleshooting.

Go to downloads

Linux

On desktop Linux, check the package formats supported by your distribution, then confirm the CPU architecture. On a headless server, you can use the mihomo core directly; make sure the account running it can read the config directory. When troubleshooting a service, first confirm that the core loaded the expected file, then check the local listener and app settings. Running the command successfully in a terminal doesn’t mean the system service uses the same working directory.

Go to downloads

Browse all clients →

Project origins / maintenance scope

The Clash open-source ecosystem and mihomo core

Check the client, core, and config source separately.

How Clash, Clash Meta, and mihomo relate

Clash began as a project for handling proxies and routing with config files. Its cores and graphical clients later evolved independently. Clash Meta was subsequently renamed mihomo, which continues to use Clash-style YAML config. Older guides often conflate app names, core names, and config formats. When looking up information, first identify which layer it covers: installers, import buttons, and system-level traffic handling belong to the client; supported fields and rule matching are primarily determined by the core.

A client mentioned on an older page may not suit a newer device. For example, a screenshot of Clash for Windows can help you recognize that app’s menus, but it doesn’t show whether another client currently supports the same features. When switching apps, look for sections such as Config, Proxy, Connections, and Logs, then consult the relevant documentation. Different button labels don’t mean you need to buy a new subscription. Whether you can reuse your config depends on the format and fields the new client supports.

Check behavior against source code and issue reports

The mihomo source code is licensed under GPL-3.0. Commits in the core repository can show when a config behavior changed, while issue reports can help establish whether a symptom is specific to one environment or has already been reproduced. These sources are more useful for verifying behavior than a single UI screenshot, but neither the license nor commit history can verify where a particular build came from. Each client is a separate project, so check its maintenance status, license, and distribution method independently.

The command below clones the mihomo source into a mihomo folder in the current directory. Git must be installed on your machine. This is for browsing the code; it does not download or install the client. If you only need to check the syntax, start with the config field reference and put uncertain fields in a minimal example. Once the example loads, move the fields into your actual config one at a time.

Terminal · Get mihomo source code
git clone https://github.com/MetaCubeX/mihomo.git

First, determine whether the issue is in the client or the core

The client imports and selects a config, passes intercepted requests to the system, and displays runtime status. The core reads the active config and handles connections, rules, and DNS. For example, “Import successful” in the UI only means the client received content it could save. Next, check whether the config is active, whether the core accepted it, and whether new requests appear in the connection list. Verifying each stage separately usually reveals where the process stopped.

If the same subscription behaves differently on two computers, compare the core and config each one is actually using instead of relying on the subscription name. The client may merge local ports, DNS settings, or proxy overrides into the effective config. If the UI says connected but an app still can’t connect, test a repeatable request. If it appears in the connection list, check the matched rule and exit; if it doesn’t, check whether the app follows the system proxy or is being intercepted. Change one setting at a time so you can tell what made a difference.

Update the config, core, and client separately

Refreshing a subscription fetches the config from its original URL and may change rules, group names, or nodes. Updating the core can change supported fields and runtime behavior. Upgrading the client may change permissions and how overrides are merged. Don’t combine all three changes in the same troubleshooting session. If an issue starts just after a subscription refresh, check whether the original proxy groups are still there and whether local overrides refer to renamed groups. If the problem began after an app upgrade, start by checking the config path in use and the core logs.

For routine maintenance, keep a recent local config that worked and note which parts came from overrides. After manually refreshing a subscription, use the same test URL to compare the matched rule and proxy group in the connection log. Then decide whether to change the update interval. If an import fails, keep only the first error message after removing sensitive details. If the error occurs while reading the file, check indentation or field types first. If the config loads but won’t connect, check the upstream server, exit, and system-level traffic handling.

Recent articles / More to explore

Clash subscription and client tips

For a server that needs to stay up, start with the config directory and service account. If a subscription won’t import, first identify what the URL returns. If a phone disconnects only when the screen locks, check background restrictions. Choose an article for the issue you’re facing; there’s no need to read them in order.

Browse all articles →