What syncs: shared config sources; device settings stay separate

Using Clash on a phone and a computer usually means both devices get their proxy nodes, groups, and routing rules from the same source. That does not sync client state: each device still controls which config is active, which node is selected in a proxy group, and whether system proxy or TUN mode is enabled. Changing a node on your computer will not necessarily change it on your phone. Different refresh times can also mean the devices temporarily show different node lists.

Option Best for How to update and what to check
Shared subscription link The subscription provider manages nodes and rules Refresh each device separately; check the delivered format and active config
Sync YAML through cloud storage Managing your own rules and keeping version history Wait for the file to sync, then re-import or reload as the client requires
Base config with local overrides Sharing nodes and rules while setting ports and other options per device Reapply overrides after updating the base config; inspect the final config

If you just want the same nodes and routing rules on both devices, start with a shared subscription. Choose file sync if you want to decide when each rule change goes live. Add overrides only when device-specific differences keep coming up and require manual edits after every update.

Shared subscription link: import, refresh, and activate on each device

  1. Get a Clash or Mihomo config link that works with your clients from your provider, and check how many devices your plan allows to connect at once. Being able to import the link on both devices does not mean they can both connect simultaneously.
  2. On each device, open the Config or Subscription page and choose the option to import from a URL. Menu names vary by client. After importing, select the config, then open the Proxies page and confirm the proxy groups have loaded.
  3. After your provider updates the subscription, refresh it manually on both devices. Check the last-updated time, then verify the result using a node you know was recently added or renamed. If your client supports scheduled updates, configure them on each device; refreshing one will not refresh the other.

Why does the same URL import differently?

Some subscription providers return different formats based on the client identifier in the request. Even when the download succeeds, the response might contain only a node list rather than a complete YAML with rules and proxy groups. If one device imports successfully but the other reports a parsing error, first check whether the provider offers an export option for that client, then compare the clients’ core types and versions. Some Mihomo config fields and protocols may not be supported by older Clash cores, so don’t assume the network is at fault.

Sync YAML through cloud storage: edit in one place, reload on each device

File sync works well when you manage your own rules. Put clash-shared.yaml in a private synced folder, and edit the source file only on a designated device. Other devices should fetch and use it, not edit their own client copies. This reduces conflicts from simultaneous edits and keeps an easy-to-restore original.

  1. Keep the previous version on the editing device before changing rules. For example, place an internal-domain direct rule before the fallback MATCH instead of appending it to the end of the file. Rules are evaluated in order, and the first match takes effect.
  2. Wait for cloud sync to finish. On the receiving device, confirm the file has been downloaded locally and isn’t just an online-only item. If a “conflicted copy” appears, identify the version with the intended changes before restoring a single source file.
  3. Import and activate the file in your client. If importing creates a copy, later cloud updates won’t change that copy; you’ll need to import again and switch to the updated config. If the client reads the original file directly, reload it using the client’s controls and verify the active config.

When syncing files, don’t forget rule sets and proxy providers

Check rule-providers and proxy-providers. The main YAML may reference local files or need to fetch content from remote URLs. If you sync only the main file, transfer local resources separately and verify their paths against the working directory used by the target client’s core; don’t assume it’s the cloud storage folder. For remote resources, confirm they can be downloaded on the target device. Successfully importing the main config does not mean external rule sets have loaded. If the YAML contains proxy passwords, don’t make the cloud folder public.

Local overrides: keep only device-specific differences

Keep nodes, proxy groups, and rules in the subscription or shared YAML; use local overrides only for device-specific settings. For example, a desktop client might enable the system proxy and use a local mixed port, while a phone routes traffic through its client and doesn’t need the computer’s port or proxy toggle. Where you enable system proxy or TUN depends on the client and platform. Importing the same YAML won’t grant system permissions for you.

Start with two scalar fields

If your desktop client supports merging YAML fields, the snippet below shows how to set only the mixed port and LAN access option. It’s an override snippet, not a complete, standalone config. 7890 is an example port; if another process is using it, choose a free port such as 7891, and update any apps with a manually configured proxy to use that port too. Phones and computers are separate devices, so using the same port number on both won’t cause a conflict.

mixed-port: 7890
allow-lan: false

Use the client’s built-in override feature when possible. If you need a local script, have it read the base config, modify selected keys, and write a new file—don’t edit the subscription cache in place. Clients merge objects and lists differently; in particular, don’t assume rules will be appended automatically. After updating, inspect the final rule list to make sure custom rules are in the right place, the original fallback is still there, and referenced proxy groups haven’t been renamed. If your phone’s client can’t use the same override method, use the base config or import a phone-specific version generated on your computer.

When the two devices behave differently: check the config, traffic capture, and rule order

  1. Check what’s loaded. Compare the config name and update time, then confirm the active config on each device has the same proxy group and target rule. For file sync, check the copy inside the client; for overrides, inspect the merged result.
  2. Confirm the app’s traffic is being captured. Open a new connection to the same test domain in a browser on each device, then check the client’s Connections page. If nothing appears on Windows 11, check Settings → Network & internet → Proxy for the system proxy; only apps that respect it will use it. If your phone uses the system VPN to capture traffic, confirm the client is authorized and the session is still running.
  3. Check the matched rule and outbound policy. Switch both devices to Rule mode, then compare the rule matched, proxy group, and selected node. If the group has different nodes selected, choose the same available node on both and test again. If the matched rules differ, check rule order, external rule-set status, and whether the client can access the domain or IP information needed to match.

When several variables are involved, change just one at a time. Update the computer and run a connection test first, then update the phone. If the new config fails to import, switch back to the last working version. Note the line with the parsing error and the core version, then use the troubleshooting guide to investigate, rather than leaving both devices without a working config.