comfy-cli for Openclaw

A comprehensive command-line interface for installing, configuring, and scaling ComfyUI instances and their ecosystem of nodes and models.

johntheyoung
v1.0.0
Jan 17, 2026
2
4.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install comfy-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install comfy-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is comfy-cli?

The comfy-cli skill provides a unified interface for the complete lifecycle management of ComfyUI, the popular node-based GUI for stable diffusion. By leveraging Openclaw Skills, users can move beyond manual folder management and handle complex installations across diverse hardware environments including NVIDIA GPUs, Apple Silicon, and AMD ROCm. It serves as a bridge for developers who need to script their generative AI environments or manage multiple workspaces with surgical precision.

This tool is particularly valuable for those who need to maintain reproducibility in their creative workflows. It handles the heavy lifting of dependency resolution, custom node synchronization, and model fetching from major hubs like CivitAI and Hugging Face, all while maintaining a clean, versioned workspace structure that integrates perfectly with modern DevOps practices.

comfy-cli Use Cases

  • Automating the setup of fresh ComfyUI environments on new workstations or cloud instances.
  • Migrating custom node sets and model dependencies between local and remote machines.
  • Rapidly debugging environment crashes caused by conflicting custom nodes using binary search.
  • Programmatically triggering ComfyUI API workflows as part of a larger data processing pipeline.
  • Testing specific features or frontend pull requests without manually cloning and switching branches.

How comfy-cli Works

  1. Workspace Discovery: The skill identifies or creates a workspace directory to house the ComfyUI source code and its virtual environment.
  2. Dependency Provisioning: It executes hardware-aware installation scripts to ensure the correct versions of PyTorch and related libraries are installed for your specific GPU architecture.
  3. Registry Interaction: It communicates with the ComfyUI node registry and model hosting APIs to fetch assets based on simple CLI commands.
  4. Process Management: The skill manages the server lifecycle, allowing for background execution and PID tracking for stable operation and easy termination.
  5. State Snapshotting: It captures the exact state of installed nodes and dependencies to allow for one-click restoration or environment cloning.

comfy-cli Setup

To begin using this tool with Openclaw Skills, install the CLI via uv and initialize your environment:

# Install the CLI tool
uv tool install comfy-cli

# Install ComfyUI with hardware-specific optimization (e.g., NVIDIA)
comfy install --nvidia

# Optional: Set your CivitAI token for gated models
# Edit config at ~/.config/comfy-cli/config.ini

comfy-cli Data Schema & Taxonomy

The skill organizes data around the concept of workspaces and snapshots to ensure environment isolation:

Component Format Purpose
Config File .ini Stores API tokens (CivitAI/HF) and default workspace paths.
Snapshots .json Captures the exact Git hashes of all installed custom nodes for reproducibility.
Workspaces Directory Contains the ComfyUI source, custom_nodes, and models folders.
PR Cache Directory Stores temporary builds for frontend pull requests being tested.

comfy-cli Advanced Features

  • Advanced node debugging with comfy node bisect to programmatically find breaking changes in custom nodes.
  • Support for headless workflow execution via the --workflow flag for integration into automated pipelines.
  • Seamless integration with ComfyUI-Manager to enable or disable GUI-based management features from the terminal.
  • Scaffold generation for developers looking to create and publish their own custom nodes to the registry.
  • Multi-workspace support allowing users to switch between different project environments using the --workspace or --recent flags.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*