← All templates · Notes and wikis
Deploy Obsidian LiveSync in one click
A CouchDB server that syncs your Obsidian vaults with Self-hosted LiveSync
A self-hosted alternative to Obsidian Sync.
What is Obsidian LiveSync?
Obsidian LiveSync is an open-source sync plugin for Obsidian, listed there as Self-hosted LiveSync, that people run instead of Obsidian Sync. It keeps a vault the same on every device through a CouchDB server of your own. In LiveSync mode, edits travel both ways in real time; Periodic Sync and On Events sync on a timer, or when you save, open a file or start Obsidian. Simple conflicts merge on their own, and Customisation Sync (Beta) can carry settings, themes, snippets and plugins.
People run it themselves for the reason its README calls most important: the notes sit on a server they trust. The project names researchers, engineers and developers who must keep notes on their own servers for security, and anyone who wants them private. The catch: a vault synced by LiveSync must not be synced by anything else as well, iCloud included, and the project asks you to back up the vault before installing or upgrading.
Hosting Obsidian LiveSync on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Obsidian LiveSync. You fill in what it asks for and click Create project: Admin password.
- In a minute or two Obsidian LiveSync is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Obsidian LiveSync
Is Obsidian LiveSync free?
Yes. Self-hosted LiveSync is open source under the MIT licence and costs nothing. You provide what it syncs through: a CouchDB server, S3-compatible object storage, or peer-to-peer sync between your devices over WebRTC.
Obsidian LiveSync vs Obsidian Sync: what is the difference?
LiveSync is a community plugin that syncs through a server you run, while Obsidian Sync is Obsidian's official service. The two are not compatible and cannot sync with each other.
Is Obsidian LiveSync end-to-end encrypted?
Yes, once you turn on End-to-End Encryption and set a passphrase, which the docs recommend. Notes are then encrypted with AES-256-GCM before they leave the device, and Path Obfuscation can hide file paths from the server too.
Does Obsidian LiveSync work on iPhone and Android?
Yes, it runs wherever Obsidian runs, the iOS and Android apps included. On a phone the server must use HTTPS with a certificate the system trusts: plain HTTP and self-signed certificates do not work.
How do I set up Obsidian LiveSync?
Install Self-hosted LiveSync from Obsidian's community plugins, choose CouchDB in its onboarding and enter the server's URL, username, password and a database name. Then generate a Setup URI on that device for each other one.
How much memory and disk does Obsidian LiveSync need?
Obsidian LiveSync is light: CouchDB takes about 150 MB, and the disk holds your vaults with their edit history. On Pethost the Starter plan is enough for it, with room for other apps beside it.
Obsidian LiveSync Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: couchdb (couchdb:3).
Volumes, in the nightly backup: data.
services:
couchdb:
image: couchdb:3
restart: unless-stopped
environment:
COUCHDB_USER: admin
COUCHDB_PASSWORD: ${ADMIN_PASSWORD}
COUCHDB_SECRET: ${COUCHDB_SECRET}
configs:
- source: livesync
target: /opt/couchdb/etc/local.d/livesync.ini
volumes:
# The image declares /opt/couchdb/data a volume: the vaults are in it.
- data:/opt/couchdb/data
configs:
# What Self-hosted LiveSync's own setup script sets (utils/couchdb/provision.ts): one node,
# nothing answered without a sign-in, room for big notes, and Obsidian's apps let in by CORS.
livesync:
content: |
[couchdb]
single_node = true
max_document_size = 50000000
[chttpd]
require_valid_user = true
max_http_request_size = 4294967296
enable_cors = true
[chttpd_auth]
require_valid_user = true
[httpd]
WWW-Authenticate = Basic realm="couchdb"
enable_cors = true
[cors]
origins = app://obsidian.md,capacitor://localhost,http://localhost
credentials = true
volumes:
data:
More in Notes and wikis
- MemosShort Markdown notes on a private timeline
- HedgeDocMarkdown notes you write together in real time
- BookStackA wiki organised as shelves, books, chapters and pages
- DocmostA collaborative wiki and docs, with spaces, real-time editing and diagrams
- EtherpadDocuments edited together in real time: each author in their own colour, with chat, history and plugins
- MediaWikiThe wiki software of Wikipedia: pages anyone can read, edited in the visual or the source editor