Using the Docs / First-time Setup

Clash Meta Tutorial

Import a subscription, choose a rule mode, connect, and verify traffic routing.

Before you start, make sure the client is installed and you have a subscription URL for Clash or mihomo, or a complete local YAML configuration. If you haven’t installed a client yet, visit the client downloads page to choose your platform and installer. For your first test, use just one browser; there’s no need to configure per-app routing, custom DNS, or rule overrides at the same time.

Import and Apply a Subscription

Open the client’s “Subscription” or “Configuration” page and look for “Add,” “Import,” or a plus button. To use a subscription URL, choose “Remote Configuration” or “Import from URL,” then paste the full link provided by your service into the URL field. If the service offers multiple formats, choose the option labeled Clash, Clash Meta, or mihomo; don’t enter the client’s local proxy address here. You can give the profile a recognizable name, then click “Save,” “Download,” or “Update” and wait for it to appear in the list. Subscription links may contain access credentials. Paste them into the client, but don’t include the full URL in screenshots or public logs.

If you have a complete YAML file saved locally, choose “Import from File” in the same section and open it using the file picker. The file must be a configuration the client can load directly—not just a list of nodes, and not a proxy provider file intended to be referenced by a main configuration. A .yaml extension doesn’t guarantee that a file can run on its own. If you see an error about missing policy groups, invalid rule syntax, or an unrecognized format, first confirm what kind of file you have. The glossary explains the differences between complete configurations, node subscriptions, and proxy providers.

Seeing a profile name in the list only confirms that it was added. Select it and wait for a check mark or a “Current Configuration” label. Some clients apply a profile automatically when saved; others require you to click “Enable” or “Switch” as a separate step. Then open the Proxy page and check that it shows the groups expected in this profile. Open the Rules page too and confirm that the corresponding rules are visible. If you’ve used another profile before, pay close attention to the current name so you don’t mistake its nodes and rules for those in the newly imported profile.

If the import fails, first determine whether the error occurred during download or after download while parsing the file. If access is denied, return to your provider’s site and check that the subscription is still valid. If the format is invalid, make sure you copied the direct subscription URL, not a link to an account or sharing page. A configuration may also load successfully while a remote provider is still updating. If the client has a “Providers” section, check the update status there. Continue to proxy mode settings once the active profile is in effect and the policy group you need for testing has an available option.

Choose a Rule Mode and Outbound Policy

Open the Proxy page or the mode selector on the home screen, then find “Rule,” “Global,” and “Direct.” If you’re using the subscription’s built-in routing for the first time, choose “Rule.” This setting controls how traffic is handled after it reaches the client; it doesn’t enable the system proxy or start a mobile VPN. In rule mode, the core checks relevant rules in order and typically uses the policy specified by the first matching rule. If no earlier condition matches, the final fallback rule determines where traffic goes. So if one browser connects to two sites and one uses a proxy while the other connects directly, that may be exactly what the configuration is designed to do.

After choosing a mode, open the Rules page and find a public site that’s easy to test. Check which rule is most likely to match its domain and note the policy name. The rule may point to DIRECT, REJECT, or a custom group defined in the configuration. To test proxy routing, choose a site expected to use a proxy group. A site matched to a direct connection may still load, but it won’t confirm that a proxy node works. If a ruleset handles the domain, the client may not show every rule it contains. Note the policy group and expected route, then confirm the actual connection in step four.

Return to the Proxy page and expand the group you noted. If it’s a group you can select manually, choose a node you’re authorized to use and check that it’s marked or highlighted as current. If the group references another group, check the current selection in that nested group too; seeing a group name at the top level doesn’t mean a specific node is selected. For automatic selection or failover groups, the group’s own logic usually determines the outbound route, so check its current selection. A node latency test can help narrow down your options, but its test target differs from the site you’ll visit and can’t replace the browser test below.

