Platform Runbook / Setup Guide

Clash Setup Guide for Every Platform

Choose an installer for your platform, import and activate a profile, then decide how to route traffic through the client.

For your first connection, follow the quick-start steps in the Getting Started guide. Use this page to compare installation, permissions, and traffic-routing options across operating systems, or to troubleshoot after switching devices, refreshing a subscription, or enabling TUN.

01
Installer and System Architecture
02
Profile Import and Active Profile
03
Traffic Routing and Outbound Checks

01 / Preflight

Before You Begin: Installers, Profiles, and Traffic Routing

Choose Your Platform and Architecture, Then Pick a Client

Choose an operating system on the client downloads page. If you want a consistent choice across desktop and mobile, start with Clash Plus. If you need to manage remote profiles, local files, global Merge settings, and Scripts separately on desktop, consider Clash Verge Rev. On Linux, check your distribution and desktop environment before choosing a graphical client or standalone Mihomo core. A graphical client and a core are separate installation options: graphical clients usually include a core, so you do not need to install a standalone service just to import a profile. Whether you need a standalone core depends on whether the device runs continuously and has a desktop environment—not on whether the profile mentions Mihomo.

Choose the processor architecture shown by your operating system; don't infer it from when you bought the computer. In download listings, x64, amd64, and x86_64 usually refer to the same architecture family, while arm64 and aarch64 refer to another. Download pages only list packages provided by each distribution channel. If the architecture you need isn't available, choose a client with a compatible package or check the upstream release notes. Don't treat similarly named packages as interchangeable. Before upgrading, keep a recoverable copy of your configuration, especially local YAML files, custom rules, and profile URLs. Store it somewhere you control; don't include it in screenshots shared for support.

Know the Difference Between Profile URLs, Configuration Files, and Node Links

A remote profile URL is periodically fetched by the client and is suited to provider-managed nodes and rules. A local YAML file is a saved configuration snapshot; after editing it, save and apply it using the client's workflow. A subscription webpage, a single-node sharing link, and a Clash-compatible profile URL are not interchangeable. If importing fails, check where you copied the link from: use the format the provider identifies as Clash or Mihomo, not the URL of an account page. If the downloaded content starts with webpage markup or a login prompt, resolve the login, link expiry, or format issue first. Changing the file extension won't turn a webpage into a configuration file.

A successful import only means the client received the configuration. It doesn't mean that configuration is now the active profile, or that system traffic is going through the proxy. After importing, return to the profile list and check the active entry's name and source. Then open the proxy page and confirm that groups are visible and the selected option is the intended outbound. Keep a known-good profile and give test profiles distinct display names. Remote content may change on the next refresh, so keep everyday customizations in a supported client extension layer or a separate local copy. Don't experiment on the original subscription, and don't clear the old group selection, switch profiles, and enable traffic routing all at once—you won't be able to tell which change caused a failure.

Separate Traffic Routing, Rule Mode, and Outbound Selection

The system proxy, TUN, and mobile VPN determine which connections enter the client. Rule, Global, and Direct modes determine how connections that have entered are routed. These are independent layers. For an initial desktop test, use the system proxy with a browser that honors it. On mobile, start by authorizing the system VPN connection. Test TUN separately if you need to capture traffic from apps that ignore the desktop proxy. Keep to one primary traffic-routing method during testing; don't stack the system proxy, an old client, and a system-level tunnel. LAN access isn't required to enable traffic routing. Leave it off for local-only use to prevent nearby devices from connecting to your proxy port.

PlatformFirst Traffic-Routing MethodCheck First
Windows、macOSSystem proxy; test TUN if neededProxy settings for the current network and client connection logs
AndroidSystem VPN authorizationVPN status, app coverage, and background restrictions
iOSVPN configuration created by the clientActive VPN, client status, and network changes
LinuxDesktop proxy or per-app proxy; enable TUN if neededDesktop session, listening port, and service logs

02 / Windows

Windows: Installers, System Proxy, and the TUN Service

Install and Migrate Existing Configuration

