First Connection · 4 Checks

Clash Setup Guide

Go from importing a subscription to verifying traffic routing. For the first test, use one browser to check a fresh connection. There’s no need to rewrite rules or configure DNS or TUN first.

Step 01 / Profiles

Import and Enable a Subscription

Before you start, get a subscription URL you’re authorized to use or a local YAML configuration that’s compatible with your core. Choose either option. If your provider offers a general subscription, individual proxy links, and a Clash- or mihomo-specific subscription, choose the one clearly marked as compatible with your client. Subscription URLs may contain access credentials, so paste them only into the client’s import field—not into chats, screenshots, or public conversion sites.

Add a Profile

Open Profiles, Profile Files, or Subscription, then click New, Import, or the plus button. For a subscription URL, choose Remote or Import from URL and paste the full address into the corresponding field. If you can name the profile, use a short label that identifies its purpose. Save and wait for the download and parsing to finish. For a file, choose Local Import and select the original configuration in the file picker; don’t paste a file path into the remote URL field. Keep your existing profile for now so you can switch back if needed.

A profile card usually means the entry was added—not that the core is using it. Click the card or choose Enable, Apply, or Set as Current Profile from its menu. Wait for the current-profile indicator, then open Proxies and make sure the list matches the profile you just enabled. Some clients show policy groups right away; others show group tabs that you can open to view the available proxies. If the old groups are still listed, check which profile is active instead of importing again.

Import Error? Check Where It Failed

If you see a timeout or invalid URL error, check that the address wasn’t truncated, that your network can reach the subscription service, and that the link is still valid. For a parsing error, check the subscription type and core compatibility: a login page, service error page, or individual proxy link can’t be loaded as a full configuration. Treat import errors and activation errors separately: check download or parsing messages for the former, and logs from applying the profile for the latter. Before moving on, make sure the new profile is active and its groups appear on the Proxies page. For differences in terms such as “core,” “subscription,” and “policy group,” see the glossary.

Step 02 / Proxies

Choose Rule Mode and a Proxy

Open Proxies and find the mode selector. Some clients put it at the top of the home screen or in the tray menu. For your first setup, choose Rule mode, represented at runtime by mode: rule. The core applies the configuration’s rules to each request, deciding whether to connect directly or send it to a policy group. Don’t switch to Global just because you see it in the interface; that makes it harder to check the subscription’s original routing logic. Direct mode doesn’t turn off the client either—requests that reach the core may still appear on the Connections page.

Mode vs. Group Selection

Mode determines how requests are handled; a policy group determines which proxy a type of request can use. They’re separate settings. Keep Rule mode and check the groups listed for the active profile on the Proxies page. Group names come from the configuration: one might be called Proxy Selection, while others may be named by purpose or region. If there’s a manual group for proxied traffic, open it, choose a proxy you’re authorized to use, and make sure the selection indicator moves to it. If the configuration uses an automatic group, leave it unchanged for now. Client names on the downloads page aren’t policy group names, and you don’t need to switch through every group to test the setup.

The page may also offer a latency test. Use it to spot a proxy that may be temporarily unreachable, but remember that the result usually reflects a probe to a specific test address—it doesn’t guarantee that a particular website will load. No latency reading doesn’t mean the configuration failed to load. For now, make one clear selection. You can check whether the site loads and which group handled the request after routing device traffic through the client.

Recheck Your Settings Before Routing Traffic

Leave the Proxies page and return to it. Confirm the mode is still Rule and your selected proxy hasn’t changed. If you find a different profile active on the Profiles page, select the right one and recheck the mode and group selection; switching profiles may reload default values. At this point, the Proxies page should display normally, but your browser may not be using the client yet. An active configuration and routing device traffic through the client are separate steps. Next, enable the device-level setting.

Step 03 / Settings or Home

Connect and Route Traffic

Before connecting, note your current network setup: check whether the device is already using another VPN, an organization-managed proxy, or a fixed proxy set by a browser extension. These settings can affect where requests go. On a personal device, you can temporarily turn off similar connections you enabled yourself during testing. On a managed device, keep required settings in place and check your organization’s policy before changing anything. For the first test, use only one routing method: don’t enable both the system proxy and TUN, and don’t change DNS manually. This makes the logs easier to interpret.

Desktop: Check the Core, Then Enable the System Proxy

Check the client’s home screen, status page, or tray menu to make sure the core is running. If your client requires manual startup, click Start first. Then open Settings or the tray menu, enable System Proxy, and wait for the toggle to stay on. If needed, check the operating system’s network proxy settings to make sure the client’s settings were applied—not just that a toggle appears in the app. A system proxy doesn’t route every app, so use a browser that respects system proxy settings for this test. Don’t start with a game or command-line tool.

If the toggle switches off immediately, read the client’s error message first. If the log says a port is already in use, check whether another instance of the client is running. If the system proxy is enabled but the core has stopped, your browser may keep sending requests to a local port that isn’t listening. Turn off the client’s system proxy, confirm your original connection works, then check the core startup error. Example ports in a checklist aren’t fixed values for your device; use the port shown by your client.

Mobile: Start a VPN Connection from the Home Screen

Return to the home screen, make sure the correct profile is selected, then tap Connect or the start button. When the system asks for VPN permission for the first time, confirm the prompt comes from the client you just opened, then approve the connection. Wait for the client to show Connected, and check your system network settings to confirm the corresponding VPN is in use. If the status stays on Connecting or disconnects right away, check the app’s error message and see whether another VPN is already using the connection. Once connected, keep the same Wi-Fi or mobile network for the next step.

Step 04 / Connections and Logs

Verify the Connection and Routing

A webpage loading doesn’t prove it used the expected proxy, and a connected status doesn’t prove a request was actually sent. A better test is to match a browser visit to an entry in the client. Open Connections or Logs and note the current time, then use a browser to visit a familiar, working page that will make a fresh request. Test one page at a time to avoid background tabs getting in the way. If reopening an old tab doesn’t create a clear new entry, try a different URL; the browser may be using cached content or a reused connection.

Match the Time, Domain, and Proxy

Return to the client and find the entry that matches the visit time and domain. Don’t mistake a page’s images, scripts, or redirect destination for the main domain you first visited. If the client shows connection details, check the matched rule first, then the policy group or final proxy. A DIRECT entry that matches the configuration’s expectations means the core handled the request and chose a direct connection; it doesn’t mean the proxy toggle failed. To verify a proxy, choose a domain that the current rules should send to a proxy group. Confirm that the expected group or proxy appears and that the page loads. One connection entry alone doesn’t prove the proxy is working.

Troubleshoot Based on What You See

If there’s no entry after the browser makes a fresh request, check for log filters, then confirm the browser uses the system proxy or that the VPN is actually connected on mobile. If there is an entry but it shows Direct, check the matched rule and active profile before changing proxies. If the entry shows a proxy but times out, keep the current mode and network settings, change just one authorized proxy in the same manual group, and retry the same URL. Changing one setting at a time makes it easier to find the cause than switching modes, changing ports, and changing networks all at once.

To check your baseline, turn off the system proxy in the desktop client or disconnect the VPN in the mobile app, then visit a familiar site to confirm your original connection works. If the connection is still failing, troubleshoot the device’s network first. If the issue happens only after connecting, save the most relevant error and the time of that visit for further troubleshooting. Before sharing logs, remove subscription URLs and any sensitive domains, credentials, or device information.

Download Clash