Initial setup · 4 steps

Clash Quick Start

Import a subscription, choose a routing mode, connect your device's traffic, and check where a request goes. For the initial setup, test with a browser first and leave other network settings unchanged.

Import subscription View downloads

Before you begin: Install a client for your operating system and have a valid Clash subscription URL ready. Some providers offer subscription URLs, account management pages, and configuration files in other formats. Choose a subscription option labeled Clash or mihomo. Subscription URLs may contain access credentials, so paste them only into a trusted client. Don't share them in group chats or include them in screenshots.

Step 1 · Subscription

Import and enable a subscription

Open Subscriptions, Configurations, or Configuration Files in the client's sidebar or bottom navigation. Tap New, Add, or the plus button. If asked to choose a source, select Remote Configuration or Import from URL, then paste the full subscription URL into the link field. If you can name the entry, use a name that identifies its source so you can find it later. On mobile, if you copied a full line of instructions, check that the link field doesn't include extra quotation marks, spaces, or line breaks. Don't edit the URL parameters, especially anything after the question mark.

Tap Import or Save and wait for the entry to appear in the list. Some clients fetch the configuration when you save; others require you to open the entry menu and tap Update. If the page shows an update time or result, use it to confirm the configuration was fetched. Seeing the entry means it was saved, not necessarily enabled. Tap it or choose Enable or Use this configuration from its menu until you see a checkmark, selection highlight, or Current configuration label. If the client switched to it automatically during import, just check the status—there's no need to import it again.

Open Proxies or Proxy Groups and check that the groups and nodes provided by this configuration are listed. Some configurations reference remote proxy providers, which may take a moment to load the first time. If an update fails, check whether the subscription itself failed or a provider referenced by the configuration failed to load. If the old nodes are still listed after import, check which configuration is active, then return to the Proxies page. Keep your existing configuration until you've verified the new one.

If you have a saved YAML file, choose Import from file instead, select the file, and confirm that it's enabled. Local files usually don't update automatically when the provider makes changes, so use the provider's instructions to refresh them later. If a remote import fails because the format isn't recognized, check the export format on the provider's subscription page. Don't paste an account management webpage as a configuration URL. If updates keep failing, see Troubleshooting to narrow down whether the issue is the URL, network, or format.

Ready to continue: The newly imported entry is selected in the configuration list, and the Proxies page shows its nodes and groups. Next, choose a mode; there's no need to enable the system proxy yet.

Step 2 · Routing

Choose a proxy mode and strategy

On the client’s home screen or the “Proxies” page, look for the mode selector. It usually offers “Rule,” “Global,” and “Direct,” or may display Rule, Global, and Direct. Choose “Rule” for the initial setup. Once traffic reaches the core, the client uses the active configuration’s rules to decide whether each request connects directly or goes through a proxy group. Changing this setting only changes how the core routes traffic; apps on your device will not start using the proxy until their traffic is routed through it.

Stay on the Proxies or Proxy Groups page and expand any manual selection group that needs a specific outbound route. Group names depend on the configuration; you may see something like Node Selection or a name you've set for a particular use. Select a node you're authorized to use and make sure the selection indicator appears on it. If you selected another group rather than a node, open that group to see its available options. Groups such as Auto Select or Failover usually choose a route based on their configuration, so you can leave them as they are during initial setup.

If a manual group offers DIRECT and several nodes, don't leave DIRECT selected when you want that group to use a proxy. This choice affects only traffic routed to that group; traffic matched by direct rules will still connect directly. If latency testing is available, use it to identify candidates that aren't responding right now. The test endpoint isn't the same service as the site you want to visit, so treat latency as a guide and verify with a real request.

To distinguish a node issue from a rules issue, you can briefly switch to Global, explicitly select the same node in the global proxy group, and retry the same destination. Global also affects only traffic that reaches the core; it won't automatically route apps that aren't connected to it. Direct is useful for comparison: requests can still pass through the core without being forwarded by a proxy node. This is different from shutting down the client. For initial setup, stay in Rule mode. See Proxy group terminology to learn how rules use groups and how groups can be chained.

