Sync your Obsidian vault with OneDrive (personal, App Folder).
English | 中文
An unofficial community sync plugin for Obsidian that syncs your vault to Microsoft OneDrive.
OneDrive Vault Sync is forked from remotely-save v0.5.25 and adapted to OneDrive only. The original multi-cloud architecture was stripped down to OneDrive, and the OneDrive integration was reworked around a self-owned app registration and the Graph App Folder API. The sync-core files (sync.ts, conflictLogic.ts, clearDupFiles.ts, settingsClearDupFiles.ts) retain upstream code under the same PolyForm Strict License 1.0.0 as the source project; only fileContentHistory.ts is new to this fork.
It is not the official Obsidian Sync service, and not a Microsoft / OneDrive product — it only talks to OneDrive through Microsoft's public Graph API.
/Apps/obsidian-onedrive-sync App Folder.You can install the plugin in any of the following ways. It requires Obsidian 0.13.21 or later and runs on both desktop and mobile.
main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/onedrive-vault-sync/, then enable the plugin in Settings → Community plugins.No Azure app registration is needed — the OAuth client ID is built into the plugin. On first run, click Connect to OneDrive and sign in with your personal Microsoft account.
There is no telemetry, no analytics, no crash reporting, and no third parties. All network traffic goes only to Microsoft (login.microsoftonline.com, graph.microsoft.com, and Microsoft content hosts). The plugin reads your vault's file names and contents (encrypted if you set a password) and syncs them to your own OneDrive App Folder, and reads your Microsoft account name / email for authentication. OAuth tokens and the encryption password are stored locally in IndexedDB and never uploaded; the settings file (data.json) strips auth tokens and the password. See docs/remote_services/onedrive/README.md for the full privacy note.
docs/README.md — documentation overview.docs/remote_services/onedrive/README.md — OneDrive setup notes and privacy note.docs/sync_algorithm/v3/intro.md — sync algorithm v3.docs/how_to_debug/README.md — debugging guide.This plugin uses a split license — see LICENSE for the full statement:
src/, tests/, docs/) is Apache License 2.0 (open source).src/sync.ts, src/conflictLogic.ts, src/fileContentHistory.ts, src/clearDupFiles.ts, src/settingsClearDupFiles.ts) are PolyForm Strict License 1.0.0 (source-available: personal and noncommercial use is permitted; redistribution of these files is restricted).The plugin is free to use. The source-available PolyForm license on the sync core does not affect personal use of the plugin.