Where Does Syncthing Store Config?
Syncthing config.xml and database paths on Windows, macOS and Linux, including the 1.27 move to .local/state.
Last updated
Syncthing keeps config.xml, crypto keys and the file index database in one home folder per OS. Windows uses LocalAppData/Syncthing, Mac uses Application Support/Syncthing, Linux moved to .local/state/syncthing in version 1.27. Older installs may still use .config/syncthing.
That move confuses upgraders hunting the old path. Check both Linux trees when migrating. Override locations with flags or STHOMEDIR variables when running portable nodes. Stop Syncthing before copying, since the database stays locked while it runs.
Where Syncthing stores this, by platform
%localappdata%\Syncthing\config.xml
Paste into Run. Keys cert.pem and key.pem sit beside config.xml. The index database shares the folder unless --data points elsewhere.
~/Library/Application Support/Syncthing/config.xml
Use Go > Go to Folder in Finder. Homebrew services wrap the same path, so CLI and app installs converge here.
~/.local/state/syncthing/config.xml
Post 1.27 default. Legacy installs use ~/.config/syncthing instead, so check there second. STHOMEDIR overrides both when set.
Frequently asked questions
Why is there no config in ~/.config/syncthing?
Version 1.27 moved defaults to ~/.local/state/syncthing. Your install likely migrated already. Copy from the state path and leave the old folder retired.
How do I move Syncthing to a new machine?
Stop the service on both ends, copy the whole home folder to the same path, then start. Re-verify device IDs and folder shares before deleting the old node.
Notice an outdated path? Let us know.