First-time setup · about 10 minutes

Clash Getting Started

Import a subscription, choose a proxy mode, connect, and verify the route. For your first setup, change only what you need and confirm that one real request follows the expected path.

Step 01

Import a Subscription

Open the client's configuration page and import a config using a supported subscription link or local YAML file. Select and enable it, then check the Proxy page to confirm its policy groups have loaded. Do this before enabling any traffic-handling options. That way, if something goes wrong, you can tell whether the config failed to load or device traffic isn't reaching the client.

Add a Configuration from the Right Menu

For a subscription link, open “Config” or “Subscriptions” and select “New,” “Import,” or the plus button. Choose “Remote” or “Import from URL,” paste the full link into the address field, then save or download it. Add a descriptive name if you like; some clients fill one in automatically. Subscription links may contain access credentials, so copy the entire link. If sharing a screenshot or asking for help, obscure the whole link—not just the part after the domain.

For a local file, choose “Import local” and locate the original file in the file picker. On some mobile devices, you can also send the file to the client using “Share” or “Open with” in the system file app. Don't paste the file contents into the subscription URL field or try to convert the format by changing the file extension. If the client says the format isn't supported, ask the config provider which client format to use.

Make Sure the Configuration Is Enabled

After importing, return to the config list and select the new entry. Some clients load it immediately; others require you to tap “Enable” or “Apply,” or select it as the active config. Once it's marked as current, open the Proxy page and check the policy groups. A new entry in the list only confirms the import succeeded. If the Proxy page still shows group names from the old config, return to the config page and check the selected entry and loading status. Don't rely on the entry name alone to confirm the switch.

If the import times out, first check that regular websites load on your current network. Then make sure the link has no spaces at either end and that you copied the entire URL. If parsing fails, check whether the response is actually a config the client can read. For example, copying a service's sign-in page instead of its subscription URL may give the client a webpage, not a config. If you already have a working config, keep it rather than deleting it and starting over. Once the new config has loaded, continue to the Proxy page and choose a mode.

Before continuing: The config list shows the active entry, and the Proxy page displays its policy groups.

Step 02

Choose a Proxy Mode

Set the outbound mode to Rule on the Proxy page. Open the policy group that uses manual selection and choose an available outbound; for an automatic group, check its current selection. These are separate settings: the mode determines how an outbound is chosen, while the policy group determines which member handles a request after a rule selects that group.

Start with Rule Mode to Keep Your Config's Routing

Look for “Mode” under “Proxy,” “Overview,” or “Settings.” Common options are Rule, Global, and Direct. With Rule selected, the client processes requests that reach its core in the order defined by the config. Once a rule matches, later rules don't apply to that request. Different requests can take different routes, so a website connecting directly in Rule mode doesn't mean the client isn't working.

Global mode usually sends intercepted traffic to the global policy, but the outbound it ultimately uses still depends on the client's selection. Direct mode is useful for comparison with a regular network connection. Neither mode replaces the system proxy or the mobile connection toggle. For your first setup, stay in Rule mode so the behavior you verify corresponds to the routing rules in your subscription config.

Understand Policy Groups and Individual Outbounds

Expand the policy group used for proxy traffic in your config and check its members. In a “Select” or manual group, a tap usually takes effect immediately, though you may need to return to the list to see the update. If a member is itself a policy group, open that group and check the final selection. Automatic URL-test or failover groups choose members according to their own logic. For your first setup, keep the default and check which outbound the client reports as active.

If your config has several groups, you don't need to change them all. Keep the defaults and choose an outbound only in a manual group whose purpose you understand. If the client has a test button, use it for a preliminary check that the outbound can reach the test address—but a successful test doesn't prove that your browser or other apps are using that route. For details on group types, rule order, and fallback options, see the configuration reference. Note the group and outbound you selected; next, you'll route app traffic through the client.

Before continuing: The mode is set to “Rule,” and you can identify the policy group in use and its current selection.

Step 03

Connect

On desktop, enable the system proxy. On mobile, tap Connect and approve the system prompt. For your first test, use only one traffic-handling method. Check the client and system status before testing traffic. If your device uses a network service managed by your organization, check its requirements first. Don't disable an existing service or override its settings just to test.

