First-Time Setup / iPhone · iPad · Mac
Clash Setup Guide
Import a subscription, choose Rule mode, then check which policy handles a connection.
Have the client installed, a compatible subscription link, and a network that can access websites. A subscription may contain account details, so paste the link only into the client.
- Active ConfigurationSelected
- Outbound ModeRule
- Device Traffic RoutingVPN or System Proxy
- Where to VerifyConnections or Logs
Importing a configuration doesn’t mean device traffic is reaching the client. Check the connection record for an actual request to confirm.
Step 01 / Configuration
Import a Subscription
First, copy the complete subscription link from your configuration provider. An account page may offer a general link alongside client-specific options; choose one explicitly labeled for Clash, Clash Meta, or your client when available. Don’t use the account sign-in URL, a single node address, or a webpage for sharing a QR code as a subscription. After copying the link, leave the connection switch off. For now, check only whether the client can retrieve and recognize the configuration.
Add a Configuration on iPhone or iPad
Open the client and go to the “Configuration” or “Subscription” page. Tap the plus button in the top-right corner, then choose “Import from URL” or an equivalent option for a remote configuration. Paste the full link into the address field. Give it a short, recognizable name if needed, such as “Daily subscription.” Tap “Import” or “Save,” then wait on the list until loading finishes. When the new entry appears, select it and check for a selection indicator beside it, or confirm that the home screen shows its name as the active configuration. Seeing a new entry in the list alone doesn’t confirm that it’s in use.
Add a Configuration on Mac
If the client runs from the menu bar, click its icon to open the main window, then go to “Configuration” or Profiles. Paste the link into the subscription URL field and click “Import.” Some clients require you to click “New” first, then choose a remote link as the source. After importing, click the configuration card or choose “Enable” from its menu. If you have both a local configuration and a remote subscription, check the name in the main window to make sure the previous local file isn’t still active. If your provider gave you a local config.yaml file, choose “Import from File” instead of entering the filename in the URL field.
Check the Import Before Choosing a Mode
After selecting the configuration, open the “Proxies” page and check that the expected proxy groups appear. If the provider says the configuration includes routing rules, check the “Rules” page for entries as well. If the import screen reports a parsing error, make sure you didn’t paste a sign-in page URL or omit a trailing parameter, then copy the correct link format from the provider’s site. If the download times out, open a website that normally works on your current network to confirm the device is online, then try again in the client. If it still fails, note whether the error was a download or parsing failure. Don’t include the full subscription link in screenshots or public reports. Make sure the new configuration is active before choosing a mode.
Step 02 / Routing
Choose a Proxy Mode
Go back to the home screen, overview, or menu bar, then select “Rule” under “Outbound Mode” or “Proxy Mode.” Some clients use Rule. After switching, make sure “Rule” is selected instead of “Global” or “Direct.” This setting controls how requests that reach the client are routed; it doesn’t enable the system proxy or connect the VPN. It’s normal for the client to remain disconnected right after you switch modes.
Check the Active Proxy Group
Open the “Proxies” page and find the group for the type of traffic you want to test. Group names are set by the configuration. It might be called “Node Selection,” Proxy, or something else. For a manual group, check the current selection: if you’re testing traffic that should use a proxy, select an actual proxy node rather than DIRECT. An automatic group usually chooses the outbound route based on the configuration, so you can leave it selected without testing every node during initial setup. You don’t need to set every group to the same node. Check only the group expected to handle this test.
When Direct Connections Are Normal in Rule Mode
For example, if the Rules page contains DOMAIN-SUFFIX,apple.com,DIRECT, requests to apple.com and its subdomains will go direct when they match that rule. A website can load while its connection is shown as direct; both can be true at once. Rules are evaluated in configuration order, so the presence of a domain in the list doesn’t tell you which rule matched—a rule above it may have handled the request first. You don’t need to edit any rules for the first test. Note one easy-to-recognize domain rule and its policy, then compare it with the connection record later. If a rule type is unfamiliar, see the glossary for explanations of rules, proxy groups, and DIRECT.
“Global” can help compare the same request in different modes during troubleshooting, but it won’t route app traffic through the client if that traffic never reached it. “Direct” isn’t a way to stop the client either. For your first run through this guide, keep “Rule” selected and use the same configuration while connecting the device. If you compare modes later, change only this setting and switch back when you’re done.
Step 03 / Connection
Connect
Next, route the device’s test requests through the client. Keep the configuration and Rule mode you just checked, and stay on the same network. If another VPN is connected on the device, or another client’s system proxy is enabled on Mac, follow your device management requirements before handling the existing connection. This helps prevent two clients from competing for the same traffic. Don’t remove a VPN or proxy managed by your organization. If you’re unsure whether you’re allowed to change it, ask your device administrator first.
iOS / iPadOS: Start the VPN
Go back to the client’s home screen and tap “Connect” or turn on the main switch. The first time, iOS may ask for permission to add a VPN configuration. Confirm the prompt is from the client you just opened, tap “Allow,” and complete any verification requested by the system. Then return to the client and wait for the status to change to “Connected.” If you accidentally tapped Cancel, tap Connect again and watch for the system prompt to reappear. You can also search for “VPN” in Settings and check the configuration name and connection status. If the client says it’s connecting, wait for the result instead of repeatedly toggling the switch.
macOS: Enable the System Proxy
Go back to the client’s home screen or menu bar. If “Start Core” and “Set as System Proxy” are separate switches, start the core first, then enable the system proxy. Leave “Enhanced Mode (TUN)” off for the first test: checking the system proxy route in a browser is enough; there’s no need to enable another traffic-routing method at the same time. If the client says the system proxy is enabled but browser requests don’t appear, open the current network’s details in macOS System Settings → Network and check whether the “Proxies” section matches the client’s status. Inspect the settings only—don’t guess the local port or fill in an address. Let the client manage the settings it changes and restore them when needed.
For the first test, leave “Connect on Demand” on iOS and “Launch at Login” on Mac disabled too. That way, you control when connections start and stop, making status changes easier to interpret. If an error appears immediately after enabling the connection, note the exact message and determine whether authorization failed, the core didn’t start, or the VPN connected and then dropped. Once the VPN shows as connected on iPhone or iPad, or the Mac client shows the core running and system proxy enabled, you can make your first test request. The status indicator only confirms that the traffic-routing entry point is enabled—it doesn’t prove the request used a proxy.
Step 04 / Verification
Verify It Works
Open a browser on the device and first visit a website that normally works on your current network. This confirms basic access still works after connecting. Then visit the test domain you noted in Step 2, making a fresh request if possible: close any page already open, then visit the domain in a new tab so you don’t mistake previously loaded content for a new result. Return to the client soon after making the request and search for the domain or access time on the “Connections” page. Short-lived requests may already be gone from the current list; check the connection history or logs if the client has them.
Match the Domain, Rule, and Final Route
If the client shows connection details, check the destination domain, matched rule, and actual outbound route in that order. If the route is DIRECT and the test domain is expected to connect directly, the request was routed as intended. To confirm the proxy path, make a new request to a domain that the configuration explicitly routes through a proxy group. Check that the record points to that group and the node it actually selected. A page loading only tells you the request got a response; it doesn’t replace checking the rule and route. Node speed tests in a subscription don’t prove that a browser request used that node. You don’t need to start by checking your exit IP: in Rule mode, different requests can take different routes.
Troubleshoot by Symptom; Change One Setting at a Time
If you can’t find the test request at all, make another fresh request and check whether you’re looking at old records or have a filter enabled. On Mac, also check whether the browser uses the system proxy. If the browser shows a record but another app doesn’t, check whether that app has its own proxy settings. On iPhone or iPad, confirm that the system VPN and client both stayed connected during the test. If you find the request and the expected rule matched but access failed, go back to “Proxies,” change only the selected node in that manual group, then retry the same domain on the same network. If the record shows an unexpected rule, first check that you selected the right configuration, then review the rule order on the Rules page.
If several websites that normally work all fail after connecting, disconnect deliberately and try one of them again. If it still fails while disconnected, troubleshoot the device’s network first. If it starts working as soon as you disconnect, note the domain, mode, and client message from the failed attempt, then revisit the relevant step. Once the expected routing is confirmed, keep the current configuration. When you finish testing, disconnect with the client’s switch: on iPhone or iPad, confirm the VPN is disconnected; on Mac, confirm the system proxy enabled by the client is off. For help with app routing, DNS, or enhanced mode, see the beginner-to-advanced guide. There’s no need to change all of those settings during the first connection test.