Initial Setup

Clash Setup Guide

Go from importing a subscription to confirming its outbound route. If the client is installed and you already have a working configuration, start with step one.

Start by finding the right instructions for your device. If you need to switch devices or haven’t installed a client yet, choose your platform on the downloads page: Windows, macOS, Android, iOS, or Linux. Menu names and locations vary across clients such as Clash Plus, Clash Verge Rev, and FlClash. The steps below include common labels and explain what you should see after each action. If a button has a different name, look for the same function and status instead.

Step 1: Import and Activate a Subscription

Open the client and go to Subscriptions, Configurations, or Profiles in the sidebar or bottom navigation. A subscription URL lets the client fetch a configuration; it isn’t the same as a service login or payment page. If the source offers multiple export formats, choose the one labeled Clash or mihomo. If the client only shows a plus button, open it and check whether it adds a subscription, imports a file, or creates a single node manually. For these steps, you need to import a full configuration.

Choose Import from URL or Add Subscription, paste the full URL into the address field, and make sure it has no extra spaces or line breaks. If there’s a name field, enter a label you’ll recognize later. Tap Import or Save and wait for the new entry to appear. If the client saved the URL but hasn’t fetched its contents, open the entry’s menu and tap Update. If you already have a local configuration file from a trusted source, choose Import from File; you don’t need to upload it to another website.

A new entry in the list doesn’t necessarily mean it’s active. Select it, or choose Use or Set as Current from its menu, and confirm that the checkmark or current configuration name changes. Then open the Proxy page and check that the proxy groups or nodes defined in that configuration appear. If you still see group names from the previous configuration, return to the configuration page and make sure you selected the new entry rather than just opening it for editing. Testing a new subscription with an old configuration can make a working node look unavailable.

If the import request fails, first make sure your device can access the internet on its current network. Then check that you copied the full URL and that the source still provides the subscription. If the download succeeds but parsing fails, check whether you chose the wrong export format or the URL returned a login page instead of a configuration. Fix that first—switching proxy modes won’t make an incompatible file work. Subscription URLs may contain access credentials, so hide the full URL before sharing a screenshot. Once the configuration is active and its expected contents appear on the Proxy page, choose a mode.

Step 2: Choose a Proxy Mode

Open the Proxy page or the mode selector on the home screen and look for Rule, Global, or Direct. For a first setup, start with Rule. In this mode, connections handled by the client are matched against the configuration’s rules in order. The result determines whether a connection goes direct, uses a proxy group, or is rejected. After selecting Rule, make sure the mode selector shows it. Before moving on to system settings, check which outbound route the proxy group referenced by the rules is using.

On the same page, find the manual selection group provided by your configuration. Group names vary; it may not be called Node Selection or Proxy, and it may not appear at the top. Open the group and, if it lists selectable nodes, choose the one you want to use and confirm the selection marker moves. Some groups list another group or a Direct option rather than individual nodes. If you select another group, check its current selection too. For groups managed by automatic testing or failover, keep the existing strategy and check which route it actually uses during verification. There’s no need to change every group.

Global mode can help you check whether a problem is caused by your rules. If the same request behaves unexpectedly in Rule mode, confirm that the Global group has a route selected, run a comparison, then switch back to Rule. Direct mode lets you check whether a site opens without using a proxy node. These modes only determine how the client handles connections it receives. Switching to Global doesn’t mean every app on your device will send traffic to the client, and switching to Direct doesn’t turn off the client’s system proxy setting.

If the Proxy page offers a latency test, you can try it on an individual candidate node. A successful result only shows that the node handled the test request sent by the client at that moment. It doesn’t replace the browser test, and you don’t need to keep switching nodes to chase a lower number. At this point, the configuration, proxy mode, and manual group selection are set. Next, you’ll route traffic from apps on your device through the client.

Step 3: Connect

On desktop, keep the client running and find System Proxy on the home screen, in settings, or in the system tray menu. Turn it on. If the client has a separate core startup toggle, start the core first, then enable the system proxy. Check that the toggle stays on and that no port conflict or permission warning appears. System proxy works with apps that read the system proxy settings, so a browser is enough for your first test. If your desktop client only provides a local listening address and has no system proxy toggle, follow its instructions to configure a test browser. Don’t copy another client’s port settings.

On Android and iOS, tap Start or Connect on the home screen. The first time, your device may ask to establish a VPN connection or add a VPN configuration. This is how mobile operating systems route traffic through the client. Make sure the prompt names the client you just opened, then allow the connection. Return to the app and check that its status changes from disconnected to running. If the button immediately switches back, check the app’s error message and see whether another VPN is already running. Devices managed by a workplace or school may have additional network requirements; check the device management instructions if you’re blocked by permissions.

For your first test on desktop, you don’t need to enable both System Proxy and TUN mode. TUN routes traffic through a virtual network interface and can help with apps that don’t read system proxy settings, but it changes how traffic enters the client and may require extra system permissions. Start by testing an app that reads the system proxy setting, then decide whether you need TUN. If another proxy tool is also changing system settings, check which tool currently handles traffic. Closing its window may leave a background service running, so confirm that its relevant toggles are off in the original app.

After connecting, don’t judge the result by a page that’s been open for a while or a video that’s already playing; they may be using an existing connection. Keep the client running and open a new page in your browser. If needed, fully quit and reopen the browser first. A toggle or system icon only shows that the routing mechanism is enabled; it doesn’t tell you which route a request took. Next, match the request you just made with a record in the client.

Step 4: Verify the Connection

Open the client’s Connections, Active Connections, or Logs page, then visit a familiar site in your browser. Note the domain and look for a record at the same time in the client. Some clients only show connections that are still open, so a short request may disappear when it finishes. If you can’t find it, open the Logs page first and make the request again. A page loading is the first check; finding its matching record in the client confirms that the request reached it.

Next, check the matched rule and outbound route in the record. In Rule mode, test one site that should connect directly and one that should use a proxy group, based on your configuration. If the first shows Direct or DIRECT and the second shows the expected proxy group or node, you can tell that rules are routing traffic rather than sending every request through the same route. If the result differs from what you expected, check whether the logged domain belongs to the main page or to a resource such as an image or script. Different requests from the same page may match different rules.

If the client has a record but the request fails, check whether it matched Direct, was rejected by a rule, or was sent to a node that timed out. Only in the last case should you try another candidate node in the same group and retry the same page. If there’s no client record but the browser can still open the site, rule out cached content and check that the browser isn’t overriding system settings with its own proxy configuration. If the browser test works but another app has no record, first check whether that app reads system proxy settings. Don’t reimport a configuration you’ve already confirmed works.

After verification, you can keep the current configuration and rule mode. To disconnect temporarily, turn off the system proxy you enabled on desktop or tap Disconnect on mobile, then open a new page to confirm your device is back to the expected network setup. When you change subscriptions or proxy groups, repeat the connection check for the change you made. For port conflicts, configuration updates, or permission issues, see the FAQ. To compare protocols, core differences, or subscription formats, read the technical reference.