Getting Started · First-Time Setup

Clash Setup Guide

Import a subscription, choose Rule mode, enable the connection, then make a web request to confirm which outbound policy the client actually uses.

Before you begin, prepare a Clash-compatible subscription from a source you trust, or a working local YAML configuration. Haven't installed a client yet? Choose your platform on the download page, install it, then return here.

Menu names vary by platform: Desktop clients usually import from “Configurations,” “Subscriptions,” or the Profiles page, then enable the “System Proxy” from the main window or tray menu. On mobile, import options may be under “Configurations” or the add button in the top-right corner; connect using the home-screen toggle and authorize the system VPN prompt. The menus below are described by function, so exact names may differ between clients.

Step 01 / Profile Source

Import and Apply a Subscription

Importing and applying are separate steps. Open the client's Profiles or Subscriptions page and check whether you have a subscription URL or a configuration file. For a URL, choose “Import from URL” or “Add subscription,” paste the complete address, then click “Import” or “Save.” A new entry should appear in the list; some clients also show when it was last updated. For a local file, choose “Import from file” and select the .yaml or .yml file. Don't use a service login page or instructions page as a subscription URL: a link opening in your browser doesn't mean it provides a compatible configuration to the client.

Once the profile appears in the list, select it and choose “Apply” or “Set as current profile.” In clients with single-select lists, selecting it may switch profiles immediately. Return to the home screen and confirm the active profile name matches the one you just imported, then open the Proxies or Policy Groups page. If the configuration defines policy groups, you should see their names and available options, such as a manually selected group and an automatic testing group. If the new subscription is in the list but the home screen still shows the old name, it was likely imported but not applied. Return to the list and switch to it.

If the client reports a download failure, check that the URL is complete, contains no extra spaces, and is still available from the subscription provider. If parsing fails, make sure the file uses a Clash-compatible format; changing a local file's extension does not convert it. If the client reports an unsupported configuration field, note the field and check which core the client uses. Don't change the subscription and network settings at the same time. Subscription URLs may contain access credentials, so don't reveal the full address in screenshots, recordings, or support requests.

If you already have a working profile, keep it and give the new one a name that's easy to distinguish. That way, you can switch back if something goes wrong and compare the two using the same traffic-routing method. Move on to proxy mode only after confirming the new profile is active and has loaded without errors.

Ready when: The home screen shows the intended profile, and it loads without errors.

Step 02 / Route Traffic

Choose a Proxy Mode

For your first setup, choose “Rule” mode. Open the mode selector on the home screen, or find “Rule / Global / Direct” on the “Proxies” page, then set the mode to “Rule” or Rule. In this mode, the core processes connections that reach it in rule order and applies the policy specified by the first matching rule. Requests matching DIRECT connect directly; requests matching a proxy group use its current selection. Different destinations taking different routes is normal in Rule mode and doesn’t mean the connection toggle has failed.

After choosing a mode, check the policy groups. The mode determines how a policy is selected; the group's current option determines which outbound is used when a request matches it. Open the policy group list and find the group used for proxied traffic. It might be named “Select node” or “Proxy,” or have a custom name chosen by the configuration author. A manual group usually lets you expand the options and select an available outbound; the selected option should be marked. If the group points to another group, check that one too until you can identify the final outbound. For an automatic group, leave its default settings in place for your first test. There's no need to change the interval just to get connected.

Global mode can be useful for a brief comparison, but it only changes how traffic that has reached the core is routed; it doesn't automatically capture traffic from every app on your system. Direct mode is also an outbound setting in the core, not a way to turn off the system proxy. If you accidentally switch to Global, just switch back to Rule; there's no need to re-import the subscription. If a destination still goes direct in Rule mode, don't replace all your policy groups. Check which rule matched that destination during verification, then decide whether the configuration needs changing.

Leave other network settings unchanged. Note the current mode and the selection in any manual groups, and choose a website that normally opens for you as a test target. Seeing Rule mode selected only confirms the routing mode; the next step is to send your browser's requests through the client.

