Skip to main content
Install the CLI, sign in, and generate your first image — three commands.

1. Install

The fastest path is npx, which downloads and runs the CLI without a global install:
For repeat use, install globally or use the curl installer — see Install for all four options.

2. Sign in

This prints a verification code in your terminal and opens https://www.runcomfy.com/cli-auth in your browser. Type or paste the code from the terminal into the page, then click Authorize. The CLI saves a token to ~/.config/runcomfy/token.json (mode 0600). If you already have an API token from your Profile, set RUNCOMFY_TOKEN=<token> and skip runcomfy login entirely. See Authentication for the full flow. Verify:

3. Generate an image

What you’ll see:
The result file is in your current directory. Override with --output-dir ./out or skip downloading with --no-download.

What’s next

  • Browse models at runcomfy.com/models — every model page shows its model_id and Input schema.
  • See runcomfy run for --input-file, --no-wait, and --output-dir.
  • Pipe-friendly mode: runcomfy --output json run ... --no-wait | jq -r .request_id returns just the id for scripting.