- mihomo
- mihomo is an open-source proxy core in the Clash ecosystem, formerly known as Clash.Meta. It parses configuration, matches routing rules, and handles connections intercepted by the client. Subscription management and toggle locations are controlled by the client interface. If a configuration field isn't recognized, check both the client version and the core it bundles, including its version.
Configuration Reference / Glossary
Clash Glossary
From subscriptions and proxy protocols to routing rules, understand what configuration fields and mobile settings do.
Browse by use case
Core & Configuration Files
The client provides the interface; the core reads the configuration and handles connections.
- YAML:
- YAML is a common configuration file format for Clash clients. Indentation defines the hierarchy of fields. Use spaces for indentation, align fields at the same level, and start list items with a hyphen and a space. If the client reports a parsing error, check the indicated line and the one above it; the reported location may be the first field the parser could not continue past.
- Subscription
- A subscription lets a client periodically fetch configuration or proxy node lists from a URL. The URL may return a complete Clash YAML file or just a list of nodes; whether it can be imported directly depends on the client's supported formats. Subscription links may contain access credentials, so hide the entire URL when sharing a screenshot for troubleshooting.
- Node
- A node is a proxy server configuration a client can connect to, typically including a server address, port, and protocol settings. A proxy group can contain multiple nodes, so selecting a group doesn't always mean you've manually selected one of its nodes. A latency test only reflects access to the test address at that moment; it doesn't indicate how quickly every website will load.
Proxy Protocols
Check the node's protocol first, then compare its transport and security options with what the client supports.
- Shadowsocks(SS)
- Shadowsocks is an encrypted proxy protocol, commonly represented as
ssin configuration. The client's encryption method and credentials must match the server settings. Successfully importing a configuration only means the client recognizes its format. If a connection fails after switching clients, first check whether the new client supports the encryption method used by the node.
- Trojan
- Trojan is a proxy protocol that typically establishes connections over TLS. In addition to the address, port, and password, the configuration may include a server name for the TLS handshake, which doesn't necessarily match the connection address. If you see a certificate error, first check the server name and device clock; disabling certificate verification is not a routine fix.
- VMess
- VMess is a proxy protocol in the V2Ray ecosystem that uses parameters such as a UUID to identify users. Protocol and transport are separate settings: for example, VMess can use WebSocket, and a node may require a specific path. When migrating configuration, preserve the node's transport fields. Copying only the server address and UUID may not be enough to connect.
- VLESS
- VLESS is a proxy protocol that uses a UUID to identify users and is not compatible with VMess. Whether a node works also depends on whether the client's core supports its required transport and security layer, such as TLS. Even if a client lists VLESS support, check the node's specific fields rather than relying on the protocol name alone.
Rules & Routing
Make sure Rule mode is enabled, then check which rule matched the connection.
- Proxy mode
- Proxy mode determines how the client handles intercepted connections. Common options include Rule, Global, and Direct. Rule mode evaluates the rule list, Global mode uses the policy selected in the global proxy group, and Direct mode bypasses proxy nodes. Switching modes does not automatically change which traffic the client intercepts.
- Rule-based routing
- Rule-based routing selects how to handle a connection based on criteria such as its domain or destination IP. Rules are usually checked from top to bottom; the first match determines whether the connection goes direct, is rejected, or uses a specified proxy group. To add an exception for a domain, place it before any broader rule that might match first, then check the connection log to confirm which rule was applied.
GeoIP- GeoIP rules match connections based on how the destination IP is classified in an IP address database. For example,
GEOIP,CN,DIRECTsends a connection direct when the database classifies its destination IP as CN. This classification reflects the database entry, not the website operator's location. Shared hosting and content delivery networks can make the result especially surprising.
MATCH- MATCH is a catch-all rule with no additional matching criteria, so it should go at the end of the rule list. For example,
MATCH,PROXYsends connections that didn't match earlier rules to the proxy group namedPROXY, provided that group is defined. Add custom rules before MATCH; rules placed after it won't be checked.
Networking & DNS
Traffic interception and DNS resolution are separate steps; troubleshoot them independently.
- TUN mode
- TUN mode uses a virtual network interface to receive IP packets that the system routes to the client. It can handle traffic from some apps that don't follow system proxy settings, but coverage depends on routing, platform permissions, and app exclusions. Even with TUN enabled, Rule mode can send specific connections through a Direct policy.
- DNS
- DNS resolves domain names to IP addresses that apps can connect to. The client, operating system, and browser may each have their own DNS settings, and changing one doesn't necessarily change the query path used by another. When troubleshooting a domain that resolves incorrectly, first determine whether the problem affects just one app or multiple apps on the device.
- Fake-IP
- Fake-IP is a DNS enhancement mode in which the client returns a temporary address for eligible domains and stores the mapping between each address and domain. When a connection to that temporary address reaches the client, the core can recover the domain and use it to match a rule. For local network apps that rely on real DNS results, check whether the domain should be added to
fake-ip-filter.
- DNS leak
- A DNS leak occurs when queries take an unintended resolution path, exposing the queried domain to a resolver you did not intend to use. A webpage loading successfully doesn't prove that the query took the expected path. When troubleshooting, check the resolver specified by the client, the system's Private DNS, and the browser's Secure DNS to identify which layer actually sent the query.
Mobile System Behavior
Check system permissions, the scope of intercepted traffic, and background activity after the screen locks.
VpnService- VpnService is an Android API that allows authorized apps to create a virtual network interface and handle traffic. The VPN connection prompt shown on first launch is Android asking whether the client can create that interface. A VPN icon in the status bar only confirms that the VPN interface is active; check the client logs to see whether a particular connection is actually going through the proxy.
- Network Extension
- Network Extension is a set of networking APIs from Apple that clients can use to implement features such as packet tunnels. On iOS, clients that use packet tunnels usually ask to add a VPN configuration when you connect for the first time. Check the connection status in system settings; subscriptions and routing rules are still managed in the client.
- System proxy
- A system proxy is a network setting that specifies the proxy address and port for apps that honor the setting. Setting an HTTP proxy on a phone's Wi-Fi details page usually affects only supported requests made while connected to that network. Don't assume the setting still applies when switching to cellular data or using an app that ignores proxy settings.
- Battery optimization
- Battery optimization refers to Android power-saving features that limit background activity for apps. If the connection works with the screen on but often drops after it locks, first check the client's app battery settings and see whether background activity is restricted. Options vary by device manufacturer, so lock the screen and test again after changing a setting to see whether battery restrictions were the cause.