Getting Started

Clash Setup Guide

Import a subscription, choose a mode, connect, then make a fresh browser request to check that the rules are working. If your client and subscription are ready, you can complete these four steps in about 10 minutes.

Step 1: Import a Subscription and Activate the Profile

Open Clash Nyanpasu and select “Profiles” in the left sidebar. On the Profiles page, find the option to import from a URL, paste the full subscription URL from your provider, and confirm. If you received a local file, choose the file import option and select the YAML file. These options accept different inputs: a subscription URL downloads a configuration, while a local file already contains one. Pasting a URL into the YAML editor or a web login URL into the subscription field won’t work.

When a new card appears in the list, check its source and name, then set it as the active profile. Depending on the version, you may be able to click the card to switch profiles, or find the option in its menu; check the card’s status to confirm. If you keep multiple profiles, a successful import only means a new card was added—it doesn’t mean the client is using it. You can leave the old profile in place and switch back to it if the new one has issues; that’s quicker than importing it again.

Once you’ve switched profiles, open the Proxies page and check for the profile’s proxy groups or options. If you still see groups from the old profile, return to Profiles and confirm which one is active, then check whether the client reported a loading error. Seeing the loaded proxy groups means the client has read the profile, but your browser may not be routing traffic through the client yet, so there’s no need to test a website just yet.

Import Failed? Check the URL and Format

If no new card appears, first check whether the error occurred while fetching the configuration or while parsing a downloaded file. For a fetch error, make sure your current network can reach other websites, then check that you copied the full URL without extra spaces or line breaks. If your provider changed the link, copy it again from the original source. For a parsing error, check the subscription format: one provider may offer links for different clients, and a reachable URL isn’t necessarily a Clash configuration. Don’t post the full subscription URL in public forums or share it with strangers; the error message is enough for troubleshooting. Once the profile is imported and active, decide which traffic should use a proxy.

Step 2: Choose a Proxy Mode

Find the mode selector on the Proxies page. For your first setup, choose “Rule,” then confirm the highlight or selection marker is on that option. Rule mode matches requests entering the client against the active profile’s rules. The matched rule determines whether a request connects directly, goes to a proxy group, or is rejected. It doesn’t automatically decide which websites should use a proxy. If a rule sends a domain to DIRECT, a direct connection is expected.

Stay on the Proxies page and review the proxy groups. Group names come from the profile, so they can vary widely between subscriptions. A manually selected group usually marks the active option; if your provider says a particular group is for the kind of access you’re about to test, check which option is selected in that group. An automatic group chooses an available option according to the profile’s settings. For your first test, just confirm the group has options—you don’t need to change every group to get a website to load.

It’s easy to confuse switching to “Rule” mode with choosing a proxy in a group, but they do different things. The mode determines how the client assigns a policy to each request; a group selection only affects requests that have already been assigned to that group. For example, if a domain matches a direct rule, changing the proxy option in a group won’t change how that page connects. If this happens, check the matched rule in the verification step before deciding whether to change the group option.

When to Switch Modes Temporarily

If you confirm a request is reaching the client but need to tell whether the issue is rule assignment or an unavailable proxy, temporarily test the same destination in Global mode. Check which option the global policy uses: if it points to a direct connection, the test won’t tell you whether the proxy works. Direct mode can help compare access without proxy routing, but it doesn’t turn off the system proxy switch. Switch back to Rule mode when you’re done. For matching order and configuration examples, see the rule-based routing section of the full guide. Once Rule mode is selected, the client is ready to receive app traffic.

Step 3: Enable the System Proxy or Connect on Mobile

On desktop, open Clash Nyanpasu Settings, find “System Proxy,” and turn it on. You can also use the tray menu if it has the same switch. Check that the switch stays on, and address any error message before continuing. For your first browser test, use the system proxy only and leave TUN off. This makes it easier to check whether the browser is sending requests to the client without also troubleshooting virtual adapters and routing changes.

Once the system proxy is enabled, only apps configured to use it will route traffic through that connection. Some browsers have their own proxy settings, and extensions may also control browser proxy behavior. If you manually set a proxy for testing, note the original settings and then switch the test browser back to using the system settings. On a managed device, follow your administrator’s instructions and don’t override existing settings. To check whether an app that ignores the system proxy should use TUN, first verify your browser, then see the TUN section of the full guide.

On mobile, return to the client’s home screen and make sure the profile you just selected is active, then tap “Start” or “Connect.” The first time you connect, the system will usually show a VPN permission prompt. Confirm it’s for the client you’re using, then follow the system prompts to allow it. Once the client shows that it’s connected, check the system’s VPN settings to confirm. If another tool is using the VPN, check whether it’s okay to disconnect that connection before trying again. Don’t force a replacement if a work profile or device management policy restricts the connection.

Keep Your Settings As They Are After Connecting

A switch that stays on or a phone that shows “Connected” only confirms that the connection has started. Don’t change profiles or nodes, or enable another traffic-routing method at the same time. Keep the current profile and Rule mode, then verify with the same browser. If something goes wrong later, change one setting at a time and retest the same page. Changing several settings at once may temporarily fix the issue without revealing what actually worked.

Step 4: Check That Rules and the Connection Are Working

On desktop, open the client’s Connections page, then open a new browser tab and visit a familiar website with an easy-to-recognize domain. On mobile, visit the website first, then switch back to the client to check the connection log. If the app only keeps short-lived records, reload the page and switch back right away. Don’t use a page that was already open before you connected as proof: it may be cached or using an existing connection, so a page that looks fine doesn’t mean a new request was sent.

Find the domain for your visit in the connection log. Websites may load images, fonts, and other services, so not every entry will match the address bar. Start with the website’s main domain, open its entry, and look for fields such as rule, policy, or proxy chain. If it matched a direct rule and loaded successfully, that request reached the client and followed the rule to connect directly. To test proxy routing, choose a destination that the active profile should send through a proxy group and that you’re normally allowed to access, then check which policy the connection log shows. A page loading successfully on its own doesn’t tell you how the request was routed.

Use the Connection Log to Choose Your Next Step

If the page loads but no connection appears, make a fresh request and check the log right away; a short-lived connection may have disappeared from the active list. If the client has relevant logs, check those too. Still no entry? On desktop, recheck the system proxy and the browser’s own proxy settings. On mobile, confirm the client is still connected. If you find an entry but the page won’t load, the request has at least reached the client. First check whether it matched the expected rule, then whether that policy has an available option, and finally note the specific error in the logs. Look into DNS terminology and configuration only if you see clues such as a domain resolution failure; there’s no need to change DNS settings as a first step.

Your initial setup is complete when the destination loads and the connection log shows the expected policy. After changing or updating a subscription, repeat the same test using the same website and checks. To restore your usual network settings, turn off the system proxy you enabled on desktop, or disconnect the client on mobile. If the device already had proxy settings before the test, restore the settings you noted earlier. If all destinations time out or the switch won’t stay on, check the FAQ with the active profile name, proxy mode, and error message. To learn about subscription updates and switching between profiles, see the subscriptions section of the full guide.