2021-10-13 21:38:44 +09:00
2026-06-17 01:44:26 -03:00
2026-06-19 17:45:37 +09:00
2026-05-11 12:33:32 +01:00
2026-01-09 11:46:37 +00:00
2026-10-31 06:01:30 +00:00
2026-11-01 08:53:13 +00:00
2021-10-15 01:27:24 +09:00
2026-11-01 13:23:01 +00:00
2026-11-01 13:23:01 +00:00
2026-11-01 13:23:01 +00:00
2026-01-08 01:41:07 +08:00
2025-01-22 13:41:18 -06:00
2026-06-05 03:05:13 +09:00
2026-02-21 14:12:05 +09:00
2026-08-14 11:21:45 +00:00
2026-11-01 13:23:01 +00:00
2026-11-01 13:23:01 +00:00

Self-hosted LiveSync

Japanese docs - Chinese docs.

Self-hosted LiveSync is a community-developed synchronisation plug-in available on all Obsidian-compatible platforms. It leverages robust server solutions such as CouchDB or object storage systems (e.g., MinIO, S3, R2, etc.) to ensure reliable data synchronisation.

Additionally, it supports peer-to-peer synchronisation using WebRTC, enabling devices to exchange notes without a central data-storage server. A signalling relay is still required for peer discovery. See How peer-to-peer synchronisation works.

Find setup guides, troubleshooting, technical references, design decisions, and historical material in the documentation index.

obsidian_live_sync_demo

Important

This plug-in is not compatible with the official "Obsidian Sync" and cannot synchronise with it.

Features

  • Synchronise vaults efficiently with minimal traffic.
  • Handle conflicting modifications effectively.
    • Automatically merge simple conflicts.
  • Use open-source solutions for the server.
    • Compatible solutions are supported.
  • Support end-to-end encryption.
  • Synchronise settings, snippets, themes, and plug-ins via Customisation Sync (Advanced) or Hidden File Sync.
  • Synchronise peer-to-peer using WebRTC.

This plug-in may be particularly useful for researchers, engineers, and developers who need to keep their notes fully self-hosted for security reasons. It is also suitable for anyone seeking the peace of mind that comes with knowing their notes remain entirely private.

Important

  • Before installing or upgrading this plug-in, please back up your vault.
  • Do not enable this plug-in alongside another synchronisation solution (including iCloud and Obsidian Sync).
  • For backups, we also provide a plug-in called Differential ZIP Backup.

How to Use

Self-hosting lets us choose a server we trust and manage it ourselves. Please set up and maintain your own server, and keep it secure.

1. Choose a synchronisation backend

Each Vault selects one remote synchronisation method: CouchDB, Object Storage, or WebRTC Peer-to-Peer (P2P). They are distinct alternatives rather than layered dependencies — for example, if you choose Object Storage, you do not need a CouchDB server.

Tip

You can switch backends at any time: Self-hosted LiveSync supports multiple connection profiles via Saved connections in settings. You can begin with a hosted option such as Fly.io or Cloudflare R2, and switch to your own server later without rebuilding your Vault files.

Backend comparison and decision guide

Backend / Environment LiveSync Mode
(Real-time continuous)
Sync while others offline Mobile support
(iOS and Android)
Maintenance effort Estimated monthly cost Recommended for
CouchDB (Self-hosted)
(Own VPS, NAS, Docker, or Raspberry Pi)
✅ Full ✅ Yes ⚠️ Requires HTTPS or VPN High (manage OS, Docker, and backups) Free (on existing hardware) Users with home servers or private infrastructure
CouchDB (Fly.io)
(Cloud container PaaS)
✅ Full ✅ Yes ✅ Out of the box (HTTPS included) Low (scripted setup via notebook) ~USD 2.00–3.00 / mo
(see cost details)
Users wanting real-time sync without managing hardware
Object Storage (S3 / R2)
(Cloudflare R2, AWS S3, or MinIO)
❌ Periodic or on-save only ✅ Yes ✅ Out of the box (HTTPS included) Minimal (bucket configuration only) Often USD 0.00 on R2
(see cost guide)
Users wanting zero server maintenance at near-zero cost
WebRTC Peer-to-Peer
(Direct device-to-device)
✅ Full (while connected) ❌ Both devices must be online ⚠️ Limited by OS background tasks None (free public signalling relay) Completely Free Users who prefer no central storage server

