---
title: Deploy Syncthing with AI on Blossom
url: "/deploy/syncthing/"
canonical_url: https://blossom88.com/deploy/syncthing/
markdown_url: https://blossom88.com/deploy/syncthing.md
summary: Sync a sample folder between two private devices and keep the receiver's
  identity across updates.
categories:
- deployment
- files
- networking
stack:
- Go
- JavaScript
---

# Deploy Syncthing with AI on Blossom

[Syncthing](https://syncthing.net/) keeps a folder in sync between devices.
Start with two devices in one Blossom Environment and one sample file.

## Ask Your Agent

> **Ask your AI agent:** Deploy Syncthing on Blossom. Help me sync a sample folder between two private devices.
>
> Follow this guide: https://blossom88.com/deploy/syncthing/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Sender and receiver | Connect directly and sync the shared folder | Two Persistent Services |
| Two Volumes | Keep each device's keys, configuration and files | One Volume per device at /var/syncthing |

## Deploy Two Devices

Run the official Syncthing image on two Persistent Services. Mount a
separate Volume at `/var/syncthing` on each device. Open only the sender's
web UI on port 8384 behind Blossom Account access.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the [sample startup script](/deploy/recipes/syncthing/launcher-runtime.sh)
to start with password-protected administration and private TCP sync.
Supply a strong `SYNCTHING_GUI_PASSWORD` for initial setup. Keep
discovery and relays off for this example. Exchange the two device IDs
and use their Blossom private Service hostnames on TCP port 22000.
Use Blossom Shell for the receiver's local administration.

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data syncthing-plan.yml
    blossom app:create --data syncthing-app.yml
    blossom environment:create --data syncthing-environment.yml
    blossom service:create --data syncthing-sender.yml
    blossom service:create --data syncthing-receiver.yml
    blossom env_var:push --environment environment-100 --file syncthing.env
    blossom environment:deploy --id environment-100 --follow

</details>

## Share a Sample Folder

Pair the two devices, create a folder on the sender and share it with
the receiver. Add a sample file. Compare its checksum on both devices
once Syncthing shows the folder is up to date.

![See the workshop folder sync to the connected receiver.](/deploy/assets/images/syncthing/syncthing-direct-sync.webp)

> **Ask your AI agent:** Connect the two private devices, share a workshop folder, and check that a sample file arrives with the same checksum.

> Follow this guide: https://blossom88.com/deploy/syncthing/



## Update the Receiver

Replace the receiver's Container on the same Volume. Check that it
reconnects with its original device ID. Edit the sender's sample file
and confirm the updated copy reaches the receiver.

![Check the folder after replacing the receiver's Container.](/deploy/assets/images/syncthing/syncthing-workshop-folder.webp)


> **Ask your AI agent:** Replace the receiver's Container, confirm it still has the original device ID and file, then change the file on the sender and check that it syncs.

> Follow this guide: https://blossom88.com/deploy/syncthing/



## What You Get

- Two devices connected over Blossom's private network
- A workshop folder that syncs between them
- The same device identity and files after a Container update

Tested on Blossom: The receiver kept its device identity and original file through replacement, then synced the sender's edit.
