waynehoover99 downloadsSelf-hosted vault sync with full history and built-in MCP.
Self-hosted sync for Obsidian that keeps every version and has MCP built in.
Quickstart · Features · How it compares · Docs
Sync your vault across desktop and mobile through a server you run yourself. Every version of every note is kept until you purge it, so you can always get an earlier version or a deleted note back. And your AI agents work on the same notes, through the server, with every edit they make recorded and undoable.
| TrewSync | Obsidian Sync | Self-hosted LiveSync | |
|---|---|---|---|
| Runs on | Your server | Obsidian's servers | Your backend, such as CouchDB or S3-compatible storage |
| Cost | Free (MIT); you pay for hosting | Subscription | Open source; you pay for hosting |
| MCP for AI agents | Built in, with every edit recorded and undoable | Not built in | Not built in |
| End-to-end encryption | None. The server reads your notes | Available | Available |
Pick TrewSync for history on your own server and agents on the same notes. Pick one of the others if the server must not read your notes, if you would rather not run one, or if you need iOS or Windows, which Obsidian Sync supports. Is TrewSync right for you? has the longer answer.
You need a Linux or macOS machine with Docker, and Tailscale on it and on each device. Back up an existing vault before its first sync, and turn off any other sync service for it.
Run the server.
git clone https://github.com/waynehoover/trewsync.git && cd trewsync
docker compose up -d
Give it a secure address. tailscale serve --bg 3003 publishes it to
your tailnet over HTTPS. Take the address tailscale serve status reports
and replace https:// with wss://, for example
wss://homelab.example.ts.net.
Make an invite for your first device. It works once and expires after one hour.
docker compose exec trew /trewd invite -url wss://homelab.example.ts.net
Install the plugin and pair. In Obsidian, install TrewSync from Settings → Community plugins, enable it, paste the invite and press Pair. Keep Obsidian open until the first sync finishes.
Add your other devices. On the paired device choose Add another device → Create invite, and scan the QR code with the next one.
Next: connect an agent. No Tailscale or Docker? Server setup covers Caddy and a plain binary. Or hand llm.md to your agent and let it do the setup.
trewd 0.15.0 or
later.| Platform | Status | What that means |
|---|---|---|
| macOS | Supported | The tests run here. |
| Linux | Supported | The tests run here. |
| Android | Supported | Sync runs while Obsidian is open in the foreground. Keep the vault in App storage. |
| iOS | Untested | The same code as on Android, but no test has run on an iPhone or iPad: background suspension, iCloud Drive vaults and the iOS file system are untested. The plugin pairs, and says so in its panel for as long as it runs. |
| Windows | Not supported | No test runs on Windows. The plugin pairs, and says so in its panel and status bar for as long as it runs. A note whose name Windows cannot hold (a device name such as CON or COM1, one of the characters Windows forbids, or a name ending in a dot or a space) is listed as needing attention instead of syncing, and stays on your other devices. |
The server reads your notes. There is no end-to-end encryption: the server holds every note, version and filename in plaintext, which is what lets the MCP endpoint work. Keep its disk and backups on encrypted storage, keep the connection behind TLS, and give an MCP token only to an agent and model provider you would trust with every note. If you need a server that cannot read what it stores, choose an end-to-end encrypted service instead. Security and privacy has the full picture.
| I want to… | Guide |
|---|---|
| Set up TrewSync with an agent's help | Agent installation guide |
| Run TrewSync on my server | Server setup |
| Pair devices or recover a note | Obsidian plugin |
| Let an agent read or edit my notes | Connect an agent |
| Keep a copy without Obsidian | Command-line client |
| Back up, restore, or free server space | Server maintenance |
| Decide whether TrewSync fits | How it compares |
| Build or contribute | Developer documentation |
Questions and bugs go to GitHub issues; security problems go privately, as SECURITY.md describes. Changes are in CHANGELOG.md. TrewSync is free and open source under the MIT license.
In the terms of Obsidian's developer policies:
.trash if that fails. On Obsidian 1.11.4 and later the device's
token is kept in Obsidian's keychain, which belongs to Obsidian on that
device rather than to the vault.trewd update.