Initial setup

Clash Beginner’s Guide

For your first setup, you only need to do four things: import a subscription, choose a proxy mode, connect, and check how traffic is routed. If the client is installed and your subscription works, allow about ten minutes for this check. Haven’t installed a client yet? Choose a package for your device on the downloads page. If it’s already installed, start with the import step.

Step 1: Import and activate a subscription

Get a subscription link explicitly marked as compatible with Clash or mihomo. A login URL, a link for sharing a single node, and a full subscription are not interchangeable: a page that opens in your browser may not be readable as a profile by the client. If your provider gives you a local YAML file, choose “Import from file” instead of entering its filename in the URL field. Subscription URLs may contain access credentials, so blur the entire address bar before sharing a screenshot or asking for help.

Open the client’s “Profiles” or “Subscriptions” page. Look for a plus button in the upper-right corner, or a button labeled “New” or “Import.” Choose “Import from URL” and paste the complete subscription link. If there’s a name field, add a label that helps you identify it. After you click “Save” or “Download,” stay on the page until a profile appears in the list. Some clients save the entry first and download its contents when you choose “Update” from its menu. If you see a name but no profile contents, check for an update prompt or error.

Next, set the new entry as the active profile. Click the entry or choose “Enable” or “Set as active profile” from its menu, then check that the selection indicator has moved to it. Open the “Proxies” or “Proxy Groups” page and look for the groups and options provided by this profile. A new subscription in the list only means the client has saved it. Seeing its proxy groups change confirms that the running profile has switched. This step is easy to miss when your device already has multiple profiles.

If the download fails, first check that the link is complete, your device is online, and the provider still allows access to it. For a parsing error, make sure you have a compatible profile—not a login page or a format intended for another client. Don’t enable the system proxy just to fix an import error; the client may still be using the old profile. Once the new profile is active and its proxy groups appear on the Proxies page, choose a mode. For help identifying the error, see the installation and configuration section of the FAQ.

Step 2: Choose a routing mode

On the “Proxies” page or home screen, find the mode selector and choose “Rule” for your first setup. Rule mode checks connections handled by the client against the rules in the profile, in order. When a rule matches, its specified policy determines how the connection is handled. For example, a connection matched by DIRECT goes straight out from your device; one matched by a proxy group uses that group’s current selection. Start with the rules included in your subscription so you can focus on getting the profile and connection entry working. There’s no need to edit YAML yet.

Next, check the proxy exit. In the proxy groups loaded earlier, find the group used for proxy traffic. It might be called “Proxy,” “Select,” or something specific to your provider. Open it and make sure a working node is available or the profile’s automatic selection is active. If the group contains nested groups, open them to check the final selection. A rule routing traffic to a proxy group doesn’t guarantee that the group uses a remote node: if its current selection is DIRECT, the traffic still goes direct.

If the client offers a latency test for nodes, use it to rule out candidates that fail right now, but don’t chase the lowest number. A latency result only shows that the node reached the configured test address during that test. It doesn’t replace a real browser visit or confirm that a routing rule matched. For your initial setup, make one clear selection. If a later test fails, check the connection log before switching nodes.

“Global” generally sends connections handled by the client to the global policy instead of checking them against the existing routing rules one by one. “Direct” sends those connections straight out. Neither mode is a connection toggle, and changing modes alone doesn’t route all device traffic through the client. To compare behavior temporarily, change only the mode, then switch back to “Rule” when you’re done. Once you can see both the current mode and the proxy group selection, you’re ready to enable the network entry on your device.

Step 3: Enable the system proxy or VPN

On desktop, check the client’s status on the home screen or in Settings. If it asks you to start the service first, click “Start” and wait until it shows as running. Then enable “System Proxy.” This setting usually updates your system’s proxy configuration so browsers and other apps that follow it send connections to the client. If the browser you’re using for the test has a proxy extension or separate proxy settings, check whether it follows the system settings; otherwise, your test may use a different setup.

Keep TUN off on desktop for now. The system proxy and TUN are two different ways to route traffic, and you don’t need to enable both. First, use a browser to check that the subscription, proxy groups, and rules work. If you later need to handle apps that ignore the system proxy, read the advanced guide to understand TUN permissions and when to use it. Enabling both routing methods during your first connection makes it harder to tell where traffic is entering the client.

In a mobile client that uses the system VPN, return to the home screen and tap “Connect.” The first time, the system may ask to add a VPN configuration or allow the connection. Make sure the prompt comes from the client you just started, then follow the system instructions to grant permission. Return to the app and check that it says “Connected.” If a work VPN or another network tool is already running, check whether you’re allowed to disconnect it under your device management policies; don’t overwrite existing settings. If authorization isn’t complete, check the app status and system prompt instead of repeatedly importing the subscription.

Once connected, keep the current profile, mode, and node in place while you test. If the desktop toggle immediately switches off or the mobile app shows Disconnected, check the client’s home screen and logs for startup messages to confirm the service is running. The system proxy toggle or VPN indicator only shows the status of the network entry; it can’t tell you how a particular site was routed. In the next step, match a new request to its connection record.

Step 4: Test your connection and routing

Open the client’s “Connections” or “Logs” page. In your browser, visit one site that should go direct and one that should use the proxy according to your profile. Choose sites you can normally access and whose expected routes you can determine from the rules. If you’re unsure what the profile specifies, check how the relevant domain matches in the client’s rules. Note the domains and approximate time of each visit; don’t rely on old connections. If a page is cached, refresh it and check for a new record.

Find the records that match the time of your visits, then check the destination, rule, and exit in that order. First, confirm the destination is the domain you just opened, not an image or another resource requested by the same page. Then check whether the matched rule is a specific rule or the final MATCH rule. Finally, inspect the policy chain or exit. If the expected direct request shows DIRECT and the expected proxy request shows the relevant group and node—and both pages load—the basic routing check is complete. A page loading on its own doesn’t tell you whether it went direct or through a proxy.

If the result doesn’t match your expectations, use the connection record to investigate instead of reinstalling the client. If there’s no record for the destination, check for filters in the connections list, make sure the browser sent a new request, and confirm it uses the system proxy. If a record appears with the wrong rule, check whether an earlier rule matched in the rules list. If the rule is correct but the request fails, return to the Proxies page and check the group’s current selection. Change one node at a time and retry the same address. If your browser reports a certificate error, don’t bypass the warning; continue with the Troubleshooting section of the FAQ.

When you’re done testing, turn off “System Proxy” on desktop before quitting the client. On mobile, tap “Disconnect” and confirm that the system VPN status has cleared. Visit a site that normally works without a proxy to make sure your regular connection is back to its previous state. Next time you use the same subscription, you usually only need to check that it’s still active, switch back to Rule mode, and enable the connection entry—there’s no need to import it again. For subscription updates, profile migration, or rule changes, see the routine maintenance chapter in the guide.