### Clone and install ComfyUI-Copilot Source: https://github.com/ath-maas/comfyui-copilot/blob/main/assets/FAQ.md Recommended installation method: clone the repository into ComfyUI/custom_nodes and install requirements. Use the embedded Python on Windows. ```bash cd ComfyUI/custom_nodes git clone https://github.com/AIDC-AI/ComfyUI-Copilot.git cd ComfyUI-Copilot pip install -r requirements.txt ``` ```bash python_embedded\python.exe -m pip install -r requirements.txt ``` -------------------------------- ### Install ComfyUI-Copilot dependencies Source: https://github.com/ath-maas/comfyui-copilot/blob/main/README.md Navigate to the ComfyUI-Copilot directory and install its dependencies using pip 2. ```bash cd ComfyUI/custom_nodes/ComfyUI-Copilot ``` ```bash pip install -r requirements.txt ``` -------------------------------- ### Install dependencies on Windows Source: https://github.com/ath-maas/comfyui-copilot/blob/main/README.md Windows-specific command to install dependencies using the embedded Python executable. Use this if you are a Windows user. ```bash python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-Copilot\requirements.txt ``` -------------------------------- ### Clone ComfyUI-Copilot with SSH Source: https://github.com/ath-maas/comfyui-copilot/blob/main/README.md Clone the repository via SSH in the ComfyUI custom_nodes directory. This is the recommended installation method. ```bash cd ComfyUI/custom_nodes ``` ```bash git clone git@github.com:AIDC-AI/ComfyUI-Copilot.git ``` -------------------------------- ### Force reinstall requirements to fix dependency conflicts Source: https://github.com/ath-maas/comfyui-copilot/blob/main/assets/FAQ.md After editing requirements.txt to ensure openai>=1.5.0 and openai-agents>=0.3.0, reinstall with force to resolve conflicts. ```bash pip install --force-reinstall -r requirements.txt ``` -------------------------------- ### Run ComfyUI with sudo for Manager permissions Source: https://github.com/ath-maas/comfyui-copilot/blob/main/index.html Run ComfyUI with sudo to prevent permission errors when using ComfyUI Manager. ```bash sudo python main.py ``` -------------------------------- ### Clone ComfyUI-Copilot repository Source: https://github.com/ath-maas/comfyui-copilot/blob/main/index.html Clone the ComfyUI-Copilot repository into the ComfyUI custom_nodes directory. ```bash cd ComfyUI/custom_nodes git clone https://github.com/AIDC-AI/ComfyUI-Copilot ``` -------------------------------- ### Clone ComfyUI-Copilot with HTTPS Source: https://github.com/ath-maas/comfyui-copilot/blob/main/README.md Clone the repository via HTTPS in the ComfyUI custom_nodes directory. This is the alternative to the SSH method. ```bash cd ComfyUI/custom_nodes ``` ```bash git clone https://github.com/AIDC-AI/ComfyUI-Copilot ``` -------------------------------- ### Page interactivity and animations Source: https://github.com/ath-maas/comfyui-copilot/blob/main/index.html JavaScript for the documentation page: smooth scrolling, scroll animations, stagger delays, copy-to-clipboard for code blocks, badge hover effects, and parallax header background. ```javascript // Smooth scrolling for navigation links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); const target = document.querySelector(this.getAttribute('href')); if (target) { target.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }); }); // Animate elements on scroll const observerOptions = { threshold: 0.1, rootMargin: '0px 0px -50px 0px' }; const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('visible'); } }); }, observerOptions); // Observe all elements with animation class document.querySelectorAll('.animate-on-scroll').forEach(el => { observer.observe(el); }); // Add stagger animation delay to feature cards document.querySelectorAll('.feature-card').forEach((card, index) => { card.style.animationDelay = `${index * 0.1}s`; }); // Add stagger animation delay to step cards document.querySelectorAll('.step-card').forEach((card, index) => { card.style.animationDelay = `${index * 0.15}s`; }); // Copy code blocks on click document.querySelectorAll('.code-block').forEach(block => { block.style.cursor = 'pointer'; block.title = 'Click to copy'; block.addEventListener('click', async () => { try { await navigator.clipboard.writeText(block.textContent); // Visual feedback const originalBg = block.style.background; block.style.background = 'var(--accent-color)'; setTimeout(() => { block.style.background = originalBg; }, 200); } catch (err) { console.error('Failed to copy text: ', err); } }); }); // Add loading animation to badges document.querySelectorAll('.badge').forEach(badge => { badge.addEventListener('mouseenter', () => { badge.style.transform = 'translateY(-2px) scale(1.05)'; }); badge.addEventListener('mouseleave', () => { badge.style.transform = 'translateY(0) scale(1)'; }); }); // Parallax effect for header background window.addEventListener('scroll', () => { const scrolled = window.pageYOffset; const header = document.querySelector('.header::before'); if (header) { header.style.transform = `translateY(${scrolled * 0.5}px)`; } }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.