mihomo
The proxy core reads the config, matches rules, and establishes connections. The UI and core follow separate release schedules. If a field is unrecognized, first check which core version the client has loaded.
Config Reference / Glossary
Find terms by config layer. Start by distinguishing the client from the core, then check nodes, proxy groups, and rules to see where each field affects a connection.
Browse the complete config reference View the subscription import guide
The UI manages profiles; the core applies the config. After importing a config, make sure the core has loaded the intended profile.
The proxy core reads the config, matches rules, and establishes connections. The UI and core follow separate release schedules. If a field is unrecognized, first check which core version the client has loaded.
An app for importing configs, switching policies, and viewing runtime logs. Menus and permission settings vary by platform. Even clients using the same core may differ in how they import configs and which options they support.
A way to fetch and refresh config or node data from a URL. The URL may return a complete YAML file or a Base64-encoded node list. Whether it can be imported directly depends on the response format and client support.
A config saved by the client for optional use. It may come from a local file or a subscription. A successful import only means the profile was saved; check which profile is active and whether the core has loaded it.
A node’s type tells the core which protocol to use for the connection. Don’t confuse the protocol type with the transport or authentication parameters.
A proxy outbound the core can connect through, represented by a connection entry in the config. The node name is used in proxy groups and the UI; the protocol, server address, port, and authentication fields determine the actual connection settings.
A common proxy protocol where users are typically identified by UUID. The protocol name does not specify the transport or encryption. Check the node’s separate fields for the transport and TLS settings, and make sure they match the server.
A common proxy protocol, usually defined with the type ss in mihomo node configs. The cipher and password must match the server; a config importing successfully does not mean the core and server support the same cipher.
A proxy protocol that typically runs over TLS and uses password authentication. The server address used to connect may differ from the name used to verify its certificate. When troubleshooting handshake errors, check both the connection address and TLS name.
Use the YAML hierarchy to locate fields. Proxy listener ports, the control interface, and remote node ports serve different purposes and are not interchangeable.
A config format that uses indentation to represent hierarchy; a common filename is config.yaml. Indent with spaces, not tabs, and mark list items with hyphens. A YAML parser accepting a file does not guarantee that the core supports every field in it.
mixed-portA field that accepts both HTTP proxy and SOCKS5 connections on the same port. When configuring an app’s proxy settings, use this listener address and port, and choose a supported protocol—not the remote node’s port.
An outbound selection layer defined by proxy-groups, which bundles multiple nodes under a name that rules can reference. A select group lets you choose manually; a url-test group selects a candidate based on probe results and tolerance settings. Changing the group selection does not require rewriting rules.
external-controllerSets the listening address and port for the control interface, which dashboards use to read status or switch policies. It does not accept regular app proxy traffic. If the dashboard is only used locally, bind the interface to a loopback address.
When reading a rule, first check its match conditions, then which outbound handles a match. If rules overlap, check their order first.
The process of directing requests to a policy based on connection attributes. In rule mode, the core usually checks rules from top to bottom and applies the first match. Put exceptions that need priority before broader rules.
DOMAIN-SUFFIXA rule type that matches domain suffixes. The condition example.com matches the domain itself and subdomains such as www.example.com, but not notexample.com. Use DOMAIN to match one exact domain.
GEOIPA rule type that uses an IP geolocation database to determine whether a destination address belongs to a region. Results depend on the database version and do not necessarily reflect a domain suffix or where a service operates. If the destination is a domain, it may need to be resolved to an IP first.
RULE-SETReferences a ruleset in rule-providers by name. Rulesets can be updated independently, but are still evaluated where RULE-SET appears. The reference name must match its declaration, and the ruleset content must match the declared behavior type.
MATCHMatches every connection not caught by an earlier rule and usually goes last in the rule list. It must specify an outbound policy. If placed before specific rules, those rules never get a chance to handle the connections.
When troubleshooting domain access, check separately which service handles the DNS query, what address it returns, and whether the app’s connection enters the core.
The process of querying a resolver for domain records, commonly returning an IPv4 or IPv6 address. Which service handles an app’s DNS queries is separate from whether its connection ultimately goes direct or through a proxy. Troubleshoot the resolution path and traffic policy separately.
A DNS enhancement mode in which the core returns a temporary virtual IP when applicable and stores its mapping to the domain. Once the connection enters the core, the domain can be recovered from the mapping for rule matching. The virtual IP is not the server’s real address.
A DNS query that should follow a specified path instead reaches an unexpected resolver. Compare the intended path with the actual egress when investigating; seeing an unfamiliar resolver name alone does not prove the query bypassed the client.
nameserver-policyA config field that selects a DNS upstream for queries based on domain. It only affects queries handled by the core’s DNS service and does not directly determine the outbound for the resulting connection; that connection still follows the current mode and rules.
TUN and system proxy determine how traffic reaches the core. Rule, global, and direct modes determine how the core handles traffic once it arrives.
Uses a virtual network interface to send IP traffic covered by system routes to the core. On Android, this usually requires permission to use the system VPN service. Routing, app exclusions, and system permissions also determine which traffic actually enters the interface.
Uses the operating system’s proxy settings to direct apps that honor them to a specified proxy address. This is not the same as taking over system routing. If an app ignores system proxy settings, enabling this option will not change its connection path.
mode determines how connections that have entered the core choose an outbound. rule routes by rules, global uses the global policy, and direct connects directly. Changing modes does not automatically capture app traffic that never entered the core.
The time a client takes to complete a probe request, depending on the test destination, network path, and measurement method. It is not download speed and does not represent response times for every site. Compare nodes under the same probe conditions.