CLASH / QUICK SETUP

Clash Setup Guide

Import a subscription, choose rule mode, connect, then check how traffic is routed. If the client is already installed and you have a subscription URL, start with step one.

Import and activate a subscription

Open the client and go to Config, Subscription, or Profiles. Click New, Add, or the plus icon in the top-right corner, then choose Import from URL or Remote Profile. Paste the full subscription URL provided by your service, making sure it explicitly supports your client. A login page for the service dashboard is not a subscription URL. If your service offers multiple formats, follow its instructions and choose the format for Clash or mihomo. Before submitting, check that the link hasn’t been cut off by a messaging app or accidentally followed by a period or space. Subscription URLs may contain access credentials; use them only in the client and don’t share the original link publicly.

After saving, wait for the new entry to appear in the profile list. A “Update successful” message or a recent update time means the download completed; it does not mean the new profile is active. Return to the list, select the entry, then choose Enable, Use, or Set as active profile. Reopen the profile page and make sure the newly imported entry is marked as selected. Then open the Proxy page and check that proxy groups or nodes appear. There are two things to verify: the file downloaded, and the client loaded that file.

If your service provided a local YAML file, choose Import from file on the same page. Don’t enter a file path in the subscription URL field. After importing, make sure the file is set as the active profile. If the client has separate Update and Switch actions, Update downloads the selected subscription again; Switch determines which profile is in use. You can keep the old profile for now—if the new one fails to load, switching back is quicker than deleting it and trying to recover it later.

If the download fails, first identify where the error occurred. For a timeout, check that the device can reach your service’s subscription endpoint on the current network. For an authentication error, check with the service whether the URL has expired or been reset. If the download succeeds but parsing fails, check the subscription format instead of repeatedly clicking Update. If no proxy groups or nodes appear, don’t enable the proxy yet. Make sure the active profile has loaded successfully before continuing.

Choose a rule mode and node

On the Proxy page or home screen, find Proxy Mode and choose Rule. In rule mode, the configuration decides which outbound route each request uses: some requests go through a proxy, while others connect directly. Global mode generally sends traffic handled by the core through the selected global outbound; Direct bypasses proxy nodes. These options determine how traffic is routed after it reaches the client—not whether it reaches the client in the first place. There’s no need to test every mode now; keep Rule selected for the checks that follow.

Return to the Proxy page and expand a proxy group that supports manual selection in your configuration. It may be called Node Selection or Proxy, or have a custom name chosen by your service. If you’re unsure, check the configuration notes. If the client has a Rules page, you can also look up the rule for the domain you plan to test and see which group it targets. A proxy group is a selection point: it may contain individual nodes, nested auto-select groups, or a Direct option. Focus on the group your test request will use rather than clicking through every group on the page.

In a group that supports manual selection, choose a node you know is available and make sure it’s marked as selected. If the group also offers Auto or Failover, you can keep the subscription’s default setting, but check the connection log afterward to see which node was actually used. Don’t rely on the group name alone. If the client offers a connectivity test, use it to narrow down the options. A successful probe only confirms that the test address responded; it doesn’t replace the real app request in step four.

After changing the mode, reopen the Proxy page and confirm it still shows Rule. If you switched profiles, check the group selection again: proxy groups with the same name in different profiles may contain different nodes, and a previous selection may not carry over. At this point, you should be able to identify the active profile, operating mode, and proxy group for your test. Keep these three settings unchanged as you move on to connect. That way, if something goes wrong, you can troubleshoot from the connection state without guessing at several settings at once.

Connect the client

On desktop, start with the system proxy. Go to the home screen, settings, or tray menu, find System Proxy, and turn it on. If the client has a separate Start button, make sure the core is running first. When enabled, the client tries to configure the system proxy; only apps that follow this setting will send requests through it. If the toggle turns itself off, check the settings or logs for permission issues, a port conflict, or a system integration error. Some Linux desktop environments and apps don’t follow the client’s system proxy setting. For your first test, use an app that you know does.

On mobile, grant system permission first. Keep the profile you just activated and return to the home screen. Tap Start, Connect, or the power icon. The first time, you’ll usually see a system VPN confirmation prompt. Check which client is requesting the connection, then allow it. Return to the app and wait for the status to change from Connecting to Connected. The system VPN indicator is a useful check, but it only confirms that the connection mechanism started—not that a particular website is using the proxy. If you dismissed the prompt, tap Start again and approve it; there’s no need to reimport the profile.

If another VPN or proxy tool is running on the device, first check which one is active. On a personal device, you can pause other tools you enabled yourself, then try the Clash client again. On a work-managed device, follow your organization’s network policies and don’t change enforced settings. If per-app routing is enabled on mobile, make sure your test browser is included. If your desktop browser has its own proxy extension or connection settings, use a browser that you know follows the system proxy for your first test.

For the first test, use just one traffic-capture method; on desktop, there’s no need to enable both the system proxy and TUN. Once browser requests appear consistently in the logs, check whether any apps need TUN. The user guide covers virtual adapters, permissions, and routing. If the toggle turns itself off, fix the startup or permission issue first. Switching nodes won’t make the system proxy setting stick or grant the VPN permission your phone needs.

Verify the proxy is working

Open the client’s Connections or Logs page and note the current time. Then use a browser you’ve confirmed is covered by the proxy to visit a familiar site you’re allowed to access. If possible, choose a domain you haven’t visited during this session, or make the request in a new browser session to reduce the impact of cached pages and existing connections. Return to the client and search for the matching entry by time and domain. Short-lived connections may disappear from the live list quickly. If you don’t see one, check the logs and try again rather than relying on the connection count.

Once you find the entry, first check whether the request reached the client, then check the matched rule and final outbound. DIRECT means that request connected directly. If that’s what the rule specifies, traffic is being routed as configured; it doesn’t mean the proxy is broken. To confirm that a node works, choose a test domain whose current rule routes it through a proxy, make a new request, and check the proxy group, final node, and whether the page loads. A repeatable match between domain, rule, and outbound is more reliable than checking whether a toggle is on.

If the page loads but you can’t find a log entry, check whether the test app follows the system proxy, whether it’s excluded from your mobile app-routing scope, and whether the log level includes these requests. If the entry is present and the rule is correct but the connection times out, try a known-working node in the same proxy group and retest the same domain. Change one thing at a time. If you switch nodes, enable TUN, and change modes all at once, it’s hard to tell what fixed the issue. If you see an HTTPS certificate warning, stop before entering account or payment details and don’t bypass the browser warning. Continue troubleshooting by symptom in the FAQ.

Finish with a rollback check: note the current profile, mode, and node, then turn off the system proxy or mobile connection you enabled and make a new request from the same app. Confirm that traffic returns to the expected network state. Turn the connection back on and repeat the same checks for the rule and outbound. For everyday use, repeat this after updating a subscription or changing nodes. To learn more about rule order, automatic proxy groups, and profile backups, see the Clash user guide.