Open source · Desktop proxy client

Clash NyanpasuDownload and setup guide

Manage desktop subscriptions and rule-based routing with the mihomo core, or find mobile alternatives for your platform.

  • Open source
  • Chinese documentation

Manage Profile settings and route traffic

Choose a working profile on the Profiles page, then decide which traffic the client should handle. Check the profile source, proxy mode, and traffic interception separately to make it easier to find the right place to troubleshoot.

Organize your profiles

Keep your everyday subscription, local profile, and test copy separate under “Profiles.” Selecting a card switches the active profile; it doesn’t delete the others. Compared with maintaining a single configuration file, multiple profiles let you switch back if a test fails, without manually undoing changes line by line. Make temporary changes in a local copy. For port or rule changes you want to keep, use a supported override layer so the next remote update doesn’t overwrite them. After switching, check “Proxies” to confirm the active profile’s policy groups are available. A selected card alone doesn’t prove the core loaded the profile.

mixed-port: 7890

Import and update subscriptions

Once you have a subscription URL from your provider, choose link import on the Profiles page. If you received a saved YAML file, import it from a file instead. Unlike repeatedly downloading and replacing a local file, a remote profile retains its update source, so you can fetch it again using “Update” on its card. After updating, check for errors on the card, then go to “Proxies” and confirm your usual policies are still selectable. If the URL opens in a browser but the client can’t parse it, the provider may be returning a login page instead of a configuration. Ask your provider for the correct Clash-compatible subscription URL. Don’t share the full URL when asking for help.

log-level: info

Rule-based routing

Rule mode checks destination addresses in the order defined by the active profile, then sends each matching connection to its assigned policy. In this example, the domain shown and its subdomains go direct. Unlike Global mode, which uses one policy for all intercepted connections, Rule mode lets you keep local network traffic and frequently used services on a direct route while sending other requests through the appropriate group. Put specific exceptions before broader rules. After making a change, start a new connection and check the match on the Connections page. Don’t use an existing connection or browser cache as proof that the change worked. Change one rule at a time to make issues easier to pinpoint.

DOMAIN-SUFFIX,example.com,DIRECT

TUN traffic interception

Browsers usually use the system proxy, but some apps don’t. If you need to handle that traffic, consider enabling TUN so the core can intercept connections that match its routing rules through a virtual network interface. First confirm the required system permissions are granted. Then start a new connection in an app that doesn’t normally use the system proxy, and check the logs and Connections list to see whether it was intercepted. TUN changes how traffic reaches the core; it doesn’t automatically switch the proxy mode to Global. Once traffic enters the core, the active mode still determines how it’s handled. If enabling TUN disrupts printers, internal domains, or a corporate network, turn it off to restore the previous route, then check route exclusions and DNS settings.

tun: { enable: true }

Quick actions from the system tray

After switching networks, check the system proxy and TUN status from the system tray, then confirm whether Rule, Global, or Direct mode is active. The tray is handy for quick changes; return to the main window to inspect rule matches or adjust policy groups. To troubleshoot an issue that occurs only on one network, briefly switch to Direct without changing the interception method, then reopen the affected page for comparison. Switch back when you’re done so you don’t leave the client in the wrong mode. Closing the window isn’t the same as quitting from the tray. Before switching to another proxy tool, quit the old client and check that the system proxy has been restored.

mode: rule

Check that your configuration took effect

Check the setting you just changed. There’s no need to reinstall the client from scratch.

If the client still seems to be using the old profile, first confirm that the new card is marked as current. Then look on the Proxies page for a policy group that exists only in the new profile. If it’s missing, check Logs for errors while generating the configuration or reloading the core. If both profiles have a group with the same name, the name alone won’t tell them apart. Start a new connection to test a rule that exists only in the new profile. Keep the old profile until you’ve confirmed the changes work, then decide whether to remove the test copy.

Choose a download for your operating system

Clash Nyanpasu is a desktop client. The Downloads page lists clients and available packages by operating system, with similar options for mobile and some desktop platforms. When switching clients, keep the original subscription for comparison, but don’t copy every port, interface setting, and override file from the old app. Import a profile first, confirm its policy groups and rules work, then move over your everyday settings.

Windows

To download Clash Nyanpasu, find its entry in the list for your operating system. Before downloading, check your system type under Settings → System → About. Don’t confuse the operating system’s bitness with the processor architecture. If you’ve used another proxy client on this computer, quit it before launching the new one to prevent both clients from changing the system proxy or competing for the same local port. If the client opens after installation but your browser doesn’t use the proxy, check the system proxy switch and the active listening port first.

Go to downloads

Android

