First-time setup · about 10 minutes

Clash Quick Start: From Subscription to Connection Test

Apply a subscription, choose a mode, enable the proxy, then check the traffic route in the connection log. You don't need to edit rules or enable TUN for a first-time setup.

Before you begin, make sure you have a subscription link you’re authorized to use and that’s compatible with your client. The client reads the configuration and handles connections; installing it doesn’t provide a subscription. If your device already uses a work-configured proxy or VPN, check whether you’re allowed to change it first. If so, note the original settings so you can restore them after testing.

Import a Subscription and Apply the Configuration

Open the client and look for the Profiles, Subscription, or Profiles page. On desktop, the import option is often above the list. On mobile, you may need to tap the plus button first, then choose Import from URL or Add Remote Profile. Paste the full link into the URL field. If the app lets you name the entry, use something easy to recognize, such as “First test.” Check that the link wasn’t truncated when copied, then tap Import or Save. If saving only creates an entry, tap Update or Download for that entry and wait for the request to finish.

After a successful import, the new configuration should appear in the list. Tap it, or open its menu and choose Use or Apply, until you see a selection indicator, the active configuration name changes, or the client confirms it has loaded. Downloading a subscription and applying a configuration are separate actions: downloading retrieves the contents, while applying determines which configuration the core actually uses. If the list already contains an older configuration, check which one is marked active; don’t assume the top entry is selected.

Open the Proxies page and check whether its contents refresh after the configuration changes. Subscriptions with proxy groups usually show group names. Open a manually selectable group to see its options. Some configurations focus on direct-connection rules, so the number of nodes alone doesn’t tell you whether the import succeeded. If you have a local YAML file, use the client’s Import from File option instead of putting the file path in the remote URL field. Apply the configuration after importing it; unlike a remote subscription, a local file usually can’t be updated automatically from its original source.

If the import fails, distinguish between two kinds of errors. “Request failed” means the client didn’t get a response; check your network and whether the subscription has expired. “Parse failed” usually means the client received content it can’t read as a configuration, such as a web login page. Check with your subscription provider that the selected format supports Clash or mihomo. Subscription links may contain access credentials, so don’t paste the full link into public chats or forums. Make sure the configuration is active before moving on; there’s no need to enable the proxy yet.

Choose a Proxy Mode and Strategy

Find the mode switch at the top of the Proxies page or on the Settings page. You’ll usually see Rule, Global, and Direct, or Rule, Global, and Direct. For your first setup, choose Rule. In this mode, connections are checked against the configuration’s rules in order, then sent to the matching strategy: direct, rejected, or routed through a proxy group. If the configuration ends with MATCH, that fallback rule handles connections that don’t match any earlier rule.

Next, return to the Proxies page and expand a group you can control manually. Check what the group is for, then select a node you plan to use for this test. If the group includes both nodes and an option named DIRECT, choosing direct means traffic assigned to that group won’t use a proxy node. Other groups may automatically test speeds or switch routes when one becomes unavailable, so the interface might not let you choose an option manually. In that case, leave the existing selection as is. Check which option is shown as active beside the group; seeing a node in the list doesn’t mean it’s selected.

Modes and proxy groups work at different levels. The mode determines how connections that reach the client are handled; a proxy group’s selection affects only connections routed to that group. For example, if a rule specifies DIRECT, that connection stays direct even if you’ve just selected a different node in a proxy group. Conversely, in Rule mode, a site may not open because it matches a reject strategy and the configuration is working as intended. Note the group you’ll use for testing and the expected result, then compare them with the connection log.

Global mode is useful for a brief comparison: connections that reach the core are generally sent to the global strategy, so check which option the global group currently uses. It doesn’t automatically route apps through the proxy if they aren’t connected to the client in the first place. Direct mode sends connections that reach the core without using a proxy node; it’s not the same as quitting the client or turning off the system proxy. For a first setup, leave Rule mode selected rather than switching back and forth. For details on what each mode affects, see the proxy modes guide. Next, make sure app traffic reaches the client.

Enable the Proxy Connection

Return to the client’s home or Settings page and make sure the configuration you just imported is still active. If the client has separate controls for Start Core and System Proxy, start the core first and wait for its status to show that it’s running, then enable the system proxy. The core is ready to handle requests; the system proxy setting tells apps that follow the system configuration to send requests to it. A browser is the easiest way to run your first test. Leave apps that don’t follow system settings until after you’ve verified the setup.

On desktop, enable the system proxy and make sure the client’s toggle stays on. You can also check the system’s Network or Proxy settings to confirm they’ve changed. Some Linux desktop environments handle proxy connections differently, and the client may only show a local listening address and port without changing system settings for you. If so, you can enter the protocol, address, and port shown in the client in your browser’s proxy settings. If the client provides only a local HTTP proxy, use that for testing; don’t mistake the control port for the proxy port.

On mobile, return to the app’s home screen and tap Connect or Start. The first time you connect, the system will usually ask for VPN permission. Confirm that the request came from the client you just installed, then allow it. Return to the app and check that it shows as connected; the system status bar may also display a VPN icon. That icon only confirms a system connection is active—it doesn’t show which rule a site will match. If the system says another VPN is already in use, don’t try to run both at once. Check whether you can stop the existing connection first; if not, don’t switch yet.

Leave TUN settings unchanged for the first test. Don’t enable additional traffic-capture methods at the same time. Once connected, open a new browser tab and visit your test site instead of relying on a page that was already open; it may reuse an old connection or show cached content. If the connection drops as soon as you turn it on, check the earliest error in the logs, then compare it with the troubleshooting guide. If your entire network stops working, turn off the proxy you just enabled or disconnect on mobile. Restore the settings you noted before testing if needed, then troubleshoot again.

Verify That Rule-Based Routing Works

Verify two things: first, that requests reach the client; second, that they use the expected strategy. Keep the browser and the client’s Connections or Logs page visible at the same time. On mobile, switch back to the client after making a request. First visit a site that the current configuration should route directly, then one that should use a proxy group. If the configuration doesn’t include both types, choose test sites with different expected outcomes based on its actual rules. Don’t guess the route based on a site’s name or location.

In the connection log, look for the new requests by domain and time. A page may load fonts, images, and other domains too, so start with the main domain you entered rather than a nearby resource. Open the details and check the destination, matched rule, proxy group, and final outbound route in order. Some clients show the last two as a single proxy chain. If the direct-connection target shows DIRECT, while the other matches the expected proxy group and has a proxy node selected, routing is working as planned. A page loading successfully only confirms access; the log shows which route it actually took.

If the page loads but no new entry appears, first check whether the system proxy or mobile VPN is still enabled. Then confirm that your browser isn’t using a separate proxy setting. Close the original test tab, make a fresh request, and check the client right away so you don’t miss a short-lived connection. If there is an entry but it matches an unexpected rule, check the active mode and configuration name, then look for an earlier rule that may have matched first. If the rule and outbound route are correct but the site still won’t load, check whether the selected node can connect and whether the issue affects just one site. Don’t reinstall the client as a first step.

After testing, keep the configuration, Rule mode, and proxy group selection you’ve confirmed. If you were only trying it out, turn off the system proxy on desktop before quitting the client, then confirm the system settings are back to their original state. Restore any browser proxy settings you changed as well. On mobile, tap Disconnect and make sure the connection has ended. After updating a subscription, you can repeat the same two visits to check that the proxy group and final outbound route haven’t changed unexpectedly. For help adjusting rule order or traffic capture, read the rule-based routing guide, from beginner to advanced. For a specific issue, start with the troubleshooting guide.

Download the Latest Clash Version