by Sertaç Yıldız
Comprehensive, security-first sync of your vault to a Google backend you own — Google Drive or Google Cloud Storage. Bring your own Google account; no third-party server.
Google Sync for Obsidian
Sync your Obsidian vault to a Google backend you own — your personal Google Drive, or your own Google Cloud Storage bucket — privately, with optional end-to-end encryption and no third-party server.
Why this exists
Your notes are yours. Keeping them backed up and in sync across devices shouldn't mean paying a subscription, routing your vault through someone else's server, or letting a plugin rewrite your files.
Google Sync keeps everything on infrastructure you already own and control:
- Your cloud, no middleman. Your notes and credentials go straight to your own Google Drive or Cloud Storage — never through any relay or shared service.
- Private by design. Optional end-to-end encryption means even a leaked credential or a compromised bucket can't read your notes.
- Never touches your notes. Sync state is tracked out-of-band — the plugin never injects metadata or rewrites your Markdown.
- Safe two-way sync. Changes flow both ways, deletions propagate, and a conflict keeps both copies — it never silently loses data.
- Built for real vaults. Handles large vaults, attachments, and special-character / non-English filenames.
Two ways to connect
- Google Drive — sync to your personal Drive with your ordinary Google account.
- Google Cloud Storage — for those already on Google Cloud. Sync to your own bucket.
Use one, or set up both and choose which is active.
Installation
You can install Google Sync directly from the Obsidian Community Plugins directory:
- Open Obsidian Settings -> Community Plugins.
- Disable "Safe Mode" if it's currently enabled.
- Click Browse and search for Google Sync.
- Click Install, and once installed, click Enable.
Requires Obsidian 1.13.0 or newer.
Configuration & Setup
This plugin ships with no OAuth credentials of its own. You create a Google
OAuth client once and paste it into settings; it then lives only in this vault's
plugin data. That means there is no shared credential bundled into the plugin
for anyone to extract, and every release can be rebuilt from source byte for
byte — see SECURITY.md.
- Open Google Cloud Console → Credentials and pick or create a project.
- If you plan to sync to Drive, enable the Google Drive API for that project.
- Create credentials → OAuth client ID, application type Desktop app.
- In Obsidian, open Settings → Google Sync and paste the client ID and client secret under Google OAuth client.
- Turn on Google Drive and/or Google Cloud Storage, then press Connect.
On the desktop, sign-in uses the OAuth loopback flow (PKCE) against 127.0.0.1 —
your browser opens, you approve, and the token is captured locally.
On your phone (Android / iOS)
The same plugin runs on Obsidian mobile; install it from Community Plugins on the phone. A phone app cannot listen on a local port, so sign-in goes through your browser and comes back to Obsidian instead:
- In the same Google Cloud project you use on your computer (so both see the same Drive files), Create credentials → OAuth client ID, application type Web application.
- Under Authorized redirect URIs, add
https://sertacyildiz.github.io/obsidian-google-sync/oauth/— the phone's settings show it too, with a Copy button. - On the phone, paste this client's ID and secret under Google OAuth client, then press Connect. Your browser opens; once you approve, it hands you back to Obsidian.
The redirect page is a static page in this repository (docs/oauth/). It only
passes a one-time code back to Obsidian, and that code is useless without the
key that never leaves your phone — see SECURITY.md. You can host
the page yourself and set Redirect page (advanced) to your copy.
Google Cloud Storage with an HMAC key needs no sign-in at all, on any device.
Is your vault's
.obsidianfolder synced by something else (iCloud, Obsidian Sync with plugin settings, Syncthing)? Then this plugin's settings, sign-in included, travel to your phone with it. On a phone that receives them, automatic sync stays off until you press Sync now there, and settings say so. Better: exclude.obsidian/plugins/google-cloud-sync/from that other sync, so each device keeps its own sign-in.
If your OAuth consent screen is still in Testing, Google expires refresh tokens after 7 days, on every device. Switching it to In production avoids that; for your own client, Google may show an "unverified app" screen that you can continue past.
Upgrading from 0.6.x or earlier? Those versions signed in through a shared OAuth client that was bundled into the plugin. That client has been removed, so an existing sign-in can no longer be refreshed: create your own client as above and press Connect again. Your synced files are not affected.
Privacy & security
Security is the first priority, not an afterthought: credentials are never
synced and never logged, permission scopes are kept minimal, and content
encryption is available so a backend leak is never a content leak. Details in
SECURITY.md.
Support & Feedback
If you encounter any issues or have feature requests, please check the Issues page to report them or contribute.
License
MIT.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.