First-time setup · 4-step guide

Clash Quick Start

After importing a profile, use Rule mode to route a new request. If you can confirm which rule handled it, your first connection check is complete.

Import a subscription Rule mode Connection logs

Step 01 Profile source

Import and enable a subscription

A subscription is a URL the client uses to fetch and update a profile. The profile defines available proxy endpoints, how they are grouped, and when traffic connects directly. Open the client’s “Profiles” or “Subscriptions” page and look for “New,” “Add subscription,” or “Import from URL.” Paste the complete URL into the address field. Make sure you haven’t copied any quotation marks or line breaks along with it, then select “Import” or “Save.” If prompted for a name, choose one that’s easy to recognize; it won’t affect the connection.

For a local .yaml or .yml file, choose “Import from file” on the same page and locate the original file in the file picker. On a phone, save the file to the system’s Files app first, then select it in the client. Don’t paste a local file’s contents into the subscription URL field or save a web page and rename its extension. The client needs profile content in a format supported by its core.

Confirm the profile is active

After importing, the new profile should appear in the list. Open it and select “Use” or “Enable” as prompted until you see a checkmark, highlight, or “Current profile” label. Some clients enable the first profile automatically; if it’s already marked as current, there’s no need to do it again. If another profile is already working on the device, note its name and keep it so you can switch back later without deleting and recreating it.

If the import fails, check the error to tell a download failure from a profile parsing failure. For a download failure, first confirm the device is online and check whether the subscription URL from its source is still valid. Parsing failures often happen when you copied an account page, chose the wrong export format, or have a profile that the current core doesn’t support. Check with the source for a Clash- or mihomo-compatible format, then try importing again. Subscription URLs may contain private access credentials. When troubleshooting, share only the error text—never the URL or profile contents.

Next: Confirm this is the current profile, then open the “Proxies” page to check the mode and proxy groups. Seeing a file in the list doesn’t mean it’s active.

Step 02 Traffic routing

Choose a proxy mode

Open “Proxies,” “Mode,” or Proxies, then find the mode selector. For your first setup, choose “Rule” or Rule. Rule mode uses the conditions in your profile to route requests: some can connect directly, while others go through a selected proxy group. Direct means the request bypasses proxy servers; a proxy group is a set of outbound options you can select manually or let the core choose automatically. After switching modes, the current mode shown in the interface should be “Rule.”

How the three proxy modes differ
ModeHow requests handled by the core are routed
RuleMatches requests against profile rules; traffic may use a proxy, connect directly, or be rejected.
GlobalRoutes all traffic through the global policy; the actual outbound depends on its current selection.
DirectBypasses proxy servers; useful for troubleshooting by comparison.

Check which outbound will handle your test request

In Rule mode, open the proxy group used for proxy traffic in your profile. A manually selected group usually shows its current member. If your provider recommends an option, start with an available outbound from that list. Automatic groups are selected by the core based on the profile, so there’s no need to change them just for testing. Group names are set by the profile author and may not be “Proxy.” Some groups also offer DIRECT, which means the traffic connects directly. If you’re testing a proxy outbound, make sure the group expected to match your request isn’t set to direct.

If the client has a test button, you can try it for a quick check that an outbound responds. But a request from the test button isn’t the same as one from your browser: a successful test only confirms the client’s own probe worked. You still need to verify browser traffic after routing it through the client. If you’re unsure why a domain matches a particular group, don’t edit the profile yet; check the rule that actually matched after connecting. For more on the differences between modes and connection methods, see Usage FAQs.

Next: Keep Rule mode selected. The mode determines how the core handles requests; the connection setting determines which requests reach it.

Step 03 Route traffic

Connect on desktop or mobile

Desktop: enable the system proxy

Go to the home screen or “Settings,” find “System proxy,” and turn it on. If the client has a separate “Start” button, start the core before enabling the system proxy; some clients do both when started. Make sure the switch stays on and the home screen shows no core startup failure or port conflict. The system proxy routes requests from apps that honor the system proxy settings to the client. A browser is enough for your first check; you don’t need to enable TUN. TUN routes traffic through a virtual network interface.

If you can’t find a system proxy switch in the desktop client, check the guide for your platform. Some desktop environments don’t let clients update proxy settings automatically, so you may need to configure them in the system network settings. If you do, use only the local listening address and proxy port shown by the client, and note the original system settings so you can restore them. Don’t enter the subscription URL as the system proxy address or copy someone else’s port number. If your browser has a proxy-management extension, make sure it isn’t overriding the system settings during the test.

Mobile: connect from the client

Return to the client’s home screen and tap “Connect,” “Start,” or the power icon. The first time you connect, the system may ask permission to establish a VPN connection. This is how the mobile OS routes selected traffic to the client. Make sure the prompt is for the client you just opened, then grant permission as directed. Back on the home screen, check that the status says “Connected.” Whether a VPN icon appears in the status bar depends on the system and its display settings, so don’t rely on the icon alone.

If the connection drops as soon as you turn it on, check whether the client reports a profile loading error and revisit the profile you imported in Step 1. If the system says another VPN connection is active, confirm whether it’s required for work or school; don’t disable a managed connection just to test. On a personal device, you can temporarily disconnect another VPN you installed yourself and try again, since two clients may compete for the same connection method.

Next: Once the switch stays on, leave the mode and proxy group unchanged for now. Checking one fresh request makes it easier to pinpoint the issue than changing several settings at once.

Step 04 Test a request

Verify your connection

Choose a trusted website you normally use as your test target. Open the client’s “Connections” or “Logs” page, then open a new browser tab and visit the site. If the page was restored from cache, refresh it and check for a new entry at the matching time. Browsers may reuse an existing connection; if you only see an old entry, close the relevant tabs and, if needed, restart the browser before trying again. You don’t need to submit an account, subscription URL, or other private information to test.

Use logs to distinguish routing from proxy success

Find the domain you just visited or its destination address in the new entries, then check the matched rule, proxy group, or outbound shown in the client. If the profile routes that site directly, a DIRECT entry is expected: it means the request reached the core and was routed directly, but it doesn’t prove that a proxy outbound works. To test a proxy outbound, make a fresh request to a trusted site that the current profile should route through a proxy. The proxy path is verified only when the entry shows the expected proxy outbound and the site loads successfully.

If the site opens but there’s no log entry, check whether the log level or filters are hiding entries, whether the test app honors the system proxy, and whether the client is still running. If a proxy-routed request is logged but the page won’t load, check the error at that time and try another available outbound in the same proxy group. Change one option at a time and make a fresh request after each change. If the client doesn’t show individual connections, comparing the same site with the connection on and off can help, but a page loading successfully alone doesn’t tell you which route the request took.

Finish testing and keep a way back

If everything works as expected, you can keep the current profile and Rule mode. If you only wanted to test, turn off the system proxy in the desktop client before closing it. If you changed system settings manually, restore the values you noted earlier. On mobile, tap “Disconnect” in the client and confirm the connection has ended. After disconnecting, open a familiar website to make sure your regular network still works. If you started with another profile, switch back to it and restore its previous connection settings so you don’t leave the test setup in place.

If you can’t restore your settings, note the OS version, client name, step where the error occurred, and a redacted error message. Search by symptom in the FAQs. Once your first connection works, you can read the advanced guide if needed. There’s no need to rewrite rule sets or enable every network option just to complete the initial setup.