Check your system type under Settings → System → About to identify an x64 or ARM-based device. Visit the Windows clients page and consider Clash Plus first. If you need Verge Rev's profile extension layer, choose the Clash Verge Rev installer offered for Windows. If Clash for Windows is still installed, turn off its system proxy first, then exit it from the notification area and check its startup settings. Closing the main window often leaves the old process running. For migration, reimport the original subscription or a controlled local configuration. Don't copy the entire old app data directory over the new client; cached proxy groups and plugin settings may not be compatible.

Complete the installation wizard, then run the client with your everyday account. If Windows shows a publisher or permission warning, verify the publisher, package source, and any organization requirements before deciding whether to proceed. Don't disable security protections system-wide just to install the app. If no window appears after installation, check the notification area and Task Manager to see whether the process failed to start or the window is hidden. Install a runtime component only if the error specifically identifies it as missing, and follow the upstream instructions for that version. Keep the installer and a configuration backup so you can return to a working setup if an upgrade causes startup problems.

Import a Profile and Verify the System Proxy

In Verge Rev, open Subscriptions or the profile list and import a remote profile using the URL field. For an existing YAML file, use the local-file import option. Select the profile, then check the proxy page and logs: groups should appear with no parsing errors before you choose a rule mode and intended node. Turn on System Proxy in Settings, then check the manual proxy address, port, and client status under Windows Settings → Network & Internet → Proxy. If the browser still shows no traffic, open a new page and make a request. Check whether a browser extension has its own proxy settings. When turning off the system proxy for comparison, test with a new connection so an existing tab doesn't reuse its connection.

The current user's Windows proxy, an app's own proxy, and the WinHTTP settings used by some services are separate controls. If a browser works but a background program doesn't, that doesn't mean the whole subscription is broken. Check whether the program can use an HTTP or SOCKS proxy and whether it runs under another account or service context before considering TUN. If your organization set an automatic proxy script or bypass list, note the existing values before enabling traffic routing. If the proxy isn't restored after you exit the client, check the original policy rather than clearing system proxy fields at random. On a managed device, ask your administrator about policy if the proxy fields can't be edited.

Enable TUN Only If Needed; Distinguish Service Failures from Port Conflicts

If you need to capture traffic from programs that ignore the system proxy, record the result of a system-proxy test first, then turn off the system proxy and test TUN on its own. If the client asks to install a service or grant permission, use the service management option in Settings and check the logs for virtual interface and route initialization. An open client doesn't mean the service has started, and a running service doesn't guarantee that the target traffic is entering the tunnel. If connection logs appear only for new requests after enabling TUN, reconnect the target app instead of switching subscriptions. Before combining TUN with a company VPN or virtual machine network, confirm that the setup is supported. If internal network access changes, turn off TUN first to restore the previous routes.

If the logs report that a listening port is in use, identify the process using it before changing the port. In the example below, 7897 is a sample mixed port; replace it with the current value in Settings. Compare the returned process ID with the Details tab in Task Manager. No result only means no TCP listener was found on that port at the time of the query. Don't terminate an unknown service. If an old client is still listening, close it from its own menu. If you switch to another available port, update your browser, scripts, and any apps with manually configured proxy settings.

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

03 / macOS

macOS: Chip Selection, Network Services, and Traffic-Routing Permissions

Choose a Package for Your Chip and Launch It from Applications

Check Chip or Processor under About This Mac. Choose the Apple Silicon package for an Apple chip or the Intel version for an Intel Mac. Don't use whether an app can launch through translation as a way to identify its native architecture. Visit the macOS clients page and start with Clash Plus. For managing multiple profiles or maintaining extension scripts, consider Clash Verge Rev. If you download a disk image, open it, drag the app into Applications as prompted, launch it from there, and then eject the image. This ensures that reopening it from the Dock won't launch the copy inside the disk image.

