cli-anything-comfyui
Was er macht
Diese Fähigkeit lässt deinen Agenten KI-Bilderzeugung über ComfyUI auf der Kommandozeile ausführen. Sie ist für Menschen gedacht, die ComfyUI nutzen und Aufträge einreihen und Ergebnisse abholen möchten, ohne die App zu öffnen.
Wann du ihn nutzt
- ✓Wenn du einen KI-Bild-Workflow in ComfyUI einreihen möchtest.
- ✓Wenn du den Fortschritt von Bilderzeugungs-Aufträgen prüfen möchtest.
- ✓Wenn du erzeugte Bilder aus ComfyUI herunterladen möchtest.
Link zum Skill
https://github.com/HKUDS/CLI-Anything/blob/main/comfyui/agent-harness/cli_anything/comfyui/skills/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Reihe meinen Porträt-Workflow in ComfyUI ein und lade die Bilder herunter, sobald sie fertig sind.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die Fähigkeit schickt deinen Workflow über die REST-API an den ComfyUI-Server. Sie kann die Warteschlange überwachen, Modelle verwalten und die fertigen Bilder herunterladen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
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-comfyui
Prerequisites:
- 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 stats
REPL Mode
Start an interactive session for exploratory use:
cli-anything-comfyui repl
# Enter commands interactively with tab-completion and history
Command 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 info
Discover 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-nodes
Queue 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 history
Download 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 ./outputs
Output 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 stats
For AI Agents
When using this CLI programmatically:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for all file operations
- Verify ComfyUI is running with
system statsbefore 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
Häufige Fragen
Muss ComfyUI laufen?
Ja, ComfyUI muss installiert sein und auf localhost Port 8188 laufen.
Kann sie Modelle verwalten?
Ja, die Fähigkeit kann die KI-Modelle verwalten, die ComfyUI nutzt.
Gibt es eine grafische Oberfläche?
Nein, die Fähigkeit arbeitet auf der Kommandozeile, auch wenn sie einen REPL-Modus für die interaktive Nutzung hat.
Details
Originalbeschreibung des Autors
Command-line interface for ComfyUI - AI image generation workflow management via 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.
repo: HKUDS/CLI-Anything
Beliebtheit
- GitHub-Sterne
- 58k
- Platz im Ranking
- #3198
- Lizenz
- Apache-2.0
- Aktualisiert
- 21.9.2026
Kommentare
- …
Weitere Skills aus diesem Repository
cli-anything-3mf
58kLässt deinen Agenten 3D-Druckdateien prüfen und korrigieren, einschließlich Runder Löcher finden, sie in der Größe anpassen, Netze reparieren und zwei Dateien vergleichen.
cli-anything-qgis
58kLässt deinen Agenten QGIS-Kartenprojekte im Terminal öffnen, bearbeiten und exportieren, einschließlich Ebenen, Objekten, Druck-Layouts und Verarbeitungswerkzeugen.
cli-anything-adguardhome
58kLässt deinen Agenten AdGuard Home verwalten, einen netzwerkweiten Werbeblocker, einschließlich Filtern, DNS-Umschreibungen, Clients und Abfrageprotokollen.
cli-anything-anygen
58kLässt deinen Agenten Folien, Dokumente, Websites und Diagramme aus einem geschriebenen Auftrag mit dem Dienst AnyGen erzeugen.
Ähnliche Skills
gifgrep
394kLässt deinen Agenten GIF-Bibliotheken durchsuchen, Ergebnisse vorab ansehen, ein GIF herunterladen und ein Einzelbild oder ein Kontaktblatt mit Bildern herausziehen.
meme-maker
394kLässt deinen Agenten eine Vorlage für ein Meme auswählen, eigene Beschriftungen hinzufügen und das Meme als SVG- oder PNG-Bild erstellen.
ios-icon-gen
280kHilft deinem Agenten, Icons für iOS-Apps zu erstellen. Er nutzt Apple-Symbole oder Icons aus anderen Quellen und erzeugt die richtigen Dateien.