Sync your Cherry Studio data across multiple computers and operating systems.
Cherry Studio is a desktop client for Large Language Models (LLMs). It supports multiple AI providers (OpenAI, Anthropic, Google, local models via Ollama, and more) and lets you manage conversations, assistants, knowledge bases, and notesβall in one app.
If you use Cherry Studio on multiple computers (e.g., a work desktop and a personal laptop), you may find that your conversations and assistants don't sync between them. Cherry Studio Sync solves this by merging your backup files.
Note: This is a manual sync tool, not automatic cloud sync. You'll need to:
- Export backups from each computer
- Run this tool to merge them
- Import the merged backup on each computer
Cherry Studio doesn't sync between devices. When you restore a backup from one computer, it overwrites all data from your current computer. This tool solves that by merging conversation data while keeping each machine's settings intact.
- Auto-discovers backup files in the current directory
- Identifies unique computers from backup filenames
- Selects the latest backup from each computer
- Merges conversation data (assistants, topics, messages)
- Creates a separate merged backup for each computer, with that machine's original settings
- Assistants and their topics
- Conversation messages
- Notes and memory
- Settings (paths, preferences)
- Backup configuration
- Keyboard shortcuts
- Knowledge bases (excluded by default, see Known Issues)
- Python 3.10+
- PySide6 (installed automatically when using
uvorpip install -r requirements.txt) - Cherry Studio backup files following the naming convention:
Example:
cherry-studio.<timestamp>.<hostname>.<os>.zipcherry-studio.20251221172647.my-desktop.windows.zip
The easiest way to use this tool is with the graphical interface:
Windows: Double-click run_gui.bat
Mac/Linux: Run ./run_gui.sh in terminal (you may need to chmod +x run_gui.sh first)
Or run directly:
python cherry_studio_sync.py --guiUsing uv (recommended):
uv run cherry_studio_sync.py --guiThe GUI provides:
- A directory browser to select your backup folder
- Option to merge all backups (not just latest per computer)
- Skip Knowledge Bases checkbox (enabled by default) - excludes large KB files from merged backups
- Prune old merged backups option - automatically delete old merged backups, keeping only the most recent per computer
- A status log showing progress
- Success/error dialogs when complete
Run the script in your backup directory:
python cherry_studio_sync.pyThis will:
- Find all Cherry Studio backups in the current directory
- Select the latest backup from each unique computer
- Create synced backups for each computer
To include all backups (not just the latest from each computer):
python cherry_studio_sync.py --allBy default, Knowledge Base files are excluded from merged backups. To include them:
python cherry_studio_sync.py --include-knowledge-baseTo automatically delete old merged backups, keeping only the N most recent per computer:
python cherry_studio_sync.py --prune 2To sync specific backup files:
python cherry_studio_sync.py backup1.zip backup2.zipThe tool creates one synced backup per computer:
cherry-studio.<timestamp>.<hostname>.<os>.merged.zip
Example output:
cherry-studio.20251222085436.macbook.mac.merged.zip
cherry-studio.20251222085436.desktop.windows.merged.zip
- Open Cherry Studio
- Go to Settings β Data β Restore
- Select the synced backup that matches your computer
- Same conversation on multiple computers: The most recent version wins (based on timestamps)
- Deleted conversations: Items that exist only in older backups are skipped (assumed deleted)
- New conversations: Items from the newest backup are always included
- Export backup from Mac:
cherry-studio.20251220220743.macbook.mac.zip - Export backup from Windows:
cherry-studio.20251221172647.desktop.windows.zip - Copy both to a shared folder (OneDrive, Dropbox, etc.)
- Run
python cherry_studio_sync.py - Import
cherry-studio.*.macbook.mac.merged.zipon your Mac - Import
cherry-studio.*.desktop.windows.merged.zipon your Windows PC
Both machines now have all conversations with their respective settings preserved.
There is a known issue in Cherry Studio where restoring a backup fails with "backup format error" when a Knowledge Base is in use. The actual error is that the KnowledgeBase file is locked by the running application.
Workarounds:
-
Use Slim Backups (Recommended): In Cherry Studio's backup settings, enable "Slim Backup" which excludes media and knowledge bases. This sync tool handles slim backups correctly.
-
Skip Knowledge Bases in Sync: This tool excludes Knowledge Bases from merged backups by default (
--skip-knowledge-baseis enabled). This avoids the restore issue entirely. -
Delete Knowledge Bases Before Restore: Use Cherry Studio's UI to delete all knowledge bases before restoring a merged backup.
- Backup files must follow Cherry Studio's naming convention
- Requires at least 2 computers' backups to sync
- Settings sync is intentionally disabled (paths differ between OS)
- Knowledge bases are excluded by default due to restore issues
The launcher scripts check for Python in common locations. If Python isn't found:
- Install Python 3.10+ from python.org
- Ensure Python is in your PATH:
- Windows: Check "Add Python to PATH" during installation
- Mac/Linux: Usually automatic with package managers
- Alternative: Install via uv (recommended) or conda
Install the GUI dependency:
pip install pyside6
# or with uv:
uv pip install pyside6If you see DLL load errors with PySide6, try installing an older version:
pip install "pyside6>=6.5.0,<6.8"This project is licensed under the Mozilla Public License 2.0 (MPL-2.0). See the LICENSE file for details.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This application is developed and released by an individual developer, not a corporation. By using this software, you acknowledge that:
- The software is provided for free with no guarantees of support, updates, or bug fixes
- The author assumes no liability for any damages, data loss, or issues arising from use of this software
- You use this software entirely at your own risk
- No warranty is provided regarding fitness for any particular purpose
The complete source code for this application is available at:
- GitHub Repository: https://github.com/lestephen/cherry-studio-sync
Under MPL 2.0, you have the right to:
- View, download, and study the source code
- Modify the code for your own use
- Distribute modified versions (with proper attribution)
- Use the code in commercial projects (following MPL 2.0 terms)
