Clash Client Documentation
Clash FAQ
From subscription imports to traffic routing rules, find help by task or jump straight to node timeouts, system proxy issues, and TUN troubleshooting.
Getting Started
Learn how the core, configurations, and traffic capture methods fit together before looking for a setting.
What’s the difference between a Clash client and the mihomo core?
A client provides subscription management, policy selection, and logs. The mihomo core reads the configuration, checks which rule matches each connection, and applies the corresponding policy. For everyday use, a graphical client bundled with the core is usually all you need. If a configuration field isn’t supported, check both the client and core versions on the About page, then consult the relevant configuration documentation. A setting appearing in the interface doesn’t guarantee that the current core supports it.
What are subscriptions, configuration files, and nodes?
A subscription link retrieves a remote configuration. A configuration file defines proxies, policy groups, and rules; nodes are the proxy servers you can choose from. After importing a configuration, set it as the active one and check that its policy groups have selectable options on the Proxies page. If you import a local file, the client won’t know where to fetch updates just from that file. Subscription links often contain personal credentials, so hide the full URL before sharing a screenshot.
When should I use Rule, Global, or Direct mode?
Rule mode checks rules from top to bottom and uses the first match, making it suitable for everyday traffic routing. Global mode applies the global policy to connections handled by the core, which can help you check whether a rule is selecting the wrong policy. Direct mode sends those connections out directly, making it useful for checking whether the proxy path is the problem. These modes only affect connections that reach the core; switching modes won’t automatically route an app that isn’t connected to it. Remember to restore the original mode when you’re done troubleshooting.
What’s the difference between a system proxy and TUN mode?
A system proxy provides apps with a local proxy address. Only apps that read and use this setting will connect through it. TUN uses a virtual network interface and routes to capture traffic, which is useful for apps that ignore system proxy settings. Start by testing your browser with the system proxy, then try TUN if needed. During troubleshooting, enable only one traffic capture method at a time and use the same app to visit the same address. That way, you can tell whether the difference comes from the connection method or another setting.
Setup
Choose a package for your OS, then import it, enable it, and verify the connection. For the full walkthrough, see Getting Started. Still choosing a package? Visit the downloads page.
How do I check my operating system and processor architecture before downloading?
On Windows, open Settings → System → About and check the processor architecture under System type. On macOS, open About This Mac to see whether your device has an Apple chip or an Intel processor. For Android, look up your device model in the manufacturer’s documentation to confirm the app architectures supported by your system; don’t rely on the processor model alone. On Linux, also check the package format used by your distribution. If an installer won’t start, check the architecture and minimum OS requirements before trying a different package.
What should I check first if a subscription won’t import?
Make sure you’ve pasted the subscription URL provided for a Clash or mihomo client, not an account sign-in page or a sharing page. Check for leading or trailing spaces, line breaks, or a truncated URL, then review the import log. If the request succeeds but parsing fails, the response may be a web page or a configuration format the client doesn’t support. Confirm the subscription format with your provider before importing again. Don’t give the full URL to an unfamiliar online conversion service.
An old subscription suddenly stopped working. Should I delete its configuration?
Keep the existing configuration and local overrides for now. Check your provider’s account page to confirm the subscription hasn’t expired or had its URL reset. If the update log shows a 401 or 403, check your account permissions first. A 404 may mean the provider changed the URL. If the connection times out, try another network; a timeout alone doesn’t mean the subscription has expired. Once you have the new URL, add it as a separate configuration and confirm it updates and loads before switching over. Keep the old one for comparison.
After importing a configuration, how can I tell whether the new subscription is active?
Select the newly imported entry on the Configurations page and make sure it’s marked as active—not just successfully imported. Go to the Proxies page to check the policy group names and available options, then open the Connections or Logs page and make a new request in your browser. If you still see the old policy, check whether a configuration error caused the core to keep using the last working configuration. Then address the earliest loading error in the log. Don’t delete the old entry until the changes are working.
Tips
Use new connections to check whether rules and policies are working. To keep local changes, see the Routine Maintenance section of the manual.
Where should I put custom routing rules?
Usually, put rules for specific domains before broader rules, and place the MATCH catch-all at the end. Rule matching stops at the first match, so a correctly written rule can still be bypassed by an earlier one. Before editing, make sure the target policy exists. Afterward, enable the configuration and use a new connection to check which rule matched. If your client supports a separate override feature, save changes there so a subscription update won’t overwrite your local rules.
Why can a node with low latency still load websites slowly?
The latency shown by the client reflects one or more requests to a configured test address. It doesn’t measure speed across all websites or download bandwidth. DNS resolution, connection handshakes, network congestion, and server response times all affect how a site feels to use. For a fair comparison, keep the device, network, and destination the same, switch just one node, and check whether several new requests are consistently fast. Then check the connection log to confirm you’re testing the node you selected.
When do automatic policy groups switch nodes?
url-test picks a low-latency candidate based on probe results. The tolerance setting can prevent frequent switches caused by minor fluctuations. fallback prefers the first available node in the list, making it useful for primary and backup nodes. Automatic groups depend on the configured probe URL and interval, and a successful probe doesn’t guarantee every site will be reachable. Test with a new connection after a switch; existing connections usually stay on the original node.
What should I back up before updating a subscription?
Back up your local rules, override files, and manually maintained policy groups first. If the client has an export feature, check whether it exports one configuration or all app settings. If it only exports the subscription-generated file, make a separate note of your override location and application order. Store backups somewhere secure, and don’t upload files that contain subscription URLs. If behavior changes after an update, check whether any policy groups were renamed and whether your old overrides still refer to valid groups.
Troubleshooting
First check whether the client logged the connection. If it did, look at the rule, policy, or node. If it didn’t, check the system proxy, TUN, or the app’s own settings.
A node’s latency test timed out. How can I tell whether it’s the node or my network?
On the same network, test two nodes against the same URL. Then try again with a different test URL you know is reachable. If only one node keeps timing out, switch temporarily to a working node. If all nodes time out, check whether your device can access the internet and whether the log reports a DNS failure, connection timeout, or handshake error. Public Wi-Fi may require you to sign in first. If needed, compare results on a mobile hotspot, changing only the network so you don’t mix multiple variables.
TUN reports insufficient permissions. What should I do?
Check the client’s documentation to see whether you need to install a service component, approve a system network permission, or have an administrator start the component. Only approve permission prompts for a client you trust. Contact your administrator if you’re using a managed device. Then check whether another VPN is using the virtual interface. Re-enable TUN and check the logs for interface creation or route configuration errors. If TUN still won’t start, turn it off and switch back to your previous connection method.
Why isn’t an app using the proxy even though the system proxy is on?
Check that the proxy address and port in your system settings match the client’s current listener. Then make a new request in a browser that uses system proxy settings. If the browser connection appears in the client’s logs, the system proxy is connected. If the app you’re troubleshooting still doesn’t appear, check whether it has its own proxy settings or needs a restart to pick up the changes. If the connection is logged but goes direct, check the matching rule and policy instead of repeatedly toggling the system proxy.
A UWP app on Windows can’t connect to the local proxy. What should I do?
If a regular desktop browser uses the proxy but a UWP app can’t connect to the local proxy port, the app container’s loopback restrictions may be the cause. Confirm the app is a UWP app and check whether your client has a UWP loopback setting. If device policy allows it, add an exception only for apps that need one, restart the app, and check the connection log. Remove the exception when it’s no longer needed. If the desktop browser also has no connection log, troubleshoot the local listener and system proxy first.