FIRST CONNECTION PROCEDURE
Import a Clash Subscription and Make Your First Connection
Complete these four steps in order: import a subscription, choose a proxy mode, establish the connection, and verify the result. This guide is for users who have already installed a client and are ready for their first setup; it normally takes about ten minutes.
PRECHECK / READY
Before You Start: Check the Client, Subscription, and System Time
Before configuring Clash, confirm that a maintained client compatible with your system is installed. On desktop, distinguish between Windows, macOS, and Linux; on macOS, also choose between Intel and Apple Silicon. On mobile, select the Android or iOS version from the appropriate app store or download page. If the client is not installed yet, open the Download Center, choose the client for your platform, install it, and then return here.
You will also need a working subscription URL or YAML configuration file. Subscription URLs are usually generated by the service provider and let the client download nodes, policy groups, rules, DNS settings, and other configuration. When copying a URL, select everything from the beginning to the end. Do not omit query parameters or add spaces before or after it. A subscription URL contains account configuration details and should not be posted in screenshots, public logs, or chat groups.
A local file ending in .yaml or .yml can also be loaded through the client’s file import function, but it will not automatically receive updates from a remote subscription. Before using it, confirm whether the provider supplied a “subscription URL” or a “configuration file.” Do not mistake a web dashboard URL, order page URL, or single-node share text for a Clash subscription.
Finally, check the system date, time, and time zone. An incorrect clock can prevent secure connections, causing all nodes to time out, certificate timestamps to appear invalid, or subscription requests to fail. Enable automatic time synchronization, then confirm that the network itself can reach the subscription URL. Once ready, keep the client open and continue to Step 1.
STEP 01 / PROFILE LOAD
Import the Subscription: Let the Client Load the Configuration
Find the Configuration or Subscription Entry
After opening the Clash client, look for Profiles, Configuration, Subscription Management, or Config Files. Desktop clients usually place this entry in the left navigation bar, while mobile clients may put it in the home screen’s configuration area or side menu. You should find options to paste a URL, download a remote configuration, or import a local file. Do not enable the system proxy yet—the client has not loaded usable nodes or rules.
If the client asks you to choose a data directory, allow network access, or confirm system permissions on first launch, follow the system prompts. Then open the configuration page. Some clients include a sample or empty configuration; these entries only show that the program has started and cannot replace the subscription supplied by your service provider.
Paste the Complete URL and Import It
Copy the subscription URL and click “New Subscription,” “Import from URL,” “Download,” or an equivalent button. Paste the URL into the address field. If the interface asks for a name, use a short, recognizable label such as “Daily Configuration” or the provider’s name. The label is only for local identification and does not change the subscription. After confirming that the URL is complete, save, download, or import it.
The client will request the remote content and parse the YAML. When successful, a new record usually appears in the configuration list along with a last-updated time or update button. Select the newly imported configuration to make it active. Some clients switch automatically after downloading; others require you to click the entry, enable it, or choose “Set as Current Configuration” from a menu. Confirm that the new configuration—not a sample entry or an old leftover file—is active.
Confirm That the Subscription Can Update
Run a manual update immediately after importing. This verifies that the URL is still valid, the client can reach the subscription server, and the configuration parses correctly. After the update succeeds, open Proxies, Proxy, or Policies. If policy groups and node names appear, the client has loaded the proxy section of the subscription and you can continue to Step 2.
If no entry appears after importing, copy the complete URL again and check for spaces at either end. A configuration parsing error may mean that you received a web page, that the subscription format is incompatible with the client, or that the YAML contains indentation errors. For a network error, first confirm in a browser that the URL is reachable, then check the local network, firewall, and system time. See Common Issues for the complete subscription-failure troubleshooting sequence.
Seeing nodes does not mean that a connection has been established. At this point, the configuration is only loaded, and traffic may still follow its original direct path. Next, choose a proxy mode and assign an actual node to the main policy group.
STEP 02 / MODE SELECT
Choose a Proxy Mode: Decide How Traffic Is Handled
Choose Rule Mode for Your First Setup
Open the Settings, Configuration, or Mode page and find options such as Rule, Global, and Direct. For your first connection, choose Rule mode. It evaluates each connection against the rules in the configuration and determines whether to proxy, connect directly, or reject it. Common local network addresses and some local services can remain direct, while destinations that require a proxy are handled by policy groups. This is the standard setup for most subscription configurations.
Global mode usually sends most connections through a single proxy policy. It is useful for briefly checking whether a rule is preventing a website from using the proxy, but it is not a universal fix. Direct mode bypasses proxying and is useful for temporary pauses or comparison tests. These modes change traffic decisions; they do not replace node selection or repair unavailable nodes automatically.
Select a Node in a Policy Group
Switch to the Proxies, Proxy, or Policies page. This is usually not a simple node list but a collection of policy groups. Common names include “Node Selection,” “Proxy,” “Auto Select,” and “Failover,” or groups organized by website purpose. Find the group handling most of your traffic, then choose a specific node or use an automatic testing group supplied by the subscription.
If policy groups reference one another, the top-level group may point to a regional group that contains the actual nodes. Follow the current selection through each level until it reaches an available node. Do not stop when the top level says “Auto Select”; confirm that the automatic group has candidates and that at least one node can connect successfully after testing.
If the client offers latency testing, run a test on the current group first. The latency value reflects response time under those conditions and does not equal download speed or guarantee access to every website. For the initial setup, choose one node that responds normally; there is no need to chase the lowest number. See the Glossary for node regions, multipliers, protocols, and automatic policy behavior.
Keep the Original Rules
Avoid editing rules, DNS, or policy-group structures during the first connection. Subscription configurations usually include a workable baseline; verify that the original configuration connects before customizing it. Adding custom rules too early can mix together unavailable nodes, a disabled system proxy, and incorrect rules, making troubleshooting harder.
If a domain must use a specific policy, handle it after the first successful connection and first understand that rules are matched from top to bottom and stop at the first match. Rule syntax, common fields, and override merging are covered systematically in the Rules section of the Configuration Reference. For now, keep Rule mode enabled, confirm that the main policy group has a selected node, and continue to the connection step.
STEP 03 / NETWORK CONNECT
Establish the Connection: Enable the System Proxy or Mobile Tunnel
Enable the System Proxy on Desktop
Desktop clients for Windows, macOS, and Linux usually provide a System Proxy, Set as System Proxy, or similarly named switch. Return to the client’s main screen, confirm that the current configuration is enabled, the mode is Rule, and the main policy group has a node selected. Then enable the system proxy. The client writes its local proxy address to the system network settings so browsers and apps that follow system proxy settings send requests through Clash.
Do not exit the client immediately after enabling the switch. The system proxy only directs traffic to a local listening port; the running Clash core still performs the actual forwarding. If the client closes while the system proxy remains configured, the browser may continue pointing to a stopped local port and lose network access. When finished, disable the system proxy before quitting the client.
macOS may ask for your system password or permission to modify network settings. Windows Firewall may ask whether the core should be allowed to access the network on its first run. Grant access according to your device’s security policy. Linux desktop environments differ in their system proxy support; if the client switch does not affect the target app, check the desktop environment’s proxy settings or specify the HTTP or SOCKS proxy address inside the app.
Confirm System Connection Permissions on Mobile
Android and iOS clients usually capture traffic through the system VPN interface. After you tap Connect, Start, or a power-shaped button, the system displays a connection request. Approve it; a VPN indicator normally appears in the status bar, and the client changes from stopped to connected. The VPN indicator confirms that the system network tunnel is active, not that the selected node works, so complete the next verification step.
Some Android systems restrict background activity. During the first test, keep the client in the foreground. Once the connection works, decide whether to allow background operation according to the device’s battery-management rules. If the connection drops whenever the screen locks, check the system’s background network and battery policies for the client instead of repeatedly changing the subscription.
Enable TUN Mode Only When Needed
The system proxy mainly captures applications that follow system proxy settings. Some command-line tools, games, specific store apps, and software that manages its own network connections may bypass it. Use TUN mode when this traffic also needs to be captured. TUN creates a virtual network interface with broader coverage, but it adds variables such as administrator permissions, routing, DNS, and compatibility with other network software.
For the initial setup, use the system proxy to verify browsing first. Consider TUN only after the browser works but a specific app still bypasses the proxy. Desktop clients may require a service component or administrator permission to enable TUN; mobile clients already use the system VPN interface and usually do not expose an identical TUN switch. See the Configuration Reference for TUN, routing, and DNS settings.
STEP 04 / VERIFY ROUTE
Verify That It Works: Cross-Check the Webpage, Connections, and Logs
Start with a Basic Browser Test
Keep the client connected, open a new browser window, and visit a target website that normally requires a proxy. Do not merely refresh a page that was already open before connecting; browser cache, existing connections, and DNS results can affect the test. After it loads, visit a site that normally should remain direct to confirm that both traffic types work in Rule mode.
If the client provides a Connections, Active Connections, or activity log page, watch it while visiting the site. Normally, the relevant domain or destination appears with the matched rule, policy group, and final node. Connection records are more reliable than the webpage alone: a page may load from cache, while the records show whether the new request entered Clash.
Confirm the Rule and Node Path
Find the domain you just visited in the connection records and check which rule matched it. If the target shows DIRECT, the rule classified it as a direct connection. If it was expected to use the proxy, briefly compare with Global mode. If it works globally but fails in Rule mode, the issue is usually the rule or policy selection. Switch back to Rule after testing instead of staying in Global mode.
If the record shows that the request entered a proxy policy but the page still will not load, return to Proxies and try another node, then visit the site again. Do not change the mode, DNS, TUN, and subscription at the same time; change one condition at a time so you know what affected the result. If several nodes fail, check for a recent subscription update, a stable device connection, and any service status notice.
Use Logs to Locate the Failure
If the page does not load, open the Logs, Runtime Logs, or activity records and review entries from the time of the test onward. Configuration parsing errors usually appear when starting or switching configurations; connection timeouts occur while contacting a node; DNS problems may appear as domain-resolution failures; and a port conflict can prevent the local proxy listener from starting. Do not capture only the final line. Keep the surrounding sequence, because timing is often more informative than a single error term.
If no new request appears in the logs, first check whether the system proxy is enabled, whether mobile connection permission is active, and whether the browser uses its own proxy settings. If the request appears but the node connection fails, check the node and subscription. If the node connects but domain resolution fails, investigate DNS. Following the traffic path helps avoid reinstalling the client or making major configuration changes too early.
Keep a Recoverable Setup After Testing
After verification succeeds, keep the working node and Rule mode. Note the active configuration name and confirm that the subscription page can update manually. If a problem occurs later, restore this verified setup first, then determine whether the cause is a changed node, a subscription update, or a change in the local network. To pause use, disable the system proxy on desktop or disconnect on mobile; there is no need to delete the subscription.
If the connection still fails after these checks, open Common Issues and continue under “Installation and Configuration” or “Troubleshooting.” Log analysis, DNS, TUN, port conflicts, and configuration parsing are separate issues; handling them separately is more effective than repeatedly reinstalling the client.
FINAL CHECK
First-Connection Checklist
Once all four items are confirmed, the basic setup is complete.
-
Configuration Loaded
The subscription entry is visible, a manual update succeeded, and the proxy page shows policy groups and nodes.
-
Mode and Policy Selected
Rule mode is active, and the main policy group ultimately points to an available node or an automatic selection group.
-
System Connection Enabled
The desktop system proxy is enabled, or the mobile client has received permission to establish the system connection.
-
New Requests Reach the Client
The target webpage loads, and connection records show the matched rule, policy group, and final handling path.