Installing for the first time? Follow the quick-start guide to import a subscription, choose a mode, and verify the connection. Use this manual as a reference when changing devices or clients, or troubleshooting an issue. If you already know your operating system and processor architecture, go straight to the relevant platform section. If you’re checking whether an old configuration will still work, start with the general setup notes, then review the configuration issues at the end.
Getting Started: Clients, Core, and Configuration
Choose a client based on your platform and needs
First, confirm your operating system, processor architecture, and available installation options. Then compare clients. On the download page, start with the Clash Plus options for Windows, macOS, Android, and iOS. For Linux desktops, check Clash Verge Rev first, then compare FlClash based on your distribution and desktop environment. Clients bring subscriptions, proxy groups, and connection logs together in one interface; the core parses configurations and applies rules. Both clients can import YAML, but that doesn’t mean they use the same core or support the same override syntax. Before switching, list the features you actually need—such as remote rule sets, split DNS, or TUN auto-routing—instead of comparing app names alone.
Keep subscriptions, local configurations, and client settings separate
A remote subscription is a source you can fetch again; a local YAML file is a snapshot saved at a particular point in time. Some data lives in the client’s own settings, such as the selected proxy, system proxy toggle, and per-app routing list. Copying a YAML file to a new device won’t necessarily transfer those settings. Keep a copy of a configuration known to load, and give test copies distinct names. If the client supports overrides, put custom rules there rather than editing a remote configuration that may be replaced during an update. If you need to keep rules in sync across devices, see the guide to syncing configurations across devices and decide whether to sync the source file, the override layer, or just backups.
Subscription URLs may contain access credentials, and YAML files may include server addresses or authentication details. When reporting an issue, share only the relevant configuration section and replace sensitive values—never paste a full URL. Before importing, make sure the subscription returns a configuration supported by your client: a page opening successfully doesn’t mean it returned YAML. Some links return a sign-in page, an error, or a different node-list format. Find downloads and client comparisons on the Clash client download page. If you’re unsure which platform you’re using, check the system requirements first; don’t try installing a package made for another platform.
Test parsing and listening with a minimal configuration
This mihomo configuration sends all traffic directly and has no proxy nodes or remote dependencies. Save it as a local configuration, import it, and confirm the client reports a successful load. Then check the active settings for the listen address and port. If the client overrides ports, use the runtime log as the source of truth. This baseline helps distinguish “the core didn’t start” from “a policy in the subscription can’t connect.” A successful load doesn’t mean the subscription, nodes, or system-level traffic routing are working.
mixed-port: 7890
allow-lan: false
bind-address: 127.0.0.1
mode: rule
log-level: info
rules:
- DOMAIN-SUFFIX,example.com,DIRECT
- MATCH,DIRECT
| Layer to verify | Where to check | What this step confirms |
|---|---|---|
| Configuration parsing | Import status and core logs | The format is readable, and fields and policy references can be loaded. |
| Local listener | Client port and single-app test | Whether the application can reach the local proxy. |
| Traffic routing | System proxy, VPN, or TUN status | Whether traffic from the target application reaches the core. |
| Outbound connection | Matched rule, policy name, and error log | Which route the request took and where it failed. |
Before switching clients, note the existing system proxy, auto-configuration script, and VPN status. In the old client, turn off the system proxy or tunnel, quit the old process, and then start the new client. Don’t just close the window: the tray process may still be listening on its port. If both clients are set to launch at startup, one may clear proxy settings written by the other when it exits. Once the new client is running, compare direct and proxied behavior using the same URL. If you still can’t connect after quitting the client, restore the system settings you recorded instead of importing another subscription.
Windows: Installers, System Proxy, and TUN
Check your Windows edition and quit the old client before switching
Open Settings → System → About in Windows and check the system type. Don’t guess the processor architecture from the computer’s brand or product name. Start by checking the packages and requirements for Clash Plus in the Windows client downloads. Then compare Clash Verge Rev, FlClash, and Clash Nyanpasu based on whether you need connection-level routing details, configuration overrides, or TUN service management. Clash for Windows is discontinued and archived; it’s useful for checking old settings, but isn’t recommended for a new installation. If your old configuration refers to rule files in a legacy directory, back those up too—a copy of the main YAML alone may leave broken paths on the new system.
Install and launch the client normally. Once its tray icon appears, confirm that the interface opens and the core starts correctly. Decide whether to enable launch at startup only after that. When switching clients, turn off the system proxy in the old client and quit it from the tray. If both clients launch automatically, one may clear proxy settings just written by the other as it exits. If an organization’s app-management policy blocks installation, follow your device-management requirements instead of trying to weaken system-wide restrictions.
Import a subscription and verify the system proxy
Add a remote link on the configuration or subscription page. Wait for it to finish fetching, then explicitly select it as the active configuration. A new entry appearing in the list doesn’t mean the core has switched to it. Check that the proxy groups have available options, select Rule mode, and turn on the client’s system proxy. In Windows, go to Settings → Network & Internet → Proxy and confirm the proxy address points to the client’s listening port. On a managed device, keep any existing proxy script intact; don’t accidentally turn a local test into a permanent override.
Open a fixed URL in your browser, then check the client’s connection panel by domain or timestamp. If the browser appears in the logs but a terminal or desktop app doesn’t, first check whether that app reads the current Windows user’s proxy settings. System proxy settings are just settings—apps aren’t forced to use them. Background services may run under another account or use their own network interface. Use PowerShell to make a request through the HTTP proxy explicitly. The example uses the port from above; use the value shown in your client.
Get-NetTCPConnection -State Listen -LocalPort 7890 |
Select-Object LocalAddress, LocalPort, OwningProcess
curl.exe --proxy http://127.0.0.1:7890 https://example.com/
The first command prints the listener’s process ID, which you can compare with the PID in Task Manager’s Details tab. If there’s no result, check whether the core started or the port changed. The second command specifies the proxy directly, so it doesn’t depend on the app honoring system proxy settings. If the command succeeds but the browser has no connection log, check the browser’s own proxy policy, bypass list, and auto-configuration script. If both fail, read the core log for the same timestamp instead of repeatedly refreshing the subscription in the client.
Enable TUN only when you need broader traffic routing
If the target app ignores proxy settings, or you need to handle UDP traffic that the system proxy doesn’t cover, check whether your client supports TUN. If it needs a service installation or administrator privileges, read the permission prompt carefully and follow the steps shown in the client. To verify the TUN route, turn off the system proxy first, then start a new connection in the target app. This avoids mistaking browser traffic that was already proxied for traffic captured by TUN. Existing work VPNs, virtual machines, and virtual network adapters can conflict over default routes and local subnets. If a shared folder or development container suddenly becomes unreachable, compare behavior before and after enabling TUN instead of widening traffic routing straight away.
If connections drop intermittently after waking from sleep, first check whether the network switched from wired to Wi-Fi. Then compare the listening port, system proxy, and TUN status with their pre-sleep settings. Test reconnecting only at the layer that’s failing. If the problem recurs on every startup, test client startup and service startup separately; don’t mistake a network that isn’t ready before sign-in for a proxy-node failure.
macOS: Chip Architecture, Proxy Services, and Routing
Choose the installer for your Mac’s chip
Open the Apple menu and choose About This Mac to check the chip or processor. Choose the Apple Silicon package for an Apple chip, or the Intel package for an Intel processor. If your terminal is running under translation, don’t rely only on the architecture reported by that terminal process to identify the whole machine. Start with the Clash Plus package in the macOS client downloads, then compare Clash Verge Rev and FlClash. ClashX Meta is no longer maintained; it can help you check a legacy configuration but isn’t recommended for a new installation. If an older app only runs in a particular system environment, check the package and system requirements before experimenting with compatibility layers.
If you downloaded a disk image, open it and follow the instructions to move the app into Applications. Launch it from there rather than running it from the mounted volume. For an installer, follow its steps. On first launch, distinguish a standard open confirmation from a system security warning or an organization’s device-management restriction. If the app’s source or signature looks wrong, recheck where it came from and whether you downloaded the right package; don’t disable system protection to get around the warning. Before updating an app with the same name, quit the old process completely from the menu bar. Otherwise the new interface may connect to the old core, making it look as though settings changed while the logs stayed the same.
Check proxy settings for the network service in use
Import a link or file on the subscription screen and switch to that configuration. Check the logs to confirm it loaded, then verify the rule mode, proxy groups, and active listening port. After enabling the system proxy, go to System Settings → Network and check the proxy settings for the service currently carrying traffic. Wi-Fi and Ethernet can have separate settings. When you connect a dock, Ethernet may take over outbound traffic, so the Wi-Fi settings you checked earlier may not explain what’s happening. The commands below show the proxy configuration currently reported by macOS and test the client port with an explicit request.
scutil --proxy
curl --proxy http://127.0.0.1:7890 https://example.com/
Seeing a local proxy address and port only confirms that the system settings provide an entry point; each app decides whether to use it. Terminal tools often handle proxies through their own options or environment variables. Graphical browsers may use system settings or be controlled by managed policies. If a request doesn’t appear in the client, check the entry point first. If it appears and shows a target policy, investigate the outbound error. When testing a change from download through to connectivity, use the same network service and domain, and start a new connection. Don’t judge the new settings by a long-lived connection established before the switch.
Check TUN, wake-from-sleep behavior, and local network access
If the system proxy meets your needs, there’s no need to enable TUN as well. For broader traffic routing, first check the client’s TUN implementation and permission requirements. Implementations may use helper services or system networking capabilities, so another client’s permission prompt isn’t a reliable guide. If you already use a work VPN, test each route separately, subject to your device-management rules. If company domains stop resolving when both are enabled, the issue may not be the proxy node: internal DNS queries may be going to a resolver that doesn’t know those domains.
If a printer, shared folder, or local development service becomes unreachable after waking from sleep or switching Wi-Fi networks, turn off TUN and compare. Check whether name resolution failed or the target IP itself is unreachable. The former points to DNS or local discovery; the latter points to routes or interfaces. Don’t assume DIRECT means packets bypass the tunnel: it’s the outbound policy the core selects after matching a request. If you need some traffic to avoid entering TUN entirely, check whether the client supports route exclusions and how to configure them.
Android: APK Installation, VPN, and Per-App Routing
Check the package architecture and install-source permission
Start with the Clash Plus installation options in the Android client downloads, then compare Clash Meta for Android, FlClash, and Surfboard. The package architecture must match an app ABI supported by your system; a processor’s advertised specs alone aren’t enough. Some device chips support a broad instruction set, while the operating system may only run apps built for one bitness. If the publisher offers packages for specific architectures as well as a universal package, check your device’s ABI support before choosing the universal build. Check each client’s configuration compatibility separately—having the same APK file extension doesn’t make their configurations interchangeable.
If you open an APK from a browser or file manager and Android asks you to allow app installs, that permission usually applies only to the app that started the installation. Enable it only when needed for a trusted source, then turn it off afterward. If Android says it can’t update an existing app, check whether the package ID and signature match the installed version, then check the system requirements. Before switching distribution channels, save your configuration and overrides. Uninstalling may delete the app’s private data, so export everything while the old client is still available. Restoring a subscription and restoring custom rules are separate tasks.
Import a configuration, then grant system VPN permission
Add a remote subscription in the client or import YAML through the file picker. Set the new entry as the active configuration, check that the proxy groups expand, then tap Connect. Android clients commonly use the system VPN interface to create a virtual network, and Android will ask you to confirm the first time. The button may be called Start, Connect, or Enable service depending on the client. You don’t need to enter a proxy address in Wi-Fi settings. A manual Wi-Fi proxy applies only to that network and depends on apps honoring it; it can’t replace a VPN’s broader coverage of mobile data and app traffic.
A VPN icon means a tunnel is active, not that requests are being routed as expected. Choose a test app and domain, start a new connection, then check the client for an incoming connection and its matched policy. If you’re already connected to a company VPN, personal firewall, or another app that uses Android’s VPN interface, typically only one VPN service per user can occupy that interface. Work profiles may have separate management rules. Once you’ve confirmed that the setup is allowed, test each service on its own. Don’t assume the VPN icon belongs to the client you just opened.
Troubleshoot app lists, battery settings, and network changes separately
If only one app can’t connect, check whether per-app routing allows only listed apps into the tunnel or excludes listed apps. These options do the opposite of each other, so selecting the same app doesn’t mean the same thing. Reconnect as the client requires and start a new request; existing connections may keep using the old route. If the app reaches the core, check the rules and policy. If there’s no log entry, check the app list, work profile, and active VPN before changing DNS. Use the same approach for local-network device-management apps to tell whether discovery is failing or the connection to the target address itself is failing.
If connections work with the screen on but drop when it’s off, check whether the system stopped the VPN service or restricted background activity. Then review battery optimization and background data settings. Change permissions only for the client that needs them; don’t loosen restrictions for every app. If a connection fails after switching from Wi-Fi to mobile data, first test a direct connection over mobile data, then check whether the VPN reconnected, and finally compare logs for the same policy. If the two networks behave differently for the same domain, check Private DNS, local network resolution, and the client’s DNS settings one at a time.
If the problem started after a subscription update, switch back to a known-good local copy and repeat the single-app test on the same network. If that restores connectivity, compare policy names, rule sets, and the provider’s response. Don’t change nodes, switch networks, and edit per-app routing all at once, or it’ll be hard to tell whether the issue came from the configuration or from how Android routed traffic.
iOS: App Store Installation, Subscriptions, and VPN Configuration
Install from the App Store and preserve existing network settings
Clash Plus is the recommended option in the iOS client downloads. Check the compatible systems and device requirements on its App Store page, then install it through the store. An app appearing in App Store search results doesn’t mean your device meets its minimum iOS version. If your device already has a VPN deployed by your employer or school, check Settings → General → VPN & Device Management first. Keep managed profiles in place; don’t remove an organization’s configuration just to test a new subscription. Desktop instructions for ports, helper services, and installation don’t apply to this workflow.
When you first open the app, decide whether to add a remote subscription or import a local YAML file from Files. If you paste a URL, make sure a messaging app hasn’t truncated it or added a line break or trailing punctuation. If the local file is in cloud storage, wait for it to download somewhere the device can access. Once the entry is created, select it as the active configuration and check that the proxy group options match your expectations. If the file contains desktop-specific overrides, absolute paths, or service fields, check whether the mobile client supports them. Moving the file to your phone won’t also move any rule files referenced by the desktop configuration.
Understand system VPN authorization and connection status
When you connect, iOS will usually ask to add a VPN configuration and may require device authentication. Start the process in the client you intend to use, and confirm the system prompt refers to that app. After granting permission, check the connection status in both the client and iOS. iOS clients generally use the system’s VPN capability to route traffic. The tun field in a desktop YAML file and a local listening port don’t control this system authorization. You don’t need to enter a proxy server under every Wi-Fi network to connect.
For a test, choose Rule mode and a specific policy, open a page that’s easy to identify, then check the client to see whether the connection appears. In Rule mode, the exit route may not change—for example, the domain may match a direct rule. If the page you already have open still scrolls, that doesn’t prove the tunnel works; the content may be cached. Reload it or request a different page you can identify in the logs. If a particular app has no log entries, check managed settings and the client’s routing scope. Don’t apply Android’s per-app allowlist steps. Available routing options depend on the client and device-management settings.
Check on-demand reconnections, captive portals, and configuration size
If the VPN reconnects after you disconnect it manually, check for on-demand connection settings, organization policies, and automation. Public Wi-Fi often requires you to sign in through a web page before internet access is available. If allowed, pause the VPN, complete the sign-in, then reconnect the client. If the internet also fails when connected directly, fix the Wi-Fi connection first; subscription update times can’t tell you whether Wi-Fi has internet access. Testing the same domain over cellular can help distinguish a captive portal or local network restriction from a client configuration issue.
If a small configuration connects reliably but a full one with many rule sets disconnects soon after loading, record the disconnect time, client logs, and rule-set loading status. Mobile operating systems limit resources for background processes such as network extensions, but one disconnect doesn’t prove the cause is low memory. A rule resource may still be downloading or may have failed to parse. Instead of repeatedly restarting, use a structurally similar copy with fewer enabled rule sets, then add them back one at a time. Change only one set per test and record what happens during both import and connection.
Linux: Distribution Packages, Desktop Proxies, and Core Services
Choose a package based on your distribution, architecture, and use case
Start with Clash Verge Rev in the Linux client downloads, then compare FlClash. Use the packages actually offered on the download page. Debian- and Ubuntu-based distributions commonly use DEB packages; Fedora and similar distributions commonly use RPM. The same package extension doesn’t guarantee compatible dependencies. Use uname -m to help identify the machine architecture: x86_64 usually corresponds to AMD64, and aarch64 usually corresponds to ARM64. Before downloading, still confirm that the distribution’s user space and package manager support that architecture. If there’s no desktop package for your setup, don’t rename a file for another architecture and try to install it.
For a desktop installation, open the appropriate package with your distribution’s software installer and let the package manager report any missing dependencies. If there’s no tray icon after installation, launch the app from the application menu and check whether your desktop displays status icons. A missing icon doesn’t prove the core failed to start. On a headless machine, find a package for your architecture in the mihomo core downloads. Running the core directly is best for users who can manage working directories, rule resources, and service permissions. If you just need a desktop proxy, a graphical client makes configuration management more straightforward.
Import a subscription and distinguish desktop proxy settings from terminal proxy settings
After importing through a graphical client, select the right entry in the configuration list and check the logs to confirm the child process loaded that file. To run mihomo directly, first make sure a valid config.yaml is in the current directory. Use the first command below to specify the directory and file. The -t flag tests the configuration but doesn’t start a persistent listener; some configurations still need accessible rule resources during testing. This command assumes mihomo is available on your command path. The second and third commands test the port and make a request after the core is running.
mihomo -t -d "$PWD" -f "$PWD/config.yaml"
ss -ltn 'sport = :7890'
curl --proxy http://127.0.0.1:7890 https://example.com/
GNOME, KDE, and other desktops can provide proxy settings to apps that support them, but terminal tools, standalone services, and sandboxed apps may not inherit those settings. First make a request work with an explicit proxy option. Then decide whether a particular terminal process needs proxy environment variables. Variables added to an interactive shell usually aren’t passed to systemd services. Conversely, setting them globally may prevent package managers or local-network tools from connecting after the client stops. Keep the scope as narrow as possible and test with the actual process that will make the request.
Distinguish TUN permissions from DNS management
TUN usually requires a working virtual network device and the appropriate network-management permissions; a graphical client may manage these through a helper service. If you get a permission error, identify where it fails: opening the virtual interface, setting routes, or managing DNS. Don’t run the entire graphical interface as root; it may leave files in your user configuration directory owned by another account and prevent normal startup. If your system uses NetworkManager, systemd-resolved, or another component, check where configuration is actually managed. A generated file may not show which DNS server each link uses.
If the proxy port works and the host browser can connect, but a container can’t reach the same address, check the test process’s network namespace first. Inside a container, 127.0.0.1 refers to the container itself, not usually the host. Don’t expose the listener on every interface just to save a step. If other processes on a controlled network really need access, choose an interface, access controls, and firewall scope that fit your network topology. Router deployments also involve forwarding and gateway responsibilities. See the overview of mihomo on a side router; don’t reuse a desktop proxy’s loopback address without checking.
Common Configuration Issues: Ports, Rules, and DNS
Why are old rules still active after a subscription update?
First, distinguish downloading a configuration, reloading the core, and selecting a policy. A changed subscription update time only means the client completed its defined update step. The active configuration may be a different entry, or a failed reload may have left the previous state in place. Find the latest load log, confirm the active configuration name and timestamp, then check the effective configuration’s policy names and rule order. If the new configuration never loaded, fix the parsing error first. If it loaded but a rule doesn’t behave as expected, inspect the client’s merged and overridden configuration instead of reinstalling the app.
YAML uses spaces for indentation; tabs can’t be used to indicate nesting. If an error points to a particular line, also check the list marker, quotation marks, and indentation above it: the parser may not notice that a section is incomplete until it reaches the next one. A configuration can pass syntax checks and still fail to load because a proxy group refers to a missing name or a rule file path is invalid. To find the smallest cause, start with a copy known to load and restore your changes a section at a time. Check that policy names and references match before adding remote rule resources and DNS sections.
Why isn’t traffic routed as expected even though the proxy port works?
mixed-port is the listening port shared by HTTP and SOCKS proxies. It isn’t the external controller address used by the dashboard. The app’s proxy protocol must also match the listener. For example, when explicitly testing an HTTP proxy, use http://127.0.0.1:7890; the destination website can still use HTTPS. If the connection is refused, check that the client is listening and the app is using the loopback address on the same machine. After changing the port, update the system proxy or per-app settings too. See the glossary for more fields. Don’t put the controller address in your browser’s proxy settings.
In Rule mode, rules are generally checked in list order, and the first match determines the policy. A broad rule near the top can prevent more specific rules below it from taking effect. When checking connection details, note the destination domain, matched rule, and final policy—not just whether the connection succeeded. If an app connects directly to an IP address and the core doesn’t know the domain, domain rules may not match. For proxy groups, check separately which group the rule selected and which outbound the group currently uses. A URL-test result doesn’t tell you whether a specific website is reachable. See the comparison of proxy group types.
DNS errors, request timeouts, and recovery steps
A website timing out doesn’t necessarily mean DNS is the problem. Check the logs for the same timestamp. If name resolution failed first, inspect the client’s resolver, the system resolver, and any circular dependencies. If the name resolved but the connection to an address timed out afterward, check the address, port, selected policy, and current network route. If the issue began after enabling TUN, compare behavior with TUN off and the system proxy enabled on its own. If internal domains that previously resolved stop working after traffic routing is enabled, check whether DNS switched to a server that only knows public domains.
If you recently changed rule-data sources, compare the logs before and after the update. Distinguish a network fetch failure from an incompatible rule-file format or an incorrect configuration path. A successful data update doesn’t automatically route every domain as expected: domain rules depend on information included in the request, while IP rules match addresses against the available data. For a retest, keep one direct-access destination as a control, close old connections where possible, and start a new request. Reusing an existing connection can make a newly loaded rule look as though it never took effect.
If you still can’t pinpoint the issue, use the guide to interpreting runtime log errors to collect the lines around the failure. Include your operating system, client, current mode, triggering app, and retest results. For installation permissions, first-time imports, or loss of connectivity after quitting, browse the Help Center by topic. It’s more useful to explain which connection paths you’ve verified than to submit a full configuration containing sensitive details.