Note

Why Object Storage does not incur high API costs in LiveSync: Unlike traditional file-synchronisation tools that scan every single file on each sync (generating thousands of LIST or HEAD operations), LiveSync uses Journal Sync. It packages only recent changes into compressed delta journals. The number of API requests does not scale with your Vault's file count. Whether your Vault contains 100 or 50,000 files, an idle check requires only a single listing operation. While initial upload and connecting a new device require a one-off transfer of all existing file Chunks, routine incremental synchronisation consumes very few requests. On services such as Cloudflare R2, typical individual usage comfortably remains within the permanent free allowance (1,000,000 Class A operations per month). See Object Storage transfers, request scaling, and service costs for detailed calculations and initial transfer estimates.

2. Prepare your chosen backend

Follow the setup guide for your selected method:

For the Fly.io video walkthrough, see automated setup.

If you would like to test WebRTC connectivity between your devices before setting up P2P, try the experimental WebPeer browser utility (documentation).

3. Connect your devices and verify synchronisation

Regardless of your chosen backend, connecting your devices follows four straightforward steps:

  1. Prepare your backend using the guide selected in Step 2 (not required for P2P with the public relay).
  2. Set up your first device: install Self-hosted LiveSync, enter your connection settings and End-to-End Encryption passphrase, and initialise the remote database from your Vault:
  3. Connect additional devices using a Setup URI: on your working first device, run Copy settings as a new Setup URI from the command palette. Open that encrypted URI on your second device so it receives the identical encryption and connection profiles.
  4. Verify two-way synchronisation: create a test note on your first device and confirm that it appears on the second. Then edit the note on the second device and confirm that the change reflects back on the first device. Configure optional features (such as customisation or hidden-file sync) only after this verification succeeds.

Hosting services proposed by the community

Note

The services below are operated by third parties. They are not official Self-hosted LiveSync services, and this project neither endorses nor recommends them. The providers proposed the listings in the table.

If you would rather not set up and maintain a server yourself, the following providers offer managed CouchDB servers which this plug-in can be configured to connect to:

Provider Offering
Zenith Hosting Managed CouchDB hosting.

Your synchronisation data will reside on a server operated by the provider. Consider whether that is acceptable for your Vault, and review the provider's current terms, pricing, and data-handling policies before using the service.

Information in the Status Bar

Synchronisation status is shown in the status bar and inside the editor by default. The main indicators are:

Indicator Meaning
⏹️ Stopped.
🌀 Starting synchronisation.
💤 LiveSync mode is waiting for changes.
⚡️ Synchronisation is in progress.
⏩ Comparing CouchDB change history, including entries already held locally.
⚠ An error occurred.
↑ / ↓ Uploaded / downloaded Chunks and Metadata.
📲 / 🌐N A finite remote operation is in progress / approximate remote requests in progress.

See the status display guide for detailed progress counters and CSS customisation.

Allow pending file operations to finish before closing Obsidian, especially after deleting or renaming files.

Tips and Troubleshooting

  • If you want a faster and simpler initial replication when setting up subsequent devices, see the Fast Setup Guide.
  • Configure Hidden File Sync only after ordinary note synchronisation works.
  • If Obsidian or LiveSync cannot start normally, use Recovery and flag files before changing or resetting a remote database.
  • Self-hosted LiveSync 1.0 requires Obsidian 1.7.2 or later. If you need to use 1.0 on an earlier Obsidian version, please open an issue with your version, platform, and reason for remaining on it so that we can assess whether extending support is practical. The standard Community Plugins installer otherwise selects an older compatible plug-in release.
  • If you are having problems getting the plug-in working, see Tips and Troubleshooting.

Acknowledgements

The project has been in continual progress and harmony thanks to the following:

May those who have contributed be honoured and remembered for their kindness and generosity.

Development Guide

Please refer to the Development Guide for development setup, testing infrastructure, code conventions, and more.

License

Licensed under the MIT License.

S
Description
No description provided
Readme MIT Cite this repository
27 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 89.5%
Svelte 5.1%
JavaScript 2.4%
Shell 1.9%
CSS 0.7%
Other 0.3%