Skip to content

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 appRecommended configuration pathNode pathDetails
Clash / mihomoUse standard mihomo YAML directlyUse directlymihomo compatibility
sing-boxUse a profile URL that returns mihomo YAML, or prepare YAMLAdd supported protocol parameterssing-box compatibility
SurgeUse a profile URL that returns mihomo YAML, or recreate nodesShared protocols include SnellSurge compatibility
Quantumult XUse a profile URL that returns mihomo YAMLParameter-based entry also worksQuantumult X compatibility
ShadowrocketUse a profile URL that returns mihomo YAMLParameter-based entry also worksShadowrocket compatibility
StashUse standard Clash / mihomo YAML directlyUse directlyStash compatibility
LoonUse a profile URL that returns mihomo YAMLParameter-based entry also worksLoon compatibility

Three kinds of compatibility ​

  1. Configuration-file compatibility — direct reuse of complete configurations.
  2. Remote-profile compatibility — receiving mihomo YAML from an HTTPS profile URL.
  3. 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? ​

SourceResult
mihomo YAML configurationImport directly
HTTPS profile URL returning mihomo YAMLAdd 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 listConvert to mihomo YAML before import
QR code containing an HTTPS profile URLScan to add a remote configuration
Module link from a popular proxy appPaste 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:

FormatHow it is recognizedWhat takes effect
Surge modules (.sgmodule), Shadowrocket modules (.module)Any other INI-style module is read this wayRules, 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 contentRules 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_localLocal 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,2
  • clash.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 as Mac16,5, iPad14,5, or AppleTV6,2, never the name you gave the device.

Every download for a configuration uses one User-Agent, chosen in this order:

  1. A proxy or rule provider that sets its own User-Agent in header uses it.
  2. Otherwise, the configuration's global-ua applies. Write it in the configuration file, or fill in General Configuration › Download User-Agent on the configuration page.
  3. 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.