Skip to main content

A CLI tool to install custom nodes for ComfyUI using YAML configuration.

Project description

Comfy Installer

Comfy Installer is a CLI tool that simplifies installing custom nodes and models for ComfyUI. It uses a YAML configuration to automate the setup, ensuring that all dependencies, custom nodes, and model files are installed correctly.

Features

  • Easy Custom Node Installation
    Install nodes from GitHub repositories, ZIP files, or direct file copy.

  • Automatic Model Download
    Fetches model files from URLs and places them into the correct ComfyUI directories.

  • YAML-Based Configuration
    Manage installations via a single YAML file, ensuring reproducible setups.

  • Workflow Integration
    The included ComfyRunner class can start ComfyUI, manage installations, and run workflows.

  • Lightweight & Extensible
    The tool is built with modular utilities, making it easy to customize or extend.

Requirements

  • Python 3.9+
  • pip or a similar package manager

Installation

From PyPI with uv

uv add comfy-installer

From Source

  1. Clone the repository:
    git clone https://github.com/khengyun/comfy-installer.git
    cd comfy-installer
    
  2. Install dependencies:
    uv run pip install -r requirements.txt
    
  3. (Optional) Install as a package:
    python setup.py install
    

Usage

1. Prepare a YAML File

Create a YAML file (e.g., config.yaml) with the nodes and models you want to install:

nodes:
  - name: "ComfyUI-AnimateDiff-Evolved"
    url: "https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved"
    install_type: "git-clone"

  - name: "ComfyUI-Advanced-ControlNet"
    url: "https://github.com/Kosinkadink/ComfyUI-Advanced-ControlNet"
    install_type: "git-clone"

models:
  - name: "sd_xl_base_18897557.0.safetensors"
    url: "https://civitai.com/api/download/models/299716"
    dest: "./ComfyUI/models/checkpoints/"

  - name: "mod_sdxl.safetensors"
    url: "https://civitai.com/api/download/models/299716"
    dest: "./ComfyUI/models/checkpoints/"

2. Run the Installer via CLI

comfy-install --yaml path/to/config.yaml [--install-dir /your/install/path]

Contributing

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature.
  3. Commit your changes: git commit -m 'Add feature'.
  4. Push to the branch: git push origin feature/your-feature.
  5. Open a pull request.

License

This project is licensed under the MIT License.

Support

For issues or feature requests, please open an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comfy_installer-0.1.15.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comfy_installer-0.1.15-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file comfy_installer-0.1.15.tar.gz.

File metadata

  • Download URL: comfy_installer-0.1.15.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for comfy_installer-0.1.15.tar.gz
Algorithm Hash digest
SHA256 331c5008e3a274aefac6557487dbb63ad32b8de8ffb659e07969230faa4a02a4
MD5 ea7c10b98b2d0486c902e7f15b2622ea
BLAKE2b-256 fb28eec4d1bfd2ad13578e7a334f8c0fb27fc805c705b1afaa6c49883ccf84f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfy_installer-0.1.15.tar.gz:

Publisher: bump-version-release.yml on khengyun/comfy-installer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file comfy_installer-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for comfy_installer-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e93e212b3598d0bead377e7e17b8cb9ebe70a2d803a0607f5a2649b4d37cd4
MD5 0c924ddc4267002a29f04293481fcb4d
BLAKE2b-256 bdc7a522db567ac8e43e571b0f8c120d01fce577900ba5686d1eb659ed30364f

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfy_installer-0.1.15-py3-none-any.whl:

Publisher: bump-version-release.yml on khengyun/comfy-installer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page