QUICKSTART / FIRST CONNECTION

Clash Setup Guide

Import a subscription, choose Rule mode, connect, then check routing with two requests.

Platform note: On desktop, subscriptions are usually imported under “Profiles,” the mode is selected under “Proxy,” and the system proxy is enabled in “Settings” or on the home screen. On Android and iOS, the home screen’s “Start” or “Connect” button usually handles traffic; the first time you connect, the system will ask you to authorize a VPN configuration. Different clients may call the same page “Subscriptions,” “Profiles,” or “Profiles.” If you can’t find the right option, check the cross-platform installation and setup guide first, then return to the steps below.

Before you begin, make sure the client opens correctly and have a subscription link that your provider explicitly identifies as compatible with Clash or mihomo. If your provider gave you a local profile file instead, choose “Import from file” in the first step; the remaining steps are the same. For your first setup, keep the default ports and avoid changing DNS, rules, and traffic interception settings at the same time. That way, if something goes wrong, you’ll know which step to check.

STEP 01 / PROFILE

Import a subscription and enable the profile

In the client, open “Profiles” or “Subscriptions” and look for “New,” “Add,” or “Import.” Some clients show a URL field right away; others ask you to choose “Remote” or “Import from URL” as the source first. Paste the full subscription link. You can add a descriptive name to tell it apart from other profiles, then click “Download” or “Save.” Don’t copy only the part before the question mark—the parameters at the end may be needed to identify the subscription. Subscription links may contain account credentials, so don’t share the original link in a group chat or paste it into a public converter site.

If your provider gave you a local YAML file, choose “Import from file” and open it in the system file picker. Don’t paste the file contents into a URL field or use the client’s subscription management page address as the subscription link. If your provider lists both a dashboard address and a subscription address, return to the dashboard and look for an option clearly labeled “Copy subscription link.” Keep your existing profile so you can compare it with the imported one. In particular, don’t delete the profile that’s currently working before you’ve enabled the new one.

Downloading and Enabling Are Separate Steps

After a successful import, a new entry appears in the profile list. Select it, or use the adjacent menu to choose “Use,” “Enable,” or “Set as current.” Check the current profile name, selection indicator, or on-screen status—don’t rely on the download time alone. Then open “Proxy” or “Proxy Groups” and make sure the groups from this profile appear and can be expanded to show their members. If you still see the previous profile, go back to the list and select the new one. If the client has an “Apply” button, click it as well.

If the new entry doesn’t appear, first check your device’s time and basic network connection, then verify where you copied the link from and review any error message. If the link has expired, refresh it in your service dashboard. If parsing fails, check that your provider gave you a compatible profile—not a regular webpage or a format intended for another client. If the subscription appears but has no members, check whether it hasn’t been enabled yet or is enabled but contains no nodes. See the FAQ for help with update intervals, certificate errors, and timeouts. Decide how to route traffic only after the profile is enabled and its members are visible.

STEP 02 / RULE

Choose a Proxy Mode and Node

On the “Proxy” page, find “Mode” and select “Rule” for your first setup. Some clients label it Rule. This mode checks connections against the rules in the current profile, in order, and sends each connection to the policy specified by the matching rule. A match on DIRECT connects directly; a match on a proxy group lets that group determine the outbound route. If the profile ends with MATCH, connections that don’t match earlier rules use this fallback. The fallback route varies between subscriptions, so don’t guess based on the type of site.

“Global” and “Direct” are useful for comparison, but they don’t need to be your default for a first setup. Global mode sends traffic entering the client to the global policy; the selected outbound route still depends on that policy. Direct mode connects without using a proxy node. The mode only controls how the client handles traffic that has already been routed through it. Selecting “Rule” doesn’t enable the system proxy or a mobile connection, and switching to Rule mode won’t create routing rules if the profile doesn’t include them.

Select the Policy Group Used by Your Test Request

If your client has a “Rules” page, find a domain rule that clearly points to a proxy group. Note the domain and group name so you can use them in the final check. Go back to “Proxy” and expand that group. In a manual group, select a node directly. An automatic group usually chooses a member using the check method specified in the profile, so there’s no need to switch back just because the current selection changes. If the group contains other groups, check the current selection in those too. Changing a similarly named group that isn’t referenced by the rule won’t affect your test request.

