Building a self-hostable sync implementation

Maybe fossil scm + autohotkey can partly meet your requirement.