Guides First-time setup
Clash Setup Guide
Go from importing a subscription to verifying your connection with a single webpage test.
Before you start, get a subscription link you’re authorized to use, or a YAML profile compatible with your client. Pick a webpage that normally loads for you to use as a test. If the client is installed and the subscription is valid, the main setup should take about 10 minutes. Check the port and TUN guidance only if an app isn’t using the proxy.
STEP 01
Import a subscription and enable the profile
Open the client and find “Profiles” or “Subscriptions” in the sidebar or bottom navigation. Tap “New,” “Add,” or the plus icon, then choose an option such as “Import from URL” or “Remote Configuration.” Paste the full subscription URL and, if you like, give it a recognizable name. Tap “Save” or “Download.” If the client first creates a subscription entry and asks you to update it manually, tap “Update” next to that entry. Continue once the client confirms the update is complete.
If you have a local YAML file, choose “Import from file” on the same page and locate it in the system file picker. A subscription URL lets the client fetch a profile; a local file is a profile you already have. You don’t need to import both. Subscription URLs may contain access credentials, so if something goes wrong, note only the error message and when it occurred. Before sharing a screenshot, crop out the URL bar, QR codes, and any other information that could expose credentials.
After importing, return to the profile list and select the item you just added. If its menu also has “Enable” or “Set as current profile,” select that too. Once you see a checkmark, a highlighted selection, or “Current profile,” open the Proxies page. Confirm that the profile’s proxy groups are listed, then expand one to check for nodes. Seeing a name in the subscription list only means the entry was saved; it doesn’t mean the client is using that profile.
If updating fails, first check that your device is online. Then make sure you copied the entire URL, without missing characters at either end or adding spaces or line breaks. If the update succeeds but applying the profile fails with a parsing error, check whether the returned content uses a format supported by the client. A login page or a link to share a single node is not a complete subscription profile. Use the client’s error message to pinpoint the problem; there’s no need to reinstall. Once the proxy groups and nodes appear, decide which requests should use the proxy.
STEP 02
Choose a proxy mode and check the selected route
Find “Proxy Mode” at the top of the Proxies page or in Settings. For your first connection, choose “Rule.” The client then handles requests according to the profile’s rules: some go through a proxy group, some connect directly, and others may be blocked. After selecting Rule mode, stay on the Proxies page and expand the main groups. For a manual selection group, choose a node and check that it appears next to the group name. For an automatic group, leave the current setting as is.
| Mode | How requests handled by the client are routed | When to use it |
|---|---|---|
| Rule | Follows the current profile’s rules to proxy, connect directly, or block requests. | Everyday use and checking that rules match as expected. |
| Global | Routes requests through the outbound selected in the Global proxy group. | A brief comparison to see whether rules or proxy groups account for a difference. |
| Direct | Connects directly to the destination without using a proxy node. | Compare against a direct connection using the same webpage. |
Proxy mode controls what happens after a request enters the client. The system proxy setting or mobile connection toggle controls whether it gets in. So Global mode doesn’t make every app use the client, and Direct mode doesn’t mean the system proxy is off. If you briefly switch to Global mode for comparison, check that the Global group points to an actual node, not Direct. The node selected in Rule mode may not be the one selected in the Global group.
If expanding a proxy group reveals another group, open that one to see the final selection. Don’t reimport the profile just because there’s no group literally named “Proxy”; group names come from the profile. For your first test, keep the existing rules and check only the current mode and group selection. Once the verification page shows the actual outbound route, decide whether to make changes. For a quick explanation of the difference between a “node” and a “proxy group,” see the glossary. Next, open the connection control so your browser can send its first test request.
STEP 03
Connect and route browser requests through the client
On desktop, make sure the client is running, then enable “System Proxy” from the home screen, Settings, or the tray menu. Once the switch stays on, open your test webpage in a browser that normally follows the system proxy settings. System proxy is a setting for apps to follow; it can’t force every app to use it. For the first test, leave the browser’s own proxy settings unchanged and don’t enable TUN at the same time. That way, you’ll know which connection method you’re testing.
On mobile, tap “Connect” or the start icon on the home screen. The first time you connect, the system may ask for permission to establish a VPN connection. Make sure the prompt comes from the client you just opened, then approve it. Once the home screen shows “Connected,” open the same test webpage in your browser. If the switch turns itself off right away, check whether the system denied permission or another VPN is already running on the device. Before pausing another connection, make sure you’re authorized to change that setting.
Port settings: check these only if an app needs manual configuration
If a desktop app ignores the system proxy but has its own proxy settings, open “Settings” in the Clash client and check the “Mixed Port” and local listening address. A mixed port accepts both HTTP and SOCKS proxy connections. For an app on the same device, enter the loopback address 127.0.0.1 and the port shown in the client, using whichever protocol the app supports. 7890 is a common example in tutorials, not a guaranteed default—don’t copy it without checking. If the client says the port is already in use, check whether a second client is running. If you change the listening port, update any apps you configured manually.
TUN mode: check this if your browser works but a specific app doesn’t
If the client logs show browser requests but a particular app ignores the system proxy and has no option for setting a proxy manually, check whether your desktop client offers “TUN mode.” TUN uses a virtual network interface to receive traffic according to routing settings; it’s different from an app using the system proxy settings. Enabling it may require installing a service or granting system permissions, so follow the client’s prompts. Note the original setting before you test, change one connection method at a time, then reopen the app. If the connection gets worse, restore the previous setting. Avoid changing the port, mode, and DNS settings all at once, or it’ll be hard to tell what affected the connection.
STEP 04
Verify the connection and check the rule and outbound route
Return to the client and open “Connections” or “Logs,” then visit a webpage again in your browser. Find the matching entry by the domain you just visited or the approximate time. If the connection list shows only active connections, watch it as you reload the page, or look for the completed request in Logs. A page loading successfully confirms the visit worked; a matching entry in the client confirms that request actually passed through it.
Open the connection details and look for a “Rule,” “Chain,” or “Outbound” field. If the request should use a proxy, check the matched rule, proxy group, and final node. For a direct connection, DIRECT or “Direct” is expected. In Rule mode, two visits may take different routes if their domains differ. Even one webpage can load its text and images from different domains. Start with the main page’s domain; don’t mistake a request for a secondary resource as the main request.
If you can’t find a new entry, make sure the client is still running and that System Proxy or the mobile connection hasn’t been turned off. Then check whether the browser has its own proxy settings. You can also try a test page you haven’t visited recently to avoid cached content or reused connections. If an entry appears but the route is unexpected, check the rules and proxy group. If the route is correct but the outbound connection times out, try another node in the same group and retest with the same page. These are different issues; you don’t need to reimport the subscription every time something fails.
Test Clash node speed under consistent conditions
On the Proxies page, expand the proxy group in use and look for “Latency Test” or a speed-test icon. Keep the network and test address the same for each comparison. If you switch Wi-Fi networks or move to mobile data, run the tests again before comparing. The result usually shows how long the test request took, not download speed, and it doesn’t guarantee the same performance on other sites. If a test times out, retry under the same conditions. If another node passes several tests in a row, check its stability by loading a real webpage after switching—not just by choosing the lowest number.
Switch Global mode back to Rule mode, keep the connection method you’ve verified, and confirm it with one more request. When you’re done, turn off System Proxy before quitting the desktop client; on mobile, tap “Disconnect” in the app. Your subscription is enabled, requests appear in the logs, and the outbound route matches expectations—that’s the initial setup complete. If the issue is specifically about subscription format or core compatibility, see the protocol and core reference. There’s no need to redo the entire setup over a single connection failure.