Getting Started · Windows 11

Set Up a Clash Subscription and Verify the Connection

Import and enable a subscription, choose Rule mode, and turn on the system proxy. Then send a browser request and check in the client which route the connection actually took.

Before you begin: If you haven't installed a client yet, choose one from the Windows downloads. In Windows, go to Settings → System → About and check “System type”; download the x64 or ARM64 package offered for your system. Have a subscription URL you are authorized to use that supports Clash or mihomo. The client and proxy service are separate: installing the client does not provide working nodes.

1. Import and Enable a Subscription

Open the client and look for “Profiles” or “Subscriptions” in the sidebar. Click “New,” “Import,” or the plus sign by the input field, then choose an option such as “Import from URL.” Copy the full subscription URL, paste it, and submit. If the client asks for a name, enter a short label you can recognize. Wait for the new entry to appear before continuing; don't submit repeatedly while it loads. Subscription URLs may contain access credentials, so don't post them in public comments, screenshots, or support tickets.

An entry appearing in the list only means the subscription was saved; it may not be active yet. Select the new entry, or choose “Use,” “Enable,” or “Set as active profile” from its action menu. Check that the active-profile indicator moves to the new entry, then open “Proxies” and make sure the profile's proxy groups and available nodes appear. Note the profile name the first time you set it up. When switching subscriptions later, keep the previous working profile so you can switch back if needed.

The URL returns content, but the client can't read it

If the client says the URL is invalid, check that you copied it from beginning to end and didn't include a line break or quotation marks. If parsing fails, go back to your provider's dashboard and make sure you copied the Clash or mihomo configuration link, not an account or payment page or a link intended for another client. A URL opening in your browser doesn't mean it returns a configuration; some links show a login page, which the client reports as a format error. Use the correct link from your provider instead of guessing at URL parameters.

If your provider supplies a local YAML file, choose “Import from file” and select it. You still need to enable the profile after importing it, and unlike a subscription, it won't update automatically. First check that the expected entries appear on the Proxies page. If the profile is active but only shows DIRECT, you may have selected the default profile, or the file may contain rules but no proxy nodes. Once the proxy groups appear, move on to choosing a mode.

2. Choose a Proxy Mode

Open “Proxies” and set the routing mode to “Rule.” Some clients put the mode at the top of the “Overview” page or under “Routing mode” in the tray menu. Rule mode routes each connection according to the active profile. Some requests go through a proxy group; others use a direct connection. So seeing DIRECT in Rule mode isn't necessarily a problem—it depends on whether that request is supposed to go direct.

After choosing a mode, find the proxy group that handles forwarding on the Proxies page. Group names are set by the profile author: it might be called “Proxy,” or named for a service or purpose. There is no fixed name to look for. In a manual selection group, expand it and choose an available node. Check that the selection indicator or current option next to the group name changes. If the selected item is another group, open that group to see the final selection. For automatic testing or failover groups, keep the default selection for your first test and check the outbound route shown by the client.

“Global” sends requests that reach the core through the global outbound selection; make sure the global group is set to a node, not DIRECT. It won't make apps that aren't sending traffic through the client use a proxy. “Direct” is useful for checking whether a problem occurs only on the proxy route. For your initial setup, test with “Rule” and change one thing at a time—changing the mode, rule order, and node together makes it hard to identify the cause of a failure. For the distinction between proxy groups and rules, see the Concepts at a Glance.

At this point, you've set how traffic is routed after it reaches the core; the browser still needs to send requests to the core. Next, turn on the system proxy without changing the mode or group you just selected.

3. Enable the System Proxy and Connect

Return to “Overview” and make sure the core is running. If your client requires manual startup, click “Start” and wait for its status to stabilize, then open “Settings” and enable “System proxy.” If there is no toggle in the main window, open the Windows taskbar notification area, right-click the client icon, and select “System proxy” from the menu. Keep TUN mode off for your first test; you don't need to enable “Allow LAN.” This test is only for apps on this PC that follow the system proxy settings.

Once the toggle is on, check the system proxy status under Windows Settings → Network & Internet → Proxy. Clients using a manual proxy usually point Windows to a local listening address and port. If the client uses an automatic configuration script, check its status accordingly; there's no need to copy a port manually. If your PC is managed by your organization or another proxy tool is running, don't overwrite the existing settings. Find out who manages them first to avoid two programs changing the proxy address.

Use a browser that follows the Windows system proxy settings. Open “Connections” or “Logs” in the client, then open a new browser tab and visit a site that normally loads and has an easy-to-recognize domain. Don't rely on a page that was already open: the browser may show a cached copy or reuse an existing connection. If you don't see a recognizable new request, try a site you haven't visited recently or fully close and reopen the browser before testing again.

If the system proxy toggle switches itself off immediately, check the core status and error messages before trying TUN. If the error says a port is already in use, check whether another client instance or proxy program is listening on the same port. Quit any instance you no longer need and restart the current client. If you need to keep both programs, assign them different ports. Once the toggle stays on, continue to verification.

4. Verify That Traffic Takes the Expected Route

A page loading successfully is only the first check. Return to the client and find the entry for the domain you just visited on the “Connections” page. Check the matched rule, proxy group, and final outbound route. If the interface doesn't show every field, check the final route first, then use the rule name to understand why it was selected. If the connection ended too quickly to find, open “Logs” and visit the site again, then compare the domain and request time. A page may also request static assets, login services, and other domains; start with the record for the main site.

If the tested domain should use a proxy according to your profile, find its proxy group and node in the connection record, and confirm the page request completed. If the rule says it should go direct, seeing DIRECT is expected—but it doesn't verify that a proxy node works. You can also test a domain that the rules clearly send to a proxy group. Whether a page opens can't tell you if it went direct or through a proxy; a node speed test can't replace verifying an actual request.

Narrow Down the Problem Using Connection Records

No matching record: First make sure the visit generated a new request. Then check that the system proxy is still on and that the browser isn't overriding it with an extension or its own proxy settings. If browser requests appear but traffic from a desktop app doesn't, check whether the app uses the Windows system proxy or has its own proxy setting. Different results between apps don't mean the entire subscription is broken.

A record appears, but the result is unexpected: If the outbound route is direct, check which rule matched, then verify that the right profile and proxy group are selected. If the request used the selected node but timed out, try another node in the same manual selection group and retry with the same domain; leave the other settings unchanged. If the browser shows a certificate error, don't bypass the warning or enter account details on the error page. See the certificate error troubleshooting guide to check whether the issue is the site's certificate, your system clock, or the connection route.

Finish Testing and Restore Your Settings

Once the outbound route is as expected, you can keep using the active profile. If you were only testing, turn off the system proxy in the client before exiting. Closing the window may not quit the client; some continue running in the tray. Finally, return to the Windows proxy settings and confirm they match their previous state, especially if the PC already used a manual proxy or automatic configuration script. For TUN, DNS, and mixed-port concepts, see the Concepts at a Glance. For protocol selection or configuration and core compatibility, see the Protocol Guide.