Import a Clash Subscription and Connect
You'll need an installed client, a Clash subscription link from your provider, and a device with a working internet connection. For the initial setup, do four things: load the profile, choose a mode, connect, and check the route taken by a new request. There's no need to edit configuration files or enable every network option at once. If you haven't installed a client yet, visit the client download page and choose the version for your system.
1. Import and activate a subscription
Copy the full link from your provider's subscription page. If the page lists links for different clients, choose one explicitly labeled for Clash or Mihomo. Don't confuse a subscription URL for a complete profile with an account login page or a share link for a single node. Keep any parameters after the question mark, paste the link in one piece, and leave out punctuation added by a messaging app. Subscription links may contain access credentials, so don't expose the original link in screenshots, recordings, or support requests.
Add and select the profile
Open the “Configuration,” “Subscription,” or Profiles page, then choose “New,” “Add,” or the plus button. Select an option such as “Import from URL” or “Remote profile,” and paste the link into the URL field. If there's a name field, enter a label you’ll recognize later to distinguish it from local profiles. Click “Save” or “Import,” then wait for the new entry to appear. Some clients save the URL first and require you to click “Update” next to the entry to download the profile. If the entry has no content after saving, look for that button.
Return to the list and select the new entry. If you opened its details, go back and look for a selected indicator or an “Enable” button. Importing a profile doesn't automatically make it active. If the client already had a profile, the new subscription may have been added to the list while the old one remains in use. Check that the active profile name has changed, then open the Proxy page and check the groups and nodes. If the profile uses a separate proxy provider, its members may not appear until loading is complete. Don't re-import just because the list is temporarily empty.
If import fails, identify where the error occurred
For a timeout, first make sure the device itself is online, then try the client's Update button once. For an unauthorized or expired link, check the subscription status on your provider's site and copy the link again; don't edit its parameters. If the download succeeds but parsing fails, make sure the file is a configuration supported by the current core. A login page, error page, or list containing only nodes can all fail to parse as a profile. If you have a local YAML file, choose “Import from file” instead of entering its path in the URL field.
At this point, you should be able to identify the active profile in the list and see its groups or nodes on the Proxy page. If the profile hasn't loaded, stop here and fix that first; changing modes or enabling the system proxy won't load a missing profile. For an explanation of subscriptions, configuration files, and proxy providers, see the glossary.
2. Choose a proxy mode and group
Once you've confirmed the active profile, find the operating mode under “Overview,” “Proxy,” or “Settings.” For your first setup, choose Rule mode, then check that the displayed mode has changed. In Rule mode, requests captured by the client are routed according to the profile's rules: some go to a proxy group, some connect directly, and others are blocked. This makes it easier to verify the profile's routing behavior. A frequently visited site connecting directly doesn't mean the client isn't working.
Choose a mode, then check the group selection
After choosing a mode, open the Proxy page and expand a group. Group names depend on the subscription and may not include “Node Selection.” If the client lets you inspect rules, find one you want to test and note the group it specifies, then find the group with the same name on the Proxy page. In groups with manual selection, choose an available member and confirm that the selection indicator is next to it. Sometimes a member is another group, which you’ll need to expand to see the final option. Changing a node in a different group won't change where this rule sends requests.
If the current selection is an automatic test group, you can keep the default and check which member is selected after the client finishes testing. If there's a latency test button, you can run it once for reference. A successful test only means the client could reach the test address at that moment; it doesn't guarantee that the service you want to use will work. To check the actual service, send a new request to its address in step 4. Don't treat a speed test as proof that the connection is working.
When to use Global or Direct mode
Global mode is useful for a short comparison: it bypasses per-rule routing from the subscription, and you should check which proxy option Global mode uses before testing. It also doesn't capture traffic from other apps. Direct mode typically sends captured requests straight out, but it doesn't mean the client is disabled. There's no need to switch modes repeatedly during initial setup. Stay in Rule mode and keep track of the group and member you selected. If you see both “System Proxy” and “Rule mode,” treat them as separate settings: the first sends requests to the client; the second chooses a route for those requests. For details on configuration fields, see the configuration reference.
3. Enable the proxy connection
Your profile is loaded and Rule mode is selected. Now send actual traffic through the client. For the first connection, enable only the traffic entry point required by your platform and run one test before changing anything else. If it fails, you can then tell whether the problem is the profile, traffic capture, or outbound connection without having to investigate several settings at once.
On desktop, start with the system proxy
Turn on System Proxy under “Overview” or “Settings” in the client, and make sure the switch stays on. Keep the client running, then open a new page in a browser that uses the system proxy settings. The system proxy mainly affects apps that follow those settings; some browsers, command-line tools, games, and desktop apps use their own network settings and won't follow the system switch. Don't use one of those apps as your only test, and there's no need to change the system's proxy address or port manually.
If enabling the switch reports that the port is already in use, check whether another local proxy tool or another instance of the same client is running. If it's safe to do so, close the other instance and turn on the system proxy again. If there are no errors but the browser can't open any pages, turn off the system proxy and check whether the network works without it, then make sure the client is still running. When you no longer need the proxy, turn off the system proxy before quitting the client to prevent apps from sending requests to a stopped local service.
On mobile, connect from the client
Return to the client's home screen and tap “Connect,” “Start,” or the power button. The first time you connect, Android or iOS may ask to create a VPN connection or add a VPN configuration. Confirm that the prompt was triggered by the client you just opened, then approve it as directed by the system. Wait until the client shows that it's connected. If your device displays VPN status, you can check that too. If you denied the request by mistake, tap Connect again and follow the prompt. If another VPN is already running, check whether you can disconnect it first. Don't disable a network configuration required by your work or school just for this test.
On desktop, if the browser works but an app that ignores the system proxy still isn't routed through the client, consider enabling TUN mode if the client supports it. TUN mode isn't an alternative to Rule mode; it works earlier in the traffic-capture process and may require installing a service or granting system permissions the first time you enable it. Don't make further changes yet: keep the mobile connection on or the desktop system proxy enabled, and move on to the next step to check the evidence. For the differences between TUN, the system proxy, and DNS, see the glossary.
4. Check that the connection is working
An enabled system proxy or VPN status only shows that the traffic entry point is on. A webpage loading doesn't prove that it went through the proxy; it may have connected directly. The more reliable check is to find a recent request in the client and confirm where it went. Open the connection list first. If the client doesn't keep completed connections, use its log instead. Then visit an address you know and can confirm should match a proxy rule in the active profile. Focus on the main domain you visited, not image or script domains loaded by the same page.
Check the domain, rule, and outbound route
Return to the client and find the new entry by the target domain and the time you visited it. If the client shows the matched rule and route, first confirm the rule is as expected, then check whether the outbound route is the right proxy group and member or DIRECT. The first check is complete if the target should use a proxy, the page loads, and its entry shows that it went through the expected group and member. For an additional check, visit an address that the profile explicitly routes directly and confirm that it connects directly. Seeing each request take its expected route confirms that routing rules are being applied, rather than just showing that one proxy node happens to work.
Use what you observed to return to the right step
No new entry: Close the test tab and visit the address again. The browser may reuse an existing connection or load the page from cache, and the connection list may show only requests that are still in progress. If the request still doesn't appear, check that the desktop browser uses the system proxy or that the mobile connection is still active. If the client can include or exclude traffic by app, make sure the test app is within its capture scope. Fix the traffic capture first; don't change the rules yet.
An entry appears, but it went direct: Check whether the matched rule was meant to use a direct connection, then verify the current mode and profile and whether the proxy group has a Direct member selected. If an earlier rule matched the target first, changing nodes won't reroute the request. The expected proxy was used, but the site wouldn't load: Choose another member in the same manually selectable group and try the same address again. Change only the member this time; don't also switch modes, change profiles, or edit DNS. Otherwise, even if it works, it will be hard to tell what fixed the problem.
Once verification is complete, note the active profile name, operating mode, and proxy group you tested. After updating a subscription or switching profiles, check the active profile again and repeat the same request test to confirm the change took effect. If you've identified a specific rule, DNS option, or override to adjust, look up its syntax in the configuration reference rather than reading the entire YAML file during initial setup.