QUICK START · FIRST-TIME SETUP
Clash Setup Guide
Import a subscription, choose Rule mode, and connect. Then check a real request to see how traffic is routed. If you already have a client and subscription, the whole process takes about 10 minutes.
Haven’t installed a client yet? Choose one for your platformSTEP 01 / PROFILE
Import a Subscription
Open the Config or Profiles page, choose Import from URL, and save the subscription link. Once imported, select and enable the new configuration. Then open the Proxies page and check that its proxy groups or nodes appear.
Add the link to your configuration list
Get the subscription URL from a trusted source. Make sure it’s a Clash or Mihomo subscription for your client—not an account login page, node documentation, or a link for a single node. On the Config page, click New, Add, or the plus button, then choose Remote configuration or Import from URL. Paste the full URL into the address field. If you can name the configuration, choose a label that identifies its source or purpose so it’s easy to find when updating it later. Save and let the client finish fetching the configuration; don’t keep clicking Import while it’s still in progress.
Some mobile clients put remote subscriptions and local files under the same menu. If you have a link, choose URL. If you only have a local config.yaml file, choose Import from file. Both options create a configuration, but a local file won’t update when the original remote subscription changes. Subscription URLs may contain access credentials. Hide the full URL in screenshots, and don’t paste it into conversion tools from unknown sources.
Make sure the new configuration is enabled
A new entry in the list only means the client saved the configuration. Return to the list and tap its name, radio button, or Set as active until it appears selected. If there’s also an Apply button, tap that too. Then open the Proxies page and check that its proxy groups or nodes match the configuration you imported. If you have multiple subscriptions, don’t rely on node names to tell whether you switched successfully. The same name can appear in different configurations, so check the active configuration name and selection state instead.
If the configuration appears in the list but the Proxies page is empty, open its details on the Config page. Check whether the fetch succeeded, the format is unsupported, or a rule set download is stuck. If the URL has expired, verify it with the subscription provider. If parsing fails, make sure the subscription format matches the client’s core. Get the configuration loaded before changing modes; enabling the system proxy won’t fix a failed import. For more troubleshooting, see Troubleshooting.
STEP 02 / MODE
Choose a Proxy Mode
Set the mode to Rule on the Proxies page. On desktop, start by testing your browser with the system proxy. Consider TUN only if you need to capture traffic from apps that ignore system proxy settings. On mobile, use the system VPN as prompted by the client.
Start with Rule mode
On the Proxies page or in the mode dropdown on the home screen, find the options Rule, Global, and Direct, then select Rule. In Rule mode, the client checks requests against the rules in the active configuration, in order. The first matching rule sends the request to its specified route or proxy group. So it’s normal for two sites opened in the same browser to use different routes. Global mode sends traffic that has entered the client through the globally selected route. It’s useful for a quick comparison. Direct mode also applies only to traffic that has entered the client; it doesn’t turn the client off.
After switching, make sure Rule is selected on screen. If the previous mode becomes active again, check whether you need to save the setting or whether switching configurations restored that configuration’s default. For now, leave the rule order and DNS settings alone. The goal of this first test is to confirm that the existing configuration works. Keep the defaults so you have a baseline to compare against later. For more on rule priority and protocol or core compatibility, see the technical reference.
Choose which apps send traffic through the client
Rule mode determines how traffic is routed once it enters the client. The system proxy or TUN determines how traffic gets in. On desktop, if you’re testing a browser that follows system proxy settings, use the System Proxy option on the home or Settings page. If you need to test an app that ignores those settings, switch to TUN mode if both your client and system support it. TUN can capture more traffic, but actual coverage still depends on routing, app exclusions, and system permissions. There’s no need to enable both options for a first test.
On mobile, the client’s Connect or Start button usually creates a system VPN connection. This is different from the system proxy switch on desktop. If another VPN is already running, check whether you can pause it before starting a new connection. If your device is managed by your organization, don’t change its network settings without permission. Once you’ve chosen how to capture traffic, start the connection.
STEP 03 / CONNECT
Start the Connection
Choose a node in the proxy group for traffic that should use the proxy, or keep the configuration’s automatic selection. Start the service and enable the traffic-capture option you chose. Make sure the client shows that it is running and the relevant switch or system VPN is active.
Choose a node in the proxy group you’ll use
Open the Proxies page and find the group assigned to proxy traffic in your configuration. Names vary: it might be called Proxy Selection or named for a specific purpose. If the group contains another proxy group, open it to see the final route. If manual selection is available, choose a working node for now so you know where requests should go when checking the logs. If the configuration uses an automatic group, you can leave it as is, but note the route currently selected. Selecting a node in a group doesn’t mean all traffic uses it: a request must first match a rule that sends it to that group.
If the client offers a latency test, use it to help narrow down your options. A successful test only means the client completed that probe; it doesn’t mean your browser is connected or that a particular website will load. If one group times out but another node works, try switching nodes. If no group has a selectable option, check the active configuration before changing system network settings.
Check the service and system status
On desktop, first make sure the core service is running. If the interface has a separate Start button, start the service before enabling System Proxy or TUN mode. With System Proxy, check that the switch stays on. If the client reports that it couldn’t apply the setting, compare the proxy address and port in system network settings with the client’s current configuration. With TUN, follow the client’s prompts to grant any required permissions, then make sure the switch stays on. Don’t skip this check just because the client’s tray icon is visible: opening the interface doesn’t mean it’s capturing traffic.
On mobile, tap Connect, check the app name in the system permission prompt, and then approve it. Return to the client’s home screen and wait for the status to change from Connecting to Connected. If needed, check the active app under system VPN settings. If the connection drops as soon as it starts, check for a permission prompt or another VPN in use. On desktop, if you get a port-in-use error, check whether another client or an old process is using the same port. Once the connection is stable, open a test page so a startup failure isn’t mistaken for a rules issue.
STEP 04 / VERIFY
Verify It’s Working
Make a new request in your browser, then search for its domain in the connection records or logs. Check one request expected to connect directly and another expected to use the proxy. Confirm that each matched the expected rule and used the expected route.
Check routing with two new requests
On the configuration’s Rules page, choose two sites you’re allowed to access: one expected to connect directly and one expected to use the proxy. Open the client’s Connections or Logs page, then visit the first site in your browser. Use a page you haven’t opened during this session if possible, so cached data or an old connection doesn’t obscure the result. If the client doesn’t keep records for long, check the page while it loads. If the connection disappears quickly, search the logs by the time you visited the site. Websites often load images and scripts from other domains too. Identify the request for the main site in the address bar; don’t mistake a static resource’s route for the main site’s result.
When you find the request, check the matched rule first, then the route or outbound column. For a request expected to connect directly, the route is often DIRECT. For a request expected to use the proxy, the log usually shows a proxy group; some clients also show the node selected by that group. Visit the second site the same way and compare the two results. A direct connection can still appear in the connection records: it means the client evaluated the request and chose a direct route, not that Rule mode is inactive. One record can verify that particular route, but it can’t tell you whether the other type of traffic is being routed as expected.
Troubleshoot one symptom at a time
If the page loads but there’s no matching record, check whether your browser follows the system proxy, whether the traffic is bypassing the client, and whether the log is still updating. If the system proxy captures only the browser and there’s no record for the app you’re testing, go back to the second step and consider TUN. Don’t change nodes first. If the record appears but the route is wrong, return to the Proxies page and check the active mode, configuration, and matched rule. If the route is correct but the page still won’t load, try another node in the same group and make a new request to the same site. You can also compare it with a site expected to connect directly to distinguish a proxy issue from a general loss of connectivity.
After testing, keep the configuration, mode, and traffic-capture option that you’ve verified. For a temporary test, turn off the System Proxy, TUN, or mobile VPN you enabled before quitting the client, then make sure your browser can connect directly. If you still can’t get online, check whether desktop system settings still point to a local proxy port or whether the mobile VPN is still connected. For subscription updates, port conflicts, dropped connections, and other issues, see Troubleshooting.