Clash Setup Guide for Windows, macOS, Android, iOS & Linux
For your first connection, start with the quick start guide and follow the steps in order: import a profile, choose a mode, connect, and verify. Return here when you need to check which installer to use, review system permissions, or find out why an app’s traffic isn’t reaching the client. For a new device or a configuration migration, review the general preparation first, then go to the section for your platform.
Before You Start: Installers, Subscriptions, and Testing
Check your device architecture and permissions first
Start at the client downloads page and choose your platform. For Windows, macOS, Android, and iOS, start with Clash Plus. On Linux, start with Clash Verge Rev; you can also compare it with FlClash on the same page. Check your OS version and processor architecture, then confirm that your account can install apps, change proxy settings, or add a virtual network interface. Company devices may allow desktop apps but block tunnels. Check your organization’s policies before testing, and don’t disable device security just to enable a setting.
Make sure you’re downloading a graphical client, not just the Mihomo core. The client provides subscription lists, proxy groups, and a connection view; the core reads the configuration, establishes outbound connections, and matches rules. A graphical client usually doesn’t need a separate core process. If you’ve used another proxy app before, note its settings, disconnect it normally, and then launch the new client. Don’t let two programs change the system proxy or take over the default route at the same time. Otherwise, one app may leave the other unable to restore the original network settings when it exits.
Identify the subscription type and keep a rollback copy
Remote subscriptions and local configuration files use different import options. If your provider gives you a full URL, choose the link import option under “Subscriptions” or “Profiles.” Keep the query parameters intact; don’t enter the entire URL as a single proxy node. If you get a YAML file, save it and import it locally—don’t paste its file path into a URL field. Opening a link in a browser only confirms that the browser received a response. The client may still fail to parse a login page, an error, or a response containing only encoded proxy nodes. See subscription URL and file format guide to check that you’re using the right import option.
After importing, select the profile you want to use. Seeing its name in a list only means the client has saved the subscription; it doesn’t mean the profile is active. Check “Proxies” for the expected proxy groups, then make a new request and check “Connections” to confirm which rule and outbound route it actually uses. Before upgrading or migrating, keep a local copy of a working configuration and note any overrides, mode, and traffic capture method. A subscription update may replace content supplied by the server. To keep custom rules, save them separately using the client’s supported override options instead of editing the remote profile directly.
Choose one traffic path to test first
| Capture method | What to check first | First thing to test |
|---|---|---|
| Desktop system proxy | Whether the app uses the system proxy and the client is listening | A browser that uses the system network settings |
| Desktop TUN | Whether the virtual interface is up and the route covers the target | An app that ignores the system proxy |
| Mobile VPN | Whether the system has granted permission and the tunnel belongs to the intended app | A new browser request on the same network |
| In-app proxy | Whether the proxy protocol, listening address, and port match | An app with a proxy address configured explicitly |
On desktop, first test one browser using the system proxy. Test TUN separately only if the target app ignores system settings or you need to capture more traffic. On mobile, use the VPN connection started by the app; don’t substitute a manual proxy for a Wi-Fi network. Before testing, confirm that an ordinary webpage loads with the proxy off. Then keep the network, URL, and app the same, and change one setting at a time. Opening a new tab may reuse an existing connection, so close and reopen the app if needed. A cached page may display even when the current request never reached the core.
Pick two test targets with clear expected outcomes: an ordinary webpage that should connect directly, and a service that should use a specific proxy group. Note the target domain, rule mode, proxy group, and system capture status. If the request fails, first check whether it appears in the connection log, then review its rule and outbound route. Don’t start by changing subscriptions. A webpage, its images, login API, and update service may use different domains, so one successful request doesn’t prove that the whole app is routed correctly.
Windows: Install the Client and Check the System Proxy
Choose a build by system type, then install and import
Open Windows “Settings → System → About” and check “System type.” An x64-based processor and an ARM-based processor require different builds. Even if Windows says “64-bit operating system,” read the rest of the system type. Start at the Windows client downloads page with Clash Plus, then consider Clash Verge Rev, FlClash, or Clash Nyanpasu if needed. Clash for Windows is discontinued and archived, so it’s not recommended for new devices. If the download page doesn’t specify your architecture, don’t rename an installer for another platform and try to use it.
Quit any older client that’s running, including one hidden in the taskbar’s notification area. Complete a standard installation using the installer. If User Account Control appears, confirm that the program or service requesting access is the installer you selected. After the first launch, leave “Start on boot” off. In “Subscriptions” or “Profiles,” import a URL or local YAML file, select the new entry, and check “Proxies” for the groups defined in the profile. If an update fails, check whether the error is a download or parsing failure. Being able to open the download page doesn’t mean the subscription server is reachable.
Test the system proxy in a browser without mixing capture methods
Turn on “System Proxy” in the client’s settings, then open Windows “Settings → Network & Internet → Proxy” to check the current proxy address and port. Clients may use a manual proxy or an automatic configuration, so don’t overwrite settings by hand. If the client and Windows show different addresses, turn the client setting off and on again and see whether the system setting changes. A browser proxy extension may redirect the test; use a browser setup that the extension doesn’t control for comparison.
Some programs use their own networking stack. Background services may run under a different account or environment and ignore the desktop user’s system proxy. Run the command below in a terminal to check the WinHTTP proxy status. A result showing direct access doesn’t mean the browser has no proxy, nor does it mean you should copy the desktop proxy settings to a system service. This read-only command helps identify which settings you’re troubleshooting. If you need both browser and command-line traffic to use a proxy, first test by explicitly configuring the proxy in the command-line tool itself.
netsh winhttp show proxy
Use TUN only when needed, and note how to restore settings
First confirm that the subscription and outbound connection work with the system proxy. Then turn off the system proxy and enable “TUN Mode.” In Clash Verge Rev, follow the client’s prompts if it asks to install or start a service. On a managed device, confirm that you’re authorized first. Once TUN is on, retry the app that ignored the system proxy and check whether its traffic appears in the connection list. If you see an error creating a virtual network adapter or setting a route, note the error. Don’t repeatedly reinstall services or guess at the cause by manually deleting interfaces.
If local sharing, printers, or a corporate VPN stop working with TUN enabled, turn TUN off and retry on the same network. If that fixes it, check whether the local subnet, private DNS names, or corporate client depend on the original routes. Don’t use one global direct rule to fix every issue. Some work apps need both internal hostnames and public login services; allowing only one may still leave sign-in stuck. If the whole computer loses internet access after the client exits, return to the system proxy settings, check for a local address pointing to the stopped process, and restore the settings you noted earlier.
Before setting the client to launch at sign-in, run a full restart test. After signing in, check that the right profile is still selected and the proxy address points to the running process, then make a new request from each app you use regularly. If it fails right after sign-in but works later, check whether an older client also starts automatically or the network wasn’t ready yet. Enable startup only after a successful test; changing startup settings, capture methods, and subscriptions all at once makes problems harder to trace. For related issues, see common troubleshooting steps.
macOS: Choose the Right Build, Grant Permissions, and Route Traffic
Choose the Apple silicon or Intel build
Choose “About This Mac” from the Apple menu. If “Chip” shows an Apple chip, choose the Apple silicon build. If it shows an Intel processor, choose the Intel build. A terminal running under translation may report an architecture that doesn’t reflect the whole machine, so use System Information as your source of truth. Start with Clash Plus on the macOS client downloads page. Consider Clash Verge Rev or FlClash if you need desktop overrides or want to follow a guide for those clients. ClashX Meta is archived and is mainly relevant when checking an existing setup during migration.
If you downloaded a disk image, open it and follow the window’s instructions to move the app into “Applications,” then launch it from there. Before updating, quit any older instance still running in the menu bar to avoid opening both the disk image and the copy in Applications. If macOS blocks launch, distinguish a standard download warning from a developer verification issue or an “app is damaged” alert. Recheck the download source, disk space, and OS compatibility. Don’t allow an app whose source you can’t verify, and don’t disable system-wide security checks for one app. See macOS permissions guide for help with these prompts.
After import, check proxy settings for the active network service
Import a remote subscription or local YAML file into the client. Select the profile, check its proxy groups, and turn on “System Proxy.” Open “System Settings → Network,” select the active network service, and check “Details → Proxies” for changes to HTTP, HTTPS, or automatic proxy configuration. Wi-Fi and Ethernet have separate settings. A proxy configured for Wi-Fi won’t necessarily be used when you switch to Ethernet. Keep the network connection fixed, then test with an app that uses the system proxy.
Many terminal tools use proxy environment variables or their own options rather than the graphical system settings. If a browser request appears in the connection list but a command-line request doesn’t, check whether the tool has a proxy explicitly configured before assuming the client isn’t running. The command below shows the system proxy dictionary reported by macOS. Compare the output before and after enabling the proxy to tell whether the system setting wasn’t applied or the app isn’t using it. A port shown in the output doesn’t prove there’s a process listening on it.
scutil --proxy
Handle TUN, helper services, and permission prompts separately
Depending on the client, enabling a tunnel may require approval for a network extension or installation or startup of a helper service. Don’t treat every prompt as the same kind of VPN authorization. Check which app or system panel it came from and confirm that the name matches the feature you just enabled. If you see a Keychain access prompt, verify who is requesting access and why before approving it. Keychain access and creating a virtual interface are separate steps. After enabling TUN, start a new connection and check whether the target app’s request reaches the client. A menu bar icon alone doesn’t prove that traffic is being routed as expected.
If pages hang after waking your Mac or switching Wi-Fi while the client still shows “Connected,” turn off the feature currently in use—TUN or system proxy—and check whether the network requires a captive portal sign-in. After signing in, re-enable just one capture method. If public websites work but local services don’t, test a local address and a service name separately. If the address works but the name doesn’t, check local name resolution. If both fail with TUN enabled, compare routes and local network access permissions. This helps distinguish a name-resolution issue from blocked local network traffic.
To stop routing traffic, first turn off the capture setting in the client, then quit the app, and finally check that the active network service has reverted to its previous proxy settings. If your school or employer configured a proxy, restore its original values rather than clearing every field. Test once after switching networks and once after waking from sleep before enabling startup. If the issue occurs on only one network, note the network service name and time; that’s more useful for troubleshooting than a static screenshot of the toggle.
Android: Install the App, Grant VPN Access, and Keep It Connected
Install from the right source; don’t uninstall to fix every update conflict
Start with Clash Plus on the Android client downloads page. Depending on your existing configuration format, compare it with Clash Meta for Android, FlClash, or Surfboard. These clients differ in both interface and format support, so first check which subscription format your provider offers. For APKs, distinguish ARM64, older ARM, and universal builds. Don’t rely only on your phone’s advertised processor specs: some systems restrict apps to a 32-bit environment even on 64-bit hardware. If your device supports multiple builds, choose the one the download page identifies as compatible.
When you open an installer from a file manager or browser, Android may ask you to allow that source under “Install unknown apps.” Grant permission temporarily only to the source you’re using, then turn it off after installation. If the install conflicts with an existing app, note where the old app came from, whether it’s in a work profile, and whether you need to migrate its settings. Apps with the same identifier but different signing keys can’t be installed over each other. Export any settings you can from the old client first, then decide whether to keep using its original update channel or remove it and install the new build. Uninstalling may also delete in-app settings.
Import a profile, then approve the system connection request
Open “Subscriptions” or “Profiles” in the client you want to use. When pasting from the clipboard, check that the URL doesn’t end with extra spaces or line breaks. When using Android’s file picker, select the downloaded configuration file—not a web shortcut from the file manager. After importing, select the profile, check its proxy groups, and tap Connect. If updates keep failing, keep the same profile and try fetching it over both Wi-Fi and mobile data. If it fails on only one network, check that network’s sign-in status or name resolution before switching clients.
Watch for Android’s “Connection request” prompt the first time you connect. Confirm that the app shown is the client you just opened, approve the request, and return to the app to check its connection status. A personal profile usually allows only one active VPN. A corporate VPN, parental control app, or local network filter that uses the VPN interface may also occupy it. Check “VPN” in system settings to see which app owns the connection; don’t rely only on the key icon in the status bar. The desktop “System Proxy” setting isn’t a prerequisite, and you don’t need to enter a manual proxy in Wi-Fi details.
Troubleshoot per-app routing, lock-screen disconnects, and network changes
If the client supports per-app proxying, start by testing its default app scope. If a target app is excluded from the VPN while the profile contains domain rules for it, the core never sees that traffic; changing rules won’t help. Check whether the setting means “Only proxy selected apps” or “Exclude selected apps”—the lists work in opposite ways. After changing the selection, reconnect as prompted, close the target app from recent apps, and make a new request. Work-profile apps may have their own VPN policy, so results from the same app in your personal profile don’t tell the whole story.
If the connection works in the foreground but drops when the screen locks, check the client’s notifications and background battery settings first. In the app’s system settings, review its battery restrictions and change them only if the client needs to run continuously. If “Always-on VPN” or “Block connections without VPN” is enabled, Android may deliberately block network access before the client connects. Note the original settings before troubleshooting. If a captive portal won’t open on public Wi-Fi and your device policy allows it, restore ordinary connectivity to complete sign-in, then check whether the client can reconnect.
Also test once when switching from Wi-Fi to mobile data and once after the screen turns off and back on. A connection dropping during a network switch isn’t necessarily a fault; check whether new requests recover and whether the proxy group still selects the intended outbound route. If the browser works but a particular app keeps hanging, check Android Private DNS, the app’s own encrypted DNS, and the connection log. Change one setting at a time and keep its original value. If the problem occurs only on a company network or in a work profile, check with your administrator rather than replacing managed network policies with a personal configuration.
iOS: Install from the App Store, Import a Subscription, and Configure VPN
Check the App Store listing and device management status
Open the Clash Plus App Store listing from the iOS client downloads page. Before installing, check the listing’s compatibility and your device’s iOS version. Once installed, open the app from the Home Screen. If your device has a work network tool installed, check its management status under “Settings → General → VPN & Device Management.” Being able to install from the App Store doesn’t guarantee that you can add a new VPN configuration; supervised devices may have restrictions set by an administrator. Don’t remove a management profile to unlock settings. First confirm that a personal tunnel is allowed on this device.
Before copying settings from an old phone, check whether it used a remote subscription, a local file, or a profile created manually in the app. Restoring the app alone may not restore subscription credentials, proxy group selections, or the device’s VPN authorization. Get remote subscriptions from the original provider, and import local files from a copy you saved. If the old device still connects, keep its profile until the new device can connect and disconnect reliably. Don’t delete the old profile before migrating; otherwise, you may lose your working reference on both devices.
Select the imported profile, then add the VPN configuration
Open the app’s subscription or profile management screen and paste the complete subscription URL into the appropriate field. If your provider supplied a file, save it in the Files app and import it using a supported local-file option in the client. When copying a URL from a message or email, check for trailing punctuation and missing query parameters. After importing, select the right entry and check the current outbound selection. If you see “Update failed,” determine whether the current network can’t reach the subscription URL or the app doesn’t support the response format. These problems need different fixes.
Tap Connect in the app. When iOS asks to add a VPN configuration, confirm that Clash Plus initiated the request, then follow the prompts. Check “VPN & Device Management” to see which configuration is connected, especially if other VPN apps are installed. An old configuration in the list isn’t necessarily a conflict. Check which app owns the active connection and whether another configuration is set to connect on demand. “Connected” in the app means the tunnel is up; it doesn’t guarantee that every domain uses the proxy. Traffic matching a direct rule may still leave directly.
Test Wi-Fi, cellular data, and on-demand connections separately
Start on one network by opening a webpage you haven’t just visited. Then switch to another network and make the same request again. If only cellular fails, check “Settings → Cellular” to confirm the client can use cellular data, and see whether other apps can connect on the same network. If only one Wi-Fi network fails, disconnect the tunnel first and check for a captive portal or network restrictions. “Configure Proxy” in Wi-Fi details applies only to that wireless network. It doesn’t replace the app’s VPN, and you don’t need to enable it for this test.
If iCloud Private Relay or another app’s on-demand VPN is also enabled, webpages may not use the route you expect. One website’s reported exit address can’t tell you how every app behaves. First check the active VPN in system settings, then compare the same app and domain. If you temporarily change another network feature, note its original state and restore it after testing. If Safari works but an app’s sign-in fails, check the webpage, login redirects, and in-app API separately. A rule matching the main site’s domain doesn’t mean its authentication or asset domains use the same group.
After disconnecting in the app, confirm that ordinary network access returns and check whether the VPN reconnects on its own. If it does, review the client’s on-demand or auto-connect options, then check whether the system has a managed configuration. Remove an old VPN configuration only after confirming that it belongs to a personal client you no longer use. In your troubleshooting notes, record whether it reconnects immediately after a manual disconnect, after a network switch, or after a restart. These triggers often point to different causes; the app not quitting isn’t the only explanation.
Linux: Choose a Build, Configure the Desktop Proxy, and Test from the Terminal
Match the package to your distribution, then your CPU architecture
Start with Clash Verge Rev on the Linux client downloads page; compare it with FlClash if needed. Debian- and Ubuntu-based systems usually use a DEB package, while Fedora-based systems use RPM. The same file extension doesn’t guarantee compatibility across every distribution; dependencies and desktop environment matter too. Use the command below to check your CPU architecture and distribution. Common x86_64 systems correspond to AMD64 in package names. If the machine reports aarch64, choose only a package explicitly marked for ARM64—don’t guess from the file size.
uname -m
cat /etc/os-release
In a graphical session, open the package with your system’s supported software installer. If dependency resolution fails, first confirm the distribution and package architecture, then check software sources and dependencies. Launch the client from the app menu after installation; don’t run the entire graphical desktop as an administrator. Servers and systems without a desktop need a standalone core and a clearly defined service management method, not desktop system-proxy instructions. If you do need a core package, see the Mihomo core downloads. If a graphical client and standalone core are both installed, identify which process is listening on the proxy port.
After importing a profile, test desktop apps and terminal tools separately
Import a profile under “Subscriptions” in the client. When loading a file from disk, make sure the current user can read it; don’t make an entire directory accessible to other users just to get past a permissions error. After selecting the profile, check the proxy groups and core status, then try “System Proxy.” GNOME, KDE, and other desktop sessions manage proxy settings separately. Terminal tools, container apps, and system services may not inherit desktop settings. Some apps also prefer their own proxy settings, so enabling the desktop toggle doesn’t guarantee they’ll use it.
To test without relying on desktop settings, find the HTTP proxy or mixed port in the client, then use the command below. It prompts for the actual port instead of assuming a default; the example assumes the client listens on the IPv4 loopback address. It affects only this request, doesn’t change terminal settings, and won’t affect other programs. If it can’t connect to the local port, check the listening address, port, and core status. Success confirms that this explicit proxy path can handle the request; it doesn’t prove that the desktop proxy or TUN is active, or that the request matched a proxy group instead of going direct.
printf 'Enter the client’s local HTTP or mixed port: '
IFS= read -r proxy_port
curl --max-time 15 --noproxy "" --proxy "http://127.0.0.1:${proxy_port}" https://example.com/
Check who manages tunnel permissions, routes, and DNS
TUN requires the system to provide a virtual network device and allow the client’s service to configure routes. Containers, remote desktop sessions, and restricted environments may not expose the device or grant the required permissions. First check whether /dev/net/tun exists, then see whether the client log reports interface creation, route installation, or DNS configuration failure. The device’s presence doesn’t prove that access is authorized. Use the client’s supported service installation method. Don’t run the entire graphical app with elevated privileges as a long-term fix, or test by directly changing a remote server’s default route.
The network manager, system resolver, and tunnel may each manage network connections, DNS, and routes. If local domain names stop working after enabling TUN, turn it off for comparison and identify whether public domains, local names, or local IP addresses are failing. On systems using systemd-resolved, check resolvectl status to see which interface and network are used for DNS queries. Don’t attribute every distribution’s DNS problems to /etc/resolv.conf or overwrite it directly. A system service may regenerate the file, causing the problem to return when the network reconnects.
Finally, quit the client from the same desktop session and retest the browser and terminal. If the terminal still tries to connect to the closed local port, check whether the current shell or its startup files set proxy environment variables. If only desktop apps are affected, check for leftover settings in the desktop proxy panel. Both issues can happen at once, but they need to be fixed in different places. If only a few commands need a proxy, specifying the protocol and port for each command is easier to undo than adding permanent environment variables to every terminal session.
Common Configuration Issues: From Import Errors to Rules and DNS
Subscription update failed? First check whether the request or parsing failed
Check the subscription’s update history or the client log. For a timeout, refused connection, or certificate error, check the network and system clock first. If a response arrived but has a format error, check the configuration structure. A page that opens in a browser with an active login session may return something different to the client. Common causes include an expired login session or copying a management page URL instead of the configuration download URL. Don’t share the original subscription link with an unfamiliar diagnostic service. When asking for help, describe the error type and general response format without including the original response.
If a local YAML file fails to parse, start above the line number in the log. Use spaces for indentation and align items at the same level. Entries under rules are a list, not several sibling keys. If you renamed a proxy group, update the name referenced by the rules too; spaces in names matter. Keep a copy of a configuration that starts successfully before making changes, so format debugging doesn’t get mixed up with network issues. For more on how profiles relate to each other, see Profile Switching, Merging, and Overrides: A Beginner’s Guide.
Use a minimal configuration to distinguish missing traffic from a mismatched rule
The local test configuration below can be imported into any Mihomo-compatible client. It listens only on the local machine, has no remote proxies, and sends all requests direct. Save it as a separate test file; don’t overwrite your existing subscription. If its port is already in use, choose an unused one and use the port shown by the client. Some graphical clients override the configured listener with a global setting. This example checks whether requests reach the core and match rules; it doesn’t test whether proxy nodes are reachable.
mixed-port: 17890
allow-lan: false
bind-address: "127.0.0.1"
mode: rule
log-level: info
rules:
- DOMAIN-SUFFIX,example.com,DIRECT
- MATCH,DIRECT
Switch to this profile and select “Rules” mode. Send a request to example.com through the local mixed port, then check the connection log. If there’s no entry, first check whether the app is using that port. An entry marked direct is expected. When you switch back to your regular profile, check that the mode hasn’t changed accidentally between “Rules,” “Global,” and “Direct,” then confirm the outbound route selected by the proxy group. Rules are evaluated from top to bottom; the first match wins. An overly broad rule or an early MATCH can shadow more specific entries below it. For examples and common mistakes, see Custom Rules and Match Order.
Check traffic capture and DNS before investigating the outbound route
If the app has a connection entry but the webpage still fails, check the domain, rule, outbound route, and failure stage separately. If the target domain won’t resolve, check which resolver the client, system, or app is using. For a connection timeout, check whether the target and selected outbound route are reachable. For a certificate error, check the system clock and whether the network requires sign-in. Browser encrypted DNS, Android Private DNS, and the client’s DNS may use different paths. Don’t assume DNS is leaking based only on the resolver name shown by a website. First determine which resolver should handle the query, then compare that with the current configuration and connection records.
Don’t substitute a direct request to a website’s IP address for a domain test. Sites sharing an IP address may rely on the hostname in the request or the domain in the TLS handshake to identify the service; a failed request to an IP alone doesn’t prove a routing issue. If results differ between your usual network and another one, keep the client and profile fixed and change only the underlying network. If just some features in an app fail, note the domain and matched rule for each failed request. Updates, login, and resource loading may use different domains.
If the issue persists, visit the troubleshooting FAQ with your OS, client name, capture method, steps to reproduce, and a redacted description of the error. If you’ve ruled out configuration problems and want to repeat the installation and import process, return to the quick start guide and follow each step. Retest with the same network, app, and target. Leave upgrades and switching clients until last so you can tell whether the cause is the configuration, traffic capture method, or network conditions.