Your AI brain holds everything about your business: clients, prices, plans, promises and decisions. If it leaks, everything leaks. This guide shows how to keep it in sync between two computers (here a laptop and an always-on desktop) so that:
- no cloud company ever holds a copy, not even an encrypted one
- both computers are encrypted, so a stolen machine is a locked box
- a stolen machine can be cut off in under a minute
- nothing is ever lost, because deleted and changed files keep old versions
It is free and takes about 45 minutes.
1. Why this matters
Most people sync their notes with whatever is already on their computer: Google Drive, Dropbox or iCloud. That works fine for photos. For a file that describes your whole company, ask three questions:
- Who else holds a copy?
- Who else holds the key to read it?
- If someone steals my password or my computer, what do they get?
For most cloud drives the answers are "the provider", "the provider" and "everything, from any browser in the world."
2. The options compared
| Option | Where your data goes | Who can read it | Good for |
|---|---|---|---|
| Syncthing over Tailscale (this guide) | Only between your own devices, directly | Only you | Maximum privacy, free |
| Git over a private network | Only to your own server | Only you | Full undo history; you sync by hand |
| iCloud with Advanced Data Protection | Apple's servers, end-to-end encrypted | Only your devices | Easiest option, phone access, Apple-only |
| Obsidian Sync | Obsidian's servers, end-to-end encrypted | Only you | Simple, paid, made for Obsidian |
| Google Drive / Dropbox / OneDrive | The provider's servers | The provider can decrypt it | Convenience, not secrets |
| New self-hosted sync plugins | Your own server | Depends on the plugin | Only after you have read the code |
Pros and cons
Syncthing over Tailscale (recommended) - Pros: no copy online anywhere. Free and open source. Encrypted in transit twice (Tailscale's WireGuard tunnel plus Syncthing's own TLS). Keeps old versions of files. Works on Mac, Windows and Linux. - Cons: both devices have to be on at the same time to sync. Setup takes about 45 minutes. iPhone support is limited.
Git over Tailscale - Pros: a full history of every change, which makes undo easy. Nothing in the cloud. - Cons: you sync by hand ("push" and "pull"). Clunky for notes you edit all day.
iCloud with Advanced Data Protection (ADP) - Pros: the easiest setup, and it works on your iPhone. With ADP turned on, Apple cannot read your files. - Cons: ADP is off by default. Without it, Apple holds the keys. You also need a recovery key or recovery contact, and all your devices must run a recent OS. Turn off "Optimize Mac Storage", or files get swapped for empty placeholders that your AI cannot read.
Obsidian Sync - Pros: end-to-end encrypted, made for Obsidian, works on phones. - Cons: a paid subscription, and your encrypted data sits with another company.
Google Drive (and similar)
- Cons:
- Not end-to-end encrypted. Google encrypts your files but holds the
keys, so its systems can scan them and it can be legally made to hand
them over. Encryption you control is only available on top-tier
Workspace plans.
- One phished password exposes everything, from any browser, with
no access to your computer needed.
- Connected apps. Any app you ever allowed into your Drive can read
it, and the provider's AI features may index it. One "anyone with the
link" share exposes the whole folder.
- Streaming mode gives your AI empty placeholder files.
- Conflicts create file (1).md duplicates, which quietly corrupt a
"one fact, one home" brain.
- Deleted files are purged from the trash after 30 days.
- Pros: convenient, and it works everywhere. Fine for material that is
already in your Google account anyway.
New self-hosted sync plugins - New plugins with MCP access for AI can be great, but a brand-new one (version 0.1, a hundred downloads, one developer) is a risk for your most sensitive data. Some store the notes you "share with AI" on the server unencrypted. Read the code, or have it scanned, before you install.
Quick decision
- Never want your knowledge online, even encrypted: Syncthing over Tailscale.
- Need it on your phone and use Apple devices: iCloud with ADP on.
- Want zero setup and don't mind paying: Obsidian Sync.
- The data is sensitive: avoid plain cloud drives.
3. What a thief actually gets
Picture someone stealing your always-on desktop computer.
Without the protections in this guide - They reach the login screen. Without your password they can't just log in, but the disk isn't locked to that password, so someone skilled with the right tools has ways in. - The stolen machine is still a trusted device on your private network. Plugged in anywhere with internet, it rejoins your network, and your sync app keeps sending it every new change. This is the risk most people miss.
With them - The brain folder sits on an encrypted volume that locks whenever the computer powers off, and stealing a computer means unplugging it. Even a thief who gets logged in finds the folder locked. - You remove the device from your private network in about a minute, and syncing stops instantly.
The first-hour playbook if a device is stolen 1. Tailscale admin console: remove the device. This cuts off network access and syncing. Do it first. 2. Find My (Apple) or your device manager: lock or erase it. 3. Rotate any password, API key or token that was saved on it. 4. Syncthing on your other computer: remove the stolen device.
Your brain is safe because your other computer still has the full copy.
4. How it fits together
LAPTOP DESKTOP (always on)
disk encrypted (FileVault) encrypted volume "Brains"
~/Documents/Brains <-- Syncthing --> /Volumes/Brains
inside Tailscale
(private, encrypted network,
no public servers involved)
- Tailscale builds a private network between your devices. Each
device gets a private address, like
100.x.y.z. - Syncthing keeps a folder identical on both devices, and you set it to talk only over Tailscale.
- Encryption at rest makes each copy useless to whoever steals the hardware.
5. Before you start
- Two computers. This guide uses Macs; the steps are similar on Windows.
- An admin account on each.
- About 45 minutes.
- On Mac, Homebrew installed (it makes installing Syncthing one command). To install it, paste the one-line command from the front page of brew.sh into Terminal.
- A password manager for the encryption passphrase.
- Terminal open. It's in Applications > Utilities > Terminal: a window where you type commands. Copy one gray box at a time, paste it in and press Return. When it asks for a password, nothing shows while you type. That's normal.
Work computer? If your laptop runs endpoint security software (ThreatLocker, CrowdStrike, Jamf and the like), it may silently block Syncthing the first time it runs. On a Mac you'll see it exit with code 137 and print nothing. Ask your IT admin, or use your own console, to allow it, and give them the file path and its SHA-256 hash (
shasum -a 256 <path>).
Let your AI assistant do it (copy-paste prompts)
First, the safety rules for letting an AI do security work
An AI assistant can do most of this for you. That's great, as long as you stay in charge. Paste these rules in first, and follow them yourself too:
- You type every password yourself, in Terminal. Never in the chat. When a command needs your password, the AI should tell you to run it yourself.
- Every command gets explained first. The AI shows the command, says in one plain sentence what it does and how to undo it, and waits for your OK. If you don't understand it, say no and ask again.
- Backups before changes. Any settings file gets copied before it's edited.
- Nothing gets deleted, and no security tool gets switched off to "make it work." If something is blocked, the AI tells you why and you decide.
- Finish with a test. At the end, ask the AI to prove each part works, as a pass/fail list.
Two kinds of AI assistant: - One that can run commands on your computer (Claude Code, Codex, or desktop apps with computer access) can do the steps with you, asking before each one. - A chat-only AI (a chatbot in your web browser) can't touch your computer. Add this line to any prompt below: "I'll run the commands myself. Give me one command at a time, tell me what I should see, and wait for me to paste the result."
Copy each gray box below into your AI, one at a time. Words in
<angle brackets> are yours to fill in.
Prompt 1 - Start here (sets the rules and the goal):
I want to keep a folder of important notes in sync between my two Macs
(a laptop and an always-on desktop) without any cloud service holding a
copy. The plan: Tailscale for a private network between them, Syncthing
locked so it only talks over Tailscale, FileVault on the laptop, and an
encrypted APFS volume for the folder on the desktop.
Rules for you:
- Go one step at a time. Before each command, show it, explain in one
plain sentence what it does and how to undo it, then wait for my OK.
- Never ask me to type a password or passphrase into this chat. When one
is needed, tell me the command to run myself in Terminal.
- Back up any settings file before changing it. Don't delete anything.
- Never turn off security software or the firewall. If something is
blocked, explain why and let me decide.
Start by checking what's already installed (Homebrew, Tailscale,
Syncthing, FileVault status) and tell me what you found. Don't change
anything yet.
Prompt 2 - Private network:
Step 1: Help me install Tailscale on both Macs and sign in with the same
account. Then show me each Mac's Tailscale address (100.x.y.z) and prove
they can reach each other.
Prompt 3 - Encryption:
Step 2: Check whether FileVault is on for this Mac. For the always-on
Mac, help me create an encrypted APFS volume called "Brains". Find the
right container for me and explain what you found. Give me the final
command to run myself, because it asks for a passphrase. Remind me not
to save the passphrase in the keychain.
Prompt 4 - Syncthing, locked down:
Steps 3 and 4: Install Syncthing with Homebrew on both Macs and set it
to start at login. Configure it so it ONLY listens on this Mac's
Tailscale address on port 22000, and turn off global discovery, local
discovery, relaying, NAT traversal and usage reporting. Then prove it:
show me every address Syncthing is listening on.
Prompt 5 - Pair and share:
Steps 5 and 6: First check that my Documents folder is NOT syncing to
iCloud. Then pair the two Macs using each other's fixed Tailscale
address (not "dynamic") with auto-accept off. Share <folder path on the
laptop> with <folder path on the desktop>, with staggered versioning for
365 days and an .stignore file for macOS clutter and Obsidian workspace
files.
Prompt 6 - Test it:
Step 7: Test the sync. Create a test file on each Mac and confirm it
appears on the other. Then delete one and show me the saved copy in
.stversions. Clean up the test files afterwards.
Prompt 7 - Final check (run this again any time):
Audit my setup and give me a pass/fail table for each item: Tailscale on
both Macs; FileVault on the laptop; the desktop folder on an encrypted
volume; Syncthing listening only on Tailscale addresses; discovery,
relays and NAT off; devices paired by fixed address; versioning on;
Documents not syncing to iCloud. Explain any fail in plain words.
If something goes wrong:
I got this error: <paste the exact message>. Explain what it means in
plain words, what probably caused it, and the safest fix. Don't change
anything until I say OK.
6. Step by step
Step 1 - Put both computers on Tailscale
- Install Tailscale on both computers from tailscale.com and sign in with the same account. The free personal plan is enough.
- On each one, note its Tailscale address (
100.x.y.z), either from the menu bar app or by runningtailscale ip -4.tailscale statuslists every device on your private network. - Check they can see each other, for example with
ping <other device's 100.x address>.
Hardening (recommended): - Keep key expiry on, so a lost device eventually drops off by itself. - Use Tailscale's access rules (ACLs) so the always-on desktop can't open connections to your laptop.
Step 2 - Encrypt both copies at rest
- Laptop: turn on FileVault (System Settings > Privacy & Security
FileVault). Check it with
fdesetup status. - Always-on desktop: you may want FileVault off so the machine can restart after a power cut and still be reached remotely. FileVault makes it wait at a pre-boot password screen. In that case, encrypt just the brain folder with its own volume:
diskutil apfs list | grep -E "^\+-- Container|Name:" # find the container that holds "Macintosh HD", e.g. disk3
diskutil apfs addVolume disk3 APFS Brains -passprompt
- Choose a strong, unique passphrase and save it in your password manager.
- If macOS offers to remember it in the keychain, say no. Otherwise the volume unlocks by itself and protects nothing.
- It mounts at
/Volumes/Brainsand shares free space with the rest of the disk. - After a restart it stays locked until you run
diskutil apfs unlockVolume Brains, or unlock it in Finder.
Step 3 - Install Syncthing on both computers
brew install syncthing
brew services start syncthing # runs now and at every login
Open the control page at http://127.0.0.1:8384. It only answers on the computer itself.
Step 4 - Lock Syncthing to Tailscale only (the important step)
By default Syncthing can use public discovery servers and relays to find your devices. Turn all of that off, so it only ever talks over your private network.
In the control page, open Actions > Settings > Connections, then:
| Setting | Set to |
|---|---|
| Sync Protocol Listen Addresses | tcp://<THIS device's 100.x address>:22000 |
| Enable NAT traversal | Off |
| Global Discovery | Off |
| Local Discovery | Off |
| Enable Relaying | Off |
Under General, set Anonymous Usage Reporting to Off. Under GUI, set a user name and password for the control page.
Do this on both computers, each with its own address.
Check it worked: in Terminal, run
lsof -nP -iTCP -sTCP:LISTEN | grep syncthing
You should see only 100.x.y.z:22000 (the sync port) and
127.0.0.1:8384 (the control page). If you see *:22000, it is still
listening on every network.
Step 5 - Pair the two computers
- On computer A, open Actions > Show ID and copy the device ID.
- On computer B, choose Add Remote Device and paste the ID, then set:
- Addresses (Advanced tab):
tcp://<computer A's 100.x address>:22000. Never leave this as "dynamic", because dynamic is what uses the public discovery servers. - Auto Accept: off. - Do the same in the other direction.
- Both computers should show the other as Connected, with a
100.xaddress.
Step 6 - Share the brain folder
- On the laptop, create the folder (for example
~/Documents/Brains).
Check first: if your Documents folder syncs to iCloud ("Desktop & Documents Folders" in iCloud settings), the brain ends up in iCloud anyway. Choose a folder outside it, or turn that setting off.
- In Syncthing choose Add Folder:
- Folder path: the laptop folder
- Sharing: tick the desktop
- File Versioning: Staggered, 365 days. Deleted or overwritten
files are kept in
.stversions/on the other computer. - On the desktop, accept the folder and point it at
/Volumes/Brains. - Add an ignore file named
.stignorein the folder, so computer clutter and Obsidian's window layout don't sync:
(?d).DS_Store
(?d)._*
(?d).Spotlight-V100
(?d).Trashes
(?d).fseventsd
(?d).TemporaryItems
(?d).obsidian/workspace.json
(?d).obsidian/workspace-mobile.json
Step 7 - Test it before you trust it
- Create
test-a.mdon the laptop. It should appear on the desktop within seconds. - Create
test-b.mdon the desktop. It should appear on the laptop. - Delete
test-a.mdon the laptop. It should vanish on the desktop, and a copy should be kept in.stversions/there. - Delete the test files.
Only after all three pass do you copy your real brain in. Copy, don't move, check the copy, and keep the original until you're sure.
Step 8 - Read it in Obsidian (optional)
Open each brain as its own vault ("Open folder as vault"). Don't open the parent folder holding all your brains, or a single AI session could read every business at once.
Recommended settings, under Settings > Files and links:
| Setting | Set to | Why |
|---|---|---|
| Use [[Wikilinks]] | Off | Standard links work in every AI tool, not just Obsidian |
| New link format | Relative path to file | Links keep working when the folder moves |
| Default location for new notes | Your inbox folder | New material gets reviewed before it's filed |
| Deleted files | Move to system trash | Mistakes stay recoverable |
7. Living with it
- After the desktop restarts: unlock the encrypted volume, and syncing resumes by itself.
- When Syncthing updates: on a work laptop with endpoint security, the new version may be blocked again. Allow it the same way.
- One writer at a time: avoid editing the same file on both computers
at the same moment. If it happens, Syncthing keeps both versions as a
.sync-conflictfile, so nothing is lost. - Keep secrets out of the brain. Passwords, API keys and tokens belong in a password manager. Encryption protects the files, but your AI reads whatever is in the brain and sends it to its provider to process.
- Other open ports: while you're in Terminal, check what else is listening on every network. Local AI tools like Ollama or LM Studio often are.
8. Checklist
- Tailscale on both computers, same account, key expiry on
- Laptop: FileVault on
- Desktop: encrypted volume for the brain, passphrase in password manager, not in keychain
- Syncthing installed and running at login on both
- Listen address set to the Tailscale IP only; discovery, relays and NAT off
- Devices paired with fixed
100.xaddresses, auto-accept off - Folder shared with staggered versioning and a
.stignore - Documents folder confirmed not syncing to iCloud
- Both directions tested, plus a delete test
- Stolen-device playbook saved where you can find it
Lessons learned the hard way
- "Exit 137" with no output means security software killed the app. Reinstalling won't help; an allow rule will.
- Cloud folders hide inside "normal" folders. Check whether Desktop and Documents sync to iCloud before you put a brain there.
- The stolen device stays trusted until you remove it from your network. Most guides skip this step.
- "Encrypted" isn't the same as "only you can read it." Always ask who holds the key.
Action Item
Start with step 1 and do it today.