You can use a keepass file synchronised with syncthing or a similar peer-to-peer sync system. To securely share credentials, you can share a separate password file with a unique password. There might be issue with file conflicts, but I find these can usually be managed manually; You might also be able to use a crontab.