Self-hosted Obsidian synchronization · Desktop, Android & iOS

Private sync for your Obsidian vault.

Run your own Obsidian sync server on an Ubuntu VPS in one guided command, pair phones and computers with short-lived QR codes, preserve every offline edit safely, and optionally encrypt notes end-to-end before they leave your device.

Ubuntu 22.04 & 24.04 LTS · AMD64 & ARM64 · Obsidian 1.5.0+ (Desktop, Android, iOS) · Lite (1 GB RAM) & Standard (2+ GB RAM)
One-Command Installation

Deploy on Ubuntu in minutes

The bootstrap script verifies Ubuntu 22.04/24.04 and AMD64/ARM64, downloads the pinned 0.3.1 release of Synora, protects existing deployments, and launches the interactive server installer.

Pinned release: v0.3.1 Ubuntu 22.04 / 24.04 AMD64 / ARM64
Inspect install.sh
curl -fsSL https://synora.codesec.me/install.sh | sudo bash

Requires root/sudo on a VPS. Need a specific version or install path? Pass -s -- --version 0.3.1 --dir /opt/synora. See Server Installation.

Feature Overview

Everything needed for private multi-device vault sync

Designed around real-world VPS constraints, mobile OS lifecycle limits, and verifiable cryptographic primitives.

Adaptive Lite & Standard Modes

Hardware detection automatically recommends SQLite (WAL) for 1 GB RAM / 1 vCPU servers or CouchDB 3.4 for 2+ GB RAM / 2+ vCPU servers, with non-destructive upgrades anytime.

Zero-Config HTTPS

Expose your server immediately via Cloudflare Quick Tunnel (no domain or open ports required), connect a Permanent Cloudflare Tunnel, or use direct Caddy Let's Encrypt HTTPS in Standard Mode.

Incremental Blob Sync

Content-addressed SHA-256 blobs upload once, commits use optimistic revisions, and clients pull changes monotonically over HTTPS and authenticated WebSocket notifications.

QR Device Pairing

Enroll phones and secondary computers in seconds using single-use, 5-minute obsidian://synora-pair codes generated in Obsidian or right in your SSH terminal.

Optional Web Crypto E2EE

Encrypt notes, attachments, file sizes, timestamps, and paths client-side using PBKDF2-SHA256, HKDF-SHA256, AES-256-GCM, and HMAC-SHA256 blinded paths.

Per-Device Revocation & Audit

Every device receives its own revocable bearer token (stored server-side as a SHA-256 hash). Revoke a lost device instantly and inspect vault events in the built-in audit viewer.

How Synora Works

From fresh VPS to synced devices in four steps

1

Deploy the Server

Run the bootstrap command on Ubuntu. Choose Lite or Standard Mode and select Quick Tunnel, Permanent Tunnel, or Caddy HTTPS.

2

Create Your Vault

Enter your Server URL and one-time SYNORA_API_KEY on your first Obsidian device, optionally setting an 8+ character E2EE passphrase.

3

Pair via QR Code

Generate a 5-minute single-use QR code in Obsidian or with installer/pair.sh, scan on another device, and confirm.

4

Sync & Recover

Edits upload incrementally, queue safely when offline, and preserve concurrent changes in non-destructive .conflict- files.

Desktop & Mobile Compatibility

Built purely on Obsidian and browser WebView APIs

With isDesktopOnly: false and zero Node.js or Electron imports inside the plugin bundle, the same plugin runs on Windows, macOS, Linux, Android, and iOS.

Desktop (Windows, macOS, Linux)

Real-time WebSocket sync_available triggers, 15-second active polling fallback, ribbon sync action, and command palette tools for manual sync, QR pairing, scanning, and conflict recovery.

Mobile (Android & iOS)

Android Doze and iOS background suspension stop background WebViews, so Synora focuses on fast foreground sync, persisted offline queuing, and automatic flush on visibilitychange, pageshow, and online resume events.

Optional End-to-End Encryption

Zero-knowledge storage when you enable a vault passphrase

Passphrases never leave your device. Only salted key-derivation parameters and a non-secret verification envelope (keyCheck) are stored on the server.

Key Derivation

PBKDF2-SHA256 with 210,000 iterations and a 16-byte random salt derives a 256-bit master key, split via HKDF-SHA256 into separate content and path MAC keys.

SYN1 Encrypted Envelope

Both file payloads and metadata (path, size, mtimeMs, plaintextHash) are encrypted with AES-256-GCM and a fresh 12-byte random IV per write.

Blinded Server Paths

Vault file paths are converted locally to e2ee/<HMAC-SHA256> digests, so the server cannot read note titles, folder hierarchy, or attachment filenames.

Read the End-to-End Encryption specification →

QR Pairing

Fast enrollment without leaking secrets

Scanning a Synora QR code opens Obsidian via obsidian://synora-pair?url=...&code=...&exp=...&vault=.... Codes expire in 5 minutes, are single-use, and are rate-limited against guessing (15 failed attempts per 60 seconds).

Permanent SYNORA_API_KEY setup keys, per-device tokens, and E2EE passphrases are never placed inside QR payloads.

Learn how QR pairing works →
Offline Sync & Conflict Safety

Persisted queue and non-destructive conflict copies

Edits made offline stay in Synora's persisted pendingQueue with unique operation IDs, so mid-upload edits are rebased rather than dropped. Scans verify SHA-256 content hashes rather than timestamps alone.

Concurrent edits or edit-vs-delete collisions create a recoverable <name>.conflict-<timestamp>-<device>.<ext> file surfaced in Synora: Review sync conflicts.

Explore sync diagnostics & conflicts →
Architecture Overview

One API surface, two adaptive storage backends

The Obsidian plugin communicates over the exact same HTTPS + WSS API whether your server runs Lite Mode or Standard Mode.

Obsidian Clients (Desktop, Android, iOS) HTTPS + WSS (Bearer syn_dev_...) · Optional client-side Web Crypto E2EE · Offline pendingQueue
▼ TLS termination (Zero Trust or Let's Encrypt)
Cloudflare Tunnel (Quick / Named) or Caddy 2 (Standard Mode) X-Content-Type-Options: nosniff · Referrer-Policy: no-referrer · Cache-Control: no-store on /api/*
▼ Internal Docker bridge network → http://api:3000
Synora API (Node.js 22 + Fastify 5 + @fastify/websocket) Content-addressed SHA-256 blobs (25 MB default max payload) · Optimistic revisions · Audit log
▼ Storage adapter (SYNORA_DB_DRIVER)
Lite Mode (1 GB RAM / 1 vCPU) Built-in SQLite (node:sqlite, WAL mode) + local content-addressed blobs under deployment/lite/data/api
Standard Mode (2+ GB RAM / 2+ vCPU) CouchDB 3.4 on private Docker network (port 5984 never exposed) + blob storage under deployment/standard/data
Open Source & Contributions

Built in the open on GitHub

Synora is open-source software licensed under the MIT License. Inspect the server, plugin, Docker Compose stacks, and automated test suites before deploying to your own infrastructure.