Open-source core · Chinese configuration guide

Clash China Official Site

Choose a Clash client for your platform and learn how to configure TUN routing and mihomo rules.

  • TUN
  • DNS
  • YAML
Downloads by platform

Traffic configuration workspace

BrowserTerminalApputun

Virtual interface and system routes

System proxy settings work only for apps that honor them; some programs ignore them. TUN captures matching connections at the system routing layer, making it useful when a terminal, game, or other app is using the wrong route. First grant the client network permissions, then enable the virtual interface and auto-routing. Test with a new connection and check its route and outbound rule. If local network services become unreachable, check the route scope and conflicts with existing VPNs before changing anything else.

tun:
  enable: true
  stack: mixed
  auto-route: true

Trace connection routes from configuration fields

These snippets demonstrate traffic capture, rule matching, and DNS resolution. They are not complete subscription files.

View the configuration reference →

Installers and platform downloads

Check your operating system and CPU architecture before choosing an installer. A GUI client is useful for managing subscriptions, switching proxy groups, and inspecting connections; a standalone core suits devices where you manage the service yourself. A successful installation only confirms the app can start locally. Verify subscription compatibility, network permissions, and the actual outbound route separately.

Windows

Check the system type on the About page in Settings; don't infer the architecture from the product name. If an older client is installed, quit it first and make sure no process remains in the system tray. Test with the system proxy before enabling TUN. If a browser works but a terminal doesn't, check whether the terminal uses system proxy settings—they may take different routes.

Go to downloads

macOS

Check About This Mac to identify the chip, then choose the Apple Silicon or Intel download. When switching from another app, first disable the system proxy or network service managed by the old app, then grant the new client permissions as prompted. Test regular web access separately from local network access; different routes can affect local connections even when websites load.

Go to downloads

Android

Choose an installer for an architecture listed by the client. On the first connection, check which app is requesting VPN permission. If the device already has a corporate VPN or another similar app, check for conflicts before switching. If connections drop only after the screen has been locked for a while, check background activity restrictions first; that alone is not a reason to change subscriptions or rewrite routing rules.

Go to downloads

iOS

Open the App Store from the download page and check the system requirements on the app listing. Before importing, make sure the app supports your configuration format. After launch, review the VPN settings prompted by the system. Test Wi-Fi and cellular separately. After switching networks, start a new connection to distinguish an interrupted existing connection from a failure to establish a new one.

Go to downloads

Linux

On desktop Linux, choose a client that fits your distribution's package manager. For servers and routers, assess a standalone core based on the device architecture. Before deployment, distinguish a regular user environment from a system service and confirm the configuration path, local listen address, and interface permissions. Don't assume a GUI client's automatic setup steps apply to a service deployment.

Go to downloads
Browse all clients →

Open-source core, clients, and release history

Clash is a name used by a family of related cores and clients, not a shared publisher for every installer. This site organizes download links and configuration guides; source code, licenses, release notes, and project issues are maintained in each project's upstream repository.

Project history and archive scope

The original Clash brought local proxy entry points, rule lists, and proxy groups together in one configuration, letting users route connections based on a domain or address. Clash.Meta extended that design and was later maintained under the name mihomo. Older articles may use Clash, Meta, and mihomo to refer to different core generations, or simply to labels retained in a client's interface. Before following a guide, check whether it covers core configuration fields, client controls, or system network settings.

Archived clients can still help you read configurations and logs from older setups, but an archived package does not mean the project still provides fixes. Before migrating an old configuration, keep the original file and note its proxy groups, rule sources, and local ports. Then create a test configuration and confirm it starts. For parsing errors, start with the reported field or line number. If it starts but routes traffic incorrectly, compare the configuration actually loaded instead of judging compatibility by the file extension.

Open-source community and licensing

mihomo is licensed under GPL-3.0. Its upstream repository is the place to inspect the implementation, trace merged changes, and review reported issues. The license describes the terms for using and distributing this source code; GUI clients may have their own licenses and distribution methods, and subscription services are run by their respective providers. To verify a configuration field, consult the core documentation and source. To check a button or installation behavior, consult the client's release notes.

Before filing an issue, search the issue tracker for the same error and reproduce it with the smallest configuration snippet possible. Include your operating system, traffic capture method, trigger, and sanitized logs. For example, note whether the issue appears only after switching networks, whether disabling the virtual interface restores connectivity, and whether the same destination is reachable in direct mode. This helps maintainers distinguish UI state, permission prompts, system routing, and core behavior. There's no need to publish real proxy addresses, subscription links, or account details.

Client settings and effective core configuration

A GUI client imports subscriptions, manages configurations, and calls the core; the core listens on network ports, matches rules, and establishes connections. Some UI options generate a temporary configuration or override subscription fields, so a value in the source file does not necessarily reflect what the running process uses. When troubleshooting rules, first confirm which configuration is selected, then inspect the final configuration generated by the client, and finally check the match in the connection details. This helps distinguish an incorrect file, the wrong configuration being loaded, and a rule that doesn't match.

Traffic capture mode and rule mode are separate. The system proxy or TUN determines which connections can reach the core; Rule, Global, and Direct determine how the core handles them. To test whether an app's connections reach the core, keep the rule mode fixed and switch only the capture method. Or keep the capture method fixed and compare the route to the same destination. Change one thing per test and start a new connection. Existing connections don't necessarily switch routes as soon as you change a rule.

App updates and subscription refreshes

A GUI update changes the interface and app logic and may include a new core. Updating a standalone core affects only the runtime component. Refreshing a subscription usually fetches the remote configuration again; it doesn't install a new client. External rule resources may also refresh on their own schedules. When investigating a change, first identify which kind of update occurred, then check the installation log, core startup log, or subscription and rule-resource fetch status as appropriate.

Before upgrading, back up local configurations, override snippets, and any rules you've edited. After upgrading, start with a known-good minimal configuration, then verify local listening, domain resolution, rule matching, and TUN routing in order. If a subscription refresh renames a proxy group, check any local rules that refer to its old name. Restore other customizations only after isolating the change. Updating the app, rules, and subscription all at once makes it difficult to tell where a problem came from.

Recent configuration guides

Browse all articles →