Setup of Google Sync Plugin for KeePass V.2.x

Introduction: Setup of Google Sync Plugin for KeePass V.2.x

About: I had a long break in my online activity, bad things happened in my life and i'm still trying to recover, sorry folks that i was away for a long time and please be patient with me, i will be better in time, ...

Q: Why a password manager ?

A: Look at the upper image, if you got not a passwords like dKeDjupfS22ykVSyzAmo and you can memorize them for each site you use then you are a easy target for some script kid that dreams to be a hacker.

Q: Why KeePass and not RoboForm or RoboForm2Go or software XYZ?

A:It's FREE and the supported operating systems: Windows 98 / 98SE / ME / 2000 / XP / 2003 / Vista / 7 / 8, each 32-bit and 64-bit, Mono (Linux, Mac OS X, BSD, ...). Ports of it on: PocketPC & Smart Devices, Windows Phone, Android, iPhone / iPad, Mac OS X, BlackBerry (including 10), J2ME / mobile phones (old ones), JavaScript (browsers, runs on a webserver), Palm OS. That means it runs virtually on anything.

I'm using Windows 7 and 8, Windows XP, Ubuntu Linux and Android and this software supports all of them and has even plugins support.

Q: OK, why do I need your guide and not the one provided by the plugin developer ?
A: First the official tutorial that has some steps missing and is sadly not up to date with the new features of Google's API Console. Meaning you do like it says and you wont be able to sync with Google Drive, getting some strange looking errors.

See the video for the same tutorial or just see my youtube posted one:

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Step 1 : Official Guide

This plugin requires some preliminary setup from Google

Log into to generate a Client Id and Client Secret.

Edit KeePass.config.xml and add Custom entries from Sample-KeePass.config.xml, included in the zip file

EnableAutoSync: synchronize automatically on save (optional)

GoogleSyncClientID: generated from Google API (required)

GoogleSyncClientSecret: generated from Google API (required)

GoogleSyncKeePassUID: UUID of your Google account KeePass entry (required).

(Create a new KeePass entry for a Google account if you do not already have it. Then right click on the entry > Edit/View Entry > Properties tab. Copy the UUID in the configuration file.)

GoogleSyncShowAuthenticationForm: Set this to true if you want to see the Google Authentication form - might be needed for Two factor authentication (optional).

Step 2: Step 2 : Create the ClientID and Secret the Right Way

When you go to

1. Go to Credentials from the left menu and there choose Create new Client ID the OAuth 2.0 then choose Installed application and INSTALLED APPLICATION TYPE Outher then hit Create Client ID. See the first image.

2. Configure it like in the second image and then generate it, then copy the


(yes this is the new format with xxx and yyy not like the old format with just xxx but it still works)

copy the CLIENT SECRET: zzzzzzzzzzzzzzzzzzzzzzzz

put them like sayed in the KeePass.config.xml (see the Sample-KeePass.config.xml for details).

3. Go to Consent screen and there choose the EMAIL ADDRESS and input a PRODUCT NAME (it can be anyting, i just put KeePass Google Sync) the rest let it like it is and hit Save buton on the lower part of the page. (THIS FIXES THE invalid_id ERROR). See the last image.

Step 3: Step 3 : Enable the Correct APIs

Go to APIs and enable the folowing ones: (THIS FIXES THE invalid_client ERROR AND Google.Apis.Requests.RequestError ... ERROR)

• Drive API
• Drive SDK

(Click on the OFF buton on the right of the name and it will switch to on mode.)

With the last step you successfully configured the plugin and your google APIs to work with the plugin and now.

PS only 10.000.000 requests/day and the plugin is useing 2 for each of its options (sync, upload, download), that will let you with just 5.000.000 operations each day, no more that 57 operations/second for 24 hours.

Be the First to Share


    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020

    7 Discussions


    4 years ago on Introduction

    Hi Gregor, I realized I have another question: You mention "Edit KeePass.config.xml and add Custom entries from Sample-KeePass.config.xml, included in the zip file." What is the zip file you're referring to and where might I find it? Thanks ^_^


    Reply 4 years ago on Introduction

    In the *NEW* version there is no more a sample, just a readme.txt thats tell you how to edit:

    * Edit your keepass.config.xml file and remove all <Item> entries in the
    <Custom> group for the old Plugin. Those are items with <Key>
    "EnableAutoSync", "GoogleSyncKeePassUID", "GoogleSyncClientID"
    and "GoogleSyncClientSecret". Delete from <Item> to </Item> (including).
    * Save your changes to keepass.config.xml and close the file.


    4 years ago on Introduction

    Hi Gregor,

    I found my answer in a roundabout way, so I'm updating my post here in case anyone comes along behind me with the same question. Again, I really appreciate your Instructable. Here's what I found: For anyone searching along behind me...this is the answer to a query I've been running: the "Sample-KeePass.config.xml" file is included in the v1.x releases of GoogleSyncPlugin for KeePass, as found on SourceForge (author: drdi). This file is not included in any of the v2.x releases of GoogleSyncPlugin for KeePass (thru date 20150719). So...if you're looking for the "Sample" file, in order to follow any instructions on setting up this plugin, you can find it using the "Browse All Files" function in the GoogleSyncPlugin directories on SourceForge. Happy syncing ^_^


    4 years ago on Introduction

    These instructions are very helpful, especially the part about setting up the Client ID, etc. Apparently, though, the Google console interface (?) is changed a bit since this Instructable was written. I cannot find a "Drive SDK," in the list of APIs. Also, as a side note, when I setup the console side of things, "Translate" API was already turned on for the project. I don't know my way around such things very well (yet) and I'm not really sure how to proceed. I just really wanted to let you know @neumanngregor, since you may choose to update your Instructable. Thanks for your time and effort creating this Instructable. I'll drop another line after I've tried it out. Cordially, Scott


    Reply 5 years ago

    Hope next week i can end my tutorial on the main application (how to make it portable,what plugins are useful and browser integration IE11,Chrome, Firefox), sync with Dropbox and ftp and more.