What to sync: manage subscriptions, rules, and device settings separately
Your phone and PC need to share the same config source and routing logic—not identical settings in every detail. In most cases, importing the same compatible subscription on both devices gives them access to the same proxy nodes. If you use custom routing rules, maintain those separately. System proxy settings, the TUN toggle, listening ports, and the currently selected node are usually managed independently by each client.
| What to sync | Recommended approach | What to manage separately |
|---|---|---|
| Subscription nodes and built-in rules | Import the same subscription URL on each device | Update timing and selected options in policy groups |
| Custom routing rules | Maintain shared rules and inject them with an override or generate a config | Override interfaces and core syntax vary by client |
| A restorable config backup | Back up versions to a private WebDAV directory | Switching active configs and automatic subscription updates |
| Transfer files over the same local network | Copy YAML from a read-only shared folder, then import it | Updates outside the local network and each client’s local state |
To confirm a sync worked, compare which rule matches a domain and the resulting action—not just the config name. Both devices might show “Daily Subscription” while one uses a newer copy and the other an older one. Conversely, both might match the same policy group but route traffic through different nodes because each has a different selection.
Use the same subscription URL: import and update it on each device
- Check the format. Get a subscription URL that works with your target client from your subscription provider. Being able to import a single proxy link doesn’t mean a client can read a full Clash YAML file. Older Clash-compatible cores may not recognize mihomo-specific fields either. If your phone only accepts a different format, use the provider’s matching link and check which nodes and rules it includes.
- Add the remote config on each device. In each client’s config manager, choose URL or subscription import and enter the same address. Don’t import a downloaded YAML file as a remote config: even if its contents match now, a local file usually won’t update from the original URL.
- Refresh and enable the config. Manually update it on both devices and confirm each download succeeds, then switch to the corresponding config. If the client lets you set an update interval, start with 24 hours. Whether a mobile app refreshes on schedule in the background depends on the app and OS restrictions, so use a manual refresh to troubleshoot.
- Check the mode and policy groups. In Rule mode, check the policy group names and their selected options. Manually selected options are usually saved separately on each device. Even when an automatic latency-test group has the same candidate nodes, it may choose different ones because home broadband and mobile networks have different latency.
Rule overrides: keep shared routing rules through subscription updates
Directly editing a downloaded subscription file can leave your changes overwritten at the next update. A safer approach is to keep shared rules separately and merge them after the client parses the subscription. Some graphical clients call this feature an “override,” “merge,” or “script,” but the interface, script API, and merge behavior vary by client. Don’t assume a script from one client will work unchanged on another.
Test where an override is applied with a domain rule
Here’s a Clash-compatible rule snippet for mihomo clients that support this syntax. It routes example.org and its subdomains directly. This shows only the rule to merge in; it isn’t a complete config you can import on its own.
rules:
- DOMAIN-SUFFIX,example.org,DIRECT
- Keep the existing list. The script should read the current
rulesand insert the new entry, not replace the entire list with just the rule above. If the client uses YAML overrides, first check whether it appends to the array or replaces it entirely. - Check the rule order. Rules are checked from top to bottom. To override an existing domain or rule-set match, put the new rule before it. To apply it only when nothing else matches, place it before the final
MATCH. A rule placed afterMATCHwill never match. - Check the target policy.
DIRECTis a built-in action. If you use a custom policy group instead, its name must exactly match a group in the final config. If a subscription update changes the group name, update the override too, then confirm the config loads.
If your phone’s client doesn’t support overrides, use a trusted computer to combine a local subscription copy with shared rules and generate a complete YAML file. Then import it locally on your phone. The trade-off is that every update requires regenerating, transferring, and importing the file. Use one computer as the editor and have your phone receive the finished config to avoid conflicting edits and uncertainty about which version is current.
WebDAV backups: save config versions, not runtime state
WebDAV is useful for saving recoverable files before switching devices, reinstalling, or changing rules. It provides remote file access, but won’t automatically set a YAML file as the active config or sync the currently selected node, connection history, or internal client database. If your client doesn’t support WebDAV, use a trusted file manager to download the backup locally, then import it from the client.
- Create a directory on a private WebDAV server with HTTPS enabled, such as
clash-backup/. Use a write-enabled account on the device that edits configs. If possible, give devices used only for restoring backups read-only access. Don’t enable public sharing. - Save the shared rules source and a complete, importable snapshot separately, for example
shared-rules-r04.yamlandprofile-2026-11-26-r04.yaml. Edit the rules source to make changes; use the snapshot for recovery. Check whether the snapshot depends on externalproxy-providersorrule-providers: a standalone YAML file may not be restorable if a required file or remote source is no longer available. - Keep the latest version you’ve confirmed works. To roll back, import the older snapshot as a separate local config, enable it, and check one direct rule and one proxy rule. Don’t overwrite a remote config slot with automatic updates enabled; the next refresh may replace the snapshot with the remote version.
If you only need to back up custom rules, upload the rules source without subscription URLs or proxy credentials. For a full config backup, check for proxy authentication fields, provider URLs, and access controls. If you need to keep a credential-containing copy long term, encrypt it locally and store the decryption credentials separately.
Share files over your LAN: copy configs from a PC or NAS
For a one-time transfer at home, an existing SMB share is simpler than setting up another sync service. Put the generated YAML in a shared folder that only authorized devices can read, then copy it to your phone. On an iPhone, go to Files → Browse → More → Connect to Server and enter a server address such as smb://192.168.1.20. Replace the example IP with your actual address, sign in, copy the file, then open it from the local import option in a Clash-compatible client.
A shared folder is just a place to deliver files. Clients that have already imported an older YAML file generally won’t reread it when the file on the computer changes. Use filenames with revision numbers to tell versions apart, then manually import and enable the new file. If your phone can’t find the share on guest Wi-Fi, first check that it and the file server are on networks allowed to communicate. Don’t expose an SMB port to the internet just to transfer a config.
Different behavior after syncing? Check the config, rules, and system settings
- Config: Check the active config name and the time of its most recent successful update. If both devices report an update, compare the rules or policy groups actually in effect—not just the download confirmation. For errors about unknown fields or missing policy groups, check core compatibility and the override content first.
- Rules: Switch both devices to Rule mode and test the same domain. Use the client’s connections page or logs to check the matched rule and final policy. If the phone shows no matching entry, first check whether its traffic is reaching the client. If both devices match the same policy group, compare the selected option within that group.
- System: Keep the traffic-capture method that works on each device. In Windows 11, check the system proxy under Settings → Network & internet → Proxy, but note that not all apps follow this setting. If your phone uses the system VPN interface, confirm the connection is enabled in the client. Check TUN, DNS, and app exclusions separately for each platform; don’t copy one device’s startup options to another.
For routine maintenance, use three steps: refresh the subscription on your computer and verify the shared rules, update or import the config on your phone, then test the same domain on both devices and compare the results. If you only need to share proxy nodes, matching subscriptions is enough. Manage overrides and backups only on devices that rely on custom routing rules.