mihomo core vs. the Original Clash Core: New Protocols, Rule Sets, and Config Compatibility
Learn why Clash Meta was renamed mihomo, what it adds—including VLESS, Hysteria2, and rule-providers—and what to check when migrating older configs.
What’s the relationship between Clash Meta and mihomo?
mihomo is the renamed continuation of Clash.Meta, carrying on the Meta branch. The original Clash, Clash Premium, and the Meta branch derived from Clash are often shortened to “Clash” in documentation, but they don’t support exactly the same config fields. If an older guide says Clash Meta while newer docs say mihomo, check which core version the guide targets before copying its config.
The core reads configs, matches rules, handles DNS, and establishes connections. The client provides the interface, manages subscriptions, starts the core, and may also merge overrides when loading a config. An app with “Clash” in its name is part of this client ecosystem; to know whether a protocol works, check which core it actually runs.
New protocols: How to check VLESS and Hysteria2 compatibility
You can usually keep existing Shadowsocks, VMess, and Trojan entries while testing a migration. Differences are more likely with node types such as VLESS and Hysteria2, which the original open-source Clash core doesn’t support. A successful subscription update only means the client received the data—it doesn’t confirm that the core recognizes every node.
| Protocol | YAML node type | What to check during migration |
|---|---|---|
| VMess | type: vmess |
Keep the original transport. If you use WebSocket, also check the path and headers. |
| VLESS | type: vless |
Check the UUID, transport, and TLS settings. If the server uses REALITY, check the corresponding reality-opts for your core version. |
| Hysteria2 | type: hysteria2 |
Check the authentication details, TLS server name, and server port. If the config loads but the connection times out, check whether your network can reach that UDP port. |
Missing nodes? Check the subscription format first
Prefer YAML output explicitly labeled for mihomo or Clash Meta. Share links such as vless:// and the YAML proxies: list are different formats; whether a client can convert the former to the latter depends on its import features. If an entry is missing from the config, first check the subscription response and the client’s conversion results. If the log reports an unknown node type, verify which core is actually running. Hysteria2 and the original Hysteria are also not interchangeable by changing a single type line.
Rule sets: How do rule-providers and RULE-SET work together?
Rule sets weren’t introduced by mihomo. Clash Premium already supported them, so seeing RULE-SET doesn’t necessarily mean a config came from Meta. During migration, check two things: whether the top-level rule-providers defines the data source, and whether rules references it by the same name. proxy-providers supplies nodes; it serves a different purpose.
Test a rule reference with a local rule set
Merge this into a test config. If it already has rule-providers or rules, add these entries to the existing sections instead of repeating top-level keys. Put the reference before the fallback MATCH rule.
rule-providers:
local-names:
type: file
behavior: domain
format: yaml
path: ./rules/local-names.yaml
rules:
- RULE-SET,local-names,DIRECT
- MATCH,DIRECT
Create rules/local-names.yaml in the core’s working directory and add the contents below. This example tests rule-set loading and matching only; both rules use direct connections.
payload:
- 'localhost'
behavior: domainis for domain entries;ipcidris for IP ranges; andclassicalaccepts rule entries such asDOMAIN,localhost. Don’t addDIRECTto rule-set entries—the policy belongs on the reference line.format: yamlmatches thepayloadstructure in this example. When switching to a remote list, check whether it actually returns YAML, a plain-text list, or another format supported by your core. Configure the source accordingly; don’t rely on the file extension alone.- In Rule mode, the core checks rules in config order and uses the first match. If a rule set loads but doesn’t match, check the matched rule in the connection details to see whether an earlier domain, IP range, or fallback rule handled the request first.
Migrating an old Clash config: test ports before enabling TUN
Keep the old config and make a separate copy for testing. proxies, proxy-groups, and rules are a useful starting point, but check every name: referenced nodes must exist, and groups named in rules must be defined. First make sure the basic config starts, then add subscription overrides, DNS, and TUN settings back one at a time to make issues easier to isolate.
- Validate the config. To run mihomo standalone, save the config as
config.yamlin the current directory, make sure that directory is writable, then run the command below.-tchecks the config,-dsets the core’s working directory, and-fspecifies the config file. With a GUI client, also check the log after enabling the config—the client may modify what it passes to the core. - Check the listening port. For example,
mixed-port: 7890uses one port for both HTTP and SOCKS proxies. Compare it with the port shown in the client and make sure the system proxy points to the same local port. If the log reportsaddress already in use, quit the old core that’s still using the port or choose another free port, then update the system settings to match. - Test one connection first. Select the test config, switch the client to Rule mode, enable the system proxy, and visit a known domain. In the connection log, check the destination domain, matched rule, and selected node. Passing config validation only confirms that the config passed that check; it doesn’t prove the connection works.
- Restore DNS and TUN last. The system proxy affects apps that follow system proxy settings; TUN traffic depends on system routing and core settings. Test the system proxy first, then enable TUN separately if needed. If the old config used
dns.enhanced-mode: fake-ipand some apps have DNS issues, checkfake-ip-filterand the actual DNS query path first. Don’t change DNS, routing, and nodes all at once.
mihomo -t -d . -f ./config.yaml
Compatibility checklist: core, config, and real-world results
If you only use older protocols and basic routing rules, testing mihomo with a copy of your existing config is usually easier than rewriting it from scratch. If your subscription includes VLESS or Hysteria2, first confirm that the client actually runs mihomo, then choose the matching subscription output. If you use rule sets from older Premium configs, there’s no need to expand the entire list into individual rules right away: check the source format, rule type, and reference name, then use the connection log to confirm a match. Keep these three checks in mind: the subscription downloads, the config loads, and requests take the right route. Each checks a different part of the setup.