
Cli Anything Comfyui
- 394 installs
- 46.6k repo stars
- Updated August 3, 2026
- hkuds/cli-anything
cli-anything-comfyui is a Python CLI skill that controls ComfyUI image-generation workflow graphs via the ComfyUI REST API for developers and agents who need to queue renders, manage models, and download outputs without
About
cli-anything-comfyui is a command-line interface from the hkuds/cli-anything project for managing ComfyUI AI image-generation workflows through the ComfyUI REST API. Install it with pip install cli-anything-comfyui, then queue workflows, parameterize nodes, manage models, download generated images, and monitor the generation queue from terminal sessions or agent scripts. The skill follows the CLI-Anything pattern designed for AI agents and power users who automate Stable Diffusion and node-graph pipelines headlessly. Developers reach for cli-anything-comfyui when building agent pipelines that must trigger ComfyUI renders, poll queue status, and retrieve output files programmatically rather than operating the web UI manually.
- Workflow JSON execution
- Node parameter overrides
- Queue and poll renders
- Output asset retrieval
- Local ComfyUI server control
Cli Anything Comfyui by the numbers
- 394 all-time installs (skills.sh)
- +17 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #444 of 1,335 Generative Media skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/hkuds/cli-anything --skill cli-anything-comfyuiAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 394 |
|---|---|
| repo stars | ★ 46.6k |
| Last updated | August 3, 2026 |
| Repository | hkuds/cli-anything ↗ |
How do you control ComfyUI workflows from CLI?
Control ComfyUI workflow graphs from CLI so agents can parameterize nodes, queue renders, and fetch generated images programmatically.
Who is it for?
Developers automating ComfyUI Stable Diffusion pipelines who need headless workflow queuing and image retrieval for agent or CI scripts.
Skip if: Skip cli-anything-comfyui when you only need text-to-image via a hosted API like DALL-E without running a local ComfyUI server.
When should I use this skill?
Trigger cli-anything-comfyui when an agent must queue ComfyUI renders, swap model checkpoints, or poll the generation queue without opening the web UI.
What you get
Queued ComfyUI renders, parameterized workflow runs, downloaded image outputs, and monitored generation queue status from terminal commands.
- queued workflow runs
- downloaded generated images
- queue status reports
By the numbers
- Installable via pip install cli-anything-comfyui
- Wraps ComfyUI REST API for queue, model, and download operations
Files
cli-anything-comfyui
AI image generation workflow management via the ComfyUI REST API. Designed for AI agents and power users who need to queue workflows, manage models, download generated images, and monitor the generation queue without a GUI.
Installation
This CLI is installed as part of the cli-anything-comfyui package:
pip install cli-anything-comfyuiPrerequisites:
- Python 3.10+
- ComfyUI must be installed and running at http://localhost:8188
Usage
Basic Commands
# Show help
cli-anything-comfyui --help
# Start interactive REPL mode
cli-anything-comfyui repl
# Check server stats
cli-anything-comfyui system stats
# Run with JSON output (for agent consumption)
cli-anything-comfyui --json system statsREPL Mode
Start an interactive session for exploratory use:
cli-anything-comfyui repl
# Enter commands interactively with tab-completion and historyCommand Groups
Workflow
Workflow management commands.
| Command | Description |
|---|---|
list | List saved workflows |
load | Load a workflow from a JSON file |
validate | Validate a workflow JSON against the ComfyUI node graph |
Queue
Generation queue management.
| Command | Description |
|---|---|
prompt | Queue a workflow for execution |
status | Show current queue status (running and pending) |
clear | Clear the generation queue |
history | Show prompt execution history |
interrupt | Interrupt the currently running generation |
Models
Model discovery commands.
| Command | Description |
|---|---|
checkpoints | List available checkpoint models |
loras | List available LoRA models |
vaes | List available VAE models |
controlnets | List available ControlNet models |
node-info | Show detailed info for a specific node type |
list-nodes | List all available node types |
Images
Generated image management.
| Command | Description |
|---|---|
list | List generated images on the server |
download | Download a specific generated image |
download-all | Download all images from a prompt execution |
System
Server status and information.
| Command | Description |
|---|---|
stats | Show ComfyUI system statistics (GPU, CPU, memory) |
info | Show ComfyUI server info and extensions |
Examples
Check System Status
# Server stats
cli-anything-comfyui system stats
# Server info
cli-anything-comfyui system infoDiscover Available Models
# List checkpoints
cli-anything-comfyui models checkpoints
# List LoRAs
cli-anything-comfyui models loras
# List all node types
cli-anything-comfyui models list-nodesQueue and Monitor Generation
# Queue a workflow
cli-anything-comfyui queue prompt --workflow my_workflow.json
# Check queue status
cli-anything-comfyui queue status
# View execution history
cli-anything-comfyui --json queue historyDownload Generated Images
# List generated images
cli-anything-comfyui images list
# Download a specific image
cli-anything-comfyui images download --filename ComfyUI_00001_.png --output ./out.png
# Download all images from a prompt
cli-anything-comfyui images download-all --prompt-id <id> --output-dir ./outputsOutput Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-comfyui system stats
# JSON output for agents
cli-anything-comfyui --json system statsFor AI Agents
When using this CLI programmatically:
1. Always use `--json` flag for parseable output 2. Check return codes - 0 for success, non-zero for errors 3. Parse stderr for error messages on failure 4. Use absolute paths for all file operations 5. Verify ComfyUI is running with system stats before other commands
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.0
Related skills
How it compares
Pick cli-anything-comfyui over generic HTTP curl scripts when you need a structured CLI with queue monitoring and model management for ComfyUI workflows.
FAQ
How do you install cli-anything-comfyui?
cli-anything-comfyui installs via pip install cli-anything-comfyui from the hkuds/cli-anything package. It requires a running ComfyUI server exposing the REST API for queue, model, and download commands.
What can cli-anything-comfyui automate?
cli-anything-comfyui automates ComfyUI workflow queuing, node parameterization, model management, image download, and generation queue monitoring. Agents use it to run Stable Diffusion pipelines headlessly without the web GUI.