MCPcopy
hub / github.com/ATH-MaaS/ComfyUI-Copilot

github.com/ATH-MaaS/ComfyUI-Copilot @v2.0 sqlite

repository ↗ · DeepWiki ↗ · release v2.0 ↗
591 symbols 1,503 edges 128 files 116 documented · 20%
README

中文 | English

🎯 ComfyUI-Copilot: Your Intelligent Assistant for ComfyUI

版本 星标 Discord WeChat Follow on X Paper Python 许可证

👾 Alibaba International Digital Commerce 👾

https://github.com/user-attachments/assets/4b5806b8-dd34-4219-ac9f-6896115c5600

🌟 Introduction

ComfyUI-Copilot is an AIGC intelligent assistant built on ComfyUI that provides comprehensive support for tedious workflow building, ComfyUI-related questions, parameter optimization and iteration processes! It streamlines the debugging and deployment of AI algorithms, making creative workflows more efficient and effortless.

🎉 Major Update on 2025.08.14:Evolving into a Workflow Development Coworker

The newly released ComfyUI-Copilot v2.0 evolves from a "helper tool" into a "development partner"—not just assisting with workflow development, but capable of autonomously completing development tasks. We now cover the entire workflow lifecycle, including generation, debugging, rewriting, and parameter tuning, aiming to deliver a significantly enhanced creative experience. Key new features include:

  • 🔧 One-Click Debug::Automatically detects errors in your workflow, precisely identifies issues, and provides repair suggestions.

  • 🔄 Workflow Rewriting:Optimizes the current workflow based on your description, such as adjusting parameters, adding nodes, and improving logic.

  • 🚀 Enhanced Workflow Generation:Understands your requirements more accurately and generates tailored workflows, lowering the barrier to entry for beginners.

  • 🧠 Upgraded Agent Architecture:Now aware of your local ComfyUI environment, Copilot delivers optimized, personalized solutions.

Try the brand-new ComfyUI-Copilot v2.0 now and embark on an efficient creative journey!


🔥 Core Features (V2.0.0)

    1. 💎 Generate First Version Workflow: Based on your text description, we provide workflows that meet your needs, returning 3 high-quality workflows from our library and 1 AI-generated workflow. You can import them into ComfyUI with one click to start generating images.
  • Simply type in the input box: I want a workflow for xxx.

    1. 💎 Workflow Debug: Automatically analyze errors in workflows, help you fix parameter errors and workflow connection errors, and provide optimization suggestions.
  • Among the 4 workflows returned above, when you select one and click Accept, it will be imported into the ComfyUI canvas. At this time, you can click the Debug button to start debugging.
  • There is a Debug button in the upper right corner of the input box. Click it to directly debug the workflow on the current canvas.

    1. 💎 Unsatisfied with Previous Workflow Results?: Tell us what you're not satisfied with, and let us help you modify the workflow, add nodes, modify parameters, and optimize workflow structure.
  • Type in the input box: Help me add xxx to the current canvas.
  • Note: If the model is new after May 2025, such as wan2.2, it may cause the LLM to fail to understand and the process to interrupt.

    1. 💎 Parameter Tuning Too Painful?: We provide parameter tuning tools. You can set parameter ranges, and the system will automatically batch execute different parameter combinations and generate visual comparison results to help you quickly find the optimal parameter configuration.
  • Switch to the GenLab tab and follow the guidance. Note that the workflow must be able to run normally at this time to batch generate and evaluate parameters.

Want ComfyUI-Copilot to assist you in workflow development? - 5. 💎 Node Recommendations: Based on your description, recommend nodes you might need and provide recommendation reasons. - Type in the input box: I want a node for xxx.

    1. 💎 Node Query System: Select a node on the canvas, click the node query button to explore the node in depth, view its description, parameter definitions, usage tips, and downstream workflow recommendations.
  • Type in the input box: What's the usage, input and output of node xxx.

    1. 💎 Model Recommendations: Based on your text requirements, Copilot helps you find base models and 'lora'.
  • Type in the input box: I want a Lora that generates xxx images.

    1. 💎 Downstream Node Recommendations: After you select a node on the canvas, based on the existing nodes on your canvas, recommend downstream subgraphs you might need.

