Open-source clients · mihomo core

Clash Index · Cross-platform client downloads

Choose a client for your platform, import a subscription or load a local config, then verify the connection with routing rules.

  • YAML configuration
  • Documentation in Chinese

CLIENTS / PLATFORMS

Clash Client Guide

Choose your operating system first, then check the processor architecture and installation method. Clients with the same name may offer different features on different platforms. For a graphical interface to manage subscriptions, choose a desktop or mobile client; if you already manage services yourself and only need the command-line core, see the mihomo core on the download page. Auto-start, taking over traffic at launch, and restoring network settings on exit are separate options—review each one during setup.

Windows

Find your system type in Settings → System → About and pick the matching installer. When switching clients, back up your settings, disable the old client’s system proxy, and quit it from the system tray to avoid port conflicts.

Go to downloads

macOS

Check About This Mac and choose the Apple silicon or Intel build. Test your browser with the system proxy before enabling modes that need extra permissions. After switching networks, verify the active proxy address and port.

Go to downloads

Android

Check the system requirements and pick an installer for your device’s architecture. Importing a subscription doesn’t grant VPN permission; approve it on first connection. If the app disconnects in the background, check Android’s battery settings first.

Go to downloads

iOS

Check the supported iOS versions in the App Store. In the client, select your imported config, connect, and allow the VPN configuration when prompted. If you lose the connection after switching networks, check its status in the app.

Go to downloads

Linux

Match the package to your distribution and CPU architecture. Debian and Ubuntu use DEB packages. Use a graphical client for desktop controls, or configure startup, the config file path, and routing separately if you run only the core.

Go to downloads

CONFIG.YAML / FIELD EXAMPLES

Clash Core Features

Inspect each layer independently, from traffic entry and nodes to policy groups and the rule that ultimately matches. The panel below shows standalone config snippets for reference, including field names and indentation. When adding them to an existing file, keep other valid entries under the same top-level key—don't replace a section that's already in use.

rules / Match order

Routing rules

Rules are checked from top to bottom, and the first match determines how a connection is handled. Put specific exceptions before broader rules, then use MATCH at the end to route any remaining traffic. Unlike global mode, which sends everything through one policy group, rule mode lets you send local network traffic directly while choosing different proxy policies for other connections. If traffic takes an unexpected route, check the matched rule and actual outbound in the connection details. First determine whether an earlier rule is shadowing later entries or the policy group is using the wrong node.

Explore rule fields
config.yaml
rules:  - DOMAIN-SUFFIX,example.com,DIRECT  - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve  - GEOIP,CN,DIRECT  - MATCH,DIRECT

proxies / Outbound protocols

Protocol support

The type field on a node determines how it connects to the upstream proxy. Besides common options such as SOCKS5 and Shadowsocks, mihomo supports protocols including VLESS, Hysteria2, and TUIC, each with its own required fields. The local proxy endpoint used by your browser is separate from the node protocol; they don't need to match. The example points to an existing SOCKS5 service on your device. To learn the format, check the type, address, and port, then add the node name to the policy group you want to use. Defining a node alone won't route traffic through it.

Check core support
config.yaml
proxies:  - name: local-socks    type: socks5    server: 127.0.0.1    port: 1080

tun / Traffic entry

TUN and system proxy

A desktop system proxy works with apps that respect the operating system's proxy settings, making it a good first step for testing a browser connection. If an app ignores that setting, consider routing traffic through a TUN virtual network interface. TUN requires system permissions and affects routing and DNS, so its scope is broader than the system proxy. Note your original settings before switching, and avoid letting two clients change routes at the same time. If printers, shared folders, or local development services become unreachable, check whether their address ranges should stay on the local network before changing routes or rules.

View platform-specific setup
config.yaml
tun:  enable: true  auto-route: true

profile / Config sources

Subscriptions and config management