Desktop: Enable the System Proxy First

Find “System Proxy” on the client's home or settings page and turn it on. Wait for the status to settle. If the client controls the core separately from the system proxy, make sure the core is running before enabling the proxy. Then test with a browser that follows system proxy settings. Desktop apps vary in their support: a browser may work while other apps take a different route. Browser extensions and custom network settings can also override system settings.

If the system proxy won't turn on, check whether the client reports a takeover failure or a port conflict. Then check the operating system's network settings for an existing proxy configuration. Some Linux desktop environments and apps require proxy settings to be configured separately and may not follow the client's system toggle. Don't start cycling through ports; first determine whether the client couldn't update the settings or the system settings changed but the app isn't using them.

Use TUN only if you need to handle traffic from apps that ignore the system proxy and your client recommends it. TUN works differently, may require extra permissions, and can affect existing routes or local network access. Before testing a different method, note the current settings and temporarily disable the first one. Check that the new method works on its own before deciding whether to adjust anything else. Leave LAN access and DNS options unchanged if you don't need them for the first test.

Mobile: Check the System Connection Status

Return to the client's home screen and tap “Connect,” the start button, or the power icon. If the system asks for VPN authorization the first time, check which app requested it and continue only if it's the client you're using. Wait for the status to change from “Connecting” to “Connected,” or check the connection in system network settings. Dismissing the prompt doesn't mean you're connected; check the status shown by both the system and the client.

If the toggle switches back off immediately, check whether system authorization was denied or the client reported a config loading error. Fix one issue at a time: if authorization is missing, return to the connection screen and approve it; if the config failed to load, go back to Step 1. Don't recopy the link, change modes, and alter system settings all at once. Once the connection status is stable, send a real request to verify it.

Before continuing: The system proxy is enabled on desktop, or the system connection is active on mobile.

Step 04

Verify the Connection

Visit a website you know is reachable, then find the request in the connection details or logs. Check the matched rule and actual outbound. When you're done, keep the selected config or disconnect as needed. Check both that the page loads and that the request actually passed through the client.

Send a Request, Then Check the Connection Log

Open the client's “Connections” or “Logs” page and note the current time. Then switch to your browser and visit a website you can normally access. Return to the client and search for the request by domain and timestamp. A webpage often requests images, scripts, or fonts from several domains. Start with the main domain in the address bar; don't mistake a single asset request for the result of loading the whole page.

If connection details include fields such as “Rule,” “Destination,” or “Chain,” check the matched rule first, then the policy group and outbound actually used. If the log shows DIRECT and that request is supposed to connect directly, the config routed it as expected. To test the proxy route, visit a site that should match a proxy group and check the final outbound. Comparing public IP addresses alone can't tell you which route each site or app took.

Troubleshoot Based on What You See—Change One Thing at a Time

If the page loads but there's no matching entry in the connection list, consider browser caching or a connection that has already ended. Reload the page and check the list right away, or look in the logs for the request you just made. If you still can't find it, revisit Step 3: make sure the system toggle is still on and the app is using that route. Changing rules or outbounds won't help if the request never reaches the client.

If a matching entry appears but the page won't load, first check whether the actual outbound is the one you expected. If it used the expected policy group but timed out, change just one outbound in that same manual group and test the same site again. If an unexpected direct or reject rule matched, check which config is selected, the current mode, and the domain you visited. For DNS failures, certificate errors, or no internet after disconnecting, continue with the relevant section in Troubleshooting. When reporting an issue, include the target domain, rule type, and error message, and hide sensitive details such as subscription links.

After a successful retest, everyday use only requires checking the active config, Rule mode, and traffic-handling toggle. When you're done testing, turn off the system proxy or TUN on desktop before quitting the client. On mobile, disconnect in the app and check whether the system status changes too. Finally, revisit the same website to confirm regular network access has been restored. That gives you a baseline to compare against next time.

Success looks like this: You can find the request and explain why it connected directly or which outbound handled it.

Download Clash