How to use Password Agent with Google Drive

Note: On Windows, we recommend using Microsoft OneDrive or other cloud software that supports the Windows Cloud API instead of Google Drive, because of better integration and ease of use. You can use Google Drive, but since it is not integrated with the Windows Cloud API, Password Agent treats Google Drive files as regular files, and specific cloud file functions like out-of-sync notifications are not available.

This document helps you set up Google Drive on Windows, so you can synchronize Password Agent files between different devices. If you have an Android device, you likely already have the Google account that is required to use Google Drive.

Before continuing, make sure you have read the introduction to cloud sync with Password Agent, so you know what can and cannot be achieved.

Install Google Drive on Windows

If you have not already done so, you need to download and install Google Drive for desktop (Windows). Direct download link (subject to change): GoogleDriveSetup.exe. Do not download the file from any web page other than the official google.com, or someone may take over your Google account. If you need help, see Use Google Drive for Desktop.

Google Drive settings

After installation, you will see some setup screens that ask if you want to sync your common folders and photos – press Skip in both cases, as for our purposes we don’t need to sync these folders, even if your Password Agent data files are in one of the mentioned locations. These folders sync to the special sub-folder “Other computers” on Google Drive, which is not as flexible as putting Password Agent files directly in your Drive folder “My Drive”, as we do later, so we can sync between many devices. You can set up your general file backup later, if you wish.

Skip backing up files now, you can set this up later, if you wish

Skip backing up photos and videos, you can set this up later, if you wish

Google Drive (G:) in File Explorer

Once you have finished the initial setup, your Google Drive is visible in Windows File Explorer as a virtual drive (screenshot below). The default drive letter is G:, but if you already had a G: drive, it may have some other letter. By default, the drive is pinned to Quick access, but if it is not, you can find the drive under the “This PC” node.

Google Drive visible in File Explorer as virtual G: drive

Moving your Password Agent data files to Google Drive

Open the root-level “My Drive” folder on Google Drive. This folder can be empty, or you may see your existing files/folders there.

Create a new folder inside the root-level folder “My Drive” to store Password Agent files. In the screenshot below, a folder named “PWA” was created for this purpose. Of course, you can name it something like “Passwords”, but such a name attracts more attention from potential passersby than necessary.

New folder 'PWA' created on Google Drive

After the new folder has been created, you can make it available offline; Google Drive will then automatically keep this folder’s contents available locally in case you lose network connectivity. Also, files load much more quickly if they are already downloaded before opening in Password Agent. Note: This setting is device/computer-based, so you need to mark this folder for offline use on each of your devices/computers where you want Password Agent files to always be available.

To make the Google Drive folder available offline, right-click it to invoke the context menu, then open the sub-menu Offline access and select Available offline (see screenshot below). On Windows 11, you need to first invoke the Show more options command from the context menu; the additional Google Drive commands will then be visible in the context menu.

Make new folder 'PWA' available offline

Now open your newly created folder and move* your Password Agent data file(s) from their current location to the new folder on Google Drive. You can skip copying any .old files, which are automatically maintained older versions of the files – these slow down syncing. You cannot move a file that is currently open in Password Agent, so close (not minimize) Password Agent before moving files. If you don’t know where your existing data files are located, please see Locating Password Agent data files.
*) Make a backup of your files first, but in the end, you need to have all files in one location to avoid a situation where you mistakenly open and use the same file from a different source and end up with seemingly identical files with different content.

Password Agent data files moved to dedicated folder on Google Drive

Open files directly from Google Drive (Windows)

Now that you have finished moving your files to the Google Drive folder, you can open your files directly from Google Drive. In File Explorer, double-click a data file residing on Google Drive to open it in Password Agent, or if you do not have a file association, open the file from Password Agent using the menu command File | Open (be sure to browse for the file on the virtual drive G:).

In Password Agent, the file name is displayed on the status bar along with the last modification time (from version 2024.9.24, screenshot below). Confirm that you are using a file from Google Drive (letter G:). Since you previously used file(s) from your local system, it is recommended that you now clean your old recently used files list in Password Agent; for this, use the menu command File | Open recent | Manage list | Remove all. If you do not clean it, you may accidentally re-open the wrong file (an old version) from your local system instead of the cloud drive and keep using it without noticing.

Status bar in Password Agent showing file name and last modified time -- make sure you open file(s) from Google Drive

Important! Google Drive software cannot update files that are open in Password Agent

It is important to remember that when you open (unlock) a file in the Windows version of Password Agent, the Google Drive software cannot update the open file locally if it has changed in the cloud (as long as the file is open). To get the update, you need to lock the unlocked file; the file then gets updated after some time. If you work with cloud files that are updated elsewhere, you should configure Password Agent to lock open file(s) after a period of inactivity. For this, open the program settings and change User activity timeout to 10 (minutes, default) and User inactivity action to Lock open files (default).

To know if you have an up-to-date file to open, inspect the last modification time on the Password Agent status bar (screenshot above) – if you know the file has been modified in the cloud, but you still see an older date, the local file has not been updated from the cloud. Do not edit the file until you get an up-to-date copy; otherwise, you will get a file conflict and two different file versions. If the file is open, lock it and wait until it is updated by the Google Drive software. The last modification time on the status bar is updated automatically when the file is updated.

File conflicts and older file versions

Using Password Agent with Google Drive requires some attention to avoid overwriting a newer data file with an older one. If this or some other issue has arisen, you can see older file versions kept by Google Drive.

Note: You may see .old1, etc. files next to your data file; these are made by the Windows version only. We are trying to get rid of them on cloud drives with an upcoming update. For now, it is better to use Google Drive’s own means to recover an older file version, as that also includes changes made by the Android version.

Open your Google Drive folder that contains Password Agent files, right-click a file to display the context menu and choose the menu command Manage versions (screenshot below). On Windows 11, you need to first invoke the Show more options command from the context menu; the additional Google Drive commands will then be visible in the context menu.

Manage versions of a file on Google Drive

Another File Explorer window opens, displaying the available file versions. You can change the view to the details view to see file dates, etc. You can open an old version directly in Password Agent, but the file will be read-only. If you would like to revert to that file, you need to copy it from there to the original location and rename the file to its original (or another) name. Then open it from that new location for full read/write access.

Note: When you change your master password due to a security concern, file versions that can be accessed with the previous password can still be found in the cloud file history, unless you manually delete them from the cloud file history.

Accessing Google Drive from multiple computers

If you have multiple computers, you can now configure the other computers to open file(s) from this Google Drive folder. Just install Google Drive for Desktop, optionally mark the folder with Password Agent data files as available offline, then open the data file directly from Google Drive and clean the old recent files list.

Accessing Google Drive from the Android app

See the topic How to open a file from a cloud drive on Android.

Always use the latest version of Password Agent

As we continuously update and improve Password Agent’s compatibility with major cloud services, it is recommended to use the latest version of the program for best results.