If you see a security warning the first time you open the app, determine whether it's due to the download source, device management, or an unsupported system version. Follow the status shown under Privacy & Security and the publisher's instructions. If you can't verify the source or your device prohibits the installation, stop here rather than disabling system-wide security. Before upgrading, fully quit the old process from the menu bar, then replace the app. If the Dock and Login Items both contain an entry with the same name, check which copy actually opens. If the problem occurs only after logging out or restarting, check items and background tasks under General → Login Items instead of reimporting the subscription.

Import a Profile and Verify the Active Network Service's Proxy

Import a profile URL or local file in the profile list, then make sure the intended profile is selected. When migrating an old configuration, keep the original policy group names initially. Some rules refer to groups by name, so renaming a group without updating those rules can prevent the new configuration from loading. Once the groups are visible, enable the system proxy. Under System Settings → Network, select the network service in use and check its proxy settings. A common setup has Wi-Fi and Ethernet connected at the same time: check the service actually providing the default route, not just an inactive network entry. After changing networks, make a new browser request and check the logs to see whether traffic reached the client.

Terminal apps don't always use the system proxy, and apps may have their own network settings. Test a request with the local mixed port specified explicitly to distinguish whether the listener is reachable from whether an app honors the system proxy. The command below assumes the mixed port is 7897 and the active profile can handle the request. A response only confirms that this request passed through the local proxy interface; it doesn't prove that a remote node was used. Check the connection log for the matched rule and outbound. Troubleshoot timeouts in stages: if the local port can't be reached, check the listener; if the local connection succeeds but no response arrives, check the destination domain and outbound route.

curl --noproxy '' --proxy http://127.0.0.1:7897 \
  --head --max-time 15 https://example.com/

Enable TUN, Check Internal Network Access, and Verify Recovery on Exit

If an app can't use the system proxy, enable TUN in the relevant client's settings. Grant the service permissions requested by the client; don't assume every product uses the same system prompts. If the toggle switches itself off after authorization, check the client logs for route, virtual interface, or permission errors. For testing, turn off the system proxy and open both a website and an internal service that normally works. If websites load but internal services don't, note whether the target is a domain or an IP address, then exit TUN and check whether access returns. If the domain fails but the address works, investigate corporate DNS or the current resolution path rather than assuming the node is at fault.

Rolling back the system proxy or TUN means restoring the original network setup—not just turning the client's toggle gray. When you exit, first stop traffic routing, then check whether the network service still has an old proxy address. If an organization configured an automatic proxy script, restore the value you recorded. Waking from sleep, switching Wi-Fi networks, or connecting a dock can change the active network service. If a failure is intermittent, record the interfaces, client status, and log times before and after the change, then test the same address again. This helps distinguish a routing problem triggered by a network change from a persistent subscription issue.

04 / Android

Android: Installation, VPN Authorization, and App Coverage

Choose a Package Compatible with Your Device

Visit the Android clients page and start with Clash Plus. You can also choose Clash Meta for Android, FlClash, or Surfboard based on your device's architecture and configuration needs. Don't assume the chip's advertised capabilities match the app architectures supported by the operating system: some devices have 64-bit-capable chips but can't install the corresponding package. If the installer reports an incompatible package, check the system requirements, app architecture, and whether the download completed. If a universal package is available and meets the system requirements, you can use it. On a work device where an organization policy blocks installation, ask the device administrator which sources are allowed.

When you open an installer from a browser or file manager, Android may ask you to allow installs from that source. Grant permission only for this trusted source and revoke it after installation if you prefer. If an update reports a conflict with the installed app, confirm the app name, distribution channel, and whether the new package is part of the same app's upgrade path. Uninstalling the old app may delete its saved configuration and selections. Before switching channels, back up the profile source and local configuration somewhere you control. A successful launch confirms only that the app runs; configuration and the system VPN session still need to be checked separately.

Import a Profile Before Starting the VPN Connection

Open the subscription or profile management page and paste a remote profile URL, import a file, or open a file from the system share menu using a method supported by the client. After importing, check which profile is active; a new name appearing in the list doesn't mean the client has switched to it. If the URL opens but the client can't parse it, check whether the response is a Clash-format configuration or a provider webpage. If the profile depends on external rule sets, also check whether downloading those resources failed. For your first connection, choose a rule mode and open a page that should match the expected policy. A latency test can help you compare group members, but it doesn't replace an actual app request or confirm that other apps are using the VPN.

