Client Setup / Configure, Route, and Verify

Clash Setup Guide

Start with your subscription link, then use a new browser connection to check that the configuration works. If you already have a client and a working subscription, follow the four steps below. If you haven’t installed a client yet, choose a package for your operating system on the client downloads page.

Step 01 / Profile Source

Import and Enable a Subscription

Copy the configuration link for your client from your subscription provider. Open the client’s Config or Subscriptions page, then click Add, Import, or the plus button. If a dialog offers both a local file and a remote link, choose Import from URL, paste the full address into the URL field, and click Save or Download. If your provider gives you a local YAML file, choose Import from file instead; don’t enter its filename in the URL field.

After saving, wait in the profile list for the download and parsing to finish. You should see a new profile with a name; some clients also show when it was last updated. If two entries have the same name, check their timestamps and open the details to confirm the source before trying to update one. Keep all query parameters when copying a subscription link, and don’t share it in a public screenshot: it may contain credentials that grant access to your configuration.

A profile appearing in the list means the client has saved it, not necessarily loaded it into the core. Select the profile, then choose Use, Enable, or Set as current. If clicking the name only opens its details, return to the list and check the menu at the end of the row. The active profile is usually marked with a check or highlight. Open the Proxies page and look for the policy groups listed by your provider. If the client shows them only after the service starts, connect first and check again; a temporarily empty page doesn’t necessarily mean the import failed.

If the download fails, first make sure the device has an internet connection. Then copy the link again from your provider and confirm the subscription is still active. If the download completes but the client reports a format error, check that the link returns a configuration supported by this client—not a sign-in page or a subscription for another client. If an update fails and your existing profile still works, keep it rather than deleting it to retry.

Once you’ve selected a profile, there’s no need to import it again. Return to the Proxies page and choose an outbound route from the active profile’s policy groups. Updating a subscription and switching the active profile are separate actions; check them separately when troubleshooting.

Step 02 / Choose an Outbound Route

Choose a Proxy Mode and Policy

Open the Proxies page and find the mode selector at the top. If there’s no mode switch, look for Mode on the home screen or in connection settings. For a first setup, choose Rule and make sure it’s highlighted. In Rule mode, the core matches captured connections against the configured rules in order, and the matched rule determines the route. It doesn’t automatically capture traffic from every app, or send every connection through the proxy.

Next, check the policy groups below the mode selector. Look for the manual selection group your subscription says to use for proxied traffic, open it, and choose a node. Confirm that the group now shows your selection. A group may refer to another group; follow the group names until you see the selected node or Direct. Automatic groups choose nodes according to the configuration. To keep troubleshooting simple, start with an existing manual group rather than rewriting the configuration.

Changing a policy group affects only connections routed through that group. For example, if the configuration sends a domain directly to DIRECT, changing the node in a proxy group won’t change that request’s route. Desktop latency tests can give you a quick sense of whether a node can reach a test address, but they don’t follow the browser’s usual traffic-capture path. A latency result doesn’t replace checking real traffic in step four.

Global mode is useful for comparison with Rule mode: requests that reach the core use the global policy, but you still need to check which route that policy selects. Direct sends requests that reach the core straight out, making it useful for a brief comparison. Neither mode replaces the system proxy or TUN traffic-capture setting. Before your first connection, switch back to Rule mode and keep the current node selection. Change one setting at a time so you can tell whether the issue is with the rules or traffic capture.

If Rule, policy groups, and nodes are easy to mix up, start with the glossary. For now, confirm just two things: Rule mode is selected, and the policy group for proxied traffic has an outbound route selected. The next step is to send app traffic to the core.

Step 03 / Capture Traffic

Connect and Enable Traffic Capture

In the desktop client, return to Home, Overview, or Settings. If the core needs to be started separately, click Start and wait for its status to show Running, then enable System Proxy. If the client manages startup for you, simply turn on the system proxy. Open a new page in a browser that uses system proxy settings. Leave TUN off for now so the test uses only the system proxy. A Running status confirms the service has started; check a real request to make sure traffic is reaching it.

On mobile, return to the client’s home screen and tap Connect. The first time, the system will usually ask for permission to add or start a VPN configuration. Make sure the prompt was triggered by the client you just used, then approve it as directed. Wait for the connection status to stabilize before opening your browser. If it quickly disconnects, check the client’s error message and see whether another VPN is already running. On managed devices, use a connection method approved by your administrator.

If your desktop browser uses the system proxy but you also need to test an app that ignores it, try TUN separately. Finish any browser tests and turn off the system proxy before enabling TUN, Virtual Network Adapter, or Virtual Network Adapter Mode in the client. Some clients require a service installation or system permissions; follow the prompts for your client and operating system. Once enabled, reopen the app and send a new request so it doesn’t reuse a connection established before the change. TUN’s capture scope also depends on routing settings, not just the toggle.

If turning on traffic capture suddenly cuts off internet access across the device, turn off the setting you just enabled and confirm the connection recovers. Then check the client for startup errors. If desktop browsers still report a proxy error after you close the client, check whether the system proxy still points to a local listening address that is no longer active. Don’t override existing proxy settings on managed devices. Fix the specific reported error rather than changing the node, subscription, and capture method all at once.

Leave the client open after enabling traffic capture so you can return to it easily. Next, use new requests to check both whether traffic reached the core and where it went. A webpage loading on its own can’t answer either question.

Step 04 / Connection Logs

Verify Rules and the Actual Route

Open the client’s Connections page, then visit a recognizable test domain in your browser and note the time. Return to the connection list and look for a matching domain or address. A connection may disappear shortly after it ends; if so, open Logs and send a new request to the same destination. Browsers may reuse existing connections, so a test domain you haven’t visited before is often easier to track than repeatedly refreshing the same page.

Open the entry details. First confirm the destination matches the address you just visited, then check the matched rule, policy group, and actual route. If it shows DIRECT, the core sent that connection directly; it doesn’t mean the system proxy is off. If it shows a proxy group, check which node the group ultimately selected. Clients display different fields, so if the Connections page shows only the destination and status, use the logs to check the rule match.

Run two checks with the current configuration: send a new request to a domain that should clearly go direct, then another to one that should clearly use the proxy. Both entries must appear with the expected routes to confirm that both paths work. If your subscription doesn’t specify which domains should use each path, check the active configuration’s rules or the subscription notes instead of guessing based on the site’s region. A public IP lookup can help show the route for one request, but it can’t replace checking each rule.

If no matching entry appears, first check for filters in the list, whether the test request has finished, and whether the browser uses its own proxy settings. Once you’ve confirmed it was a new request, check step three: is the system proxy on, or is the mobile connection still active? If an entry appears but the route is wrong, return to step two and check the mode, matched rule, and policy group selection. If the route is right but the connection times out, try another working node in the same group to separate node connectivity from rule selection.

After verification, keep the mode and traffic-capture method that work. When you next update the subscription or change a rule, reuse the same test domains and change just one setting before checking again. To write rules, adjust DNS, or review override fields, see the configuration reference; there’s no need to change those settings for a first connection.