ondreu92 downloadsEnd-to-end encrypted two-way sync between your vault and Proton Drive, with three-way conflict detection and a headless daemon for Linux servers.
Two-way sync between an Obsidian vault and a folder in
Proton Drive, built on Proton's official
Drive SDK. Notes, attachments and your
.obsidian settings travel encrypted end to end: the encryption happens on your
device, with the same SDK Proton's own clients use.
[!IMPORTANT] This plugin writes to your vault and can delete files in it. It has an automated test suite, but no external audit. Keep a backup you can restore from, as you would with any sync tool.
This is a fork of obsidian-proton-sync. The sync engine, the Proton SDK usage and the plugin surface come from that project, and are kept shared rather than copied, so a conflict fix is made once for both the plugin and the daemon.
On top of that codebase, the fork adds:
.obsidian settings if you want them.git mv): the next full sync recognises the file by
its content and moves it instead of uploading it again.The same sync engine runs without Obsidian, so a vault can stay in sync on a
NAS or any Linux box — no desktop running, and no Obsidian Sync. That daemon
lives in its own repository, ondreu/pss-daemon:
it pins this repository as a submodule and imports src/sync and src/proton
directly, so a conflict fix still lands once for both. It is not shipped in
main.js and nothing here depends on it.
Until the plugin is in the community directory, install it by hand:
main.js, manifest.json and styles.css from the
latest release.<vault>/.obsidian/plugins/proton-sdk-sync/.With BRAT you can add
ondreu/proton-sdk-sync instead and let it keep the plugin updated.
A first sync of a large vault is mostly upload or download. It takes time, and it needs Obsidian to stay open, though not in the foreground.
A conflict is a file edited on two devices since they last agreed on it. The plugin does not guess: it keeps both sides and asks.
note (conflict from <device> 2026-01-31 12-00-00).md.The losing side is always kept as a conflict copy when the two differ. Nothing is dropped because a button was pressed once.
Text files changed on both sides are merged line by line when the edits do not overlap; the merged result is written and reported as merged. Everything else becomes a conflict copy.
.DS_Store, Thumbs.db, desktop.ini..git/, .trash/, and Obsidian's own cache folders..obsidian/ if you turn config syncing off.The plugin's own state and logs stay in
.obsidian/plugins/proton-sdk-sync/, and its Drive metadata cache in
IndexedDB; none of it syncs.
Any file in the vault — a note, an image, a PDF, a zip — can get a view-only Proton public link. Right-click it (or use the command palette) and choose “Share file with a Proton link”; pick the lifetime (7, 30, 90 days, a custom number, or never) and the dialog shows the link with a Copy button.
A folder shared with you on Drive can be the sync target. The device list is then disabled: the other people in that folder would see the notes each device writes about itself, and that is not theirs to see.
The Proton session — access and refresh tokens, never your password — is stored encrypted, in one of two places:
safeStorage: Keychain, DPAPI, libsecret), file mode 0600. Where
no keystore is available, it goes to Obsidian's secret storage instead.You can put a PIN in front of the stored session. With a PIN set it is never written in the clear: a token refresh that arrives while the plugin is locked waits in memory and is written, encrypted, at the next unlock. Wrong PINs back off exponentially, and the count survives a restart.
Signing out ends the session on Proton's side as well, and forgets the folder choice and the sync state, because both belong to the account you left.
account.proton.me,
drive-api.proton.me, and the regional block-storage host the Drive API hands
out (<region>-storage.proton.me). It sends the requests a Drive client has
to send: authentication, file listing, uploads, downloads, shares and version
history. Nothing is sent anywhere else, and a request to any other host is
refused.safeStorage needs, and an IndexedDB cache of Drive metadata. All of it stays
on the device.The automated review lists a few capabilities with a warning or a recommendation. Each one is real, and each has a reason:
fs is reached lazily,
behind a desktop check, and only through paths that have already been checked
to stay inside the vault. It is used for two things the vault API cannot do:
streaming a large upload in chunks instead of holding the whole file in
memory, and hashing files larger than a few megabytes without a second full
copy. On mobile there is no Node at all, and everything goes through the vault
adapter and WebCrypto. That is why isDesktopOnly is false: the plugin
runs on mobile, it just takes the slower path there.new Function, inside
ttag's plural-form helper, which Proton's OpenPGP.js bundles for its
translated messages. The plugin itself never evaluates generated code, and
nothing from a note, a file name or the network reaches that helper.The plugin keeps a state file mapping each vault path to its Drive node and the revision both sides last agreed on. On each pass it lists what changed on Drive since its cursor, walks the parts of the vault that changed, and reconciles the two against that common ancestor. Uploads are debounced; Drive is polled at the interval Proton's own clients use. Transfers are streamed through the SDK, so a large file does not have to fit in memory.
Bugs and questions go to the issue tracker. For anything that could put someone's data at risk, say so in the title and keep the details out of the first message.
GPL-3.0-or-later; see LICENSE.
This is a maintained fork of MarckFp/obsidian-proton-sync (© Marcos, GPL-3.0), which in turn builds on Proton's SDK and OpenPGP.js. The original author is credited as a contributor. The sync engine, the conflict handling and the UI come from that codebase, and the changes here are this fork's own.
Bundled third-party code keeps its own licence; the header of main.js lists
it. Proton's OpenPGP.js fork is MIT (© Proton AG); see
src/proton/account/LICENSE.md.
Proton and Proton Drive are trademarks of Proton AG. Obsidian is a trademark of Dynalist Inc. This plugin is not affiliated with either.