Android clients usually route traffic through the system VPN, rather than using the desktop System Proxy steps. On first launch, the client requests system authorization. Confirm the app name, allow the connection, then check the system VPN status and client logs. Another VPN, firewall, or filtering tool that uses a VPN may compete for the same connection slot in the user's profile. If the connection drops immediately, check which app the system currently shows as active and whether another tool is reconnecting automatically or an always-on VPN policy is enabled. A managed work profile may follow a separate policy; don't assume the connection status in your personal profile applies to work apps.

Change Per-App Routing and Background Settings Separately

If the client supports per-app proxying, check whether the current setting is “Allow selected apps only” or “Exclude selected apps”—the lists work in opposite directions. If a browser works but another app produces no connection records, check whether that app is excluded or running in a work profile or cloned environment before changing rules. If connection records do appear, check the matched rule and outbound rather than changing the app list again. To test app routing, open the same destination in one included app and one excluded app, then compare the client logs. This is more useful than relying on a single system icon to tell whether the app scope is wrong or the outbound route is failing.

If everything works in the foreground but the connection drops frequently when the screen is locked, compare background notifications, the system battery usage page, and disconnect times in the client. Then adjust only that app's background restrictions. Test a short screen lock separately from switching between Wi-Fi and mobile data so you don't mix the two triggers. If Always-on VPN and blocking connections without VPN are enabled, the device may temporarily lose internet access when the tunnel stops. Check whether this was an existing policy first. On a personal device, restore settings as needed; don't remove policies from a managed device. If only one Wi-Fi network fails, check whether you need to sign in to its captive portal.

05 / iOS

iOS: App Store Installation, Profiles, and System VPN Configuration

Install from the App Store; Distinguish App Profiles from System Configuration Profiles

Open the Clash Plus App Store page from the iOS clients page. Check device and system requirements in the store listing, then install using the standard iOS flow. If the app launches but can't create a connection, check VPN authorization and device management before downloading it again. School- or company-managed devices may restrict creating or deleting VPN configurations; check device management in Settings. Management policies may be essential for accessing your organization's internal network. Don't remove existing configuration profiles just to test a subscription, and having a profile URL doesn't grant system management permissions.

Import a supported profile from the client's subscription or configuration page. Use the Files app or share menu only if the client explicitly supports local file imports. A profile inside the client contains outbound and rule configuration; it's not the same as a configuration profile under VPN & Device Management in Settings. If a provider lists several formats on one page, choose a URL supported by the app—don't install a system configuration profile just because it says “configuration.” After pasting a profile, check its display name, last update time, and visible groups. When migrating, keep the profile source and your own rule notes; don't assume app data will be restored automatically after reinstalling.

Authorize the Tunnel and Verify the Connection in Stages

Start the connection in the app, allow it to add a VPN configuration when prompted, and complete any identity check required by iOS. Return to the app and check whether the session is established, then check VPN status in Settings to confirm that the client you just used is active. Mobile routing uses the system tunnel; you don't need to enter a manual HTTP proxy in Wi-Fi details first. That proxy applies only to the selected Wi-Fi network and works differently from the client's VPN routing. Don't look for desktop Verge Rev's exact TUN and System Proxy toggles on a phone. Available traffic-routing options depend on the app and system permissions.

Choose a rule mode, make a fresh request in Safari, then use the client's connection details to confirm which rule matched. If you use an IP lookup to check the result, the lookup site must match the intended proxy policy. If the rule sends it direct, an unchanged IP is expected. Check the rule before the address; a single lookup doesn't prove that every app is routed. If the app shows Connected after returning to the foreground but the request was made during a network switch, wait for the status to stabilize, send a new request, and check its new log entry instead of relying on pre-switch logs.

Troubleshoot Connections That Become Less Stable with Each Change