If the client offers a latency test, run it once for the group to quickly rule out candidates that can’t reach the test address. Low latency doesn’t prove that a webpage will load: the test may use a different address from the one you’re about to visit. For the first verification, keep one member selected and leave the mode unchanged. To compare nodes later, change only the member—not the rules and port at the same time. Once you’ve confirmed the profile, mode, and proxy group, enable traffic routing.

STEP 03 / CONNECT

Enable the Connection

On desktop, check the home screen or tray menu to make sure the client’s core is running, then enable “System Proxy.” If the toggle switches back off immediately, check the error message instead of clicking it repeatedly. For clients without a built-in toggle, open your operating system’s network proxy settings and enter the proxy type, address, and port shown in the client. mixed-port is a mixed proxy port, and its value isn’t necessarily the same across profiles. external-controller is a control interface; don’t enter it as your browser’s proxy port. Once it’s set up, test with a browser that follows the system proxy. Avoid using a terminal or an app with its own proxy settings for now.

On mobile, return to the home screen and tap “Connect” or “Start.” The first time you connect, the system may ask to add a VPN configuration. Check which app is shown in the prompt before confirming. Return to the client and wait for the status to change from “Connecting” to “Connected”; a VPN indicator may also appear in the system status bar. If the connection drops after a permission prompt, check that you didn’t cancel authorization, then see whether another VPN service is already using the connection. If your device is managed by your organization, follow your administrator’s instructions and don’t disable required network services.

Use One Connection Method for Your First Test

For an initial desktop test, the system proxy is usually enough. If the target app doesn’t follow the system proxy, check whether the client supports TUN and what system permissions it needs. Before changing connection methods, note the original toggle states. Switch one setting at a time and retest with the same request to avoid changing the system proxy, TUN, and other proxy tools all at once. If your device already has working proxy settings, record the original address and port too, so you can restore them after testing.

If you see a port-in-use message, check whether another copy of the client is running or an old instance is still in the system tray even though its window is closed. Don’t terminate unfamiliar processes just to free a port. If you do need to change the port, first confirm that the core starts normally, then update any system proxy settings you configured manually. If the client manages the settings automatically, turn the system proxy off and on again and check the port. A connection toggle confirms only that traffic can enter the client—not that requests follow the expected rules. Verify that next using the connection log.

STEP 04 / VERIFY

Verify That Traffic Routing Works

Open the client’s “Connections” page, or check “Logs” if there’s no connection list. Open a new browser tab and visit the address you selected in step two that should go through the proxy. Choose a page you haven’t visited recently if possible to reduce the effect of cached data and existing connections. If the connection list supports search, filter by the target domain. If entries disappear quickly, start watching the list before refreshing the page. A page may redirect or request resources from multiple domains; focus on the domain you actually visited, not image or analytics requests.

When you find the entry, check the destination first, then the matched rule, and finally the policy group and visible outbound route. If the request matched the expected rule and the proxy group used the expected node, you’ve verified the proxy route. Then visit an address that the profile explicitly expects to connect directly and check whether its final policy is DIRECT. A page loading successfully doesn’t tell you whether it used a direct or proxy connection; a system VPN indicator doesn’t show which route the rules selected either. There’s no need to use a one-off public IP lookup instead of checking these two requests.

Use the Connection Log to Find the Problem

If no entry appears, return to step three and make sure the system proxy or mobile connection is still enabled. Then check whether the browser uses its own proxy or is reusing an existing connection. If an entry appears but uses the wrong policy, return to step two and check the current mode, rule order, and group selection. If it matched the fallback rule, first confirm that the actual destination domain is the one you expected. If the policy is correct but the page won’t load, keep the rule unchanged and test another node in the same group. If several nodes show the same kind of DNS error, check the network and DNS troubleshooting in the FAQ instead of reimporting the entire profile.

If both test requests behave as expected, keep the current profile and Rule mode. When you’re done testing, turn off the system proxy on desktop, restore any system settings you changed manually, then quit the client. On mobile, tap “Disconnect” in the client and confirm in the system status that the connection has ended. The next time you open the client, check the current profile and proxy group selection before connecting; you usually won’t need to import the subscription again. For help setting up TUN, managing rule sets, or changing DNS, see the cross-platform setup guide.