Get started with Clash
Import a config, choose a mode, connect, then check a new request to see which route your traffic takes.
Before you begin, open the client and have either a Clash-compatible subscription URL or a local YAML config file ready.
Import a subscription
Step 1Open the Subscription or Configuration page. Click the plus button in the top-right corner, or look for New or Import. For a subscription URL, choose Import from URL or Remote Config, then paste the full address into the URL field. If there’s a name field, enter something recognizable so you can find it in the config list later. Click Save or Import, then wait for the list to appear.
For a local file, choose Import from File or Local Config in the same menu, then use the file picker to open your .yaml or .yml file. Don’t paste a file path into the subscription URL field: a remote config is fetched from a URL, while a local config is read directly from a file. If you receive an updated local file later, you’ll usually need to import it again or replace the existing config; it won’t update automatically like a remote subscription.
Set the new config as active
After a successful import, you should see a new config card or entry in the list. Seeing it there only means it’s been saved; click its name or choose Use or Apply from the menu to activate it. Wait for a checkmark, selection highlight, or Current label to appear, then open the Proxies page. If the config uses proxy groups, you should see the relevant group names there. If you still see the old groups, return to the config list and check that the newly imported config is active. There’s no need to import it again.
If a remote import fails, check for extra spaces or line breaks in the URL and make sure the query parameters after the question mark weren’t left out when copying. For a format error, check that the subscription source provides a Clash- or Clash Meta-compatible format, not a single-node share link. If the URL has expired, get the current link from the source, edit the existing entry, and try again. Subscription URLs may contain credentials, so don’t post the full URL in a chat group or public conversion service. Once the right config is active, choose how its traffic should be routed.
Choose a proxy mode
Step 2Look for Mode on the home screen, at the top of the Proxies page, or in the client’s tray menu. Choose Rule or Rule. This is a good starting point: requests handled by the client are matched against the active config’s rules, which may send some traffic direct and route other traffic through a proxy group. After switching, make sure the mode label shows Rule. This sets how the client handles requests it receives; it doesn’t yet send your system’s traffic through the client.
The other common options are Global and Direct. Global mode sends traffic received by the client through the global proxy policy. It’s useful for briefly checking whether a request works through a specific route, but it doesn’t mean every app is using the client. Direct mode sends traffic received by the client straight out, without a remote proxy node. If you switched to Global for a test, return to Rule mode and check the group referenced by the relevant rule—not just the selection in the global group.
Choose an outbound in a proxy group
Open the Proxies or Proxy Groups page. Group names are set by the config author; a group might be called Node Select or PROXY. If there are many groups and your client has a Rules page, find the rule for the domain you’re testing and check which group it points to. Then go back to Proxies so you don’t change a group used for something else. In a group that supports manual selection, choose a node and wait for the checkmark or highlight to move to it. Some groups let you select another proxy group; if so, check the selection in that nested group too.
If you see url-test or fallback, you can usually keep the config’s default selection. The former picks a node automatically based on latency tests and the group settings; the latter tries the next candidate when the current one is unavailable. If the client offers a latency test, use it to narrow down your options, but remember that the result only reflects the test destination—it doesn’t replace a real connection test. Your config, mode, and outbound are now set. Next, connect your system traffic.
Connect
Step 3Desktop: Return to the home screen or open the tray menu. If there’s a separate Start Core button, click it and wait until the status stays at Running. Some clients start the core automatically, so you can continue right away. Then enable the System Proxy toggle and check that it stays on. The system proxy routes requests from apps that respect system proxy settings through the client, making a browser a good first test. A running core doesn’t mean the system proxy is enabled. Closing the main window may also leave the client running in the tray.
Mobile: Make sure the home screen shows the config you just selected, then tap Connect, Start, or the power icon. The first time, your system will usually ask to add a VPN configuration or establish a VPN connection. Check that the prompt is for this client before allowing it, then wait for the status to show Connected. If you tapped Cancel, return to the client and try connecting again. If the system says another VPN is running, check that it isn’t a work- or school-required connection before deciding whether to disconnect it for testing.
For your first test, change only one setting
On desktop, test with the system proxy first; don’t enable TUN at the same time. TUN is another way to route traffic and may involve a virtual network interface, system permissions, and routing settings. Enabling both makes it harder to tell which change affected the traffic route if something goes wrong. If you can’t turn on the system proxy, note the error message shown by the client. If your organization manages system settings, don’t try to override them; follow your device management requirements. For help with system proxy or TUN issues, see the troubleshooting guide.
If the toggle is on or your phone shows Connected, you can leave things as they are for now. Don’t switch nodes, change modes, or enable other features just to make the test pass. At this point, you’ve only confirmed that the client reports the connection method is active. Check the request logs in the next step to see whether an app sent traffic through the client and whether it went direct or through a proxy.
Check that it’s working
Step 4Open the client’s Connections or Logs page, then use a browser to visit a page relevant to what you’re testing. To check the proxy route, choose a domain that the active rules should send to a proxy group. Simply loading any website only confirms that the page loaded. Make a fresh request if possible: an open page may load from cache, and the browser may reuse a connection established before the client was enabled. If you don’t see a new entry after refreshing, fully quit and reopen the browser, or try another page that matches the same rule.
Check the domain, rule, and outbound
Find the domain you just visited in the connection list, filtering by domain if needed. A page may request images, fonts, and API data from several domains, so start with the main domain shown in the address bar. Open the request details and check the matched rule and outbound. Some clients label the outbound as Chain and show both the proxy group and the actual node. If the rule calls for a direct connection, seeing DIRECT is expected. If the request should go through a proxy, check that the expected group and selected proxy node are shown, and that the page loads. If the connection ended too quickly to inspect, look for it in the logs. The available details depend on the client and its logging settings.
If you can’t find the request, go back to Connect and check that the system proxy or mobile VPN is still active. Then check whether your browser is using its own proxy settings. If you find the request but it went direct, check which rule matched, then review the proxy group settings and its outbound. Don’t assume the node is broken just because the route differs from what you expected. If the request used the expected node but the page still won’t load, try changing just one node in that group and retry the same page. That makes it easier to tell whether a different outbound helps.
Once the request log matches what you expected, the initial setup is complete. To restore your previous network settings after testing, turn off the system proxy before quitting the desktop client; on mobile, tap Disconnect in the client. If you repeatedly see domain resolution failures in the logs, see the guide to DNS issues. For persistent node timeouts, failed subscription updates, or other apps that can’t connect, use the troubleshooting guide to diagnose the issue.