On Android, choose a client that supports your subscription format. If packages are listed for both general use and specific architectures, check which architecture your device supports. If you’re unsure, look for a compatible universal package. When connecting for the first time, approve the system’s VPN permission prompt and check that another app isn’t already using the VPN. Import and test the subscription with the app in the foreground, then lock your screen to see if the connection stays up. If it only disconnects in the background, check battery optimization and your device maker’s background activity restrictions.

Go to downloads

iOS

On iPhone, open the App Store from the downloads page and check the app name and system requirements. After installing, import your subscription in the app and follow the system prompts to add a VPN configuration. The desktop system tray’s proxy switch doesn’t have an equivalent on iPhone. If you’ve installed other networking tools, check your system settings for an active VPN before choosing a policy in the new app. Test once on Wi-Fi and once on cellular to see whether the issue occurs only on one connection.

Go to downloads

macOS

Check your chip or processor under About This Mac: Apple chips require the Apple Silicon package, while Intel processors require the Intel package. The downloads page lists compatible desktop clients and lets you filter by chip. After installing, test the system proxy in a browser before deciding whether you need TUN. If you also use corporate networking software or a proxy extension, compare the results on the same test page before and after enabling it. Don’t change multiple network settings during the same test.

Go to downloads

Linux

First check your distribution’s package manager and processor architecture. For desktop use, compare the graphical clients on the downloads page. If you’re running only on a server or router, look for the core package separately. If the app fails to start, check whether your distribution provides its required dependencies. If the client is listening on a port but an app isn’t using the proxy, check whether that app reads desktop proxy settings. Terminal tools may use their own proxy options, so the desktop switch alone won’t tell you whether they’re proxied.

Go to downloads

Browse all clients →

Quick start: import, connect, and verify

  1. Import a profile and set it as current

    Open “Profiles” and choose link or local file import based on what you have. Once the new card appears in the list, set it as current. Open “Proxies” and check that the policy groups are visible. If the client reports a parse error, go back to the import step and confirm the response is a configuration, not a web page. Don’t overwrite a profile that was working. See the subscription import steps for details.

  2. Choose Rule mode and intercept traffic

    Select Rule, check the usual policy group selections under “Proxies,” then enable the system proxy and test with a browser that uses it. Rule mode controls how traffic is handled after it enters the core; the system proxy determines which apps send requests there. Start with just one interception method. Once it works, test TUN separately if your apps need it.

  3. Verify with a new connection

    Open a test page, then find its request under “Connections” and check which rule matched and which policy handled it. If the request isn’t listed, first check whether the app uses the system proxy. If it is listed but the page won’t load, use the logs to narrow the issue down to rules, the proxy route, or DNS. If the browser reused an existing connection, close the page and send a new request before checking again.

Read the full guide →

Open source and project updates

Project background

Clash Nyanpasu carries on the configuration workflow used by Clash-based desktop apps: manage subscriptions and policies in the window, then switch everyday settings from the system tray. It isn’t simply an old client repackaged under a new name. If you’re switching from another client, you can keep using concepts like rules and policy groups, but menu paths, override methods, and system permissions may differ. Before migrating, export any rules and local profiles you maintain yourself. Keep the old app’s global settings for reference.

Source code and community discussions

The project is licensed under GPL-3.0. Browse the project repository for source code, release history, and issue discussions. If the interface crashes or a subscription update fails, search for the same error keywords first to see whether the issue is specific to your system or already has a documented fix. When reporting a problem, include your operating system, what you did before it occurred, and what you expected to see. Share only relevant log lines, with subscription URLs and private network details removed.

Desktop app and proxy core

Tauri is used to build the desktop app; when mihomo is selected, the core handles rule matching, policy selection, and connections. A window that opens normally doesn’t mean the core successfully loaded the configuration. Likewise, an app missing from the Connections list may simply not be sending traffic through the core. Start by separating these two layers: if the interface won’t launch, check the app’s runtime requirements; if the configuration isn’t taking effect, check the core logs, loaded files, and traffic interception method.

App updates and subscription refreshes

Release notes describe changes to the app; “Update” on a profile card fetches the remote subscription. They’re separate actions. Before upgrading the client, check whether the release notes mention profile migration, core changes, or system permission requirements. If your provider only changed a URL or policy, refreshing the subscription may be all you need. After an update, keep a known-working local profile and check separately that the client starts, the policy groups load, and new connections match the expected rules.

Clone the source repository

Use this to browse the source code and project documentation. If you only need to install the client, choose a package for your operating system on the downloads page.

git clone https://github.com/libnyanpasu/clash-nyanpasu.git

Blog: configuration and troubleshooting

The getting-started guide shows you how to establish a working connection. These articles cover managing multiple profiles, diagnosing connection problems, and what to check when switching clients. Choose the one that fits your current issue.

Browse all articles →