Reinstalling Windows or moving to a new machine? Rather than re-importing subscriptions and rewriting your Mixin, move the data directory - a five-minute exact restore.

Where everything lives

All user data of Clash for Windows sits in:

%USERPROFILE%\.config\clash

(Paste into Explorer's address bar.) The contents that matter:

File / folderContentsBack up?
profiles/All downloaded profilesYes
cfw-settings.yamlClient settings: ports, Mixin, Parsers, switch states…Most important
Country.mmdbGeoIP databaseNo (auto-downloaded)
logs/Old logsNo
cache/, Cache/UI and runtime cachesNo

Migration steps

  1. Old PC: quit CFW from the tray, copy the whole .config\clash folder to a drive.
  2. New PC: install the same or newer CFW, launch once and fully quit (letting it create the directory structure).
  3. Overwrite the new PC's .config\clash with your backup.
  4. Start CFW: subscriptions, Mixin, Parsers and ports should all be in place. Service Mode and autostart touch system registration - re-install/re-tick those once.

Ongoing backups

  • Minimal effort: include cfw-settings.yaml and profiles/ in your regular backup (synced folder or a private Git repo).
  • Privacy: profiles and settings contain subscription URLs - account credentials in effect. Never push them to a public repository.
  • Portable-build users with a data folder: everything lives beside the executable; copying the program folder is the whole migration.
Tip: to factory-reset instead, do the reverse: quit, delete (or rename) .config\clash, and the next launch starts clean - a surprisingly effective last resort in weird troubleshooting cases.