Clash for Windows discontinued: Decide what to migrate first

The original Clash for Windows (CFW) project stopped receiving maintenance in 2023. The last commonly used release was 0.20.39. The end of maintenance does not immediately invalidate existing subscriptions, but the old client will no longer receive fixes from the original project for Windows updates, core configuration changes, or security issues. Whether a subscription remains usable depends on whether the provider still supplies a valid configuration and whether the new core can read it; this is separate from uninstalling the old client.

During migration, handle subscriptions, local YAML files, and client settings separately. A remote subscription provides the configuration; a local YAML file may contain manual edits; system proxy, TUN, and startup settings are often managed independently by the client or operating system. Replacing the new client’s data directory outright mixes these three categories and makes it harder to identify the source of a problem.

Open the data directory from your current CFW installation

  1. In CFW, open 「General」 from the left menu, then click 「Open」 on the 「Home Directory」 row. Use the directory that opens rather than guessing from a default path online, especially if you used a portable build or changed the data location.
  2. Return to 「Profiles」, note the selected profile, and identify it as a remote subscription or local file. Copy the profile directory to a separate backup location, then retrieve the subscription URL from your provider’s account page if it is still available. A cached YAML file can help in a pinch, but it cannot replace the subscription URL needed for future updates.
  3. Separately record the old client’s proxy mode, frequently used groups and selected proxies, listening ports, bypass list, and TUN setting. If you used Parsers or Mixin, save their rules and parameters and note which profiles they apply to. These changes may not be included in the original subscription.

Migrate subscriptions and local YAML separately, then check proxy groups

Remote subscription: Import the original URL and refresh it manually

First turn off 「System Proxy」, TUN, and startup in CFW, then exit from the system tray. When opening the new client, do not enable traffic interception yet. In FlClash, open the 「配置」 page and choose URL import from the add menu. In Clash Verge Rev, add the remote subscription from the 「订阅」 page. Button labels may vary across versions; the key is to choose the remote configuration option, not to treat the URL as a local filename.

After importing, select the profile and update it manually, then check the group names and available proxies in the proxy view. If the download fails, check whether the URL has expired, leads to a login page, or requires the provider’s Clash or mihomo output format. A successful request does not guarantee the response is YAML: some URLs return a Base64 proxy list, a single URI, or an error page. Changing the file extension cannot turn these into a complete Clash configuration. If the format is wrong, use the corresponding format generated by the provider. Do not submit a subscription containing tokens to an unfamiliar conversion site.

Local YAML: Move referenced files along with it

Use the local file import option on the new client’s configuration page. Import a backup copy first and keep the original for comparison. Check the path, url, and type entries under proxy-providers and rule-providers. Files referenced by local paths must be available where the new core can read them. Do not assume relative paths are resolved from the YAML file’s directory; check the working directory assigned to the core by the new client and its logs. For HTTP providers, confirm that files can be downloaded again rather than relying on an old cache as proof that updates work.

If the profile name appears but proxy groups have no selectable proxies, check whether each group’s proxies entry references an existing proxy or group and whether use points to a defined, successfully loaded proxy provider. If the logs identify a field or line number, fix the first error and reload before investigating further; later errors may be caused by the same broken reference.

Migrate Parsers, Mixin, and rule overrides

CFW’s Parsers process configurations, while Mixin layers on parameters. Neither is a script interface that can be copied unchanged to every mihomo client. First split the old changes into three categories: rules inserted at the beginning or end, modified proxy groups, and independent DNS or listener settings. Then restore each item using a method supported by the new client. If there is no suitable override option, restore the rules in a separate local YAML copy, test it, and then decide whether to maintain a subscription override.

Check rule order before policy names

In rule mode, rules are matched in order, and the policy specified by the first matching rule is used. The two examples below are for checking rule order, not for replacing an entire configuration. Put the first rule before any broad rule that might match the domain earlier. The second shows a fallback at the end. Keep the other rules required by the original configuration and choose a fallback policy that matches its intent.

rules:
  - DOMAIN,portal.example.com,DIRECT
  - MATCH,代理选择

代理选择 must be replaced with a policy group name that actually exists in the current configuration; do not copy the example as-is. If you keep the original MATCH rule, put rules that should take priority before it, not after it. Once overrides are enabled, inspect the effective configuration generated by the client: some merge methods replace the entire rules list instead of adding entries. Finally, refresh the subscription manually and confirm the rules remain in place, so a change to a cached file is not mistaken for a successful migration.

Migrate DNS and TUN separately. Start with settings that let the new client launch normally. Add individual settings only when you need to restore internal domain resolution, a specific upstream, or Fake-IP exclusions, and check the core documentation as you go. Change one setting at a time and test the relevant domain. Changing DNS, enabling TUN, and editing routes all at once makes it easy to mistake a DNS issue for a rule or proxy problem.

Alternatives to CFW: FlClash and Clash Verge Rev

Both projects use mihomo and are candidates with active release channels. Before downloading, check the selected project’s release history, target operating system, and processor architecture. A similar name does not mean a project is a continuation of the old software or that its configuration directory and override scripts are compatible.

Client Platforms What to check during migration
FlClash Windows, macOS, Linux, Android A good fit if you want to use the same subscription on desktop and Android. Check configuration refresh, proxy group selection, and system traffic settings on each device; sharing a subscription does not sync selected policies across devices.
Clash Verge Rev Windows, macOS, Linux A good fit if you frequently adjust desktop subscriptions and overrides. Check the scope of each override, the merged list, and any service or permissions required for TUN.

If your old setup used only a remote subscription and system proxy, start by getting the original subscription working in a candidate client. There is no need to recreate every interface setting first. If you rely on separate rules across multiple profiles, test 「import, override, refresh」 with a copy of one profile before deciding whether to switch. For more on choosing a client, see the client comparison.

Windows migration checks: ports, rule matches, and TUN

  1. Confirm the proxy port. Check the actual listening port in the new client. If it is set to mixed-port: 7890, 127.0.0.1:7890 is an example of a local proxy endpoint. The number is for illustration and is not the default for every version. Do not enter the external-controller management port in proxy settings.
  2. Check the system proxy. Enable the new client’s system proxy and, in Windows 11, open 「Settings」→「Network & Internet」→「Proxy」 to see whether the expected manual proxy or script configuration is active. Check any ports specified separately for browsers or terminals as well. An app’s own proxy settings may take precedence; enabling the system proxy does not mean every app’s connections will go through the client.
  3. Verify two connections. Switch to rule mode and use new connections to visit one domain expected to connect directly and another expected to use a proxy. In the connection view, check the matched rule, proxy group, and actual outbound. A page loading or a delay value appearing in the interface is not a substitute for this check. If no record appears, first rule out a reused browser connection or an app-specific proxy setting.
  4. Test TUN separately if needed. Keep the verified configuration unchanged, turn off the system proxy, and enable TUN using the client’s control. If the interface asks you to install a service or grant permission, follow the instructions for the current version. Retry a connection from an app that did not previously follow the system proxy, then check the connection logs and internal network access. If it fails, turn off TUN and restore the verified system proxy path first, then use the full DNS troubleshooting guide to check resolution and traffic interception.

If you suspect an old process is still using the port, check its listening status in PowerShell. The example below uses 7890; replace it with the actual port shown in the client. Compare the returned OwningProcess with the PID in Task Manager’s 「Details」 tab. This confirms which process is listening, but does not prove that requests reach the expected outbound.

Get-NetTCPConnection -LocalPort 7890 -State Listen |
  Select-Object LocalAddress, LocalPort, OwningProcess