runcomfy-cli
Run Any AI Model from the Command Line with RunComfy CLI
Also available from: doany-ai,agentspace-so
Developers and creators need a single, scriptable interface for hundreds of AI image and video models. The RunComfy CLI provides one binary with one authentication to access every RunComfy model endpoint, from image generation to video editing and LoRA training.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "runcomfy-cli". Install the runcomfy CLI on my machine
Expected outcome:
I will install the runcomfy CLI globally via npm. The CLI is now installed and ready to use. Run 'runcomfy login' to authenticate with your RunComfy account.
Using "runcomfy-cli". Generate an image of a purple cat at sunset
Expected outcome:
I will use the runcomfy CLI to generate that image. The request has been submitted and is now processing. Your image has been generated and saved to ./result.png in the current directory.
Using "runcomfy-cli". Check my runcomfy authentication status
Expected outcome:
Let me verify your authentication. You are signed in as you@example.com with a CLI token. Your account is ready to submit model requests.
Security Audit
Low RiskStatic analyzer detected 174 patterns across 1 file (272 lines) with an automated risk score of 100/100, suggesting NEEDS_AI review. After human evaluation, ALL 174 findings are confirmed FALSE POSITIVES. The flagged patterns are markdown code formatting backticks misidentified as shell execution, legitimate API and documentation URLs misidentified as suspicious network targets, documented token storage paths misidentified as hidden file access, and CLI subcommand names misidentified as system reconnaissance. The skill uses external_commands, network, and filesystem by design as a CLI wrapper for an AI model service. The SKILL.md includes a comprehensive Security and Privacy section with explicit warnings about installation safety, token protection, shell injection boundaries, indirect prompt injection, outbound endpoint allowlisting, and file size caps. Risk level set to LOW because the skill legitimately invokes external commands and makes network requests in its intended operation.
Low Risk Issues (5)
Risk Factors
⚙️ External commands (17)
🌐 Network access (12)
📁 Filesystem access (3)
Detected Patterns
Quality Score
What You Can Build
Generate AI Images and Videos on Demand
Creative professionals can generate, edit, and transform images and videos using AI models directly from the terminal without opening a browser or separate application.
Automate Batch Media Generation Pipelines
DevOps engineers can script batch processing of hundreds of prompts through shell loops, JSON parsing, and exit code handling for reliable production workflows.
Integrate AI Models into Development Workflows
AI developers can embed model calls into larger applications using JSON output mode, no-wait submission, and status polling for asynchronous job orchestration.
Try These Prompts
Install the runcomfy CLI globally using npm and verify the installation by checking the version.
Use runcomfy to generate an image with the prompt 'a serene mountain lake at sunrise, photorealistic' using the GPT Image 2 model.
Read prompts from prompts.txt and generate one image per prompt using runcomfy, saving each output to a timestamped directory under ./output/.
Submit a video generation job with no-wait mode using runcomfy, capture the request ID, then poll the status periodically and download the result when it completes.
Best Practices
- Always verify the CLI is installed and authenticated before running any model commands to avoid confusing error messages
- Use --output json mode when scripting or piping results to jq for reliable programmatic parsing of response data
- Set an explicit --timeout value for video generation and other long-running jobs to prevent indefinite waiting
Avoid
- Never pipe remote install scripts into a shell without the user reviewing them first, even if they appear in official documentation
- Never log or echo API tokens into prompts, command output, or files that could be committed to version control
- Do not automatically resolve or use URLs the user did not explicitly provide for image reference or web search generation tasks