🚀 Getting Started

Repository Overview: Visit the GitHub Repository to access the complete codebase.

Installation

  1. Use git to install ComfyUI-Copilot in the ComfyUI custom_nodes directory:

bash cd ComfyUI/custom_nodes git clone git@github.com:AIDC-AI/ComfyUI-Copilot.git

or

bash cd ComfyUI/custom_nodes git clone https://github.com/AIDC-AI/ComfyUI-Copilot

  1. In the ComfyUI custom_nodes directory, find the ComfyUI-Copilot directory and install ComfyUI-Copilot dependencies

bash cd ComfyUI/custom_nodes/ComfyUI-Copilot pip install -r requirements.txt If you are a Windows user:

bash python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-Copilot\requirements.txt

  1. (To be supported later) Using ComfyUI Manager: Open ComfyUI Manager, click on Custom Nodes Manager, search for ComfyUI-Copilot, and click the install button.

Activation

After running the ComfyUI project, find the Copilot activation button on the left side of the panel to launch its service.

API Key Generation

Click the * button, enter your email address in the popup window, and the API Key will be automatically sent to your email address later. After receiving the API Key, paste it into the input box, click the save button, and you can activate Copilot.

Note

This project is continuously updated. Please update to the latest code to get new features. You can use git pull to get the latest code, or click "Update" in the ComfyUI Manager plugin.


🤝 Contributions

We welcome any form of contribution! Feel free to make issues, pull requests, or suggest new features.


📞 Contact Us

For any queries or suggestions, please feel free to contact: ComfyUI-Copilot@service.alibaba.com.

WeChat

Discord

📚 License

This project is licensed under the MIT License - see the LICENSE file for details.


Star History

Star History Chart

Extension points exported contracts — how you extend this code

ComfyExtension (Interface)
(no doc)
ui/src/types/comfy.d.ts
SortableItem (Interface)
(no doc)
ui/src/types/dbTypes.ts
Workflow (Interface)
(no doc)
ui/src/types/dbTypes.ts
TableBaseModel (Interface)
(no doc)
ui/src/types/dbTypes.ts
ModelManagerPosition (Interface)
(no doc)
ui/src/types/dbTypes.ts

Core symbols most depended-on inside this repo

error
called by 158
backend/utils/logger.py
get
called by 122
backend/utils/globals.py
info
called by 84
backend/utils/logger.py
updateState
called by 44
ui/src/components/debug/ParameterDebugInterfaceNew.tsx
generateUUID
called by 38
ui/src/utils/uuid.ts
set
called by 21
backend/utils/globals.py
warn
called by 16
backend/utils/logger.py
updateParamTestValues
called by 13
ui/src/components/debug/utils/interfaceUtils.ts

Shape

Function 397
Interface 94
Method 55
Class 32
Route 7
Enum 6

Languages

TypeScript79%
Python21%

Modules by API surface

ui/src/workflowChat/workflowChat.tsx41 symbols
ui/src/types/litegraph.d.ts33 symbols
ui/src/components/debug/ParameterDebugInterfaceNew.tsx33 symbols
ui/src/apis/workflowChatApi.ts18 symbols
backend/utils/comfy_gateway.py17 symbols
backend/utils/globals.py16 symbols
backend/service/database.py16 symbols
backend/controller/conversation_api.py16 symbols
ui/src/components/chat/MessageList.tsx15 symbols
ui/src/types/types.ts14 symbols
backend/utils/logger.py14 symbols
ui/src/utils/comfyuiWorkflowApi2Ui.ts10 symbols

Dependencies from manifests, versioned

@ant-design/v5-patch-for-react-191.0.3 · 1×
@comfyorg/comfyui-frontend-types1.25.4 · 1×
@heroicons/react2.2.0 · 1×
@tailwindcss/typography0.5.15 · 1×
@tanstack/react-virtual3.13.12 · 1×
@types/lodash4.17.15 · 1×
@types/node22.10.0 · 1×
@types/react19.1.0 · 1×
@types/react-dom19.1.0 · 1×
@types/uuid9.0.7 · 1×
@vitejs/plugin-react4.2.0 · 1×
ahooks3.9.0 · 1×

For agents

$ claude mcp add ComfyUI-Copilot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact