First-Time Setup / Quick Start

Clash Client Quick Start

Import a subscription, choose a rule mode, then check which route your requests actually take. Get one connection working first; there's no need to change ports, DNS, or configuration files yet.

Step 01 · Profile

Import a Subscription and Enable the Profile

Open the client's Profiles, Subscriptions, or Profiles page, then click Add or the plus sign in the top-right corner. If prompted to choose an import method, select Import from URL or Remote Profile. Paste the Clash-compatible link from your subscription provider into the URL field without changing any part of it; give it a short, recognizable name if you like. Click Import, Download, or Save, then wait for the profile to appear in the list before continuing. Subscription links may contain access credentials. If you see an error, note the message, but don't post the full link in a public forum.

If you only have a local configuration file, open the same Profiles page but choose Import from File, then select the YAML file. Don't paste the file contents into the subscription URL field or use your provider's account page as a profile URL. To update a local file, replace or re-import it using the client's file workflow; remote subscriptions have an option to fetch updates from the original URL. Choose one method—you don't need to import the same configuration twice.

Once the profile appears, make sure it's enabled

A successful import only means the client retrieved the configuration; it doesn't mean the profile is now active. Return to the list and select the new entry. If the client has an Enable or Apply button, click it and wait for the profile to load. Check the selected indicator or the profile name on the home screen to confirm it matches the one you just imported. Then open Proxies or Proxy Groups and make sure the expected groups and proxies are there. If the new profile appears in the list but the proxy page still shows old group names, check which profile is active before refreshing the subscription or reinstalling the client.

If the import fails, first check whether the error occurred during download or parsing. For a failed request or timeout, make sure your network is working and the link is still valid. If the client says the format is unsupported or parsing failed, confirm that the configuration is compatible with your client—not a login page or a subscription in a different format. If import succeeds but enabling the profile fails, check the load message and see whether a referenced ruleset failed to load. Fix this before enabling the system proxy; otherwise, it will be harder to tell whether later problems are caused by the configuration or the connection.

Before moving on: The active profile name is correct, and the proxy page shows the expected groups. Next, decide which requests should use a proxy.

Step 02 · Mode

Choose Rule Mode and a Proxy Group

Open Proxy Mode on the home screen, at the top of the Proxies page, or in Settings, then select Rule. In a mihomo configuration, this corresponds to mode: rule; for your first setup, just switch modes in the client. Return to the home screen and check that the mode label has changed. Rule mode matches requests entering the core against the configuration's rules. A match can go direct or route through a proxy group. The mode only controls how the core handles traffic it receives; it doesn't turn on your operating system's proxy setting.

Next, open Proxies or Proxy Groups and find the group your configuration uses for the test URL. Group names are set by the configuration, so the group may not be called Proxy Selection; multiple groups may also serve different purposes. If manual selection is available, open the relevant group, choose an available proxy, then return to the group list and confirm the selection changed. Some groups reference another group; if so, check the current selection at the next level too. An automatic selection group chooses an outbound based on the configuration's health checks and selection logic, so you don't need to pick a proxy manually. During verification, check which proxy the group actually used.

Mode and proxy selection are separate settings

Global mode is usually useful for a quick comparison: instead of routing traffic entering the core by rules, it sends it according to the current selection in the global group. That group may also be set to DIRECT, so Global mode doesn't guarantee that traffic uses a proxy. Direct mode sends traffic entering the core straight out; it's useful for comparison, but it doesn't turn off the system proxy. Keep Rule mode for your initial setup. If you temporarily switch to Global to compare results, switch back to Rule afterward and retest the same URL.

If the proxy group page has a latency test, you can use it to rule out proxies that are clearly unreachable. The result measures a probe to a specific test address; it doesn't guarantee the destination site will load or indicate actual download speed. For your first verification, choose one proxy and stick with it. Don't switch proxies every time you refresh the page, or you won't know whether a changed result came from the rules, outbound route, or existing connection. For details on rule order, proxy group types, or test behavior, see the Glossary.

Before moving on: The mode is set to Rule. You've noted which group should handle the test request and which proxy it currently selects, either manually or automatically.

Step 03 · Start

Enable the System Proxy or Mobile VPN

