Clash Setup Guide
Follow four steps to go from importing a subscription to verifying a connection. Before you start, make sure you have an installed client and either a Clash subscription URL or a local configuration file. Haven't installed a client yet? Choose your device on the downloads page.
Step 1: Import and Select a Subscription
Import by URL or from a File
Open “Subscription” or “Configuration” in the client's sidebar. If you have a subscription URL, click “New,” “Add,” or the plus sign, then choose “Import from URL.” Enter a configuration name if prompted, paste the full URL into the address field, and click “Import” or “Save.” Wait for the new configuration to appear in the list before leaving the page. Subscription URLs may contain account credentials. If an error occurs, note only the error type shown in the interface. Don't share the full URL or paste it into an unfamiliar conversion website.
If you already have a .yaml or .yml file, choose “Import from file” or “Local configuration,” then select the actual file in the file picker. Don't enter a local file path in the URL field or try to convert a file by changing its extension: renaming a node-sharing link or web page doesn't turn it into a Clash configuration. Remote subscriptions can usually be refreshed in the client. A local file is a snapshot imported at that point in time; to use an updated file, import or replace it in the client.
Make Sure the New Configuration Is Active
Seeing a configuration in the list only means the client has saved it. Select the new configuration. If the interface also offers “Enable,” “Use,” or “Apply,” complete that step until the item is marked as current or selected. Then open “Proxy” and check that the groups shown belong to this configuration. Some clients keep the previous working configuration active. If the Proxy page still shows old group names after import, return to the configuration page and check its active status. Don't move on just because another row appeared in the list.
If importing by URL fails while fetching, check for missing characters or extra spaces, and make sure you haven't entered the service's management page URL instead of its subscription URL. If the file downloads but can't be parsed, return to the page where the configuration was provided, confirm you copied the Clash-compatible URL, and check whether the configuration requires a specific core. For details, see Subscription Formats and Import Methods. Wait until the configuration is applied and its contents appear on the Proxy page before choosing a proxy mode. You don't need to enable the system proxy yet.
Step 2: Choose a Proxy Mode
Look for the mode selector at the top of the “Proxy” page. Some clients put it on the home dashboard or under “Settings.” If you're new to Clash, start with “Rule” mode so each request follows the routing rules in your configuration. “Global” sends traffic that has already entered the client through the global policy; use it for a brief comparison test, then switch back to “Rule.” “Direct” sends traffic entering the client straight to its destination, which can help you compare it with a proxy route. The mode controls how traffic is handled after it enters the client. Choosing “Global” doesn't mean all device traffic is routed through the client.
Rule-Based Routing: Check What Matches First
If the client has a “Rules” page, review it before routing traffic. Find a domain rule for the site you want to test and note its target. Rules are checked from top to bottom; once a rule matches, later rules don't change the route for that connection. A MATCH rule near the bottom often catches requests that didn't match anything above, but it can point to either a proxy group or a direct connection. Check your active configuration to see which.
For example, if the target is DIRECT, those requests connect directly according to the rule; there's no need to choose a node in a proxy group. If the target shows a group name, check that group's current selection on the Proxy page. For your first setup, keep the existing rules rather than adding new ones. If a site matches a different rule than expected, compare your configuration with Rule Types and Match Order to see whether an earlier rule caught the request.
Proxy Groups: Check the Exit Route Referenced by the Rule
Return to the Proxy page, find the group you noted, and expand it to see the available options. For a manually selected group, choose a configured exit and check that the card shows it as selected or that the group title displays the current choice. Some groups contain another group; keep expanding the referenced groups until you can identify the final exit. Don't pick a random node from the first group on the page: if the rule references a different group, your selection won't affect this test.
URL-test groups choose an exit based on the probe settings in the configuration, while fallback groups switch between members based on their order and availability. You can leave automatic selection as configured; there's no need to force every group to use the same node. Latency tests in the client can help you compare exits, but they only show results for the probe address and can't replace a test of the destination site. Note the mode and the group you'll use for testing. Next, route device traffic through the client and check where real requests go.
Step 3: Route Device Traffic Through the Client
Your configuration and exit route are now set. First, make sure your device is connected to a working network, then follow the instructions for your platform below. For the first test, use only one traffic-routing method so you can tell how traffic is entering the client. After switching it on, use new requests for verification; existing connections may not immediately be routed through the rules again.
Desktop: Enable the System Proxy
Keep the client running. Find “System Proxy” on the home page, in Settings, or in the tray menu, and turn it on. The interface usually shows when it's enabled; some clients also display the status in the tray menu. If you see both “Start at login” and “System Proxy,” note the difference: starting at login only launches the client after you sign in. It doesn't enable the system proxy. Next, test with a browser that follows system proxy settings. Don't use an app with its own proxy settings as your first test.
The system proxy doesn't route traffic from every desktop app. Some apps have their own network settings and may use a separately configured proxy or connect directly. If the proxy is on but you don't see browser requests, check that the browser or system network settings are configured to use it. Also check whether another local proxy tool has changed the system settings. If your device has a manually configured proxy, note the original settings before switching. Consider TUN mode only if you need to route apps that don't follow the system proxy, and after reviewing your client's instructions. You don't need to enable both methods for a basic connection test.
Mobile: Start the VPN in the Client
Return to the client's home page and check that the correct configuration is selected, then tap “Connect,” “Start,” or the main switch. The first time you connect, the system usually displays a VPN authorization prompt. Check that it names the client you just opened, then allow the connection. Return to the client and confirm that the status changes from disconnected to connected. You can also check the VPN page in system settings to see whether the connection is active. Some devices don't keep a VPN icon in the status bar, so don't rely on the icon alone.
If you cancel the authorization prompt, return to the client and tap Connect again. If another VPN is already running on your device, check which one is active. On a personal device, switch after confirming you no longer need the existing connection; on a managed device, follow your organization's network requirements. “System Proxy” enabled on desktop and “VPN connected” on mobile only confirm that the traffic-routing method is active. To see whether browser traffic reached the client and where it went, check the connection log in the next step.
Step 4: Verify the Rules and Exit Route
Make a New Request and Check the Connection Log
First, open the client's “Connections” page so you know where to find the records. Then open a browser and visit a site that's normally available and should use the test proxy group under your current rules. Avoid using a tab that's been open for a long time: the browser may show a cached page or reuse an existing connection. Close and reopen the browser if needed. Once the page starts loading, return to the client and search for the domain under “Connections.” If the connection ends too quickly to find, check the “Logs” page for that time period.
Once you find the record, check three things in order: is the domain the one you just visited, is the matched rule the one you expected, and does the proxy group or exit match the route you selected in step 2? A web page often loads resources from other domains for images, fonts, and more; those requests may match different rules. Start with the record for the address-bar destination, not an arbitrary image request. If the client shows only the destination and proxy group, return to the Proxy page to check that group's current exit. For an automatic group, use the exit shown at the time of the test.
Test a Direct Connection to Confirm Routing
Choose a site in your configuration that's clearly meant to connect directly and is suitable for testing, then make a new request. If the request enters the client and shows DIRECT, while the previous request used the expected proxy group, you've verified two different routes. If the browser or system settings have a proxy bypass for that address, the request may never reach the client, so no record will appear on the Connections page. To test Clash's direct routing rule, choose a site that does enter the client and should match DIRECT. A page loading successfully alone doesn't prove that the rule matched.
Choose the Next Step Based on What You See
If neither test appears in the logs, return to step 3 and check how traffic is routed into the client before changing any rules. On desktop, see System Proxy Not Working; on mobile, first check whether the VPN is connected through the client you're using. If a request appears but matches the wrong rule, return to Rule-Based Routing and check the match target and rule order. If the rule is correct but a proxied request times out, go back to Proxy Groups, choose another configured exit, and retry with the same destination. If the logs point to a DNS resolution failure, see DNS Issues; don't confuse it with an exit timeout.
Once verification succeeds, keep the current configuration, Rule mode, and selected exit. If a site's behavior changes after a subscription update, first confirm that you're still using the expected configuration, then compare a proxied request with a direct one again. For questions about modes, subscription updates, or the client interface, see the FAQ. For persistent connection failures or client crashes, continue troubleshooting by symptom in Troubleshooting.