How to set up cloud syncing for Password Agent

First, we must realize that there is no foolproof way to keep your Password Agent data file(s) synced between Windows and mobile devices, as Password Agent stores data in disk files that must be copied from one place to another and back, and since the files are encrypted, they cannot easily be merged automatically on file conflicts, etc. Taking the following into account, we can still get cloud sync to work reasonably well.

To sync Password Agent data files from a Windows computer to the cloud, you need third-party “cloud software” like Microsoft OneDrive, Google Drive, etc. Password Agent itself does not access the internet, for your own good.

Detailed setup and usage instructions

Microsoft OneDrive

We currently recommend Microsoft OneDrive as the first choice because it is already installed on most Windows 10/11 computers, it is integrated with the Windows operating system, it supports the Windows Cloud API, and it also offers a very easy way to revert to older file versions in case of file corruption.

How to use Password Agent with Microsoft OneDrive

Google Drive

Please note that the Google Drive Windows client does not support the Windows Cloud API and uses a custom kernel driver. It is also quite bloated, with close to 10 additional processes running in the background. Since it does not support the Windows Cloud API, there is no integration with Password Agent – files in the cloud drive folder are treated as normal files, and Password Agent cannot notify you when a file is out of sync.

How to use Password Agent with Google Drive

ownCloud and other third-party cloud sync software

You can also use other cloud syncing software. If you have your own server, you can set up a personal cloud server with the ownCloud open-source software, which works well with Password Agent. Third-party programs typically work about the same as OneDrive listed above, so you can follow the OneDrive “how-to” to get an idea of how to set up sync. It is highly recommended to use software that integrates with the Windows Cloud API (like ownCloud).

Things you should know and keep in mind

Files unlocked with the master password cannot be updated by cloud software

On Windows, cloud client software can update a local file from the cloud only when the local file is not currently in use by Password Agent. In use means the file is unlocked with the master password. By default, Password Agent locks all in-use (unlocked) files after 10 minutes of inactivity, but you may have changed that behavior in the program settings. You should set the setting “User inactivity action” to “Lock open files” (or “Lock open files and minimize”) and “User inactivity timeout” to some reasonable value, like 10 minutes or less. When you know you have modified your cloud file on another device and the file is also open/unlocked in Password Agent, lock the file in Windows so it can be updated by the cloud software (this may take some time). The last modified time on the Password Agent status bar tells you when the file was last updated; it is automatically updated for locked files (the enter master password screen). Password Agent 2024.11.22 or newer has built-in functions that notify you if a file gets out of sync, but these only work when you use cloud client software that supports the Windows Cloud API (like OneDrive or ownCloud).
Also, if you mostly and frequently update your data from a mobile device, you can open files in the Windows version as read-only. Files opened in read-only mode are writable by the cloud client software all the time. You can select the Open read-only checkbox on the unlock screen of a file, or change the program setting to have it selected by default, so you can opt out when needed.

Use mainly one-way syncing to minimize potential file conflicts

The most foolproof way to set up sync between multiple devices is one-way syncing. You always update the data file on a certain “master” device only, and the updated file is saved or copied to the cloud, where other devices can always access the latest version of the file. This ensures that you work on one file only and minimizes the possibility of having multiple different versions of the same file on multiple devices. If that is not the case, you’ll need to monitor file times very carefully to be sure updates made on another device are already downloaded before making changes to a file.

Old backup files may slow down sync

When saving a data file, the Windows version of Password Agent keeps previous versions of the data file as a backup, but renames them to have the extension .oldN (where N is a number). By default, a few older versions are kept, just in case you need to revert to an older data file. That is good when used with classic, non-cloud files, but in a cloud folder they become somewhat problematic, because each time you modify a file, all these old version files also change, which means multiple files need to be synced each time you make a single modification to your file. If your files are large (contain attachments) and the connection is limited, the process may become slow. If that is the case, you can reduce the number of old files to keep (see Settings/Backup) to 1, so there are fewer old files to copy with each file update.
From version 2024.11.22, you can also completely disable keeping .old files (by setting the count to 0), if needed, but we recommend keeping at least 1 old file.

When updating a cloud file, you can automatically make a local backup copy

In Windows, Password Agent can automatically copy the file to backup location(s) after updating/saving it. That allows you to keep an additional local copy outside the cloud software’s virtual folder. For this, you can specify backup location(s) using the Password Agent setting After saving copy file to these directories (if more than one, separate them with semicolons).