Self Hosted Private Sync

approvedunreviewed

by Samuel Naranjo

Self-hosted, end-to-end encrypted live sync for your own obsync server.

★ 5 stars↓ 420 downloadsUpdated 23d agoMIT
obsync icon: two interlocked rings

Self Hosted Private Sync

Read in your language: English • العربية • Deutsch • Español • فارسی • Français • Bahasa Indonesia • Italiano • Nederlands • Polski • Português • Português (Brasil) • Русский • ไทย • Türkçe • Українська • Tiếng Việt • 日本語 • 한국어 • 中文简体 • 中文繁體

Self-hosted, end-to-end encrypted live sync for Obsidian. Your notes sync through a server you run yourself. Notes, attachments and file names are encrypted on your device, and the server never receives the key. The plugin works on every platform Obsidian runs on, desktop and mobile. There is no subscription and no account anywhere else.

Something not working? → Troubleshooting

Find what you need

Every page is also on the documentation site.

Use obsync

I want to…Go to
Choose how my devices reach my serverChoose your setup
Set up everything on my home network, with every phone screenSame network, step by step
Install the pluginInstall the plugin
Set up my first deviceQuickstart
Pair a phone or another computerPair your phone
Know what the status icon and the commands meanDaily use and Reading the status bar
Get an older version of a note backRestore a retained version
Know what a setting doesSettings
Deal with a conflict copyConflicts
Fix a problemTroubleshooting
Get back in after losing a deviceRecovery
Move my vault to another serverMoving this vault to a different server

Run a server

I want to…Go to
Run my server with Docker or ComposeRun the server
Put it behind my own proxy (Caddy, nginx, Traefik, HAProxy)Already have a TLS terminator
Run it without a container, under systemdThe static binary
Run my server on KubernetesKubernetes and the chart reference
Reach my server away from home, through my own VPN or proxyReaching it from outside your LAN
Use Cloudflare (optional)Cloudflare
Trust my server's certificate on each deviceTrust the certificate authority
Know how much memory and disk it needsHow much memory it needs and Storage
Back up my serverBack up the two volumes
Upgrade my serverUpgrade by digest
See my devices and revoke oneThe dashboard
Wipe my server and start againPurging a server
See what changed in each versionCHANGELOG.md

Trust and privacy

I want to…Go to
Know what this plugin touches on my device and networkWhat this plugin accesses
Understand what is encrypted and what the server can seeThreat model and the dashboard's threat model
Report a security problemSECURITY.md

Inside the project

For contributors and reviewers: CONTRIBUTING.md, architecture, protocol, benchmarks, device validation runs and every page.

Install

The plugin's settings opening with Get started: the Setup guide row and its Open the guide button, above the Server URL field

Install the plugin from Settings → Community plugins → Browse. Search for Self Hosted Private Sync (plugin id obsync-private-sync). It needs Obsidian 1.13.0 or newer. Its settings open with the setup guide, one press away.

[!IMPORTANT]

  • It syncs to a server you run: no hosted service, no account elsewhere.
  • Back up your vault first; keep the complete recovery backup, including its format marker and all 24 words, off the device that made it.
  • Never run it alongside another sync (Obsidian Sync, a cloud folder, another plugin) on one vault.
  • Young software: read the CHANGELOG.md entry for your version, update every device, and know what each validation run covered.

Get syncing

The shortest complete path is Compose with Caddy on your own network, from a checkout of this repository. It gives you HTTPS on any network, with no domain and no account anywhere. Same network, step by step walks through it with every screen. Replace vX.Y.Z below with the release you are installing, the newest tag on the Releases page.

1. Verify the image. Then run exactly the digest it printed:

cosign verify ghcr.io/snaraj/obsync:vX.Y.Z \
  --certificate-identity https://github.com/snaraj/obsync/.github/workflows/release-publisher.yml@refs/heads/main \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

2. Start the server:

OBSYNC_IMAGE=ghcr.io/snaraj/obsync@sha256:<digest> \
  OBSYNC_HOST=sync.example.org \
  OBSYNC_BIND_ADDRESS=192.168.1.10 \
  docker compose -f deploy/compose/docker-compose.yml up -d

OBSYNC_HOST is the name your devices will type. It only has to resolve on your own network. OBSYNC_BIND_ADDRESS is the address ports 80 and 443 are published on: a bind address limits the destination interface, not the source, so your firewall decides who reaches it. Compose refuses to start until you have chosen.

3. Read the setup token. At first boot the server mints a setup token and writes it to its journal volume, mode 0600, never logged. It creates your account once and remains the dashboard's recovery sign-in. Guard it like the recovery backup. Ask the running server for it, in any shell, PowerShell and Command Prompt included:

docker exec obsync-obsync-1 obsyncd setup-token

If the container is stopped, read the file off it instead, from a POSIX shell (macOS, Linux, or WSL on Windows):

docker cp obsync-obsync-1:/data/journal/v1/setup-token - | tar -xO

4. Set up each device. Trust the server's certificate once (how). Install the plugin, then follow the Quickstart: set up the first device, then pair the others.

Already have HTTPS in front, from a proxy or tunnel you trust? Run the bare server instead.

What this plugin accesses

  • Your server, nothing else. Every request goes to the Server URL you type; no telemetry, no third party.
  • An account on that server, created from the setup token; your Obsidian account plays no part.
  • GitHub Releases, through Obsidian, for install and update; Obsidian ignores the extra release assets.
  • Your vault's file list, to decide what to sync; hidden (.obsidian, .git) and symlinked folders skipped.
  • The clipboard, written only by Copy code and Copy link in Pair a new device and by Copy beside a recovery backup, never read.
  • Your browser, when you ask for the setup guide. It opens the project's guide there; the plugin itself sends nothing.

What the server can and cannot see: SECURITY.md and the threat model.

Versions

The LATEST release is the newest tag on the Releases page. That is what Obsidian installs and updates to. main is the EDGE: merged but unreleased work, for people building from source. There is no beta channel and no pre-release tag. The changelog's Unreleased section is the edge's record.

Questions, bugs, and security

  • A question, or not sure it is a bug: Discussions.
  • A bug: open an issue with the report Troubleshooting describes. Leave out any token, phrase or address you would not publish.
  • A suspected vulnerability: privately, through SECURITY.md, never a public issue.

License

MIT. See LICENSE.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.