Syncthing — Open Source Peer-to-Peer File Synchronization
Syncthing is a continuous file synchronization tool that syncs files between devices directly — no cloud, no servers, no accounts. Encrypted, private, and decentralized.
先审查再安装
这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。
npx -y tokrepo@latest install a1ace164-34d0-11f1-9bc6-00163e2b0d79 --target codex先 dry-run,确认写入项后再运行此命令。
What it is
Syncthing is a continuous file synchronization tool that syncs files between devices directly, without any cloud servers or third-party accounts. All communication is encrypted with TLS, and devices authenticate each other using unique device IDs. Syncthing is open source, decentralized, and works on Linux, macOS, Windows, Android, and FreeBSD.
Syncthing is designed for privacy-conscious users and teams who want to sync files across devices without trusting cloud providers with their data.
How it saves time or tokens
Cloud sync services (Dropbox, Google Drive) require accounts, have storage limits, and store your data on third-party servers. Syncthing eliminates all middlemen: files go directly from device to device. There are no storage limits beyond your own disk space, no subscription fees, and no data leaves your network. Setup takes minutes and runs continuously in the background.
How to use
- Install Syncthing:
# Linux
curl -s https://syncthing.net/release-key.gpg | sudo tee /etc/apt/trusted.gpg.d/syncthing.asc
sudo apt install syncthing
# macOS
brew install syncthing
# Or download from https://syncthing.net/downloads/
- Start Syncthing and open the web UI:
syncthing
# Open http://localhost:8384
- Add a remote device by exchanging device IDs, then share a folder between devices.
Example
Syncing a project directory between a laptop and desktop:
# On both machines, start Syncthing
syncthing
# On Machine A: note the Device ID from the web UI
# On Machine B: Add Remote Device -> paste Machine A's ID
# On Machine A: Accept the device pairing request
# On Machine A: Add Folder -> select ~/projects/myapp
# Share with Machine B
# Machine B accepts the folder share
# Files now sync continuously between both machines
# Changes on either side propagate automatically
Related on TokRepo
- Self-hosted tools — Browse self-hosted file and sync tools
- Security tools — Explore privacy and encryption tools
Common pitfalls
- Not setting up ignore patterns for build artifacts and node_modules. Syncthing will sync everything in shared folders. Create a
.stignorefile to exclude large, regeneratable directories. - Expecting Syncthing to work like a backup tool. Syncthing is synchronization, not backup. If you delete a file on one device, it is deleted on all synced devices. Use Syncthing's file versioning feature for undo capability.
- Running Syncthing without a firewall exception. Syncthing needs ports 22000 (TCP/QUIC) for data transfer and 21027 (UDP) for discovery. Without these, sync relies on relay servers, which is slower.
常见问题
Yes. Syncthing transfers files directly between devices when possible. If direct connection is not possible (NAT, firewall), it uses relay servers as encrypted tunnels. The relay cannot read your data since the transfer is end-to-end encrypted.
Yes. When the same file is modified on two devices simultaneously, Syncthing keeps both versions and names the conflicting copy with a .sync-conflict suffix. You resolve the conflict manually by choosing which version to keep.
Yes. Syncthing works across the internet, not just on local networks. It uses global discovery and relay servers to connect devices behind NAT. For best performance, set up port forwarding on your router.
Syncthing handles millions of files and terabytes of data. Large repositories (100GB+) work well. Performance depends on disk speed and network bandwidth, not Syncthing itself.
Syncthing has an official Android app. There is no official iOS app, but third-party alternatives exist. On iOS, the sync-through-a-server architecture of cloud services is generally more practical.
引用来源 (3)
- Syncthing GitHub— Syncthing is peer-to-peer file synchronization
- Syncthing Documentation— End-to-end encrypted file sync
- Syncthing Security— Decentralized architecture with relay fallback
讨论
相关资产
Payload CMS — Open Source Fullstack Next.js Headless CMS
Payload is the open-source headless CMS and app framework built on Next.js. TypeScript-first, code-configured, with instant admin panel, auth, and file uploads.
Bruno — Open-Source IDE for API Exploration & Testing
Bruno is an open-source IDE for exploring and testing APIs — a lightweight, offline-first alternative to Postman and Insomnia. Stores collections as plain text files in your filesystem so they version-control naturally with Git.
Open-Sora — Open-Source Text-to-Video Generation
Open-source alternative to Sora by HPC-AI Tech. Generate videos from text prompts with an 11B parameter model. Apache 2.0 licensed. 28,800+ stars.
Medusa — Open Source Headless Commerce Engine
Medusa is an open-source composable commerce engine built with Node.js. Modular architecture, REST & JS SDK, and full customization for building custom storefronts and commerce flows.