First-time setup · 4 steps

Clash Getting Started

Go from importing a subscription to verifying outbound traffic. With the client and a compatible subscription URL ready, you can complete a browser test in about 10 minutes.

Step 1: Import and enable a subscription

Make sure you have a Clash- or mihomo-compatible subscription URL from your provider—not an account login page, order page, or individual proxy node URL. A service may offer subscriptions in multiple formats. If there’s a format selector, copy the URL for a format supported by your client. Subscription URLs may contain account credentials, so paste them only into the client’s import field. If you need help, share the error message and when it occurred, but never send the full URL or include a QR code.

Open the client’s Profiles or Subscriptions page and find the add button. If the interface offers URL and local file imports, choose the URL option, paste the complete address, and save or import it. On some mobile clients, source options appear in a menu after you tap the plus button. If your provider gave you a compatible YAML file, choose the local file option on the same page; don’t enter the filename in the URL field. Wait for the new profile to appear before continuing. Repeatedly tapping Add can leave you with several profiles with similar names.

A profile appearing in the list only means it was added; it may not be active yet. Open it and choose Enable or Set as active, depending on the interface. Confirm that it’s marked as selected or that its name appears on the home screen. If your device already has a working profile, note its name and leave it in the list. If the new profile won’t load, you can switch back without setting up the whole client again.

Next, open the Proxies page and check that the profile’s proxy groups or available outbound options are listed. If you still see the old list, return to Profiles and confirm which profile is active. If the new profile reports a fetch error, first check that the URL was copied in full and that the subscription is still valid. If the content downloads but parsing fails, check the subscription format and whether your core supports it. Troubleshooting “couldn’t fetch” separately from “fetched but couldn’t parse” is more useful than importing repeatedly. See the glossary for the difference between a subscription and a local profile.

Step 2: Choose a proxy mode and group

Once the new profile has loaded, find the mode selector on the Proxies page or the client’s home screen. For your first setup, choose Rule or Rule mode. This mode matches requests routed through the client against the rules in your active profile, then sends them to the specified proxy group or direct outbound. Check that Rule is highlighted after you select it. If modes are in a menu, make sure Rule is checked before closing it. This controls how requests are routed; it doesn’t start routing your device’s traffic through the client.

If you also see Global and Direct, don’t think of them as the on, automatic, and off positions of a switch. Global mode uses the selected global outbound instead of matching requests against individual rules. Direct mode sends requests that reach the client directly. Neither mode turns your operating system’s traffic routing on or off. There’s no need to try each mode during initial setup. Keep Rule mode so you can check the matched rule and actual outbound later.

Stay on the Proxies page and expand the group used for proxy traffic in your profile. It may be called “Proxy Selection” or have another name. In a manual selection group, choose one of the available options; you can start with one your provider recommends for your network. If the group contains another group, expand it to see which outbound it ultimately uses. If the selected outbound is DIRECT, requests that match it will connect directly—even when the client is routing traffic and Rule mode is still selected.

If the profile includes an automatic selection group, leave its settings as they are for now. Results from an automatic speed test only reflect how the test address performed at that time; they don’t guarantee access to every website or replace a browser test. For initial setup, just note the current mode and the proxy group or outbound you plan to test. You can learn about rule order, proxy group types, and core differences in the protocol guide later; there’s no need to rewrite rules before your first connection.

Step 3: Connect and check traffic routing

Keep the profile and Rule mode you selected, then enable traffic routing on your device. If your desktop client has a System Proxy switch, it’s usually on the home screen or in Settings; some clients also have the same switch in the system tray menu. Turn it on and confirm it stays on, then start testing with a browser that uses the system proxy settings. The system proxy doesn’t cover every app, and apps with their own proxy settings may not use it. Limit your first test to a browser so you’re not troubleshooting several types of traffic at once.

If the mobile client routes traffic through the system VPN, tap Start, Connect, or the main switch on its home screen. The first time you connect, your operating system may ask to add or establish a VPN connection. Make sure the request comes from the client you just opened, then approve it. Return to the client and check that it shows as connected. If you previously denied permission, try connecting again from the client and check for a system prompt. The VPN icon can indicate that routing is active, but it can’t confirm that a particular website used the expected proxy node.

If the connection switches off immediately, check the client’s startup error before changing proxy nodes. If the desktop client reports that a port is already in use, check whether another proxy client is running. On mobile, if another VPN connection is active, check whether you can pause it during the test. Organization-managed devices may have fixed proxy or VPN policies; leave those settings unchanged and ask your administrator which configurations are allowed if needed.

Once the connection stays on, leave the client running and continue to the next step. Closing the window may not stop the connection; desktop clients can keep running in the system tray. When you’re done testing, turn off the system proxy using the same switch or disconnect in the mobile client, then confirm the status has returned to normal. This prevents test settings from being left on for your next session.

Step 4: Verify the connection

Check two things: whether the request reached the client and whether it used the expected outbound. Choose a domain you can normally access and whose expected outbound you can determine from the active profile. Keep the browser and client visible, open the domain in a new browser tab, and note the time and domain. Don’t rely on an already-open page still displaying; it may be cached and doesn’t show whether a new network request was made.

Open the client’s Connections page right away and look for the domain in the latest entries. Short requests may end before you can check; if the list doesn’t retain history, open Logs first and visit the domain again. If available, check the matched rule, proxy group, and actual outbound. If you expect the request to use a proxy, confirm that it reached the relevant group and used a proxy outbound. If you expect a direct connection, DIRECT is the correct result. A page loading successfully doesn’t, by itself, prove which route it took.

If you still can’t find an entry after visiting the domain again, start by checking how traffic is routed: on desktop, confirm the client is running, the system proxy is on, and the test browser uses it; on mobile, check the main switch and system VPN status. If you can see the entry but it used a different outbound, check the active profile, mode, and matched rule. The request has already reached the client, so reauthorizing or toggling the switch again usually won’t fix the routing result.

If the request used the expected proxy outbound but the page won’t load, check the logs for a more specific error, such as a connection timeout or DNS lookup failure. Keep the same browser and test domain. For a manual selection group, try one different proxy node and test again. If both attempts fail, note the key error and when it occurred, then check the subscription service or your network. Changing the mode or browser at the same time makes the results harder to compare.

Your first setup is complete when a new browser request appears in the client and its outbound matches what you expected. When you update a subscription or set up another device, follow the same order: confirm the active profile, check the mode and traffic routing, then inspect a real request. To compare protocol support or check whether a subscription works in another client, see the protocol guide.