Getting Started / First Connection

Clash Setup Guide

Go from importing a subscription to checking the actual outbound route. If Clash is installed and you have a config ready, use these four steps for a first check that takes about 10 minutes.

  • Active config
  • Matched rule
  • Final outbound route

Import and Enable a Subscription Config

Open “Subscriptions” or “Configs” in the client sidebar. Click “Add,” “Import,” or the plus button, then choose “Import from URL.” Paste the full Clash-compatible subscription URL from your provider and save. Wait for it to finish fetching. If saving only adds an entry without showing an update time or success message, click “Update” on that entry. To use a local .yaml or .yml file, choose “Import from file” instead. On mobile, you can also select the file in a file manager and open it with the client. Use either method; there’s no need to import the same config twice.

Once the new entry appears, select it and, if needed, click “Enable” or “Apply.” Check that the list marks it as the active config, then open the Proxy page and confirm its groups or outbound list match the config. A successful download only means the client received the file; the core must load the config before the mode and verification steps will work. If you already have an older config with a similar name, give the new entry a distinctive local name, then confirm which one is active before changing any policies.

When a remote import fails, first determine whether the fetch failed or the config could not be parsed. For a fetch failure, check that the URL was copied in full, your device is online, and the link is still valid. If access is denied, confirm the URL and your subscription permissions with the provider. If the file downloads but the client reports a format error, make sure it’s a config supported by the client—not a login page, a single-node share link, or a format intended for another client. If the config opens but the core reports an error, check the field or protocol mentioned and compare it with the subscription format guide. Keep a copy of any working config before changing formats; don’t remove fields at random just to force the file to load.

If the Proxy page still doesn’t look right after an update, return to the config page and check that you refreshed the active entry. Also confirm whether the import is a full config or just a list of nodes. A node list may need a client-provided template to create proxy groups and rules; seeing nodes in a list doesn’t mean routing policies are configured. Subscription URLs are usually tied to your access permissions. When troubleshooting, note the error type and time, but don’t post the full URL publicly. Once the active config loads correctly, leave the system proxy or VPN as it is and move on to choosing a mode.

Choose a Proxy Mode and Proxy Group

Return to “Overview” or “Proxies” and find the mode setting. For a first-time setup, choose “Rule” or Rule. Traffic that reaches the core is evaluated against the rules in the current config, in order. The first matching rule determines how it’s handled: a request may connect directly, use a proxy group, or be blocked. Rule mode doesn’t send every request through the same node, and direct connections for some domains don’t mean it’s not working.

Next, check the policy groups on the Proxy page. A config may route everyday requests through one group and other traffic through different groups; group names are set by the config author and vary. Search for your test domain on the Rules page, then find the group named by the matching rule. If the full domain isn’t listed, check for suffix rules, rule sets, and the final fallback rule. Rule set contents may not be visible in the UI. If you’re unsure, note the likely group and verify it with a real request in step four.

If the group allows manual selection, expand it and choose a node you know works. Groups can contain other groups, so follow the chain until it points to a node or DIRECT. For automatic selection or failover policies, the client usually shows the group’s members and may show the currently selected one. Don’t assume the first item in an expanded list is the active outbound. If a test feature is available, use it to check whether candidate nodes respond—but a successful group test only confirms that the test request got a response, not that your target site works.

“Global” or Global can help you check whether rules affect a test, but it only handles traffic that reaches the core and uses the outbound selected by the global policy. It won’t automatically route traffic from other apps. “Direct” or Direct sends traffic received by the core straight out; it doesn’t turn off traffic capture in the client. For your first check, stay in Rule mode and test one destination and one proxy group. Don’t change rule order or DNS settings yet. For details on how rules and proxy groups work together, see the protocol guide.

Connect: Enable the System Proxy or VPN

Desktop: Verify Your Browser Through the System Proxy

On desktop, make sure the client shows the core as Running. If the client requires manual startup, click “Start” or “Connect” first. Then enable “System Proxy” in Settings, from a home-screen shortcut, or in the tray menu. Return to Overview and confirm the toggle stays on. If the client reports that it couldn’t apply the setting, check your operating system’s proxy settings. For clients that require manual proxy setup, use the local listening address and port shown in the client; don’t copy a port from an unrelated example.

Only apps that follow the system proxy settings will send their requests to the core. For your first check, use a browser that follows those settings; test browsers or command-line tools with their own proxy settings later. If your device is managed by your workplace or school, make sure you’re allowed to change its proxy settings. On a personal device, disable any other client currently routing traffic to avoid the two clients overwriting each other’s settings. You don’t need to enable TUN as well. Verify the browser route first, then configure apps that don’t follow the system proxy if needed.

Mobile: Check the System VPN Status

On the client’s home screen, confirm the active config is still the one you selected in step one, then tap “Connect” or “Start.” The first time, the system will usually ask you to approve the VPN connection. Make sure the prompt names the current client, then allow it to add or establish a VPN configuration. Wait for the client to show Connected, then check the active connection in your system’s VPN settings. Whether a VPN icon appears in the status bar depends on the device and interface, so don’t rely on the icon alone. If the switch turns off immediately, check system permissions and whether another VPN is running, then look for a core startup error in the client.

On any platform, a normal status only means the traffic entry point is ready. If you started the client after opening your browser, existing tabs may still be reusing earlier connections. Keep the config, mode, and proxy group unchanged, then make a new browser request so you can match its connection record to the settings you just checked.

Verify the Connection

Open the client’s Connections page and clear any existing filters. In your browser, visit a site you control or know well that should use the selected policy. Note the time and domain. Prefer a target you haven’t opened in this session; if you only have an existing tab, close and reopen the browser first. A page may also load images, fonts, and other domains. Check the main request’s domain and time, and don’t mistake related requests for the test result.

Open the matching connection entry and check the destination, matched rule, proxy chain, and final outbound route in turn. For a target expected to use a proxy, confirm the request matched the right policy, the proxy chain leads to your selected node, and the page loads. If you have a separate test target explicitly configured for direct access, visit it too and check that its outbound is DIRECT. Together, these checks verify proxying and rule-based routing. A page loading, a Connected status, or a changed exit IP alone doesn’t prove that a specific rule worked as expected.

Some clients show only active sessions on the Connections page. If nothing appears, watch the page while you make the request, then search the logs by time or domain. If the client lets you change log levels, temporarily enable logging for regular connections and restore the previous level afterward. If the request never appears, revisit step three and check the system proxy or VPN status and whether your browser is actually using it. Don’t switch nodes yet. If a record appears but uses the wrong policy, revisit step two and check the active mode, matched rule, and group’s final member—especially whether an earlier rule matched first.

If the policy and node in the log are correct but the page still errors, check which stage failed. A DNS resolution error and a connection timeout are different problems: for the former, check whether the error names the destination domain or the proxy server’s domain; for the latter, try another known-working member in the same group while keeping the target and mode unchanged. Change one setting at a time to identify which layer is responsible. For DNS issues, system proxy conflicts, or dropped connections, see Troubleshooting.

After verification, restore any policy group or logging settings you changed temporarily. To end the session, turn off the system proxy before stopping the core on desktop. On mobile, tap “Disconnect” in the client to end the VPN, then confirm its status in system settings. After your next subscription update, you don’t need to repeat the full process: confirm the expected config is active and its policy group still has an available member, then send one request to check the outbound route.

Download Clash