Quickstart¶
This guide gets you from a clean install to a running ComfyGit environment. By the end, you will have a ComfyUI environment that can be committed, repaired, and shared.
Before You Begin¶
You need:
- A terminal.
uv, the Python package manager ComfyGit uses.- A directory where your ComfyUI models live, or an empty directory you want ComfyGit to use.
- Enough disk space for ComfyUI, Python packages, custom nodes, and model files.
If you already use ComfyUI, point ComfyGit at that existing models/ directory.
ComfyGit indexes those files instead of copying them.
1. Install ComfyGit¶
If uv is not installed yet, install it first:
Windows users can use the PowerShell installer:
2. Initialize A Workspace¶
A workspace is machine-local state for environments, model index data, cache, and logs.
Use any path that contains, or should contain, ComfyUI model subfolders such as
checkpoints, loras, vae, controlnet, or newer folders such as
frame_interpolation.
3. Create An Environment¶
ComfyGit creates an isolated ComfyUI environment, chooses a PyTorch backend for this machine, installs the ComfyGit Manager custom node by default, and makes the new environment active.
To skip the Manager for a headless environment:
4. Run ComfyUI¶
cg run syncs the environment first, then launches ComfyUI. ComfyUI arguments
can be passed after --:
5. Index Models¶
If you added or moved files outside ComfyGit, rescan the model directory:
The model index is local state. It helps ComfyGit match workflow references to files you already have, but source URLs still need to be recorded before you can claim another machine can reproduce the environment.
6. Add Or Open A Workflow¶
Open ComfyUI, build or load a workflow, and save it. ComfyGit Manager will show the workflow in the ComfyGit panel.
Resolve dependencies from the CLI when needed:
If a custom node loads a model ComfyGit cannot infer from the graph, attach an already-indexed local model to the workflow:
cg workflow model add my-workflow \
--path frame_interpolation/film_net_fp16.safetensors \
--importance required
7. Save The Environment¶
ComfyGit commits the tracked environment recipe: manifest, workflow files, dependency metadata, model metadata, and workflow contract artifacts when present. It does not commit model bytes or local runtime directories.
What To Read Next¶
- Core concepts explains what is portable and what is local.
- Common workflows gives task recipes.
- Model dependencies explains manual workflow models and source proof.
- Serve workflows shows how to run a workflow through Studio and HTTP.