A full subscription can include ports, policy groups, and rules. Updating a remote config may overwrite edits made directly to the subscription, so back it up first and use the client's supported override mechanism to keep local settings. If you only need to replace the node list, use proxy-providers to separate the source from the main config, then reference the node collection from a policy group with use. The example reads from a local file. When troubleshooting, distinguish a download failure from a parsing error or an update that hasn't been activated—don't assume all three mean the link is broken.

Troubleshoot subscriptions
config.yaml
proxy-providers:  local-pool:    type: file    path: ./providers/local.yamlproxy-groups:  - name: Select    type: select    use: [local-pool]

QUICKSTART / FIRST CONNECTION

Get started: Import, route, verify

During initial setup, check the app's status after each step. That way, even if a page won't load in your browser, you can tell whether the issue is importing the config, getting traffic into the client, or routing it outbound. If another proxy client is already running, pause its system proxy or virtual network interface before you begin.

  1. Import and activate a config

    On the Config or Subscription page, add an entry and paste the subscription URL. If you have a local YAML file, use the file import option instead. Once the entry appears in the list, select it to make it active, then check that its policy groups contain selectable nodes. If import fails with a format error, make sure the source is a Clash-compatible config—not a web page that only opens after you sign in through a browser. When asking for help, share only the error details; remove subscription URLs, credentials, and node information.

  2. Choose a mode and traffic entry

    For your first test, choose rule mode and keep the config's default rule order. On desktop, enable the system proxy and make a request in your browser. On mobile, start the connection in the app and approve the VPN prompt. Get this path working before testing TUN if needed. The mode determines how traffic is routed after it enters the client; the traffic entry determines whether device traffic reaches the client at all. Changing the mode alone usually won't change the entry.

  3. Verify routing in connection details

    Open a new browser tab, visit a site you use regularly, then check the client's Connections view for the same domain, its matched rule, policy group, and actual outbound. If the request isn't listed, check whether the system proxy is enabled or the app is using a different traffic entry. If it appears but the outbound fails, check which node the policy group selected. Change one thing at a time and make a new connection after each change so an old connection or cached result doesn't mislead you.

UPSTREAM / PROJECT ORIGINS

From Clash to mihomo

Project history and license

The original Clash popularized a YAML-based way to define proxy nodes, policy groups, and matching rules. Clash Meta extended that structure and was later maintained under the name mihomo. When migrating an older config, compare familiar fields section by section, then check DNS, rule sets, and virtual network interface options separately. mihomo is released under the GPL-3.0 license; consult the license in the project repository for terms on modifications and redistribution.

Finding community resources

Check the core repository's commit history and releases for changes in field behavior; client release notes are more useful for installation, interface, and system integration issues. When filing a report, include your operating system, client name, traffic entry, expected result, and actual result. If the same config works in another client, describe the differences between the two—this gives the community more to work with than a screenshot of a failed connection alone.

What the core and interface each do

The core reads the config, matches rules, and establishes outbound connections. The graphical interface handles tasks such as subscription management, permission prompts, and system proxy settings. Even when clients use the same type of core, they may hide certain fields, generate extra settings, or use different defaults. When following a guide, first check whether it refers to a main config field or an interface toggle: use the core documentation for the former, and the selected client's actual settings for the latter.

Apps, subscriptions, and rule sets update separately

Updating a client mainly replaces its program files, and may also update the bundled core. Refreshing a subscription usually updates only the remote config; rule sets may refresh separately through providers defined in the config. Before making changes, back up local files and note which config is active. Afterward, check separately that the app starts, rules load, and a test request matches the expected policy. If something breaks, roll back one change at a time to make the cause easier to identify than if you replace both the installer and subscription at once.

Get the mihomo source code

Run the command below in a terminal with Git installed to clone the source into a mihomo folder in the current directory. This is not a client installation command. Start with the README and license, then check the release notes. If you only need to configure a graphical client, use the download page and setup guides instead.

Git · Upstream repository
git clone https://github.com/MetaCubeX/mihomo.git

NOTES / RECENT ARTICLES

Configuration Troubleshooting