Check that Comfy Desktop finds Legacy Desktop
Comfy Desktop can migrate Legacy Desktop only after it finds it. Each time Comfy Desktop starts on macOS or Windows, it looks for Legacy Desktop’s settings file and data folder. When it finds them, the setup screen offers to migrate, and ComfyUI Legacy Desktop appears under Builds in the sidebar. To open the build page of ComfyUI Legacy Desktop, click it in the sidebar. Its Data path shows the data folder that migration keeps using.Review what migration keeps
Migration keeps your Legacy Desktop data folder and its Python environment in place instead of copying them. You keep one setup, not a second copy. To keep an untouched copy, back up the data folder before you migrate.
Migration skips a folder from
extra_models_config.yaml that doesn’t exist, your home folder, and the root of a drive.
Find the backup
Before migration changes anything, it copies Legacy Desktop’s settings files into a folder named for the date and time:- macOS:
~/Library/Application Support/ComfyUI/legacy-backup/ - Windows:
%APPDATA%\ComfyUI\legacy-backup\
config.json: Legacy Desktop’s app settings, including the data folder it used.comfy.settings.json: your ComfyUI settings, from theuser/defaultfolder.extra_models_config.yaml: the extra model folders you set in Legacy Desktop.window.json: the window size and position.
legacy-adopted- file in the .snapshots folder of your data folder.
Migrate on the setup screen
When Comfy Desktop finds Legacy Desktop on first launch, the setup screen offers to migrate it. For the other parts of the setup screen, see Confirm the setup screen.- Keep Bring over workflows, models and settings from ComfyUI Desktop ticked. It’s ticked by default, and the button next to it reads Migrate instead of Install.
- Tick I agree to the EULA and Terms of Service.
- Click Migrate. The Migrate to Standalone screen opens.
- Read the Migration will: list, and then click Start migration. To go back to setup, click Cancel.
Migrate later
If you skipped migration on the setup screen, ComfyUI Legacy Desktop stays in your build list. Start the migration in one of these ways:- In the sidebar, right-click ComfyUI Legacy Desktop, and then select Migrate to Standalone. The same item is in its quick actions menu on the Builds page and on Home.
- Open the build page of ComfyUI Legacy Desktop, click More, and then select Migrate to Standalone.
- Start ComfyUI Legacy Desktop. Comfy Desktop can’t start Legacy Desktop, so it asks Migrate before launching?. Click Migrate and start to migrate and then start the migrated build.
Portable and Git clone builds also have Migrate to Standalone. For those, migration creates a new Standalone build and leaves the original build in place. See Builds.
Follow the migration
The migration runs these steps in order:- Back up legacy state
- Check folder access (macOS only)
- Validate Python environment
- Capture snapshot
- Allocate install folder
- Stage ComfyUI source code
- Install requirements
- Carry over settings
- Register build
pygit2 package doesn’t install, you can’t update ComfyUI in place.
A step can stop and ask you what to do:
- Folder access needed (macOS): macOS blocked access to your Legacy Desktop folder. Click Cancel. Give Comfy Desktop Full Disk Access in System Settings > Privacy & Security, and then migrate later.
- Python environment looks broken: the Legacy Desktop Python environment is missing or can’t import PyTorch. Click Adopt anyway to keep using it, or Cancel to stop.
- ComfyUI source code unavailable: Comfy Desktop couldn’t get ComfyUI’s code. Check your internet connection and click Try again, or click Cancel to stop.
Check the migrated build
After a migration from the setup screen or with Migrate and start, ComfyUI opens by itself. Otherwise, click the build under Builds in the sidebar, and then click Start. When ComfyUI opens, check that:- Your Workflows are in the Workflow list.
- Your Custom Nodes load.
- Your models show in the loader Nodes.
- ComfyUI runs on the port you used in Legacy Desktop,
8000by default. The build page’s Overview tab shows the port while the build runs.
Check the port and startup arguments
The migrated build keeps the startup arguments from Legacy Desktop’s server settings, with these changes:- It uses port
8000when Legacy Desktop had no port set. - It adds
--enable-manager. - It drops
--extra-model-paths-config,--front-end-root,--log-stdout, and--database-url. - It turns
--input-directoryand--output-directoryinto the build’s input and output folders.
--port on the build’s Startup arguments tab. Changes apply the next time the build starts.
Keep a custom database
The migrated build stores its ComfyUI database inuser/comfyui.db in your data folder. If you set --database-url in Legacy Desktop, migration drops it. To keep using that database, add your --database-url argument on the build’s Startup arguments tab, and then restart the build.
Update ComfyUI
The migrated build stays on the ComfyUI version that migration placed. To move to a newer version, see Update ComfyUI.Keep Legacy Desktop as a fallback
Migration doesn’t change or remove Legacy Desktop itself. Don’t run it at the same time as the migrated build. Both use the same data folder and the sameuser/comfyui.db database, and both use port 8000 by default.
Troubleshoot
Use these entries when Comfy Desktop doesn’t find Legacy Desktop, or the migration doesn’t finish.Legacy Desktop isn't listed
Legacy Desktop isn't listed
Comfy Desktop finds Legacy Desktop only when all of these are true:
- Comfy Desktop runs on macOS or Windows.
- Legacy Desktop’s
config.jsonis in~/Library/Application Support/ComfyUIon macOS or%APPDATA%\ComfyUIon Windows, and itsbasePathnames the data folder. - The data folder exists and holds a
modelsfolder and auserfolder. - The data folder has no
.comfyui-desktop-2file. Comfy Desktop writes that file when it migrates the folder, and when you add the folder with Add existing build.
The migration stopped or failed
The migration stopped or failed
The migration stops when you click Cancel in a prompt, or when a step fails. ComfyUI Legacy Desktop stays in your build list, and your data folder stays where it is.
- Read the output in View logs, or open the Comfy Desktop log: in Desktop settings, on the Logs tab, click Open logs folder. See Logs.
- Check that the data folder still exists. Migration reads models, Workflows, and Custom Nodes from it, so a moved or deleted folder stops it.
- Migrate later to run it again.
Models are missing after migration
Models are missing after migration
Migration adds your model folders to the shared model folders. It doesn’t copy them.
- Open the migrated build’s page, and then click Folders.
- Check that Include shared directories is on, and that your Legacy Desktop
modelsfolder is in the list, tagged Shared. - If a folder is missing, select Manage shared directories in Desktop settings in a shared folder’s menu. Under Shared folders, click Add models folder, and then select the folder.