Break the problem into reproducible steps: connect over Wi-Fi and make a request, then switch to cellular and make the same request again. If it fails only during network changes, check whether the tunnel reconnects on the new network and whether cellular data is allowed for the app. If only one public Wi-Fi network fails, disconnect the VPN, complete the network's sign-in page if required, and reconnect. If an existing work VPN becomes active again in the background, check which profile is set to connect on demand. On a personal device, you can adjust a configuration you created using the options provided by the client and system. Keep administrator-managed settings on managed devices.

If VPN setup succeeds but the tunnel never starts, save a shareable error summary, the time it occurred, and the current profile name, then test a known-good profile. If both profiles fail during authorization, check system status or app permissions. If only one fails while loading, check its format or unsupported syntax. To recreate the VPN configuration, disconnect the current session and verify that the item you plan to remove was created by this client before starting authorization again in the app. Don't delete VPNs, certificates, or management profiles used for other purposes; they aren't the same as a subscription issue.

06 / Linux

Linux: Distribution Packages, Desktop Proxy, and Routing Permissions

Identify Your Distribution, Processor Architecture, and Use Case

Check your Linux distribution and CPU first, then visit the Linux clients page. Clash Verge Rev is the recommended graphical client on this site, with FlClash also available. For a headless server or router, consider a standalone Mihomo core instead. Debian and Ubuntu-based systems typically use DEB packages, while Fedora and similar distributions use RPM, but a matching package format alone isn't enough; dependencies and architecture must also meet the release requirements. For example, if the system reports aarch64, don't choose a package available only for amd64. A graphical client is suited to interactive group selection and profile management. A standalone core requires you to manage its configuration path, process lifecycle, and logs. Don't run both while they're listening on the same local port.

cat /etc/os-release
uname -m

Use your distribution's package manager to install a local package so it can report dependency and architecture errors instead of forcing the installation through. From the directory containing the downloaded file, for example, run sudo apt install ./filename.deb or sudo dnf install ./filename.rpm, replacing the example filename with the actual one. Quote the full path if it contains spaces. Use system authorization for installation, but launch graphical apps with your regular desktop account. Running a graphical app as a privileged user long-term can put its configuration in another user's directory, leaving the regular account with an empty list and causing file permission errors when saving.

Import a Profile and Verify Which Proxy the Process Uses

In Verge Rev's profile list, import a remote profile or select a local YAML file. After applying it, confirm that the groups appear, then check the mixed port in Settings. For a standalone core, put the YAML where the service actually reads it and use the service's account to check that it's readable. Editing a separate copy won't reload the running core. If remote rule sets need to write a cache, the service account must also be able to write to the relevant directory. If the configuration can't be found, check the startup arguments and working directory. If it can be read but fails to load, use the log line numbers to check the YAML, rule group references, and resource paths. None of these issues requires opening the listener to your LAN.

The desktop proxy only works for programs that use the corresponding desktop setting. Some terminal apps need explicit options or proxy environment variables; variables in a desktop session aren't automatically passed to a standalone service. Test with the client's current port and a single request before changing the environment. The first command below checks for a TCP listener on the example port; the second limits the proxy to one request so you can remove the test afterward. If the proxy connects but the outbound is still Direct, check the matched rule. If nothing is listening, get the core running first, then check whether the desktop session successfully applied the proxy setting.

ss -ltn 'sport = :7897'
curl --noproxy '' --proxy http://127.0.0.1:7897 \
  --head --max-time 15 https://example.com/

TUN Permissions, Network Namespaces, and Restoring Routes on Exit

TUN requires a virtual network device from the system and permission for the relevant process to install routes. Run ls -l /dev/net/tun to check whether the device node exists; its presence doesn't mean the client has permission to use it. A graphical client should use its own service authorization flow. For a system-level service, check device and network permissions for its deployment method. Don't switch your entire desktop session to a privileged account to fix a single toggle. A container or virtual machine may have a separate network environment from its host: localhost inside a container doesn't point to the host, and enabling TUN in a container won't automatically route host applications.

