Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

syncthing

БесплатноБез исполняемых скриптовНе проверен

Syncthing keeps folders identical across your own computers and servers over encrypted peer-to-peer connections, with no cloud account or central server. Use…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Syncthing — continuous peer-to-peer folder sync

Overview

Syncthing runs as a background service on each machine. Every machine has a device ID derived from its certificate. Two devices sync a folder only after each has added the other's device ID and shared the folder with it. Traffic is TLS-encrypted between devices, and devices find each other through discovery servers, the local network, or fixed addresses you provide. Nothing is stored in a third-party cloud.

An agent works with Syncthing through three interfaces, never by clicking the GUI:

  • syncthing generate / serve / device-id / paths to create keys and run the service.
  • syncthing cli ... (version 2.x) to read status and change the configuration of a running instance.
  • The REST API on the GUI address, authenticated with the X-API-Key header, for completion, scans and ignore patterns.

Folder types: sendreceive (two-way), sendonly (this device is the source of truth, remote changes are not applied), receiveonly (this device never pushes changes out). Syncthing is file synchronization, not versioned backup: a deletion on one side is replicated unless you enable file versioning on the folder.

Instructions

Installation

Prefer the system package manager (apt install syncthing, brew install syncthing, dnf install syncthing, pacman -S syncthing). Packages can lag behind; check with syncthing --version. The cli subcommands below need 2.x.

For a pinned release, download the tarball and the signed checksum list from the project's GitHub releases, compare, then extract:

VER=v2.1.7
cd "$(mktemp -d)" || exit 1
curl -fsSLO https://github.com/syncthing/syncthing/releases/download/$VER/syncthing-linux-amd64-$VER.tar.gz
curl -fsSLO https://github.com/syncthing/syncthing/releases/download/$VER/sha256sum.txt.asc
grep "syncthing-linux-amd64-$VER.tar.gz" sha256sum.txt.asc && sha256sum syncthing-linux-amd64-$VER.tar.gz
tar xzf syncthing-linux-amd64-$VER.tar.gz
install -m 0755 syncthing-linux-amd64-$VER/syncthing "$HOME/.local/bin/syncthing"
syncthing --version

The two hashes must be identical. Docker works too (docker run -d --name syncthing -p 127.0.0.1:8384:8384 -p 22000:22000/tcp -v syncthing-config:/var/syncthing syncthing/syncthing), but then paths in folders add are paths inside the container.

First start and service

syncthing generate                 # creates keys and config.xml, prints the device ID
syncthing device-id                # show this device's ID again
syncthing paths                    # where config, keys and database live
syncthing serve --no-browser       # run in the foreground

On Linux, run it as a user service so it starts on login or boot: the packages ship [email protected]; systemctl enable --now [email protected] runs it as user alice. The unit starts /usr/bin/syncthing, so a tarball install needs the binary copied there (or a systemd drop-in that changes ExecStart); the tarball also contains the unit files under etc/linux-systemd/. Config and keys are in the config directory shown by syncthing paths. Use --home=DIR (or STHOMEDIR) to run an isolated instance, which is also the safest way to test.

Lock down the GUI and API

By default the GUI and REST API listen on 127.0.0.1:8384 without a password. Keep that address. Do not set it to 0.0.0.0 unless a password is set and TLS is on, because the API key gives full control, including reading and changing every synced folder.

syncthing generate --gui-user=alice --gui-password=-      # reads the password from stdin
# or, on a running instance
syncthing cli config gui user set alice
syncthing cli config gui password set "$SYNCTHING_GUI_PASSWORD"   # stored as a bcrypt hash
syncthing cli config gui raw-use-tls set true                     # GUI restarts on https

Changing the GUI user, password or TLS setting restarts the GUI listener, and a command sent in that instant fails with connection refused. Run these one at a time, pause a second between them, set the password before enabling TLS, and re-run a failed one. After TLS is on, plain http:// requests no longer work. To reach the GUI of a remote server, use an SSH tunnel (ssh -L 8384:127.0.0.1:8384 server) rather than exposing it.

For private setups you may also turn off services that contact the public internet: syncthing cli config options global-ann-enabled set false, relays-enabled set false, natenabled set false. Then devices need explicit addresses (below).

Pair two devices and share a folder

Do each step on both machines. Exchange only device IDs, never keys.

# on desktop (source of the photos)
syncthing cli config devices add --device-id "$LAPTOP_ID" --name laptop --addresses dynamic
syncthing cli config folders add --id photos-2026 --label Photos --path "$HOME/Pictures/2026" --type sendonly
syncthing cli config folders photos-2026 devices add --device-id "$LAPTOP_ID"

# on la
Полный SKILL.md на GitHub

Установить syncthing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл syncthing?

Syncthing keeps folders identical across your own computers and servers over encrypted peer-to-peer connections, with no cloud account or central server. Use when a user wants to "sync a folder between two machines", "replace Dropbox with something self-hosted", "back up a laptop folder to a server", "add a device or folder from the command line", "check whether a remote device is fully synced", or "ignore files in a synced folder". Covers installation, headless setup, the syncthing cli and the REST API.

Как установить скилл syncthing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл syncthing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить syncthing с