Back to N8n Workflows

šŸŽÆ AI Stack Cheat Sheet

ai-stack/CHEAT-SHEET.md

latest4.8 KB
Original Source

šŸŽÆ AI Stack Cheat Sheet

Print this page and keep it handy!


šŸš€ Starting & Stopping

Windows

powershell
# Start
.\start.ps1

# Stop
.\start.ps1 -Stop

# Check Status
.\start.ps1 -Status

# View Logs
.\start.ps1 -Logs

Mac/Linux

bash
# Start
./start.sh

# Stop
./start.sh --stop

# Check Status
./start.sh --status

# View Logs
./start.sh --logs

🌐 Service URLs

Copy these into your browser:

n8n:         http://localhost:5678
Agent Zero:  http://localhost:50080
ComfyUI:     http://localhost:8188

šŸ“‚ Important Folders

ai-stack/
ā”œā”€ā”€ data/n8n/              ← Your n8n workflows
ā”œā”€ā”€ data/agent-zero/       ← Agent Zero data
└── shared/
    └── comfyui/
        ā”œā”€ā”€ models/        ← Put AI models here
        ā”œā”€ā”€ output/        ← Generated images here
        └── input/         ← Input images here

šŸŽØ ComfyUI API Quick Reference

Queue an Image

bash
POST http://localhost:8188/prompt

Check Status

bash
GET http://localhost:8188/history/{prompt_id}

Get Image

bash
GET http://localhost:8188/view?filename={name}&type=output

⚔ Quick Commands

Docker Commands

bash
# See all running containers
docker ps

# Stop all containers
docker stop $(docker ps -q)

# Remove all containers
docker rm $(docker ps -aq)

# Clean up Docker
docker system prune -a

Check if Services are Running

bash
# Windows
curl http://localhost:5678/healthz
curl http://localhost:8188/system_stats

# Mac/Linux
curl http://localhost:5678/healthz
curl http://localhost:8188/system_stats

šŸ”§ Common Fixes

ProblemSolution
Docker not runningOpen Docker Desktop, wait for whale icon 🐳
Port in useRun stop command, then start again
Permission deniedWindows: Run as Admin
Mac: chmod +x start.sh
Can't connectWait 2 minutes, check Docker is running
Out of spaceDelete old files, run docker system prune -a

šŸ“ n8n Workflow Import

  1. Open http://localhost:5678
  2. Click "Workflows" in sidebar
  3. Click "Import from File"
  4. Select workflow JSON file
  5. Click "Save"
  6. Click "Active" toggle to enable

šŸŽØ Adding Models to ComfyUI

  1. Download model file (.safetensors or .ckpt)
  2. Put in correct folder:
    • Checkpoints: shared/comfyui/models/checkpoints/
    • LoRAs: shared/comfyui/models/loras/
    • VAE: shared/comfyui/models/vae/
  3. Restart ComfyUI (or refresh browser)

šŸ†˜ Emergency Reset

āš ļø This deletes everything and starts fresh!

Windows

powershell
.\start.ps1 -Stop
docker compose down -v
.\start.ps1

Mac/Linux

bash
./start.sh --stop
docker compose down -v
./start.sh

šŸ“Š System Check

Before starting, verify:

  • Docker Desktop installed
  • Docker Desktop running (whale icon visible)
  • At least 10 GB free disk space
  • Internet connection working
  • In the ai-stack folder

šŸŽ“ Learning Resources

n8n

ComfyUI

Agent Zero


šŸ’¾ Backup Your Work

Important Files to Backup

data/n8n/           ← Your workflows
shared/workflows/   ← Shared workflow files
.env                ← Your settings

Quick Backup (Copy these folders)

bash
# Windows
xcopy /E /I data backup\data
xcopy /E /I shared backup\shared

# Mac/Linux
cp -r data backup/data
cp -r shared backup/shared

šŸ” Security Reminders

  • āœ… Safe for local use (localhost only)
  • āŒ Don't expose to internet without security
  • āœ… Keep Docker Desktop updated
  • āŒ Don't share your .env file
  • āœ… Use strong passwords if enabling auth

šŸ“ž Help Resources

  1. QUICK-START.md - 3 simple steps
  2. EASY-INSTALL.md - Detailed guide
  3. TROUBLESHOOTING.md - Fix problems
  4. README.md - Full documentation
  5. SUMMARY.md - Overview & learning path

āœ… Success Indicators

You know it's working when:

  • āœ… Whale icon 🐳 visible in taskbar/menu
  • āœ… Terminal shows "šŸŽ‰ AI Stack is running!"
  • āœ… All three URLs open in browser
  • āœ… n8n shows welcome screen
  • āœ… ComfyUI shows node interface
  • āœ… Agent Zero shows chat interface

šŸŽ‰ You're all set! Happy automating!


Print this page and keep it near your computer for quick reference!