Before changing the default route on a remote machine, make sure you have a local console or a separate management channel. Otherwise, a dropped management session could leave you unable to roll back the change. For troubleshooting, record the output of ip route and ip rule before and after enabling TUN, then compare it with interface and route operations in the client logs. If DNS resolution, LAN access, or another tunnel stops working, stop TUN through the original service interface and verify that things recover; don't clear the routing table. If traffic routing starts again automatically after a reboot, check desktop login items and enabled services so only the process you need remains active.

07 / Diagnostics

Common Configuration Issues: Profiles, Rules, DNS, and Rollback

Profile Update Failed: Check the Request, Parsing, and Activation Separately

First, note which step failed. For an unauthorized or forbidden response, check the link's expiration, account status, and provider restrictions. For a timeout, check whether the current network can reach the profile service, then retry using the client's supported update method. If the request succeeds but parsing fails, check whether the response is a login page, an error message, or a different profile format. If the update succeeds but connections behave the same, check that the active profile is the updated one and that the selected group hasn't kept an old node. Downloading the profile, loading its configuration, and routing a target request are three separate outcomes.

If an old profile still works but the new one won't load, switch back to the old profile first. Then pause custom Merge and Script extensions and test the new subscription by itself. If it loads, restore each extension layer one at a time and check for renamed policy groups, duplicate entries, and scripts that depend on specific fields. A Merge configuration adds another configuration layer; a Script makes programmatic changes to the configuration object. Neither should be used to make temporary edits directly to the original subscription. See Subscription Profiles, Merge Overrides, and Switching Between Configurations for change and switching workflows.

Rules Not Taking Effect: Check Whether Traffic Enters, Then Check Match Order

Check the client's connection log. If the target request isn't there, check the system proxy, TUN, mobile VPN, and per-app coverage. If there is a record but the outbound is wrong, check the mode, matched rule, and current policy group selection. Rules in Rule mode are usually evaluated from top to bottom, with the fallback rule last. Put a precise exception for a domain before a broader match that would override it. Global mode is useful for a brief comparison, but it won't fix the original rules. After testing, switch back to Rule mode and send a new request to the same destination. For group selection and verification, see First Connection and Latency Checks.

This is an example of an extension configuration for Verge Rev, not a complete subscription that can run on its own. Add it to the relevant Merge extension configuration and apply the associated profile; don't paste it at the top level of a core configuration and expect the core to expand it automatically. The example places an exact match for a sample domain before the existing rules and uses the built-in DIRECT outbound explicitly. Send the request again and check the matched rule to verify the extension layer and priority order. When adding your own domain, use the narrowest matching scope to avoid changing other services under the same suffix. See Custom Rule Syntax and Priority for more rule types.

prepend-rules:
  - DOMAIN,example.com,DIRECT

DNS and Internal Network Issues: Keep a Way to Roll Back

A device may use the system resolver, client DNS, and an app's own encrypted DNS at the same time. If only domain requests fail, compare behavior with the client setting on and off, then check whether the log error occurred during resolution, connection, or rule-set loading. Fake-IP uses synthetic addresses to preserve domain associations; seeing one doesn't by itself indicate a DNS failure. However, apps that need real IP addresses or specific internal DNS resolution may require exceptions documented by the client. For corporate networks, restore the original resolution path first and confirm that internal domains resolve. Don't change every resolver at once. If a page connects but its content doesn't load, the issue may be at the application protocol layer after the connection is established—not DNS.

For a full rollback, first turn off the traffic entry point, then disable recently added extension layers, switch to a known-good profile, and finally restore the original proxy or tunnel settings. After each step, make a new request to the same destination. Record only the time, operating system, routing method, current mode, matched rule, or a brief error. Don't share the full subscription or unrelated browsing records as diagnostic material. If the issue affects only one device, revisit the permissions, background, or routing steps in that platform's section. If it affects multiple platforms, check the subscription service and shared configuration changes. For quick answers, see Frequently Asked Questions. To repeat the connection setup, return to the Getting Started guide.