--- title: "Builds in Comfy Desktop: install, run, update, and configure ComfyUI" description: "Install, add, or connect a ComfyUI build in Comfy Desktop, then start, update, and configure it from its build page, and fix a build that fails." icon: "layer-group" sidebarTitle: "Builds" --- In Comfy Desktop, you can run ComfyUI on this computer, on Comfy Cloud, or on a ComfyUI server on another machine. Each of these is a build. Comfy Desktop lists Comfy Cloud for you, and you install, add, or connect any other build before you open it. On this page, you set up a build, run it, update and configure it from its build page, and remove it when you no longer need it. ## Types of Comfy builds Where a build runs decides what you can do with it. The **Builds** page groups builds by where they run: | Where it runs | What it is | How you get one | | --- | --- | --- | | **This computer** | ComfyUI installed on this computer. Its type is **Standalone**, **Git clone**, **Portable**, **Legacy Desktop**, or **Build** (a Developer Platform Build from your team's workspace). | [Install a new build](#install-a-new-build), or [add a ComfyUI you already have](#add-a-comfyui-you-already-have). | | **Cloud** | Comfy Cloud. It runs on GPUs in the cloud and needs a Comfy account. | Comfy Desktop lists it for you as **Comfy Cloud**. | | **Remote** | A ComfyUI server running on another machine, reached by its URL. | [Connect to a ComfyUI server](#connect-to-a-comfyui-server). | Comfy Cloud shows **Log in to use** until you [log in](/installation/desktop/overview#log-in-and-open-comfy-cloud). Its quick actions menu has no **Stop**, **Auto start**, or **Uninstall**, and it keeps the name **Comfy Cloud**. ## Find your builds The **Builds** page lists every build in your workspace. To open it, click **Builds** in the **sidebar**. ![Builds page in Comfy Desktop with the All, This computer, and Cloud filters, the Last used sort menu, Search builds, and the New build button with its arrow, above tiles for four local builds and Comfy Cloud](/images/desktop/installation/comfy-desktop-builds.png) At the top of the page: - **New build**: starts a new build. Click the arrow next to it (**More build options**) for **Add existing build** and **Load snapshot**. - **Where it runs**: filters the list. **All** and **This computer** are always there. **Cloud** and **Remote** appear when you have a build of that kind. - **Sort**: orders builds by **Last used** or **Name**. Builds that are installing stay at the top. - **Search builds**: finds a build by its name. If nothing matches, click **Clear filters**. Each build is a tile. A tile shows the build's status, such as **Running**, **Starting…**, **Auto start**, or **Error**. Hold the pointer over a tile to see what a click does: **Click to start**, **Click to open**, or **Click to view logs**. When you have no builds, the page reads **No builds yet** and **Install ComfyUI on this computer, or run it on Comfy Cloud.** The **sidebar** also lists each build below **Builds**: ![Top of the Comfy Desktop sidebar with Home, Apps, and Assets, and the Builds list with a ComfyUI build marked by a green dot, and Comfy Cloud](/images/desktop/installation/comfy-desktop-builds-sidebar.png) - A spinner and a percent mean the build is installing. - A green dot means the build is running. - A red dot means the build crashed or didn't start. Hold the pointer over the build to read why. - Click a build to open its [build page](#manage-builds). - Right-click a build for its [quick actions menu](#quick-actions-from-the-build-list). For **Home** and the rest of the **sidebar**, see [Get around Comfy Desktop](/installation/desktop/usage/overview). ### Quick actions from the build list Right-click a build in the **sidebar**, or right-click its tile on the **Builds** page or its card on **Home**, for a short menu of actions. On a tile or card, you can also hold the pointer over it until the **⋯** button appears on its right, and then click it. ![Quick actions menu open over the ComfyUI build in the sidebar, listing Start, Turn off auto start, Manage, Duplicate, Show in Finder, Export snapshot, Restore snapshot, and Uninstall](/images/desktop/usage/comfy-desktop-build-quick-actions.png) The menu shows only the actions that apply to the build right now: - **Start**, or **View logs**, **Restart**, and **Stop** while the build runs. While it installs or starts, **View logs** and **Cancel**. After a crash, **View error**. - **Auto start** or **Turn off auto start**. See [Start a build when Comfy Desktop opens](#start-a-build-when-comfy-desktop-opens). - **Manage**, which opens the [build's page](#manage-builds). - **Update**, when an update is available, and **Migrate to Standalone**, when the build can move to a Standalone build. See [Migrate later](/installation/desktop/usage/migrate#migrate-later). - **Duplicate**, and **Show in Finder**, **Show in Explorer**, or **Show in folder**. - **Export snapshot** and **Restore snapshot**. See [Snapshots](#save-and-restore-snapshots). - **Upload build**, when you're logged in to a workspace. See [Team builds](/installation/desktop/usage/workspaces-and-builds). - **Uninstall**. See [Remove a build](#remove-a-build). **Auto start**, **Restart**, **View logs**, and **Upload build** are only in this menu. Everything else is also on the build's page. When an item is grayed out, hold the pointer over it to read why, such as **Stop the running build first.** ## Install a new build A new build is ComfyUI that Comfy Desktop installs for you: an official release as a **Standalone** build, or a Developer Platform Build from your team's workspace. The **New build** dialog picks settings for this computer. The install downloads ComfyUI and sets up its Python environment, so check the summary before you click **Install**. Open the dialog in one of these ways: - In the **sidebar**, hold the pointer over **Builds**, and then click the plus (**+**) button (**New build**). - On the **Builds** page, click **New build**. - On **Home**, click the **New build** tile, when **Home** shows it. The **New build** dialog opens with the lead **Set up a fresh ComfyUI install.** When you're logged in and your workspace has builds, the dialog opens on **Your team's builds**. Its **Release** row lists them, with the placeholder **Select a build**. To install an official release instead, set **Source** to **Official release** in the next step. For an official release, the dialog shows what it installs: ![New build dialog with Set up a fresh ComfyUI install., the Name box showing ComfyUI (1), the Detected card for an Apple M5 Pro with 24 GB memory and its Change button, the Release, Version, Hardware, and Location rows, and the Install button](/images/desktop/installation/comfy-desktop-new-build.png) - **Name**: the name the build gets in the **sidebar** and on the **Builds** page. The box shows a suggested name. Leave it empty to use that name, or type your own. - **Detected**: the computer or GPU that Comfy Desktop found, with its memory in GB. Click **Change** next to it to change the setup. - **Release**: **Stable** for tested releases, or **Latest on GitHub**. - **Hardware**: the GPU type the build is made for, such as **NVIDIA**, **AMD**, **Intel Arc (XPU)**, **Apple Silicon (MPS)**, or **CPU**. Its note reads: - **Detected**: the GPU type matches the GPU Comfy Desktop found. - **No GPU acceleration**: the build is for **CPU**. - **Not supported**: this computer doesn't support the selected GPU type. - **Version**: the ComfyUI version that installs, with its release, such as **Stable**. - **Location**: the folder the build installs into, with the free space on that drive and the space the install needs. Click **Browse** to choose another folder. When the **Hardware** note reads **Detected** and **Location** shows free space with no warning under it, the setup fits this computer. Click **Change** to open **Change setup**. It reads **Everything here is already set to what fits this computer.** ![Change setup sheet with How to start set to Install a new build, Source set to Official release, Release set to Stable with ComfyUI v0.46.2, Location with free space and Browse, Hardware set to Apple Silicon (MPS), and the Discard and Save changes buttons](/images/desktop/usage/comfy-desktop-change-build.png) - **How to start**: keep **Install a new build**. - **Source**: **Official release** installs ComfyUI. **Your team's builds** installs a Developer Platform Build from your workspace. See [Team builds](/installation/desktop/usage/workspaces-and-builds). - **Release**: **Stable** installs tested releases. Pick the version in the list next to **Stable**. **Latest on GitHub** installs the newest commits from the master branch. - **Location**: the install folder. Choose a folder that isn't inside the Comfy Desktop folder, OneDrive, a shared models, input, or output folder, or another build. Click **Browse** to choose another folder. - **Hardware**: the GPU type the build is made for. Each option lists its ComfyUI version, Python version, and download size. Click **Save changes** to go back to the summary, or **Discard** to drop your changes. Click **Install**. Before the install starts, Comfy Desktop can stop you: - **Location** shows a problem under it and **Install** stays grayed out when the folder can't hold a build. Click **Browse** and choose another folder. - **Low disk space** opens when the drive has less free space than the install needs, or less than 1 GB. Click **Continue anyway** to install, or close the dialog and choose another folder. - **Update NVIDIA driver** opens for an **NVIDIA** build when your driver is older than version 580. It shows your driver version and the recommended minimum. Click **Continue anyway** to install with your current driver, or update the driver first. Comfy Desktop goes back to **Home**, and the install runs in the background. The build shows **Installing ComfyUI** and the percent on **Home** and on the **Builds** page, and a spinner and the percent in the **sidebar**. To see each step, click the build's tile, or select **View logs** in the [quick actions menu](#quick-actions-from-the-build-list). The **Installing ComfyUI** dialog lists the steps: 1. **Download** 2. **Extract** 3. **Set up environment** 4. **Get the latest ComfyUI**, or **Get ComfyUI** and the version you picked Click **View logs** in the dialog to see the install output. To stop the install: 1. In the quick actions menu, select **Cancel**. 2. Click **Cancel install**. The install stops, and Comfy Desktop deletes the files it downloaded. When the install finishes, the spinner in the **sidebar** goes away and the build shows its laptop icon. For **Auto start**, see [Start a build when Comfy Desktop opens](#start-a-build-when-comfy-desktop-opens). If the install fails, see [Fix a build that fails](#fix-a-build-that-fails). ## Add a ComfyUI you already have If you set up ComfyUI yourself, from a Git clone or a portable download, you can add it to Comfy Desktop. Comfy Desktop runs it from its folder and doesn't move or copy its files. 1. On the **Builds** page, click the arrow next to **New build** (**More build options**), and then select **Add existing build**. You can also open **New build**, click **Change**, set **How to start** to **Use an existing build**, and set **Where it is** to **On this computer**. The sheet reads **Point Desktop at the ComfyUI you already have.** ![Change setup sheet for an existing build: How to start set to Use an existing build, Where it is set to On this computer, Install location with Browse, Name, Detected type reading Browse to a directory first, and the Discard and Add build buttons](/images/desktop/usage/comfy-desktop-existing-build.png) 2. Next to **Install location**, click **Browse**, and then select the ComfyUI folder. 3. Check **Detected type**. It reads **Standalone**, **Portable**, **Git clone**, or **Legacy Desktop**. If it reads **Legacy Desktop**, stop and close the dialog: adding it here keeps Comfy Desktop from migrating it. Follow [Migrate from Legacy Desktop](/installation/desktop/usage/migrate) instead. If it reads **No known install detected**, select the folder that holds ComfyUI itself, not a folder above it. 4. In **Name**, keep the suggested name, or type your own. 5. For a **Git clone**, check **Version**, **Repository**, and **Branch**. **Virtual environment** shows the `.venv`, `venv`, `.env`, or `env` folder Comfy Desktop found. Click **Browse** next to it to choose another one. 6. Click **Add build**. The build appears in the **sidebar** and on the **Builds** page. If another build has the name you typed, **Name** reads **A build named "…" already exists. Please choose a different name.** To create a build from a snapshot file, select **Load snapshot** in **More build options**. See [Create a build from a snapshot file](#create-a-build-from-a-snapshot-file). ## Connect to a ComfyUI server A remote build opens a ComfyUI server that runs on another machine, such as a GPU server on your network. You need the server's URL. 1. Open the **New build** dialog, as in [Install a new build](#install-a-new-build), and then click **Change**. 2. Set **How to start** to **Use an existing build**. 3. Set **Where it is** to **On a server**. ![Change setup sheet for a remote build: How to start set to Use an existing build, Name, Where it is set to On a server, ComfyUI URL with http://localhost:8188, and the Discard and Connect buttons](/images/desktop/usage/comfy-desktop-server-build.png) 4. In **Name**, keep the suggested name, or type your own. 5. In **ComfyUI URL**, type the server's address. The box shows `http://localhost:8188` as an example. 6. Click **Connect**. The build appears in the **sidebar** and on the **Builds** page, and the **Where it runs** filter gains **Remote**. If the address isn't a URL, the dialog reads **Enter a valid URL (e.g. http://localhost:8188).** To change the address later, see [Change a remote build's URL](#change-a-remote-builds-url). ## Start, stop, and restart a build To start a build and open ComfyUI, see [Open ComfyUI](/installation/desktop/overview#open-comfyui). A Comfy Cloud build opens with **Open Cloud** on its page, and a remote build with **Open remote**. ### Run more than one build When you start a build on this computer while another one is running or starting, Comfy Desktop opens **A build is already running**. Under **Will be stopped**, it lists the builds it would stop. **Close and start** stops the listed builds and loses any unsaved work in them. Save your Workflows first. - **Close and start**: stops the listed builds, then starts the one you picked. - **Run all**: starts the build and keeps the others running. Close the dialog to cancel the start. To stop seeing this dialog, open **Desktop settings** from the **sidebar**, and under **Preferences**, turn off **Warn before running multiple builds**. ### Stop or restart Stop a build before you uninstall it. Restart it to apply changes to its startup arguments. Stopping or restarting a build loses any unsaved work in ComfyUI. Save your Workflow first. To stop a running build: 1. On the [build page](#manage-builds), click **More** (**⋯**), and then select **Stop**. You can also select **Stop** in the [quick actions](#quick-actions-from-the-build-list). 2. In **Stop ComfyUI**, click **Stop**. ComfyUI stops, and its window closes. To restart a running build: 1. In the [quick actions](#quick-actions-from-the-build-list), select **Restart**. 2. In **Restart ComfyUI**, click **Restart**. The tile reads **Starting…** and then **Running**. Restarting never opens **A build is already running**. ## Start a build when Comfy Desktop opens **Auto start** starts one build each time Comfy Desktop opens. One build at a time has **Auto start**. - In the [quick actions menu](#quick-actions-from-the-build-list) of a build on this computer or a remote build, select **Auto start**. The build's tile reads **Auto start**. If another build had **Auto start**, that build loses it. To turn it off, select **Turn off auto start** in the same menu. When you install your first build on this computer, and no other build has **Auto start**, the new build gets it. If that build doesn't start the first time, Comfy Desktop turns its **Auto start** off. ## Manage builds Each build has its own page. It's where you manage one build: start it, update ComfyUI, change PyTorch, choose its folders, set startup arguments, and rename, copy, or remove it. Open it in one of these ways: - In the **sidebar**, click the build under **Builds**. - In the [quick actions](#quick-actions-from-the-build-list), select **Manage**. ![Build page of a Standalone build named ComfyUI: the meta line This computer, Standalone, v0.46.2, the Start and More buttons at the top right, the Overview, Folders, Startup arguments, Snapshots, and Terminal tabs, and the ComfyUI card reading Up to date with Check for updates beside the PyTorch, On disk, Python, and Location tiles](/images/desktop/usage/comfy-desktop-manage-build.png) The header tells you what the build is and whether it runs. From left to right: - **Name**: click it, or click the pencil (**Edit build name**), to rename the build. Type the new name, then press `Enter`, or press `Esc` to keep the old one. You can rename Standalone, Portable, git, and remote builds, but not Comfy Cloud or Legacy Desktop builds. Each build needs a name no other build uses. - **Status chip**: **Running**, **Starting…**, or **Stopping…**, or a failure label when the build crashed or didn't start. Click a failure label to see the error. - **Meta line**: where the build runs (**This computer**, **Cloud**, or **Remote**), its type, and its version, separated by dots. - **Primary button**: **Start** when a local build is stopped, **Open** while it runs, **Open Cloud** for Comfy Cloud, and **Open remote** for a remote build. - **More** (**⋯**): actions for the whole build. See [Use the More menu](#use-the-more-menu). Below the header, each tab holds one kind of setting. A tab appears only when the build has settings for it: | Build | Tabs | | --- | --- | | Standalone | **Overview**, **Folders**, **Startup arguments**, **Snapshots**, **Terminal** | | Remote | **Overview**, **Startup arguments** | | Comfy Cloud | **Overview**, **Storage** | Other local builds, such as Portable and git builds, show the tabs they have settings for, plus **Terminal**. Each tab has its own section on this page: | Tab | What you do there | Section | | --- | --- | --- | | **Overview** | See what the build runs, update ComfyUI, switch the update channel, change PyTorch, change a remote build's URL | [Update ComfyUI](#update-comfyui) | | **Folders** | Choose model, input, and output folders | [Choose which folders the build uses](#choose-which-folders-the-build-uses) | | **Startup arguments** | Set flags, ComfyUI Manager policy, window, port, and environment variables | [Set startup arguments](#set-startup-arguments) | | **Snapshots** | Save and restore the build's setup | [Save and restore snapshots](#save-and-restore-snapshots) | | **Terminal** | Run commands in the build's Python environment | [Run commands in the terminal](#run-commands-in-the-terminal) | | **Storage** (Comfy Cloud) | Browser cache and output downloads | [Set output options](#set-output-options-for-remote-and-comfy-cloud-builds) | ### Use the More menu The **More** (**⋯**) button next to **Start** or **Open** holds actions for the whole build. On a Standalone build, it lists: - **Stop**, while the build runs. - **Rename**, which selects the name in the header. - **Duplicate**. See [Duplicate a build](#duplicate-a-build). - **Show in Finder**, **Show in Explorer**, or **Show in folder**, named for your operating system. - **Export snapshot**. See [Snapshots](#save-and-restore-snapshots). - **Forget** and **Uninstall**. See [Remove a build](#remove-a-build). On a remote build, it lists **Rename** and **Forget**, plus **Stop** while it runs. On a Comfy Cloud build, the **More** button is grayed out. ### Update ComfyUI **Overview** shows what the build runs and where you update it. On a Standalone build, it shows a **ComfyUI** card and a row of tiles: - **PyTorch**: the installed PyTorch version, the hardware it targets, and a **Change** menu. See [Change PyTorch](#change-pytorch). - **On disk**: the space the build uses, with `{size} free` below it. - **Python**: the Python version and the build type. - A details tile: the build's **Location**, with buttons to open the folder and to **Copy path**, and the port while the build runs. A build copied from another one also shows where it came from, such as **Copied from**. On other builds, **Overview** lists the build's facts in groups: **Build details**, **Running details** (while the build runs), **Location & storage** (local builds only), and **Lineage** (builds copied from another one). Updating brings the build to the newest ComfyUI on its channel. A dot on the **Overview** tab means an update is available. The row at the bottom of the **ComfyUI** card shows where the build stands: | Row reads | Meaning | Button | | --- | --- | --- | | **{version} available**, with **Saves a snapshot first · Checked {time}** | A newer version is on this channel. | **Update** | | **Up to date**, with **Checked {time}** | The build has the newest version on this channel. | **Check for updates** | | **Not checked yet** | Comfy Desktop has no version info for this channel. | **Check for updates** | To update the build: 1. On **Overview**, click **Update**. You can also select **Update** in the [quick actions menu](#quick-actions-from-the-build-list). 2. In the **Update ComfyUI** dialog, check the versions the build moves between and any **Release notes**, then click **Update now**. While the update runs, a progress card replaces the tabs. If it fails, the card offers **Try again** and **Dismiss**. Comfy Desktop saves a snapshot before it updates. If the update breaks a Custom Node, restore that snapshot from the **Snapshots** tab. See [Snapshots](#save-and-restore-snapshots). To try a new version without touching this build, update a copy instead: 1. Click the arrow beside **Update** (**More update options**) and select **Copy & update**. 2. Enter a name for the copy, then click **Copy & update**. #### Switch the update channel The channel decides where updates come from. Selecting **Stable** on a build that runs ahead of the stable release rolls the build back and removes the newer commits. On the **ComfyUI** card, click the channel name to open the **Update channel** dropdown, then select one: - **Stable**: tested releases. Use it for most builds. Builds use this channel by default. - **Latest on GitHub**: the newest commits from the master branch. When you select a channel the build isn't on, the row reads **Switch to {channel}**: - If that channel has a newer version, click **Update** to move the build to it. - If it has nothing newer, click **Switch channel** to move the build without updating it. - If Comfy Desktop has no version info for that channel, the row reads **Select this channel and check for updates to see version info.** Click **Check for updates**. #### Change PyTorch Changing PyTorch lets the build use a different PyTorch version or backend, such as a newer CUDA version. The **Change** menu appears on the **PyTorch** tile once Comfy Desktop knows which versions it can install for the build. Before you change PyTorch, make sure the disk has free space for a full copy of the build's environment. Changing to a version without torchaudio removes torchaudio, and Custom Nodes that need it stop working. The menu labels these versions. 1. On **Overview**, click **Change** on the **PyTorch** tile. 2. Hold the pointer over the version you want. 3. Select one of these: - **Change PyTorch**: changes this build. The **Change PyTorch** dialog shows the change and, for a bundle, its download size. Comfy Desktop backs up the current environment during the change and restores it if anything fails. - **Copy & change PyTorch**: makes the change on a copy of this build and leaves the original as it is. Enter a name for the copy, then click **Copy & change PyTorch**. In the **Change** menu, versions are grouped by backend, and the installed version shows **In use**. Nightly versions sit under a heading that ends in **Nightly (unstable)**, and older nightly versions drop off the menu. #### Change a remote build's URL A remote build connects to a ComfyUI server at a URL. To point it at a different address: 1. On **Overview**, under **Build details**, click the **URL**, or click the pencil (**Edit connection URL**) beside it. 2. Type the new address, then press `Enter` or click anywhere else. If you leave out the scheme, Comfy Desktop uses `http://`. If Comfy Desktop can't read the address, it keeps the previous one. While the build is connected, the row shows **Restart to apply**, and the running session keeps the old address until you restart. ### Choose which folders the build uses The **Folders** tab on the build page sets where a build finds its models and where it reads inputs and saves outputs. It has three sections: **Models**, **Input**, and **Output**. By default, all three use the shared folders from **Desktop settings**. ![Folders tab of a Standalone build: Models with Include shared directories on, a shared models folder tagged Downloads and Shared, the build's own models folder tagged Build, and Add models folder, then Input and Output with Use shared input and Use shared output on and their shared folders](/images/desktop/usage/comfy-desktop-folders.png) - **Models**: **Include shared directories** turns the shared model folders on or off for this build. The list shows: - Shared folders, tagged **Shared**. - The build's own models folder, tagged **Build**. The build always uses it. - Folders you add for this build only, with **Add models folder**. - A row tagged **YAML** when the build has an `extra_model_paths.yaml` file. - **Input**: with **Use shared input** on, the build reads inputs from the shared input folder. Turn it off to use the build's own input folder. - **Output**: with **Use shared output** on, the build saves outputs to the shared output folder. Turn it off to use the build's own output folder. In the **Models** list: - The folder tagged **Downloads** receives new model downloads. - A folder's menu holds the actions it allows, such as **Use for model downloads**, **Change folder**, or **Remove**. - On a shared folder, select **Manage shared directories in Desktop settings** to change the shared folders. Clicking the **YAML** row opens **Custom model paths**, a read-only list of the folders that `extra_model_paths.yaml` adds. To change those folders: 1. In **Custom model paths**, click **Show extra_model_paths.yaml** to find the file. 2. Edit and save the file. 3. Click **Refresh status**. After a change, the tab shows **Restart the application (or close and reopen) for these changes to take effect.** #### Set output options for remote and Comfy Cloud builds A remote build's **Startup arguments** tab and a Comfy Cloud build's **Storage** tab hold these settings: ![Folders tab of the Comfy Cloud build: Browser cache set to Shared, Auto-download outputs on, and Use shared output directory on, with Open Cloud at the top right](/images/desktop/usage/comfy-desktop-cloud-storage.png) - **Browser cache**: **Shared** by default, or **Unique to this build**. - **Auto-download outputs**: on by default. It downloads each run's outputs to this computer. - **Use shared output directory**: appears while **Auto-download outputs** is on, and saves the outputs to the shared output folder. To pick a folder for this build, turn it off. ### Set startup arguments The **Startup arguments** tab on the build page controls how ComfyUI starts for this build: its command-line flags, ComfyUI Manager policy, window, and environment. ![Startup arguments tab of a Standalone build under Launch settings: the Startup arguments field with --enable-manager, a +1 beta pill, and the gear, then Manager security level, Manager network mode, Launch mode, Browser cache, If port is busy, and Environment variables with Add variable](/images/desktop/usage/comfy-desktop-startup-arguments.png) Every change applies the next time the build starts. If the build is running when you change a field, the field shows **Restart to apply**, and the header button reads **Restart to apply changes**. Click it to restart the build with the new settings. #### Pick flags from the list The **Startup arguments** field holds the command-line arguments passed to ComfyUI, such as `--listen`. You can type them, or pick them from a list sorted by category. If beta features add arguments, a **+N beta** pill beside the field lists them. For every flag, see the [startup flags reference](/development/comfyui-server/startup-flags). 1. Click the gear (**Configure arguments**) next to **Startup arguments**. 2. Toggle flags in the categories, or edit **Raw arguments**. Both change the same arguments for this build. 3. Click **Back** to return to the tab. #### Control what ComfyUI Manager installs Two settings decide which Node packs ComfyUI Manager can install for this build. Set **Manager security level** first: - **Strict**: blocks all Node pack installs, updates, and uninstalls. ComfyUI Manager is read-only. - **Standard (recommended)**: allows registered Node packs and blocks installs from unregistered sources, such as arbitrary git URLs. This is the default. - **Relaxed**: like Standard, but also allows unregistered-source installs while ComfyUI is reachable only from this computer. `--listen` blocks them again. - **Permissive**: allows every risk tier. Then set **Manager network mode**, which decides how ComfyUI Manager reaches the Node registry. **Personal cloud** lifts the `--listen` install block. Select it only on a computer you control. - **Public (default)**: uses the public registry. With `--listen`, Node pack installs are blocked at every security level. - **Private**: uses a private Node database that you configure yourself. - **Offline**: makes no external network connections. Installs and updates that need downloads are unavailable. - **Personal cloud**: treats this computer as your own trusted remote machine and lifts the `--listen` install block. The security level still applies. #### Set the window, cache, and port These settings decide how the build opens and what it does when its port is taken: - **Launch mode**: **App window** (the default) or **Console only**. - **Browser cache**: **Unique to this build** or **Shared** with other builds. A new Standalone build starts with **Unique to this build**. - **If port is busy**: **Ask what to do** or **Use next available port (asks if --port is set)**. Standalone and Portable builds use **Use next available port (asks if --port is set)** by default, and git builds use **Ask what to do**. #### Add environment variables Environment variables pass extra settings to ComfyUI when the build starts. Comfy Desktop stores environment variable values unencrypted on disk. Don't add API keys, tokens, or passwords. - Under **Environment variables**, click **Add variable**, then enter the name and value. Values for names that look like credentials, such as `HF_TOKEN`, stay hidden until you reveal them. A repeated name shows **Duplicate key**. ### Save and restore snapshots A snapshot records a build's ComfyUI version, Custom Nodes, and Python packages, so you can put the build back the way it was after an update or a Custom Node breaks it. Models, inputs, and outputs aren't part of a snapshot. The **Snapshots** tab appears for installed Standalone builds. ![Snapshots tab of a Standalone build with Import, Export all, and Create snapshot at the top, and a timeline of Boot and Updated snapshots, each with Restore](/images/desktop/usage/comfy-desktop-snapshots.png) #### When Comfy Desktop saves a snapshot Comfy Desktop saves snapshots for you, and tags each one with why it was saved: | Tag | Saved when | | --- | --- | | **Boot** | ComfyUI starts and the setup changed since the last snapshot, and once after the first install | | **Manager** | ComfyUI Manager restarts ComfyUI | | **Update**, **Updated** | Before and after you update ComfyUI or change PyTorch | | **Restored** | After you restore a snapshot | | **Manual** | You click **Create snapshot** | Comfy Desktop keeps up to 200 **Boot** and **Manager** snapshots and deletes the oldest ones past that. It never deletes a snapshot that has a label. #### Read the timeline The **Snapshots** tab lists snapshots newest first, under **Latest:** and how long ago the last one was saved. The newest snapshot opens on its own. Click any other snapshot to open it, and click **What changed in this snapshot** to see which Custom Nodes and packages it added, removed, or changed. A snapshot shows its label when it has one, and the version change, such as **v0.42.1 → v0.46.2**, after an update. #### Create a snapshot Save a snapshot before you try something risky, such as a new Custom Node. 1. Click **Create snapshot**. 2. In **Create snapshot**, type a label if you want one, such as `before-experiment`. A labeled snapshot is never deleted to make room. 3. Click **Create snapshot**. #### Restore a snapshot 1. Click **Restore** on the snapshot. The newest snapshot has no **Restore**, because the build already matches it. 2. In **Restore this snapshot?**, check what changes, and then confirm. Comfy Desktop backs up the build first. If the build is running, Comfy Desktop stops it, restores the snapshot, and starts it again. When the snapshot used a different PyTorch, the restore also changes PyTorch. If that PyTorch isn't available, Comfy Desktop keeps the current one or stops without changing anything. When the restore finishes, the build reads **Snapshot restored**. If it fails, click **Try again**, or **Dismiss**. You can also open a build's snapshots from the [quick actions menu](#quick-actions-from-the-build-list): select **Restore snapshot**. #### Export, import, and delete snapshots - **Export one snapshot**: click **More actions** (**⋯**) on the snapshot, and then select **Export**. To export the newest snapshot without opening the tab, select **Export snapshot** in the quick actions menu or the build page's [**More** menu](#use-the-more-menu). - **Export all**: saves every snapshot of the build to a file. - **Import**: choose a snapshot file. **Import snapshot?** asks you to confirm, and then Comfy Desktop restores the build to that snapshot right away. If the snapshot uses a different PyTorch, the dialog warns **Snapshot uses a different PyTorch**. - **Delete**: click **More actions** (**⋯**) on the snapshot, select **Delete**, and confirm. The build and its other snapshots don't change. Comfy Desktop stores a build's snapshots in the `.launcher/snapshots` folder inside the build's folder. #### Create a build from a snapshot file A snapshot file can set up a new build with the same ComfyUI version, Custom Nodes, and packages, such as one a teammate exported. 1. On the **Builds** page, click the arrow next to **New build** (**More build options**), and then select **Load snapshot**. The page reads **Load a snapshot file to install a build.** 2. Drop the `.json` file on the page, or click **Browse** and choose it. 3. Check **Name**, **Release**, and **Hardware**. The page warns you when the snapshot was made for different hardware. 4. Click **Create build**. The new Standalone build installs, and it starts when the install finishes. ### Run commands in the terminal The **Terminal** tab on the build page opens a shell in the `ComfyUI` folder inside the build's folder. The build's Python environment is active, so commands such as `pip` act on this build. ![Terminal tab of a Standalone build with a shell prompt that shows the active .venv environment in the ComfyUI folder](/images/desktop/usage/comfy-desktop-terminal.png) - The terminal works whether ComfyUI is running or stopped. - Right-click the terminal to **Copy**, **Paste**, or **Select all**. ### Duplicate a build A duplicate is a copy of a build that you can change without touching the original. You can duplicate a **Standalone** build or a Developer Platform Build from your team's workspace. 1. In the [quick actions menu](#quick-actions-from-the-build-list) or the **More** menu, select **Duplicate**. 2. In **Duplicate build**, type a name for the copy. 3. Click **Duplicate**. Comfy Desktop creates the copy next to the original. When the copy is ready, Comfy Desktop opens the copy's build page. To copy a build and change it in one step, use **Copy & update** in [Update ComfyUI](#update-comfyui) or **Copy & change PyTorch** in [Change PyTorch](#change-pytorch). ### Remove a build Two actions remove a build. **Forget** keeps its files on disk. **Uninstall** deletes them. **Forget** removes the build from Comfy Desktop. Its folder stays on your computer, and you can add it again with [**Add existing build**](#add-a-comfyui-you-already-have). 1. Open the [build page](#manage-builds), and then click **More**. 2. Select **Forget**, and then confirm in **Forget build**. For a remote build, **Forget** removes the connection. The server isn't changed. A **Standalone** build that Comfy Desktop created from Legacy Desktop has no **Forget**. **Uninstall** removes a build from this computer. For a remote build, it removes the build from Comfy Desktop and doesn't change the server. **Uninstall** permanently deletes the build and all its files, and you can't undo it. Other builds aren't affected. If you cancel an uninstall, you can't restore files that Comfy Desktop already removed. 1. Stop the build if it's running. 2. In the [quick actions menu](#quick-actions-from-the-build-list) or the **More** menu, select **Uninstall**. 3. Check the folder the dialog shows, and then click **Uninstall**. The build shows **Uninstalling** and the percent. When it finishes, the build leaves the **sidebar** and the **Builds** page. To stop the uninstall: 1. In the quick actions menu, select **Cancel**. 2. Click **Stop uninstalling**. The build stays in your builds. You can't restore files that Comfy Desktop already removed, so uninstall the build again to finish. If the uninstall fails, see [Fix a build that fails](#fix-a-build-that-fails). ## Fix a build that fails When a build fails, Comfy Desktop marks it in several places: - **Sidebar**: a red dot. Its tooltip reads, for example, **Crashed (exit code 1)** or **Didn't start:** and the reason. - **Builds page**: a status chip on the tile, such as **Didn't start**, **Crashed**, or **Error**. - **Quick actions menu**: **View error**, which opens the details. - **Build page**: a red chip next to the name. Click it to open the details. - **Home**: the build card reads **Didn't start**, or names a problem with the build, such as **Install failed** or **Folder not found**. A crash doesn't show on the card. Find the message you see below. The install stopped before it finished. The **Installing ComfyUI** dialog reads **ComfyUI didn't install** and shows the step that failed. Click **View logs** in the dialog to read the output. The build then shows **Install failed**: **This build's installation did not finish. Uninstall it and reinstall.** [**Uninstall**](#remove-a-build) the build, and then [install it again](#install-a-new-build). The build failed to start. The build page shows **ComfyUI didn't start** with the reason. 1. Click **View logs** on the build page, or select **View error** in the quick actions menu, to read what went wrong. 2. Fix the cause. In the dialog that opens, click **Try again**. ComfyUI stopped while it ran. The **sidebar** tooltip reads **Crashed** with the exit code or signal, and the build page shows **ComfyUI exited unexpectedly**. - Select **View error** in the quick actions menu to read the message and the last lines ComfyUI printed. - In the ComfyUI window, click **Restart ComfyUI** to start it again, or **Back to Home**. On Windows, a crash can report a memory access violation. If the message also says some Microsoft Visual C++ Redistributable files appear to be missing, repair or install the latest redistributable, and then restart the build. Comfy Desktop can't reach the build's folder. - **Folder not found**: **Build folder not found. Reconnect the drive or restore the folder, then try again.** - **Folder access denied**: **Can't access the build folder. Check that you have permission to read it (or that the drive is online), then try again.** Select **View error** in the quick actions menu to read the message and the folder path. The build page shows **Uninstall didn't finish** with the reason. When a file is in use, the reason names the program that holds it, or says Comfy Desktop couldn't identify it. Close that program, and then click **Try again**. Click **Dismiss** to close the message. If an earlier uninstall was interrupted, the build shows **Uninstall interrupted**: **A previous uninstall of this build was interrupted. Open it to resume or retry the uninstall.** Open the build page, and then [uninstall](#remove-a-build) it again. ComfyUI listens on a port, `8188` unless the build's startup arguments set `--port`. When another program uses that port, the **If port is busy** setting in [Set the window, cache, and port](#set-the-window-cache-and-port) decides what happens: - **Use next available port (asks if --port is set)**: the default for **Standalone** and **Portable** builds. Comfy Desktop starts the build on the next free port, and the start progress names the busy port and the port it uses instead. - **Ask what to do**: the default for other build types. Comfy Desktop opens **Port already in use** and names the program that holds the port when **If port is busy** is **Ask what to do**, when the startup arguments set `--port`, or when Comfy Desktop finds no free port. **Stop process and retry** stops the other ComfyUI and loses its unsaved work. - **Use next available port**: starts this build on the next free port. - **Stop process and retry**: stops the program that holds the port, then starts the build again. It appears only when that program looks like a ComfyUI. Close the dialog to cancel the start. When the build's startup arguments include `--enable-assets`, Comfy Desktop also checks whether the port is held by another ComfyUI that runs this same build. If it is, Comfy Desktop doesn't offer another port, because both ComfyUI copies would use the same database. Stop the other copy first, or close the app that started it. An earlier Comfy Desktop session left a ComfyUI running for this build. That ComfyUI holds the build's database, so a new ComfyUI for the build can't start. **Stop it and start this build** cancels the prompts the earlier ComfyUI is working on. - **ComfyUI is still running a prompt**: click **Stop it and start this build** to stop it and cancel its prompts, or keep it running and cancel this start. - **Processes from an earlier ComfyUI are still running**: the message lists their process IDs. Click **Stop them and start this build**. - When the earlier ComfyUI doesn't exit, end the process yourself, and then start the build again. Another ComfyUI uses this build's database, so ComfyUI can't start for this build. Close the other ComfyUI, or the app that started it, and start the build again. To run both at the same time, give one of them its own database location with the `--database-url` startup argument.