Ready when: Rule mode is selected, and you've confirmed the current option in any relevant manual group.

Step 03 / Route Traffic Through the Client

Enable the Connection

First make sure the core is running, then enable one traffic-routing method. Return to the client's home screen. If “Start core” and “System proxy” are separate controls, start the core and wait for its status to stabilize before enabling the system proxy. Desktop clients usually let you toggle it from the main window, system tray, or menu bar. After enabling it, check the operating system's proxy settings to confirm it took effect. If the system shows a manual proxy address and port, they should match the client's current local listener settings. Some clients use automatic proxy configuration; check the setting for that client instead of adding a second manual proxy.

If the client uses a mixed port, look for mixed-port in its settings or active configuration. This port accepts both HTTP and SOCKS proxy connections. If HTTP and SOCKS use separate ports, match the listener port to the proxy type selected by the app. Don't copy example port numbers from another client. If you see a port-in-use error, check whether another proxy client is running. Close any instance you don't need, try again, then check whether the core is listening successfully. If you change the listener port, update any apps where you manually set the proxy too.

On mobile, if traffic is routed through the system VPN, tap “Connect” on the home screen, approve the prompt for the client, then return to the app and check its status. Another active VPN or similar network tool may conflict with the connection. If your device is managed by work or school, don't disable managed settings to troubleshoot; first check which connection methods your organization allows. For the first test, you don't need to enable desktop TUN and the system proxy at the same time or change DNS. This keeps troubleshooting focused on one clear traffic path.

If you manually changed the system proxy, note the original settings first. To restore them, turn off the system proxy or disconnect the VPN in the client, then quit the client. If you originally entered an address and port manually, restore the saved values in system settings. If you quit while the system still points to a local port that's no longer listening, even a browser that worked before may lose its connection.

Ready when: The core is running, and your chosen traffic-routing method is active in the client or operating system.

Step 04 / Check a Request

Verify It Works

A website loading doesn't prove the request took the route you intended. Open the client's Connections page, then visit a test site in your usual browser, such as https://example.com/. Check for a new connection when the request starts. An existing tab may reuse a connection or load from cache; if no new entry appears, close the tab and try again, or visit a site you haven't opened yet. Connections can be brief, so the live list may not show them in time; check the client's runtime logs if available. A page may also load resources from several domains. Find the destination for the main page rather than treating one third-party resource connection as the result for the whole page.

When you find the entry, check the destination, rule, and outbound policy in that order. The destination may appear as a domain or an address. If the Connections page has a “Rule” or “Chain” field, expand the entry to see which rule matched, which policy group handled the request, and which outbound was ultimately used. If the test destination should go direct according to your configuration, the entry shows DIRECT, and the page loads, you've verified its direct route. To test a proxy outbound, choose another destination that's expected to match a proxy group and check it the same way. Verifying only a direct connection, or seeing only a latency-test result, doesn't prove the proxy route works.

If the page won't load and there's no matching entry, go back to Step 03 and check the system proxy or VPN status, local port, and whether the browser has its own proxy settings. If there is an entry but the policy is unexpected, return to Step 02 and check the mode, rules, and policy group selection. If the policy is correct but the logs repeatedly show connection timeouts, keep the mode and traffic-routing method unchanged, switch only to another available outbound in that group, and try again. Change one thing at a time so you can tell whether the issue is traffic capture, rule matching, or the outbound connection.

If only one app has a problem, don't assume it uses the proxy just because the browser test worked. The desktop system proxy only applies to apps that follow that setting; some apps use their own network configuration. Check whether the affected app has a separate proxy option, then see Frequently Asked Questions for help with connection loss, port conflicts, and routing app traffic through the client. Once the basic setup is verified, consult the Advanced Configuration Guide if you need to adjust DNS, Fake-IP, TUN, or rule sets. This avoids introducing several changes during your first connection test.

Ready when: The test request appears in the connection log, uses the expected outbound policy, and reaches its destination.