ComfyCLI

Drive ComfyUI from your terminal. Or your agent's.

One CLI for the whole engine: generate images, video, audio, and 3D, run real workflow graphs, and pipe every output where you need it. Built for coding agents, CI jobs, and anyone with a terminal.

Create images and videos with Claude Code.

Bring ComfyUI workflows and creative models into the tools you already use. Run on Comfy Cloud or your own machine.

pip install comfy-cli

Python CLI · Cloud or Local · Agent skills included

FROM PROMPT TO OUTPUT

A creative session, from your terminal.

Session transcript: comfy generate renders a cat and saves cat.png. comfy templates fetch retrieves image_z_image_turbo as zimage.json. comfy workflow set-slot changes the prompt to a lighthouse at dusk. comfy run submits that workflow to Cloud and comfy download saves f5308bc5_000.png. The animation ends with both saved images.
AGENT SKILLS

Skills your agent already knows.

One command installs five bundled skills that teach Claude Code, Cursor, and any AGENTS.md-aware tool the whole CLI. Below are six production briefs. Every prompt is ready to paste.

comfy skills install

Illustrative examples

Batch pack shots

Run our pack-shot workflow for every SKU in ./skus.csv, 4 angles each, route it to cloud, and download everything to ./shots.

comfy-fragments
Batch pack shots

Keyframe boards

Board a 30-second spot from BRIEF.md: 8 keyframes, consistent hero character, 16:9, contact sheet at the end.

comfy-director
Keyframe boards

Character sheets

Load our saved character workflow and generate a 4-view turnaround for each hero in ./characters.

comfy
Character sheets

Set extension

Extend this plate to a 21:9 crop, matte-painting style. Keep the horizon line and the light direction.

comfy
Set extension

3D hero props

Build a 3D hero prop from sketch.png, game-ready, and hand me the .glb.

comfy
3D hero props

Campaign key art

Match frame_04.png's palette and produce campaign key art in 1:1, 4:5, and 16:9.

comfy
Campaign key art
AI MODELS

Run the world’s leading AI models

New models are added as they launch.

EXPLORE WORKFLOWS
THE AGENT CONTRACT

Built for agents, not adapted for them.

The contract lives in the CLI itself. No wrapper, no guesswork.

--json

Structured output

Every command accepts --json and returns one envelope shape: ok, data, error, and a hint your agent can act on. Pipe it into anything that reads JSON.

comfy --json discover

Self-describing

One call dumps the entire command tree, output schemas, and error codes. Your agent reads the contract instead of guessing flags.

comfy run --workflow

Real workflow graphs

Not one-shot endpoints. A run is a workflow JSON your agent can edit, validate, rerun, and hand to a teammate. It's the same graph that opens on the ComfyUI canvas.

Why build on Comfy CLI?

The terminal counterpart to Comfy MCP: the same engine and the same account, scripted.

Open source, end to end.

comfy-cli is open source, and so is the engine it drives. Install from PyPI, read the source when you need to, and never build on a black box.

The full engine, not a sandbox.

Multi-step workflow graphs, thousands of community nodes, and partner models through the same commands. A creation engine, not a menu of hosted endpoints.

Reproducible by design.

A run is a workflow file plus a seed. Check it into git, diff it in review, replay it in CI, and get the same output every time.

Your GPUs, or ours.

Every command auto-detects where to run: signed in, jobs route to Comfy Cloud GPUs; otherwise they hit the ComfyUI on your machine. Override per call with --where.

Works alongside MCP.

Set up Comfy MCP

One account, two surfaces. Chat through Comfy MCP, script through the CLI, and let your agent pick the right one per task. Cloud outputs land in the same asset library either way.

How it works

01

INSTALL

pip install comfy-cli, then comfy setup. Sign in with OAuth for cloud GPUs, and comfy skills install teaches your agent the rest.

02

DISCOVER

comfy --json discover hands your agent the full command tree; templates, models, and nodes are one search away.

03

CREATE

Queue a run, wait on the job, download the outputs. Or pipe all three into a single line.

Products

The AI creation engine for complete control

Over every model, every node, every step, every output.

Q&As