First-time setup / From subscription to connection check

Clash Setup Guide

Import a subscription, choose a proxy mode, connect, then confirm traffic uses the expected exit route.

If the client is installed and your subscription URL is ready, this should take about 10 minutes. Start with one test app and a domain you know. There’s no need to change ports, DNS, and rules all at once during initial setup.

Step 01 / Configuration

Import and Enable a Subscription

Add a Subscription from the Configuration Page

Open the Clash client and go to “Configuration” or “Subscriptions” in the sidebar or bottom navigation. Click Add, then choose “Import from URL” or “Remote configuration.” Copy the URL for Clash or mihomo from your subscription provider and paste it in full into the URL field. If the client lets you add a note, use a name that helps distinguish this configuration from others. Subscription URLs may contain access credentials. Don’t post them in public forums or share screenshots that show the full URL.

After clicking “Import” or “Save,” wait for the client to download and parse the configuration. Some clients fetch it as soon as you save; others require you to click “Update” on the configuration entry. When the import succeeds, you should see a selectable configuration in the list—not just a saved URL. If your provider supplied a local YAML file, use “Import from file” instead. A single-node URL requires a client that supports node import; it cannot be used as a remote configuration URL.

Make Sure the New Configuration Is Active

Select the newly imported entry in the list. If the menu includes “Use this configuration” or “Set as active,” choose that as well. Return to the “Proxy” page and confirm the proxy groups and nodes have updated. If you still see the old group names, check the active indicator on the configuration page. The download may have completed without the configuration being applied. If the client reports that activation failed, start with the first error in the logs; later errors may simply result from the same configuration failing to load.

Handle download failures separately from parsing failures. For a timeout or access denied error, first check whether your current network can reach the subscription service, then ask your provider to confirm the URL is valid. If the download completed but the client reports a format or field error, check whether you copied a login page URL or whether the subscription is compatible with your current core. See the glossary for format definitions. Once the proxy groups appear, continue to the next step. The configuration is loaded, but that alone doesn’t confirm that other apps’ traffic is passing through the client.

Step 02 / Traffic Routing

Choose a Proxy Mode

Select “Rule” on the Proxy Page

On the “Proxy” page or main screen, find the “Rule / Global / Direct” selector and choose “Rule.” Confirm the selected state has changed. In rule mode, requests are handled in the order of the rules in the configuration; the first matching rule determines the exit route. The configuration may send some requests direct and route others through a proxy group. So it’s normal for some connections to go direct in rule mode—the important thing is whether that matches the configuration’s intended behavior.

Global mode sends requests already handled by the core to the global proxy selection, while Direct mode sends them straight out. Neither replaces traffic capture settings: selecting Global doesn’t mean every app is routing its traffic through the client. For your first setup, leave rule mode enabled. It makes it easier to understand why a request took a particular route when you check the logs. See the glossary for definitions of modes and rule fields.

Enable One Traffic Capture Method for Your Test App

On desktop, turn on “System Proxy” first and test with a browser that follows the system proxy settings. If the client says it’s enabled but the result isn’t clear, check your operating system’s proxy settings to confirm a local proxy was configured. Then make sure the browser isn’t using its own proxy settings. Keep the client’s default port for the first test. If another program is using that port, stop the conflicting service if possible, or update both the client port and the settings of apps that use it.

On mobile, tap “Connect” or the start switch on the client’s home screen, allow the system to create a VPN connection when prompted, then return to the client and check its status. A VPN indicator means traffic capture has started; it doesn’t prove the selected node is working. On desktop, use TUN mode if you need to capture traffic from apps that don’t follow system proxy settings, and grant permissions as prompted by the client. To keep your first test easy to interpret, turn off the current capture method before switching to another. Don’t change the capture method and routing mode at the same time. Once traffic capture is set, check which proxy group is actually in use.

Step 03 / Proxy Groups

Select a Node and Connect

Choose an Exit Node in the Target Proxy Group

Return to the “Proxy” or “Proxy Groups” page. If the configuration includes a rule list, first find which group handles your test domain, then open that group’s node list. Group names depend on the configuration and may not include the word “Proxy.” In a group that allows manual selection, click a node and confirm the selection indicator stays on it. If the selected item is another proxy group, open that group to see which node it currently uses. Changing a group unrelated to your test request won’t change its exit route.

For an automatic latency or failover group, check the currently selected item and let the group’s policy choose the exit. These groups may not let you select a node manually. If the client has a latency test button, you can test candidate nodes. A successful test means the node handled that probe; it doesn’t guarantee access to your target site. A timeout may also mean the probe URL is unreachable. If you’re unsure about protocol support or compatibility, check the protocol reference. Don’t change protocol fields without the required server-side settings.

Check That the Service Is Running, Then Send a New Request

Return to the home or status page and check whether the core is running. If the client has separate “Start service” and “System Proxy” switches, check both. The browser may report that the proxy server can’t be reached if the system proxy is set but no local service is listening. On mobile, confirm system permission was granted and the client still shows a connected status. If the status drops immediately after startup, check the logs for configuration, permission, or port errors instead of repeatedly switching remote nodes.

Once the service is stable, visit a domain you know in your test app—one that should use a proxy under the current rules. In a browser, close any existing tabs for that site and open a new one to send a fresh request. If needed, quit and restart the browser to reduce the chance of reusing an old connection. Note the domain and approximate time, then open the client’s “Connections” page. A page loading is the first result; next, check exactly how that request was routed.

Step 04 / Connection Logs

Verify the Proxy Is Working

Check the Domain, Rule, and Exit Route

On the “Connections” page, find the record using the domain or time you noted. Expand it to check the matched rule, proxy group, and final outbound route. If the request finishes too quickly, it may no longer appear in the active connections list. Open “Logs” before sending the request again, or check connection history if the client supports it. A webpage may send requests to multiple domains. Check the main site request first, rather than relying on records for images or third-party APIs.

The proxy route is working when the test request matches the expected rule, enters the expected proxy group, and completes through the selected node. You can also visit a domain that should go direct under the rules and confirm the exit is DIRECT in the log. These two checks verify the proxy and direct routes separately. An enabled proxy switch, a page that loads, or a successful probe alone can’t confirm that both routes are working as expected.

Use the Logs to Pinpoint What Went Wrong

Request not found: First make sure the request was sent again, then check the client service and traffic capture method. On desktop, try another browser that follows the system proxy settings. If only the original app has no record, check that app’s proxy settings. On mobile, check system settings to see whether the VPN disconnected or was replaced by another connection. Change one thing at a time and keep the test domain the same so you can compare results.

Record found, but the exit is wrong: First check which configuration is active and which routing mode is selected, then identify the first rule that matched. If the request reached a fallback rule or matched an earlier direct rule, changing nodes won’t affect the result. If the group is right but the node is different, check for nested selections in the group or automatic switching based on probe results. See the protocol reference for field or protocol differences; there’s no need to rewrite the entire configuration first.

Correct exit, but the request failed: Check the logs for DNS resolution failures, connection timeouts, or handshake errors. First, select another known-good node in the same proxy group and test the same domain in the same app. If switching nodes fixes the issue, focus on the original node or its remote service. If multiple nodes behave the same way, check your local network, DNS, and configuration compatibility. Follow the node timeout troubleshooting steps to narrow it down further.

Once you’re done, note the active configuration, routing mode, and traffic capture method as a baseline for future troubleshooting. Restore any temporary test settings you enabled. If you don’t need the proxy to stay on, turn off System Proxy or TUN on desktop before quitting the client. On mobile, disconnect from the client. Finally, reload a test page to confirm traffic has returned to the expected route.

Download the Latest Clash Version