First, make sure the client shows that the core is running. If there's a separate Start button, click it and wait for the status to settle before enabling traffic capture for your platform. Being able to open the interface, having a profile selected, and having the operating system send app traffic through the client are three different things. If startup reports that a port is already in use, check whether an old client is still running in the background. Quit any instance you're no longer using, then try again. Don't copy a random port just to clear the error: if you change the core's listening port, you'll also need to check any apps where you configured a proxy manually.

Desktop: Verify the Browser with the System Proxy

In the Windows, macOS, or Linux desktop client, find and enable the System Proxy switch. With it on, open a new test page in a browser that follows system proxy settings. Some Linux desktop environments don't pass the client's settings to every app. Browser-specific proxy settings or extensions can also override system settings. If the browser request doesn't appear on the Connections page, check these first rather than assuming the subscription is broken. Leave the client's existing listener settings as they are; if you need to check a port, use the listener value shown in the client.

Mobile: Connect and Confirm System Authorization

In the Android or iOS client, return to the home screen and tap Connect or the power button. The first time you connect, the system will usually ask to create a VPN configuration or establish a VPN connection. Make sure the prompt is for the client you just opened, then approve it as directed. Return to the client and wait for its status to change from Connecting to Connected. Then check the system's network or VPN settings to confirm the connection is active. If another VPN is already running on your phone, check what it's for before switching. Don't turn off a work or device-management connection without permission; use a device where testing is allowed.

Use Desktop TUN Only If You Need It

If the browser test succeeds but an app doesn't use the system proxy, consider TUN. First note the result with the system proxy, then turn it off and test TUN separately using the client's TUN switch. The client may require a service installation or system permissions; follow the instructions for your platform. Don't assume you need to edit both the GUI switch and tun.enable in the configuration file: the client may generate the runtime configuration using overrides. For full details on permissions, network interfaces, and routes, see the Complete Installation Guide. For now, stick to one traffic-capture method you can reproduce reliably.

Before moving on: The core is running, and traffic capture is enabled for the test app. Don't rely on the switch color—check the request log directly.

Step 04 · Verify

Verify Your Connection and Routing

Keep the client's Connections page open and send a new request from your test app. Browsers may reuse existing connections, and pages may load from cache. If refreshing doesn't produce a new entry, quit and reopen the browser, then visit the same URL again. Return to Connections and find the entry by destination domain or request time. Some connections end too quickly to appear in the live list; check Logs instead. A web page often loads resources from several domains, so start by checking the main domain in the address bar. Don't mistake image or font requests for the main request's routing result.

Once you find the entry, check the domain, matched rule, and outbound route in that order. A request expected to use a proxy should match the relevant rule and pass through a proxy group to the selected proxy. A request expected to connect directly should show DIRECT or the client's equivalent direct-connection label. Pick a URL matched by a clear direct rule in your current configuration for comparison. A page loading successfully doesn't tell you whether it used a proxy or connected directly. Checking your public IP address only tells you about that specific test request; it doesn't mean other domains or apps use the same outbound route.

If the results don't match, check one layer at a time

No request entry? Check traffic capture first. On desktop, check that the system proxy is enabled and the browser follows system settings. On mobile, confirm the system's VPN settings show a connection to the current client. Send the request again. If it still doesn't appear, check whether the app is excluded in the client or has its own proxy settings. Changing the proxy group selection usually won't help until you've confirmed the traffic is reaching the core.

The request appears, but the outbound route is wrong? Check the rules and proxy group. Confirm you're still using the profile you just imported and haven't switched to Global or Direct mode. Check the destination domain in the connection entry and see whether an earlier rule matched or the request fell through to a catch-all rule. If the rule points to the right group, check whether the group currently selects DIRECT, another proxy group, or an automatic proxy different from the one you expected. Pinpoint the layer that's causing the difference; there's no need to reorder the entire ruleset for one test.

The rule and outbound route are right, but the connection fails? Check the proxy. Keep the same test URL and traffic-capture method, change just one proxy in the group, then reconnect and compare. If the new proxy works, note the original proxy and when the failure occurred. If several proxies fail, use the logs to distinguish a DNS resolution error, a connection failure, or an app-level error. For more troubleshooting, see the Complete Installation Guide. If you come across unfamiliar fields such as Fake-IP or mixed-port, check the Glossary before changing anything; don't copy settings from another client.