User Guide / First Connection

Clash Client Setup Guide

Go from importing a subscription to checking your first routing entry. If the client is installed and your configuration is ready, allow about 10 minutes for the initial setup.

Step 01

Import a Subscription or Local Configuration

Open the client’s Config, Subscription, or Profiles page, then go to the add-configuration screen. If you have a subscription URL, choose “Import from URL” or “Remote Configuration,” then paste the full Clash subscription URL provided by your service. If the client asks for a name, enter a label that’s easy to recognize. Click Save or Download and wait for the new entry to appear. Subscription URLs often contain credentials. When troubleshooting, share only the error message—never include the URL in screenshots or public discussions.

If you already have config.yaml, there’s no need to find a subscription URL. Choose “Import from file” and select the YAML file in your system file picker. Some mobile clients also let you import files from the system Files app’s share menu. If both the original and new configurations appear in the list, keep the original and give the new one a distinct name. That way, you can switch back later without downloading it again.

Make Sure the New Configuration Is Active

Seeing a configuration in the list only means it was saved. Return to the configuration page, select the new entry, and tap Apply or Set as current if needed. Once you see a check mark, the configuration name, or an active status, open the Proxy page and confirm that its policy groups or nodes appear. Some clients initialize the Proxy page only after connecting. If so, first check that the new configuration name appears on the main screen, then verify the groups after the core starts. If the page still shows the old group names, return to the configuration page and make sure you applied the new configuration rather than just opening its details.

If the import fails to download, first make sure your device is online, check that no characters are missing from the URL, and confirm the subscription hasn’t expired. If the download completes but parsing fails, make sure you have a Clash YAML configuration supported by the client—not an account login page, a generic share link, or a subscription format intended for another client. For a local file error, check whether the message points to a specific line. If you edited the file, try importing an untouched copy. See the configuration reference for field formats and indentation rules.

Step 02

Choose a Proxy Mode and Policy Group

Find the mode selector on the main screen or Proxy page and set the proxy mode to Rule. Rule mode checks requests handled by the client against the rules in the current configuration, in order. Requests matching a direct rule connect directly; requests matching a policy group are routed according to that group. For your first setup, keep the subscription’s original rules rather than editing the entire file just for a test. That way, when you see a result in the connection list, you can check the original configuration to understand why it happened.

If the interface also offers Global and Direct modes, don’t confuse them with the connection toggle. Global mode applies the global policy to requests that reach the client; it doesn’t automatically route every app on your device through the client. Direct mode sends those requests straight out. The toggle controls whether traffic reaches the client; the mode determines how the client handles it. If changing the mode has no effect, first confirm the current configuration is applied, then check whether the client only allows mode changes while the core is running.

Choose a Test Path You Can Reproduce

Next, expand a policy group on the Proxy page. Group names come from the configuration, and not every subscription uses a name like “Proxy Selection.” If you see both manual and automatic selection groups, use a manual group for your first test. Select an available node, close the group details, then open them again to make sure the selection stayed in place. If the group lists another group rather than nodes, keep expanding until you see the actual options. Changing a group affects only requests routed to it; it won’t change traffic that already matches a direct rule.

Note the mode, group name, and selected node. Choose a test domain that the configuration is expected to route through a proxy. If it has a clear direct rule too, choose a second domain that should connect directly for comparison. If you’re unsure which domains belong in each category, read rule syntax and matching order, then return to the client. The Proxy page is now set up, but whether browser requests reach the client depends on the connection toggle in the next step.

Step 03

Connect and Route Traffic

Desktop: Start with the System Proxy

Return to the client’s home screen and confirm the correct configuration is selected and the core is running. If the client has a separate start button, start the core first; some clients start it automatically when you apply a configuration. Then enable the system proxy and leave the client running in the background. For your first test, use a browser that follows system proxy settings, and make sure no browser extension or custom proxy setting is overriding them. Simply opening the client or selecting a node won’t make your browser use the proxy.

On desktop, the system proxy is a good first way to test a browser. An app may use its own network settings, so enabling the system proxy doesn’t guarantee that the app will route through the client. In that case, complete the browser test below first to confirm the configuration works, then check whether the app has its own proxy setting or requires a different client routing method. For your first test, don’t enable both the system proxy and TUN. Change one setting at a time to make it easier to identify where traffic is going if something goes wrong.

Mobile: Approve the System VPN Prompt

Return to the client’s home screen, make sure the configuration you just imported is selected, and tap Connect or the start toggle. The first time you connect, the system will usually ask for permission to add or enable a VPN configuration. Confirm the request came from the client you’re setting up, approve it in the system prompt, then return to the client and wait for the status to change to Connected. Your device may show a VPN icon, but that only means the system tunnel is active—it doesn’t prove a particular site is using the expected proxy node.

If the client disconnects immediately, check whether another VPN is already running. Disconnect it and try again only if you’re sure it’s safe to interrupt; on a managed device, follow your administrator’s instructions. If a desktop client reports that a port is in use, quit any older proxy client still running in the background before changing ports, then restart the current client. If it still won’t start, check the logs for the first error and determine whether the configuration failed to load, the local listener failed to start, or the system denied connection permission. Wait until the client is stable before testing in a browser; there’s no need to change rules while reconnecting.

Step 04

Verify the Connection and Routing

Open the client’s Connection list and note the current time. In a new browser tab, visit the proxy test domain you chose earlier. Return to the list and look for a new entry matching the domain. If the client only shows active connections, an entry may disappear as soon as the page finishes loading. Switch back to the list while refreshing the page, or check the relevant entry in the client’s logs. Avoid simply refreshing an old tab: the browser may load the page from cache or reuse an existing connection, leaving no clear new entry to identify.

Once you find the entry, check which rule matched, which policy group handled it, and whether the final outbound was the selected node or DIRECT. These details may appear in a details panel or in separate columns. For the proxy test, you should see the expected group and outbound. If you also chose a direct-connect domain, visit it separately and confirm the entry shows a direct connection. A page loading only proves that the request got a response; it doesn’t replace these checks. In Rule mode especially, a direct connection isn’t necessarily an error—the key is whether it matches the domain’s expected route.

Troubleshoot by Symptom

If the browser loads the page but there’s no matching entry at all, first revisit the traffic routing steps: on desktop, check that the system proxy is still enabled and the browser follows system settings; on mobile, make sure the VPN is connected and the client hasn’t excluded the browser. Try another browser that follows system settings, or repeat the test in a new private window. Don’t assume that no entry means the node is down—the request may never have reached the client.

If you find the request but it matched an unexpected rule, check the domain in the entry first. A page often loads images or scripts from other domains; don’t use those subrequests to judge how the main site is routed. Once you’ve confirmed the domain, check the active configuration, current mode, and rule order. If the rule and policy group are correct but the request still times out, leave the other settings unchanged, switch to another node in the same group, and revisit the same domain. Change one thing at a time so you can tell whether the node is the problem or the original rule-matching assumption was wrong.

Your initial setup is complete once you can find the browser request in the connection log and confirm that both its rule and outbound route match expectations. Use the same method to test after updating a subscription or switching configurations. When you no longer need the proxy, turn off the system proxy on desktop or disconnect on mobile. For changes to rules, DNS, or configuration overrides, consult the configuration reference and keep a working copy before editing.