You don’t need to switch all traffic to “Global” just to run a test. Global mode bypasses normal routing rules, but traffic still depends on the current selection in the global group. “Direct” mode won’t test a proxy node. Change only one setting at a time: keep rule mode, confirm the target group, then enable just one connection method in the next step. If you can’t find the group on the Proxy page, go back and check which profile is active rather than repeatedly switching modes.

Enable the System Proxy or Connect on Mobile

On desktop, find “System Proxy” on the client’s home screen, in the tray menu, or in settings, and turn it on. Some clients require the core to be running first. Make sure the toggle stays enabled; if the client shows a listening status, check that startup succeeded and there are no port conflict warnings. Then open a new tab in a browser that follows system proxy settings. Some browser profiles, extensions, and apps use their own proxy settings, so whether they can open a page doesn’t by itself show whether the system proxy is working.

On Linux, system proxy support depends on the desktop environment and how apps read proxy settings; command-line tools and background processes may not follow desktop settings. Some Windows and macOS apps also ignore the system proxy. For your first test, don’t enable TUN at the same time. If the browser test passes but a particular app doesn’t follow the system proxy, consult the relevant section of the troubleshooting guide and decide whether to configure TUN separately for your platform. This keeps “does the browser use the proxy?” separate from “do more apps need to be routed?”

On Android and iOS, you’ll usually start the connection from the client’s home screen. The first time you connect on Android, the system asks whether to allow a VPN connection. Make sure the prompt refers to the client you just opened, then approve it. On iOS, the first connection may also ask permission to add a VPN configuration; follow the system prompts to confirm. Return to the client and wait for the home screen to show “Connected” or a similar status. A VPN icon in the system UI confirms that the system session is active, but it doesn’t mean every request uses a proxy node: rules may send some traffic directly.

If the connection drops immediately after you start it, check the client’s latest startup message first. Then see whether another proxy or VPN app is already using a similar connection. Pause only connections you control and don’t need for this test. Leave network settings managed by your workplace or school unchanged, and follow your administrator’s instructions. Once the connection is stable, leave the client running in the foreground or background and note the rule mode, policy group, and node you selected. Next, use a new request to check where traffic goes instead of repeatedly toggling the connection and guessing at the cause.

Verify Traffic Routing

Keep the profile, mode, and node unchanged. Visit a public site expected to connect directly, then the proxy test site you chose in step two. Send fresh requests: close existing tabs for those sites and reopen them, or restart the browser if needed to reduce interference from existing connections and cached pages. Don’t open lots of sites at once. A webpage may load images, scripts, and other domains that don’t all use the same policy. When checking the results, start with the domain shown in the address bar.

While browsing, open the client’s “Connections” page and filter by the target domain. If the request finishes too quickly to remain in the connection list, search the “Logs” page by time and destination instead. First confirm that the client saw the request, then check the matched rule and outbound policy. If the client shows the outbound chain, also verify the final selected node. The expected direct request should show DIRECT; the expected proxy request should use the intended policy group and load successfully. Together, these results show that both test cases behave as expected. A page loading, a system VPN icon, or a successful latency test for one node doesn’t prove that traffic routing is correct.

If you can’t see the request, first check whether the browser or app is reaching the client—for example, whether the desktop system proxy is still enabled or whether per-app settings exclude the mobile app you’re testing. If the request appears but uses an unexpected policy, check for an earlier matching rule or a policy group that still points to a direct connection. If the rule and outbound route look right but the request times out, try another available node in the same group and retry the same destination once. Don’t change the mode and DNS settings at the same time. Changing one thing at a time makes the next result useful for identifying the cause.

After a successful test, keep a note of the profile name, mode, and connection method so you can repeat the same two checks after updating your subscription or changing clients. To disconnect temporarily, turn off the system proxy in the desktop client or tap “Disconnect” in the mobile client, then confirm that network access has returned to its normal route. If menu or button names don’t match, see the FAQ. For recurring subscription failures, mobile connections dropping in the background, or timeouts across multiple sites, use the troubleshooting guide to narrow down the cause.