Skip to main content
If you used Legacy Desktop, the single-build app that came before Comfy Desktop, Comfy Desktop can run your existing setup as a build, with the same Workflows, models, Custom Nodes, inputs, and outputs. Legacy Desktop ran one ComfyUI from one data folder, so migration leaves that folder where it is and adds a build named ComfyUI that uses it. You migrate once, either on the setup screen or later from your build list, and then check that the migrated build runs as before. The setup screen calls the old app ComfyUI Desktop. Your build list calls it ComfyUI Legacy Desktop, with the type Legacy Desktop.

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.
Don’t add your Legacy Desktop data folder with Add existing build. That marks the folder as added, and Comfy Desktop then can’t find Legacy Desktop or migrate it. If Comfy Desktop doesn’t list Legacy Desktop, see Legacy Desktop isn’t listed in Troubleshoot.

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\
The backup holds these files, when they exist:
  • config.json: Legacy Desktop’s app settings, including the data folder it used.
  • comfy.settings.json: your ComfyUI settings, from the user/default folder.
  • extra_models_config.yaml: the extra model folders you set in Legacy Desktop.
  • window.json: the window size and position.
The backup holds no models, Workflows, Custom Nodes, inputs, or outputs. If a file can’t be copied, migration writes a warning to the log and continues. Migration also saves a record of your Custom Nodes and Python packages as a 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.
  1. 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.
  2. Tick I agree to the EULA and Terms of Service.
  3. Click Migrate. The Migrate to Standalone screen opens.
  4. Read the Migration will: list, and then click Start migration. To go back to setup, click Cancel.
The setup screen closes and the migration runs. When it finishes, Comfy Desktop starts the migrated build. See Follow the migration. Comfy Desktop marks setup complete when the migration starts. If the migration stops, Comfy Desktop opens Home the next time instead of setup. To try again, migrate later. While the box is ticked, the setup screen doesn’t check free disk space and doesn’t block hardware it doesn’t support. To install a new build instead, untick the box. The button reads Install again, and ComfyUI Legacy Desktop stays in your build list so you can migrate later. If this computer has other builds besides Legacy Desktop and Comfy Cloud, the setup screen also shows Use my builds, which skips the install.

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.
Migrate to Standalone opens the build page and asks Migrate Legacy Desktop to Standalone. Click Start migration.
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:
  1. Back up legacy state
  2. Check folder access (macOS only)
  3. Validate Python environment
  4. Capture snapshot
  5. Allocate install folder
  6. Stage ComfyUI source code
  7. Install requirements
  8. Carry over settings
  9. Register build
From the setup screen, the steps show on a full-screen progress screen. Click View logs there to read the output, and click Copy to copy it. The logs open by themselves when the migration fails. When you start the migration with Migrate to Standalone, the build page shows the progress in place of its tabs. Stage ComfyUI source code can download ComfyUI from GitHub, which can take a few minutes on a slow connection. A failed requirements install writes a warning to the log and doesn’t stop the migration. If the 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.
When the migration finishes, the build named ComfyUI replaces ComfyUI Legacy Desktop under Builds. Its type is Standalone. If it’s your only build on this computer and no build has Auto start, it gets Auto start. See Start a build when Comfy Desktop opens.

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, 8000 by default. The build page’s Overview tab shows the port while the build runs.
The migrated build is a Standalone build, so you manage it like any other build. See Manage builds.

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 8000 when 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-directory and --output-directory into the build’s input and output folders.
Because the port is in the build’s startup arguments, Comfy Desktop asks Port already in use when another program holds that port. Select Use next available port to start on another port for this run. To change the port for good, edit --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 in user/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 same user/comfyui.db database, and both use port 8000 by default.
Uninstalling the migrated build also deletes the .venv folder in your Legacy Desktop data folder, which is the Python environment Legacy Desktop runs. Your models, Workflows, Custom Nodes, inputs, and outputs stay.

Troubleshoot

Use these entries when Comfy Desktop doesn’t find Legacy Desktop, or the migration doesn’t finish.
Comfy Desktop finds Legacy Desktop only when all of these are true:
  • Comfy Desktop runs on macOS or Windows.
  • Legacy Desktop’s config.json is in ~/Library/Application Support/ComfyUI on macOS or %APPDATA%\ComfyUI on Windows, and its basePath names the data folder.
  • The data folder exists and holds a models folder and a user folder.
  • The data folder has no .comfyui-desktop-2 file. Comfy Desktop writes that file when it migrates the folder, and when you add the folder with Add existing build.
Comfy Desktop looks for Legacy Desktop when it starts. After you fix the cause, quit Comfy Desktop and open it again.
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.
  1. 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.
  2. Check that the data folder still exists. Migration reads models, Workflows, and Custom Nodes from it, so a moved or deleted folder stops it.
  3. Migrate later to run it again.
If ComfyUI’s code still can’t download, Comfy Desktop suggests creating a new build from Home instead.
Migration adds your model folders to the shared model folders. It doesn’t copy them.
  1. Open the migrated build’s page, and then click Folders.
  2. Check that Include shared directories is on, and that your Legacy Desktop models folder is in the list, tagged Shared.
  3. 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.
See Choose which folders the build uses.