First Connection · 4 Steps

Clash Setup Guide

Import a subscription, choose a routing mode, and start the connection. Then visit a website to confirm traffic is taking the right route.

With the client and subscription ready, you can finish these steps in about 10 minutes. Haven’t installed a client yet? Choose one for your device on the download page, install it, then come back.

Step 1 of 4

Import and Enable a Subscription

Open the client and go to the Subscription or Configuration page. If your provider gave you a Clash or mihomo subscription URL, choose an option such as Add Subscription or Import from URL. Paste the full URL into the address field, then click Import or Save. If the client has separate name and URL fields, enter a label you’ll recognize in the name field and paste the URL into the address field. Subscription URLs often contain personal access tokens, so hide them in screenshots and never post the full URL in a group chat or public forum.

If you have a local .yaml or .yml configuration file, look for Import from File on the same page and select it using the file picker. A website login URL, account portal URL, or link to a single node may not work with the full subscription import option. If you see a format error, return to the source and check what format you downloaded or copied, then make sure the client supports it. On mobile, save files received in a chat app to your device first, then select them from the client so you can check the filename and extension.

Select the Configuration You Just Added

Return to the list and find the item you just added. On desktop, clicking its configuration card usually switches to it. On mobile, you may need to tap the circle beside it or open the item and choose Enable. Once you see a selected indicator or a label such as Current Configuration, open the Proxy page and check whether the proxy groups or nodes have loaded. An item in the subscription list only means the client saved the configuration; seeing its contents on the Proxy page is the signal to continue. If the list already contains an older configuration, note its name so you can switch back if needed.

If the import fails, first check that regular websites load, then make sure the URL hasn’t been truncated, pasted with a line break, or expired. If the import succeeds but the Proxy page still shows old content, return to the Configuration page, confirm the right item is selected, wait for it to finish loading, and check for parsing messages. Sort this out before enabling the system proxy. If you see a specific update error, check the FAQ for possible causes. Once the Proxy page shows the new content, choose a mode.

Step 2 of 4

Choose a Proxy Mode

Keep the configuration you just selected enabled and open the Proxy page. Look for Rule, Global, or Direct at the top of the page or in its menu. For your first connection, choose Rule mode. It matches requests against the rules in your configuration and applies the specified policy. In the same browser, one website may connect directly while another uses a proxy; that’s expected with rule-based routing. If the interface is in English, Rule mode is usually labeled Rule. Check which option is selected after tapping it, and don’t confuse a group’s Direct option with the global mode switch.

Next, open the proxy group that handles traffic on the same page. The configuration determines the group name; it might be called Proxy, Node Selection, or named after an app or use case. When expanded, a group may show individual nodes or another proxy group. If it’s a manual selection group, choose a node that’s currently available. If you open another group, check which option is selected there. An automatic group follows the configuration’s rules for choosing a node, so you can leave its default selection in place for now.

Modes, Proxy Groups, and Nodes

The mode determines how requests are handled. A proxy group determines where requests assigned to it go next. A node is the actual proxy endpoint. If a group shows DIRECT, traffic assigned to that group can connect directly. If that’s the group’s current selection, enabling the client doesn’t mean those requests will use a node. Likewise, selecting a node doesn’t mean device traffic is going through the client—the connection switch comes in the next step.

There’s no need to keep switching nodes just to find the lowest latency. A client’s latency test only reflects a single test to a particular destination; it can’t replace a real website visit. You can use Global mode later to help troubleshoot: if a site works only in Global mode, go back and check the matched rule and group selection. Remember to switch back to Rule mode afterward. For more on engines, subscription formats, or protocol differences, see the technical reference. For now, stay in Rule mode and start the connection.

Step 3 of 4

Enable the Proxy Connection

Desktop: Return to the client’s home screen or open Settings, then find and enable System Proxy. If the client has a tray menu, click its taskbar or menu bar icon and check that the same option is enabled there. Some clients also have a separate Start Core or Connect control. If the client says the core isn’t running, start it as prompted, then make sure System Proxy is still enabled. An open client window, a selected configuration, and an enabled system proxy are three separate things—check them in that order.

The system proxy mainly serves apps that follow your device’s system proxy settings. Start by testing with a regular browser, and leave the TUN mode setting as it is for now; for a first test, you only need to verify one connection path. If the system proxy switch turns itself off as soon as you enable it, read the client’s message and check whether another proxy app is managing the same setting. If your device is managed by a school or employer, follow its IT policies when you encounter permission restrictions. Don’t change existing network policies just to test the connection.

Mobile: Return to the client’s home screen and tap Connect or Start. The first time, your device may ask to add a VPN configuration or establish a VPN connection. Confirm the request came from the client you just opened, then allow it. Return to the home screen and wait until the client shows that it’s connected. Some devices display a VPN icon in the status bar. This means the system connection is established, but check the next step to confirm traffic is being routed according to your chosen rules. If a work VPN is already active, make sure it’s okay to switch before testing this connection.

Leave the Current Settings Alone for Now

Don’t change startup, background activity, or other network settings yet. For a first test, you only need one enabled configuration, a clearly selected mode, and the connection control for your device. When you’re done, turn off System Proxy in the desktop client or tap Disconnect on the mobile home screen. That makes it easier next time to tell whether you’re reconnecting the device or changing the subscription configuration.

Step 4 of 4

Check That the Connection Works

Open the client’s Connections page. If there’s no connection list, look for Logs or a similar option. Then open a new browser tab and visit a website that normally loads. Once it opens, check the client while the log entry is still there and look for the site’s main domain. The connection list may also show domains for images, scripts, and other resources loaded by the page; those are part of the same visit. On mobile, a short-lived connection may have ended by the time you switch back to the client. Check whether the log retains it, or reload the page and look again right away.

Once you find the entry, check which rule matched and whether the request used a direct connection or a proxy group. If the domain you chose to test is meant to connect directly, seeing DIRECT is correct. To confirm that a node is handling traffic, visit a site that should use a proxy under your current configuration. Check that its request went to the expected proxy group, and confirm the node in use if the interface shows it. A page loading, a lit status indicator, or a successful latency test alone can’t tell you which route that visit actually took.

Use the Connection Log to Find the Next Step

No matching entry: First make sure the browser sent a new request. Try another site that normally loads or reload the page. If there’s still no entry, return to Step 3 and check that System Proxy or the mobile connection is still enabled. On desktop, also make sure the app you’re testing follows the system proxy. Entry found, but traffic took the wrong route: Return to Step 2 and check Rule mode, the matched rule, and the proxy group’s current selection. Change one thing at a time, then revisit the same URL to compare results. Don’t switch modes, change nodes, and alter the connection method all at once.

The log shows the expected policy, but the page won’t load: First visit a site that should connect directly to confirm your internet connection works, then try another available node in the same group. If the problem persists, note your operating system, client name, the step where it failed, and a brief error message, then continue troubleshooting in the FAQ. If both types of requests are handled as expected, your first connection is complete. Use the same checks after updating a subscription or changing nodes to tell whether the configuration failed to load, the device didn’t connect, or a rule sent traffic down a different route.

Download the Latest Clash Version