Setup Guide
Getting started with the Clash client: from subscription import to connection check
From getting a subscription link to confirming that routing works, there are four steps: import the subscription, choose a mode, connect, and verify routing. Desktop examples use Clash Verge Rev, and mobile differences are noted where they apply; every step lists UI feedback you can check, so following along completes the first-time setup in about ten minutes.
How different clients label the same things
On desktop, Clash Verge Rev and FlClash call a subscription “Subscriptions” or “Profiles”; on mobile, Clash Meta for Android and FlClash call it “Configurations”. The connection switch is a pair of toggles — System proxy and TUN mode — on desktop, and the start button on the mobile home screen, which asks for system VPN permission the first time. The order of the steps on this page is the same in every client; just match the button names to the client you use.
Import a subscription link
Goal: a subscription card appears in the client and the node list on the proxies page isn't empty.
PathCopy the link in your provider dashboardClient “Subscriptions” pagePaste and import
A subscription link is the credential between your client and your provider — the node list and rule configuration are both pulled through it. Log in to your provider's dashboard or order page, find the Clash subscription entry, and copy the address that starts with https://; some providers also offer a one-click import link that starts with clash://, which opens the installed client and shows an import prompt when tapped on your device, with no manual pasting needed. If you don't have a client yet, install one for your platform from the downloads page first, then come back to this page.
On desktop
Using Clash Verge Rev as an example: open the client, go to the Subscriptions page in the left sidebar, paste the link into the field at the top, and click Import. The client then fetches the subscription online; a few seconds later a new subscription card appears in the list below, showing the name, update time and traffic usage (traffic data depends on the subscription format, and some providers don't include it). In the desktop version of FlClash the entry point is the Configurations page and the steps are identical. Don't close the client during the import — an interrupted fetch leaves the card in place but the node list empty.
Mobile and iOS differences
On Android, using Clash Meta for Android as an example: open the Configurations page, tap the plus button in the bottom-right corner, choose Import from URL, paste the link and save. In FlClash the path is Configurations → Add → URL. On iOS (using Clash Plus as an example), the home or configuration page usually offers Import from clipboard — copy the link in your browser or notes app first, then return to the client to finish the import. What every client has in common: after pasting the full link you must confirm the save action; copying alone changes nothing.
Once the import finishes, open the Proxies page — you should see several proxy groups and nodes. If the node list is empty, go back to the subscription card and hit the refresh button once to retry; if it's still empty, first check that the link opens in a browser (it should return a block of YAML text), then check that you copied it in full — the parameters at the end of a subscription URL are often cut off while copying.
A subscription URL is a personal credential
The link contains your account and node information, so don't paste or share it in public. When you switch devices, just copy it again from your provider's dashboard — there's no need to keep it in a chat history long term.
Keep subscriptions up to date
Subscription content changes as your provider makes adjustments, so turn on auto-update in the client settings (a common interval is 24 hours); you can also click the update button on the subscription card at any time. An update doesn't interrupt the current connection, and new nodes appear on the proxies page as soon as it finishes.
How you know this step is done
- A subscription card appears in the list with the name from your provider
- The Proxies page shows proxy groups and nodes, and the count isn't zero
- The update time on the card is just now
Don't rush to connect right after the subscription import. The next step is to confirm the proxy mode, which decides what goes through the proxy and what connects directly; pick the wrong mode and you'll run into problems such as a working connection that can't open sites in mainland China. Next: choose a proxy mode and node
Choose a proxy mode and node
Goal: the mode is set to Rule and one node in a proxy group is selected.
Path“Proxy mode” card on the home pageSelect “Rule”Expand a proxy group on the Proxies pageClick a node
The client offers three modes — Rule, Global and Direct — and for everyday use you only need to remember one thing: keep it on Rule. Rule mode matches traffic against the rule set from your subscription, line by line: requests that hit a direct rule bypass the nodes, and everything else goes to a proxy group. Global mode pushes every request through a proxy group and is usually only used temporarily while debugging rules. Direct mode bypasses the proxy entirely, which makes it handy for telling whether a problem lies with the website itself or with the proxy chain.
Where to switch
Clash Verge Rev has a Proxy mode card on the home page — open it and select Rule; the same setting is also available on the settings page. On mobile the mode switch usually sits at the top of the home screen or in the settings list, again labelled Rule / Global / Direct. The change takes effect immediately: no client restart and no node reconnection.
Pick a node
Open the Proxies page: nodes are arranged by group, and there are three common group types. Select groups let you click a specific node; url-test groups pick one automatically by latency; fallback groups switch over when the current node becomes unavailable. Expand a select group and click a node to select it — the selected entry is highlighted. If you're not sure which to pick, hit the latency test button in the group first and then choose one with low latency. url-test groups need no manual action — leave them to the client.
Wait for the rule files to download
Rule mode depends on rule files (rule-provider, geodata and the like). The client fetches them automatically on first launch or after a subscription update, and the progress is visible on the Logs page. If it sits on updating rules for a long time, first make sure your current network can reach the rule file addresses, then retry once. The origins of rule files, how they update, and the trade-offs of built-in rules are covered in full in the protocol handbook; for this step you only need to confirm the download finished.
When you need TUN mode
TUN mode lets the client take over all traffic on the device, including apps and command-line tools that ignore system proxy settings. Turning it on requires administrator rights, and the first launch installs a virtual network adapter. You don't need it if you only browse the web; enable it when every app has to go through the proxy. A comparison table of the two takeover methods and when each fits is in the protocol handbook.
How you know this step is done
- The mode reads Rule
- One node in a select group is highlighted as selected
- The Logs page shows no repeating errors
With the mode and node ready, the next step is to turn the connection on: flip the system proxy switch on desktop, grant VPN permission once on mobile, and from that moment traffic really does pass through the client. Next: turn on the proxy connection
Turn on the proxy connection
Goal: the connection switch is on and traffic starts passing through the client.
PathDesktop: “System proxy” switch on the home pageTurn onMobile: start button on the main screenAllow VPN permission
On desktop, using Clash Verge Rev as an example: go back to the home page and turn on the System proxy switch. Once it's on, the client points the operating system's proxy settings at a local port, and apps that read the system proxy — browsers, for instance — start going through the proxy right away; the switch state and tray icon change together, and the same applies when you turn it off. The equivalent switch in the desktop version of FlClash is on the home page, labelled either System proxy or Virtual network adapter.
Ports and conflicts
The client uses 7890 as its mixed port by default (shared by HTTP and SOCKS; some clients default to 7897) — check the settings page for the actual number. If another program on your machine already occupies that port, the client reports a conflict; change the port to 7891 or another free value and restart the core. Software that needs the proxy entered by hand (some developer tools and terminal commands) uses 127.0.0.1 plus this port number.
On mobile: one VPN authorization
Clients on both Android and iOS work through the system VPN interface. Tap the start button on the main screen and the system shows a VPN permission request; once you allow it, a VPN icon appears in the status bar and traffic starts passing through the client. On iOS you can also turn on On-Demand Connection in the settings so the client starts automatically on certain networks; on Android some clients offer launch on boot. Mobile systems apply battery-saving policies, so a client left in the background for a long time may be reclaimed — just open it again to restore the connection.
Launch at startup
On desktop you can turn on Launch at startup and Start core automatically on the settings page, which suits long-term use; with both enabled, the client is ready as soon as you reach the desktop, with no manual steps each time.
Apps the system proxy doesn't cover
The system proxy switch only affects apps that read the system proxy settings. If your browser goes through the proxy but a game or command-line tool still connects directly, don't install the client again — go back a step and turn on TUN mode to cover those apps.
How you know this step is done
- The system proxy switch on desktop is on and the tray icon has changed
- A VPN icon appears in the mobile status bar
- The settings page shows a local port in listening state
A connection only means traffic passes through the client; you still need to confirm that routing really follows the rules — being online and taking the right path are two different things. Next: verify that routing works
Verify that routing works
Goal: the proxy chain works, sites in mainland China connect directly, and the exit IP matches the node's region.
PathCheck live records on the Connections pageVisit a test siteCheck the exit IPCompare rule matches
The quickest check is to open a website that requires a proxy: if it loads, the proxy chain works. But that only proves traffic can go through the proxy, not that routing is correct, so run the three methods below in order before calling the setup done.
Method 1: read the connection log
Open the client's Connections page — the list shows every request in real time: destination domain, matched rule, proxy group used, node name and traffic size. Refresh a web page and a new entry appears immediately; records that hit a direct rule show DIRECT, while proxied ones show the name of the proxy group. Sites in mainland China showing DIRECT and sites outside China showing a proxy group name means rule-based routing is working as expected.
Method 2: check the exit IP
Visit any IP lookup site in your browser and the page shows your current exit IP and its location. If the location matches the selected node, the request really did go through the node; if it shows your local ISP, it went direct. Go back to the Connections page, find that entry, see which rule it matched, and decide whether the rule intended this or the mode setting is wrong.
Method 3: cross-check
Visit a site in mainland China and a site outside China at the same time, then compare the two entries on the Connections page: the mainland site should hit DIRECT and the overseas one a proxy group. If both match, the setup is complete. Later, when a site won't open, check in the same order: first whether the Connections page has an entry for it, then which rule it matched, and only then suspect the node.
When something looks off
If the connection is up but pages won't load, it's usually DNS resolution — see the DNS entry in the FAQ for the troubleshooting order. If some apps bypass the proxy, that's the coverage limit of the system proxy; TUN mode solves it. If latency is high or speeds disappoint, switch nodes first and consider switching protocols second — the protocol handbook compares speed and resource use across protocols. For unfamiliar terms, look them up by category in the glossary.
How you know this step is done
- The Connections page shows live entries as you refresh a web page
- Sites in mainland China hit DIRECT; sites outside China hit a proxy group
- The exit IP's location matches the region of the selected node
That's all four steps done. The common snags below cover the situations you're most likely to hit before and after connecting; more specific issues are sorted by category on the FAQ page. See common snags
After setup
Goal: keep this setup working in everyday use.
With the four steps done, the client is ready to use. In everyday use only three things are worth watching: keep subscription auto-update on so the node list keeps up with your provider's changes; turn on launch at startup on desktop so you don't have to start it by hand; and when something goes wrong, read the connection log first before deciding whether to change any settings. Reinstalling the client or swapping subscriptions over and over rarely fixes anything — it just leaves you without a baseline for troubleshooting.
When you need to go deeper, pick by purpose: for choosing a protocol type or telling the cores apart, see the protocol handbook; for terms you don't recognise, check the glossary; for the troubleshooting order on specific failures, the FAQ collects them.
Troubleshooting
Common snags before and after connecting
Four frequent problems, each with a fix path that starts from the symptom and then checks the configuration; fuller troubleshooting steps are on the FAQ page.
The subscription link opens in a browser but the client throws an error on import
Open the subscription link in a browser first: a working link returns a block of YAML text. If you get a web page or an error page instead, the link has expired — contact your provider for a new one. If the YAML looks fine but the client import fails, check whether the link was truncated — subscription URLs often end with a string of parameters that are easy to miss when copying — then confirm the subscription format matches the client: Clash-specific and generic formats can't be mixed. If it still fails, try Import from clipboard instead.
Rule mode is selected, but every site goes through the proxy
Most of the time the rule files didn't download, and the client fell back to sending everything through the proxy. Open the Logs page to see whether the rule update reports an error, then trigger an update manually in the settings; if the rule set addresses stay unreachable, switch to the client's built-in rules. Once the rules are loaded, sites in mainland China should hit DIRECT again on the Connections page.
The browser works, but other apps are unaffected
The system proxy only covers apps that read the system proxy settings — that's the scope of the mechanism, not a fault. When every app has to go through the proxy, turn on TUN mode: it takes over traffic at the device level and doesn't depend on whether an app reads the system proxy. It needs administrator rights, and the first launch installs a virtual network adapter driver; see the takeover comparison in the protocol handbook for details.
The connection works, but a particular site won't open
First look for that domain on the Connections page: no entry means the request never reached the client, so check whether the app is covered by the system proxy; an entry that hits DIRECT means a rule sends it direct, so adjust the rule if needed; an entry that hits a proxy group but still won't open means you should try another node. DNS-related resolution problems are collected separately in the DNS entry on the FAQ page.
Go deeper
FAQ
Troubleshooting order by category for failed subscription updates, no internet access, DNS leaks and more — match each symptom in turn.
Glossary
Plain explanations of rules, proxy groups, TUN, DNS, mixed ports and more, sorted by topic.
Protocol Handbook
Design trade-offs and resource use across proxy protocols, how the core families relate, and which to pick for each use case.