Ready to continue: Rule mode is active, and a node is selected in each proxy group that requires manual selection. Keep these settings as they are and connect your device's traffic in the next step.

Step 3 · Connect

Enable the system proxy or connect on mobile

On desktop, first make sure the client core is running. If the home screen has a Start button, tap it and wait for the status to settle. Then enable System Proxy from the home screen, tray menu, or settings. This setting directs apps that follow the system proxy configuration to the local proxy service; it doesn't select a subscription or node for you. If your computer is managed by your organization, check whether changing the system proxy is allowed. Don't override settings controlled by your administrator.

If your desktop client doesn't have a system proxy toggle, check whether it supports your desktop environment. To configure it manually, open your system's network proxy settings and use the local listening address and HTTP or mixed port shown by the client. Don't copy another client's default port. If you're only using the proxy on this device, leave Allow LAN connections turned off. The system proxy mainly covers apps that follow system settings; terminal tools and some browser extensions may have their own settings. For the first test, use a browser that follows the system proxy.

On mobile, return to the client's home screen and tap Start or Connect. The first time you connect, the system may show a VPN permission prompt. Make sure the request is from the client you just opened, then allow it to create a VPN configuration. Wait for the app to show Connected. You can also check your device's network or VPN settings to see which app is connected. Status bar indicators vary by device, so rely on the connection status shown in the app and system settings.

If another proxy client or VPN is already connected, check whether it conflicts with this connection. If your device allows it, pause the existing connection and try again, then restore it when you're done testing. For your first desktop test, don't enable both the system proxy and TUN; if something goes wrong, it will be harder to tell how the traffic entered the core. If an app later turns out not to follow the system proxy, see TUN mode for details on system permissions and traffic coverage.

Ready to continue: On desktop, the core is running and the system proxy is enabled; on mobile, the app shows Connected. This confirms the connection settings are ready, but doesn't yet prove that a particular site is using the expected route.

Step 4 · Verify

Verify the connection

Open the client's Connections or Logs page, then visit a site in your browser that you can normally access. Make the request in a new tab; if the page loads from cache, refresh it before checking the records. Note the domain and time, and don't mistake requests for images, fonts, or analytics on the same page for a request to the main site. If Connections shows only active sessions, a short-lived request may disappear before you switch back. In that case, check Logs for recent entries.

Once you find the matching entry, check two things: whether the page loaded and whether the matched rule and outbound strategy are what you expected. For a site that the configuration is meant to route directly, seeing DIRECT is the correct result. To verify a proxy node, choose a site that the active configuration clearly routes to a proxy group. Confirm that the entry shows the expected group or outbound node and that the page loads successfully. A working page, an enabled system proxy, or a latency reading alone can't show how that specific request was routed.

If you find the entry but the strategy isn't what you expected, check the active configuration, Rule mode, and the selected option in the relevant group. If the strategy is right but the page times out, keep the configuration and mode unchanged, switch to another node in the same group, and retry the same URL. If there's no entry at all, check whether the logs are filtered, then confirm that the browser uses the system proxy and the client core is still running. Change one thing at a time and compare the results; it's easier to pinpoint the issue than to re-import a subscription, change nodes, and edit system settings all at once.

If the browser reports that the domain can't be resolved, or a site only fails to load when the proxy is on, note the exact error and see DNS troubleshooting. If you can find the connection but don't understand the matched rule, see Logs and connection troubleshooting. When sharing troubleshooting details, include only the error and relevant settings. Redact subscription URLs, account information, and unrelated browsing records.

Success criteria: The test page loads, and at least one request that should use a proxy matches the expected outbound route. When you're done testing on desktop, turn off the system proxy in the client before stopping the core. If you configured the system proxy manually, restore the original settings. On mobile, tap Disconnect in the client, then restore any connections you paused if needed.