CLI 目录 横向对比 FCRS-1.0 标准 /llms.txt
← 返回 CLI 目录

Syncthing

$ syncthing 官方出品 高风险
Syncthing · 文件检索与编辑 · MPL-2.0 · macos / linux / windows

syncthing 提供去中心化、TLS 加密的点对点文件夹同步。直接运行 syncthing 会启动长驻后台守护进程与 Web 界面,而通过 syncthing cli 可干净地查询并管理运行中的节点——其中 syncthing cli show 子命令原生返回 JSON。

FCRS-1.0 综合评分
84 /100
良好 (Good)
中置信度 (源码/文档)
零摩擦安装命令
brew install syncthing
CLI vs MCP 选型建议 优先选 CLI

syncthing cli show 直接与本地 Syncthing REST API 通信并输出干净的 JSON,无需额外 MCP 胶水层。

Agent 友好度体检单

✓ 原生 JSON 输出
— 字段裁剪
✓ 无头非交互
— 支持 Dry-Run
— 只读模式开关
— 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 21 / 25

syncthing cli show 系列命令支持非交互执行并原生输出 JSON,但裸命令 syncthing 会启动阻塞式守护进程,且 cli 依赖运行中的节点。

  • syncthing cli show outputs structured JSON
  • Bare syncthing runs as a foreground service unless managed via launchd/systemd
安全与权限边界 19 / 25

具备强双向 TLS 认证与只读 show 查询,但配置/文件夹修改与实时同步会将文件删除操作复制到各对端设备。

  • Device-certificate TLS authentication and show read-only commands
  • Sync mutations propagate across remote peers
安装与运行摩擦 14 / 15

单静态 Go 二进制,可通过 brew install syncthing、go install 与官网下载包在 macOS、Linux 和 Windows 安装。

  • Cross-platform binary and service wrappers
能力覆盖与边际价值 13 / 15

syncthing cli 无需手动 curl REST API 即可干净地检查对端状态、同步进度与配置。

  • Built-in CLI frontend for Syncthing's REST/config API
维护与来源背书 9 / 10

官方 Syncthing 项目(syncthing/syncthing),以 MPL-2.0 许可证活跃维护。

  • Mature, widely deployed open-source sync engine
文档与可验证性 8 / 10

docs.syncthing.net 官方文档详尽覆盖 CLI、REST API 与安全模型。

  • Comprehensive official docs and syncthing cli --help

安全边界、鉴权与放权指南

鉴权方式
本地配置文件 环境变量密钥
凭证存储位置

在 ~/.config/syncthing/(macOS 上为 ~/Library/Application Support/Syncthing/)保存 TLS 设备密钥(cert.pem、key.pem)、GUI API Key 与文件夹配置,或读取 STGUIAPIKEY。

潜在副作用
只读查询 本地写入 远端写入 破坏性删除
费用与配额提示

100% 免费、可自托管、开源(MPL-2.0)。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# Syncthing Agent Rules
- NEVER run bare `syncthing` in an agent turn—it starts a foreground daemon and blocks; use `syncthing cli` subcommands instead.
- Treat `syncthing cli config` and folder changes as high-risk because file additions/deletions replicate across all paired devices.

Agent 高频安全命令配方

只读查询(安全推荐)

以 JSON 查看本地节点状态与运行时长
syncthing cli show system

通过 syncthing cli show system 查询运行中的守护进程,以 JSON 返回节点 ID、运行时长与内存指标。

检查文件夹同步状态与错误
syncthing cli show status --folder default

以 JSON 只读报告 default 文件夹的同步状态、needBytes 与 errors。

受控写入与预演

触发同步文件夹的立即重扫
syncthing cli operations scan --folder default

通知本地守护进程立即重扫 default 目录变更(变更会同步至已连接对端设备)。

核心优势

  • + syncthing cli show 原生输出干净的 JSON,涵盖系统健康度、节点连接与文件夹同步状态。
  • + 双向 TLS 设备认证,无任何云端绑定。

注意事项与踩坑点

  • ! 裸运行 syncthing 会启动阻塞式守护进程;syncthing cli 需要守护进程已在运行并配置好 API Key。
  • ! 文件夹同步与 cli config 变更会将删除操作传播至所有已配对设备。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI