English
Clash compatibility with popular proxy apps
Short answer: Clash directly reads mihomo-format YAML configurations and HTTPS profile URLs that return mihomo YAML, including standard Clash / mihomo YAML used by Stash. Servers and nodes from sing-box, Surge, Quantumult X, Shadowrocket, or Loon can be reused through a compatible profile URL or parameter-based node entry.
Choose the app you use now
| Current app | Recommended configuration path | Node path | Details |
|---|---|---|---|
| Clash / mihomo | Use standard mihomo YAML directly | Use directly | mihomo compatibility |
| sing-box | Use a profile URL that returns mihomo YAML, or prepare YAML | Add supported protocol parameters | sing-box compatibility |
| Surge | Use a profile URL that returns mihomo YAML, or recreate nodes | Shared protocols include Snell | Surge compatibility |
| Quantumult X | Use a profile URL that returns mihomo YAML | Parameter-based entry also works | Quantumult X compatibility |
| Shadowrocket | Use a profile URL that returns mihomo YAML | Parameter-based entry also works | Shadowrocket compatibility |
| Stash | Use standard Clash / mihomo YAML directly | Use directly | Stash compatibility |
| Loon | Use a profile URL that returns mihomo YAML | Parameter-based entry also works | Loon compatibility |
Three kinds of compatibility
- Configuration-file compatibility — direct reuse of complete configurations.
- Remote-profile compatibility — receiving mihomo YAML from an HTTPS profile URL.
- Protocol interoperability — connecting directly to the same server.
Clash provides broad remote-profile and protocol interoperability. Modules from popular proxy apps import directly; other product-specific settings can be recreated with mihomo YAML and Clash rules.
What can Clash import directly?
| Source | Result |
|---|---|
| mihomo YAML configuration | Import directly |
| HTTPS profile URL returning mihomo YAML | Add the URL directly; Download Identity is switchable |
Standalone node links such as ss:// | Convert to mihomo YAML or recreate the node from its parameters |
| Base64 node list | Convert to mihomo YAML before import |
| QR code containing an HTTPS profile URL | Scan to add a remote configuration |
| Module link from a popular proxy app | Paste into Add Module to import it directly |
See the complete protocol list.
Modules
Modules from popular proxy apps can be imported into Clash Modules as they are: paste the module link into Add Module. Clash recognizes the format from the content first and the link's extension second:
| Format | How it is recognized | What takes effect |
|---|---|---|
Surge modules (.sgmodule), Shadowrocket modules (.module) | Any other INI-style module is read this way | Rules, URL / header / body rewrites, local mappings, [MITM] hostnames, scripts, [Host], and panels; [Proxy] and [Proxy Group] are skipped |
Loon plugins (.plugin, .lpx) | The extension, or a [Rewrite] or [Argument] section | [Argument] becomes the module's Settings; rules, rewrites, scripts, and MITM hostnames; [General] accepts only some keys |
Stash overrides (.stoverride) | The extension, or YAML content | Rules and rule providers, MITM / rewrites / scripts under http, scheduled scripts, and tiles as panels; proxies is skipped |
Quantumult X resources (.conf, .snippet) | The extension, or sections such as rewrite_local, filter_local, or task_local | Local sections only: [rewrite_local], [mitm], [filter_local], and [task_local]; remote resources named by rewrite_remote or filter_remote are not fetched |
DNS scripts, rule scripts, and certificate replacements do not take effect in any format; Skipped in module details explains each line.
Modules are available on iPhone, iPad, and Mac (Clash for iOS and iPadOS 1.0.13 and macOS 1.0.15 or later); Apple TV does not support modules.
How remote requests identify Clash
When Clash downloads a Profile URL, it sends a User-Agent like this by default:
http
User-Agent: clash.meta/1.19.33 Clash/v1.0.13.152 Darwin/25.0.0 iPhone18,2clash.meta/1.19.33: the built-in core version. It starts the same way as mihomo's, so the service returns a mihomo-format configuration.Clash/v1.0.13.152: the Clash app version and build number.Darwin/25.0.0: the device's Darwin kernel version, which changes with system updates. It is not a system version such as "iOS 26" or "macOS 26".iPhone18,2: the Apple hardware model. On Mac, iPad, and Apple TV it is an identifier such asMac16,5,iPad14,5, orAppleTV6,2, never the name you gave the device.
Every download for a configuration uses one User-Agent, chosen in this order:
- A proxy or rule provider that sets its own
User-Agentinheaderuses it. - Otherwise, the configuration's
global-uaapplies. Write it in the configuration file, or fill in General Configuration › Download User-Agent on the configuration page. - Otherwise, the app's Download Identity applies, which is the format above by default.
The same value is used when the app downloads and when the core updates proxy providers, rule providers, and geo data in the background. The Profile URL itself only looks at the Download User-Agent you set for that configuration in the app, then falls back to Download Identity; a global-ua inside the downloaded file is not used to fetch the URL itself.
If a service only accepts certain client names, switch to FlClash or Clash Verge under More › App Settings › Client Settings › Download Identity › Profile URL Compatibility; on Apple TV, use More › User-Agent. Only these three choices exist, and you cannot type your own. When a Profile URL answers with a redirect and the current identity is not FlClash, the app retries once as FlClash.
The receiving service can see the app version, Darwin version, and hardware model. The User-Agent contains no account, device name, or advertising identifier.
Frequently asked questions
Can I reuse my Shadowrocket remote profile?
Yes when the provider returns mihomo-compatible YAML from the HTTPS profile URL. Shadowrocket modules can be imported directly by pasting their links; recreate rules and app settings with Clash rules and settings. See the dedicated Shadowrocket compatibility guide.
Can I use the same provider profile URL?
Yes, if the provider can return mihomo-compatible YAML. Clash can switch its Download Identity to FlClash or Clash Verge for panels that select an output format by client name.
Can I keep using the same server?
When the protocol and all required parameters are supported, the same server works directly.
Does compatibility mean affiliation?
Brand names identify configuration and protocol compatibility. Clash and Clash Core are developed and maintained independently.