Windows 11 Guide
Clash for Windows
Import a Subscription and Configure the Proxy
Go from importing a profile to checking your first request. Start with the system proxy; consider TUN and startup settings only after confirming the basic connection path.
Import a Subscription
After opening the client, leave System Proxy off. Get a Clash configuration URL from your subscription provider, or locate a YAML configuration file saved on your computer. A subscription URL is not the same as a link for sharing a single proxy node: the URL should return a configuration the client can read, while a node link may not work in the original subscription field. If the service offers multiple formats, choose one explicitly marked for your client or core.
Click Profiles in the sidebar, paste the full subscription URL into the field at the top of the page, and click Download beside it. When the download finishes, a new profile should appear in the list. To import a local file, drag the YAML file onto the Profiles page and check the list. Download fetches the configuration; it does not reinstall the client or automatically route browser traffic.
Select the profile you just imported and check that it’s highlighted or marked as the active profile, then open Proxies. If the profile includes policy groups, their names should appear on the page. A profile that appears in the list but isn’t selected won’t replace the one in use. If you have several subscriptions, note the name of the profile you selected so you can identify its policy groups later. If two profiles have groups with the same names, return to Profiles to confirm which one is active; don’t rely on group names alone.
If the new profile doesn’t appear, start by checking the import message. For a download error, make sure the URL was copied in full, hasn’t expired, and is accessible from your current network. If the client reports a parsing error, check that the response is a configuration—not a login or error page. The discontinued original client won’t support fields added to newer cores. If your provider only offers a mihomo-specific configuration, switching to a compatible client is safer than deleting fields one by one. Subscription URLs may contain access credentials; don’t share them in public screenshots or with untrusted conversion sites. See the glossary for configuration formats and core terminology.
Choose a Proxy Mode
Once the profile is selected, click Rule in the mode selector at the top of the Proxies page. You can also open the client’s tray menu in the Windows notification area and choose the same mode. Both controls change the same setting. Rule mode is a good choice for your first test: in the final step, you can check both whether the request reached the client and which route the profile assigned to it.
In Rule mode, configuration rules determine where each request goes: through a proxy, directly, or nowhere if it’s rejected. Global mode usually sends requests that reach the client through the exit selected by the global policy, making it useful for a quick comparison when you suspect a rule is causing different results. Direct connects requests that reach the client without using a remote proxy. It doesn’t turn off the system proxy: apps may still send requests to the client, which then connects directly. All three modes apply only to traffic that reaches the client.
With Rule selected, check the current choice in each policy group. Group names come from the subscription and may not include “Proxy Select.” If a group allows manual selection, expand it and choose an exit your provider marks as available; note your choice. Automatic groups typically choose an option for you, so you don’t need to edit the configuration for this first test. There’s no need to switch every group to the same node just to test the connection: a group’s selection is used only when a request matches that group.
If a destination later works in Global mode but not in Rule mode, note the exit used in each mode first. Different exits can explain the difference; comparing both modes with the same exit makes the result easier to interpret. For now, leave Rule selected. Don’t change DNS or enable TUN at the same time; the next step checks only the connection between Windows and the client.
Enable the System Proxy
Check the Local Listening Port
Click General in the sidebar and check Port. Many configurations use 7890, but this isn’t a fixed value. In another client, use the HTTP or mixed-proxy listening port shown in its settings. Don’t use a SOCKS-only port or an external controller port as the Windows HTTP proxy port. For local use, leave Allow LAN off; your local browser doesn’t need LAN access.
If the interface or logs say the port is already in use, check whether another proxy client is running. Quit any old client you no longer need, then check that the active client is listening. If you need to change the port, do so in the current client’s settings, re-enable the system proxy, and confirm Windows now shows the new port. Update any apps where you entered a proxy address manually. Changing the number in Windows alone won’t change the port the client is actually listening on.
Route Windows App Traffic Through the Local Proxy
Keep TUN Mode off, turn on System Proxy in General, and leave the client running. In Windows 11, open Settings → Network & internet → Proxy and check whether the manual proxy section shows the local address and port set by the client. If your computer already has a work proxy configured, note its current settings and follow your organization’s network policies; don’t overwrite them as a troubleshooting step.
The system proxy mainly affects apps that follow Windows settings. Browser extensions with their own proxy settings, command-line tools, and some desktop apps may use a different route, so use a browser that follows the system proxy for your first test. If the browser has a separate proxy configured, make sure it doesn’t override Windows before sending a new request. If an app doesn’t use the system proxy, check its connection settings first. If you confirm that you need TUN, see the TUN and DNS sections in advanced usage.
Verify the Setup
Open a new browser tab and visit an HTTPS site you can normally access, then switch straight to Connections in the client. Find the entry for the same destination domain and check the matched rule, policy group, and exit. A page loading successfully only confirms access; the connection log helps show whether the client connected directly or forwarded the request through the selected proxy. Short-lived requests may disappear quickly, so open another page and check the log right away.
Next, test a destination that the configuration explicitly routes through a proxy. If the log shows DIRECT, the request reached the client but matched a direct-connection route. Check the rules and group selection rather than toggling the system proxy again. If the log shows the expected proxy exit and the page loads, the initial setup is complete. The two tests don’t need to produce the same result: in Rule mode, different destinations can use different routes.
If the browser shows an error, first check whether ordinary websites are also unavailable. Temporarily turn off System Proxy and retry the same request in the same browser. If it works with the proxy off but there’s no corresponding entry when it’s on, check whether the browser follows the system proxy, whether Windows has the correct address and port, and whether the client is listening. If a log entry appears but only proxy-routed destinations fail, check the policy group selection and errors in Logs. If ordinary sites still fail with the proxy off, troubleshoot your Wi-Fi, Ethernet, or system network first. Change one setting at a time and retry the same destination so you can tell what fixed the issue.
Set the Client to Start with Windows After Verification
To launch the client automatically when you sign in to Windows, turn on Start with Windows in General, then check the app under Settings → Apps → Startup in Windows. Starting the app doesn’t automatically enable the system proxy. After your next sign-in, confirm that the client is running in the tray, the right profile is active, and the system proxy is in the state you expect; then test again in a browser. For occasional use, leave startup disabled and turn off the system proxy before exiting the client.
If your browser says the proxy server is unavailable after you exit the client, open Windows Proxy settings and check whether they still point to a local port that’s no longer listening. Remove only the entry added during this setup; restore any work or personal proxy settings you had before. After the initial test, remember these three places: update subscriptions in Profiles, adjust traffic routing in Proxies, and check whether requests pass through the client in Connections.