能力标签
🛠
AI工具

n8n AI工作流自动化

基于 Shell · 开源免费,本地部署,数据完全自主可控
英文名:n8n-install
⭐ 856 Stars 🍴 225 Forks 💻 Shell 📄 Apache-2.0 🏷 AI 8.2分
8.2AI 综合评分
工作流自动化本地部署AI智能体开源平台
✦ AI Skill Hub 推荐

n8n AI工作流自动化 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析
n8n AI工作流自动化 是一款基于 Shell 的开源工具,在 GitHub 上收获 1k+ Star,是工作流自动化、本地部署、AI智能体、开源平台领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
n8n AI工作流自动化 依赖 Shell 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Shell 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 n8n AI工作流自动化 的版本更新,及时通知重要功能变化。
📋 工具概览

n8n AI工作流自动化 是一款基于 Shell 开发的开源工具,专注于 工作流自动化、本地部署、AI智能体 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 856
开发语言
Shell
支持平台
macOS / Linux
维护状态
正常维护,社区驱动
开源协议
Apache-2.0
AI 综合评分
8.2 分
工具类型
AI工具
Forks
225
📖 中文文档
以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

n8n AI工作流自动化 是一款基于 Shell 开发的开源工具,专注于 工作流自动化、本地部署、AI智能体 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 克隆仓库
git clone https://github.com/kossakovsky/n8n-install
cd n8n-install

# 查看安装说明
cat README.md

# 按 README 完成环境依赖安装后即可使用
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
n8n-install --help

# 基本运行
n8n-install [options] <input>

# 详细使用说明请查阅文档
# https://github.com/kossakovsky/n8n-install
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# n8n-install 配置说明
# 查看配置选项
n8n-install --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export N8N_INSTALL_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 78/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Self-Hosted AI Automation Platform

GitHub stars License Docker Ubuntu n8n

Deploy 30+ AI and automation tools with a single command. This open-source Docker Compose template creates a complete self-hosted environment with n8n (workflow automation), Flowise (AI agents), Ollama (local LLMs), vector databases (Qdrant, Weaviate), RAG engines, Supabase, monitoring stack, and more — all pre-configured behind Caddy reverse proxy with automatic HTTPS. Plus, optionally import 300+ community workflows during setup!

Key Features

  • Private AI Homelab — Run LLMs locally with Ollama, keep your data on your own servers
  • ChatGPT Alternative — Open WebUI provides a familiar chat interface for local AI models
  • Workflow Automation — n8n with 400+ integrations, scalable queue-based architecture
  • AI Agents & RAG — Flowise, Dify, LangChain, vector databases (Qdrant, Weaviate)
  • One Command Install — Interactive wizard, automatic secrets, zero manual configuration
  • Auto HTTPS — Caddy reverse proxy with automatic Let's Encrypt certificates
  • Built-in Monitoring — Grafana + Prometheus stack included
  • Production Ready — Scalable workers, health checks, proper service dependencies
  • Free & Open Source — No vendor lock-in, Apache 2.0 license

---

What's Included

Caddy, Postgres, and Redis - Core services for web proxy, database, and caching, which are always included.

The installer also makes the following powerful open-source tools available for you to select and deploy via an interactive wizard during setup:

Appsmith - An open-source low-code platform for building internal tools, dashboards, and admin panels with a drag-and-drop UI builder.

n8n - A low-code platform with over 400 integrations and advanced AI components to automate workflows.

ComfyUI - A powerful, node-based UI for Stable Diffusion workflows. Build and run image-generation pipelines visually, with support for custom nodes and extensions.

Crawl4ai - A flexible web crawler designed for AI, enabling you to extract data from websites for your projects.

Docling - Universal document converter that transforms PDF, DOCX, PPTX, XLSX, HTML, and images into clean Markdown or JSON. Features advanced PDF parsing, OCR support, and a REST API with optional web UI. Perfect for document processing in n8n workflows.

Dify - An open-source AI application development platform that provides comprehensive LLMOps capabilities, including workflow management, prompt engineering, RAG pipelines, and AI agent orchestration. Perfect for building production-ready AI applications.

Flowise - A no-code/low-code AI agent builder that complements n8n perfectly, allowing you to create sophisticated AI applications with ease.

Gost - Versatile HTTP/HTTPS proxy for routing AI service outbound traffic through a central proxy point

Gotenberg - A stateless API for converting HTML, Markdown, Word, Excel, and other documents to PDF, PNG, or JPEG. Available only within the Docker network for internal use by n8n workflows and other services.

Grafana - An open-source platform for visualizing monitoring data, helping you understand system performance at a glance.

Langfuse - An open-source platform to help you observe and understand how your AI agents are performing, making it easier to debug and improve them.

Letta - An open-source agent server and SDK that can be connected to various LLM API backends (OpenAI, Anthropic, Ollama, etc.), enabling you to build and manage AI agents.

LightRAG - A simple and fast graph-based Retrieval-Augmented Generation system with automatic knowledge graph extraction, dual-level retrieval mechanisms, and incremental updates. Supports multiple storage backends (PostgreSQL, Neo4j, JSON) and embedding models.

LibreTranslate - Self-hosted translation API (50+ languages).

Neo4j - A graph database management system that allows you to model, store, and query data as a network of nodes and relationships.

NocoDB - An open source Airtable alternative that turns any database into a smart spreadsheet with a no-code interface for building collaborative apps.

Ollama - Run Llama 3, Mistral, Gemma, and other large language models locally.

Open WebUI - A user-friendly, ChatGPT-like interface to interact privately with your AI models and n8n agents.

PaddleOCR - A CPU-ready OCR API powered by PaddleX Basic Serving.

Portainer - A lightweight, secure web UI to manage your Docker environment (containers, images, volumes, networks) with ease.

Databasus - Database backups & monitoring with a self-hosted UI.

Postiz - An open-source social media scheduling and publishing platform.

Prometheus - An open-source monitoring and alerting toolkit to keep an eye on system health.

Qdrant - A high-performance open-source vector store, specialized for AI. While Supabase also offers vector capabilities, Qdrant is included for its speed, making it ideal for demanding AI tasks.

RAGApp - Open-source application to build Retrieval-Augmented Generation (RAG) assistants over your data. Provides a web UI for chat and an HTTP API for integration with your workflows.

RAGFlow - An open-source RAG engine based on deep document understanding with Elasticsearch backend, providing truthful question-answering capabilities with well-founded citations from complex formatted data.

SearXNG - A free, open-source internet metasearch engine. It aggregates results from numerous search services without tracking or profiling you, ensuring your privacy.

Supabase - An open-source alternative to Firebase, providing database storage, user authentication, and more. It's a popular choice for AI applications.

Uptime Kuma - Self-hosted uptime monitoring tool with notifications

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! 3 engines: WEBJS (browser based), NOWEB (websocket nodejs), GOWS (websocket go).

Weaviate - An open-source AI-native vector database with a focus on scalability and ease of use. It can be used for RAG, hybrid search, and more.

Prerequisites before Installation

1. Domain Name: You need a registered domain name (e.g., yourdomain.com). 2. DNS Configuration: Before running the installation script, you must configure DNS A-record for your domain, pointing to the public IP address of the server where you'll install this system. Replace yourdomain.com with your actual domain: - Wildcard Record: A *.yourdomain.com -> YOUR_SERVER_IP 3. VPS (Virtual Private Server): A dedicated VPS with a public IP address is required. Home servers, shared hosting, or localhost setups are not supported. - Operating System: Ubuntu 24.04 LTS, 64-bit - For a minimal setup with n8n, Monitoring, Databasus and Portainer: 4 GB Memory / 2 CPU Cores / 40 GB Disk Space - For running all available services: at least 20 GB Memory / 4 CPU Cores / 60 GB Disk Space

Why This Setup?

This installer helps you create your own powerful, private AI workshop. Imagine having a suite of tools at your fingertips to:

  • Automate repetitive tasks.
  • Build smart assistants tailored to your needs.
  • Analyze information and gain insights.
  • Generate creative content.

This setup provides a comprehensive suite of cutting-edge services, all pre-configured to work together. Key advantages include:

  • Rich Toolset: Get a curated collection of powerful open-source tools for AI development, automation, and monitoring, all in one place.
  • Scalable n8n Performance: n8n runs in queue mode by default, leveraging Redis for task management and Postgres for data storage. You can dynamically specify the number of n8n workers and task runners during installation, allowing for robust parallel processing of your workflows to handle demanding loads.
  • Full Control: All of this is hosted by you, giving you full control over your data, operations, and how resources are allocated.

Installation

Running the Install

The recommended way to install is using the provided main installation script.

  1. Connect to your server via SSH.
  2. Run the following command:
    git clone https://github.com/kossakovsky/n8n-install && cd n8n-install && sudo bash ./scripts/install.sh
    

This single command automates the entire setup process, including:

  • Preparing your system (updates, firewall configuration, and basic security enhancements like brute-force protection).
  • Installing Docker and Docker Compose (tools for running applications in isolated environments).
  • Generating a configuration file (.env) with necessary secrets and your domain settings.
  • Launching all the services.

During the installation, the script will prompt you for:

  1. Your primary domain name (Required, e.g., yourdomain.com). This is the domain for which you've configured the wildcard DNS record.
  2. Your email address (Required, used for service logins like Flowise, Supabase dashboard, Grafana, and for SSL certificate registration with Let's Encrypt).
  3. An optional OpenAI API key (Not required. If provided, it can be used by Supabase AI features and Crawl4ai. Press Enter to skip).
  4. Whether you want to import ~300 ready-made n8n community workflows (y/n, Optional. This can take 20-30 minutes, depending on your server and network speed).
  5. The number of n8n workers you want to run (Required, e.g., 1, 2, 3, 4. This determines how many workflows can be processed in parallel. Each worker automatically gets its own dedicated task runner sidecar for executing Code nodes. Defaults to 1 if not specified).
  6. A Service Selection Wizard will then appear, allowing you to choose which of the available services (like Flowise, Supabase, Qdrant, Open WebUI, etc.) you want to deploy. Core services (Caddy, Postgres, Redis) will be set up to support your selections.

Upon successful completion, the script will display a summary report. This report contains the access URLs and credentials for the deployed services. Save this information in a safe place!

Setup Instructions

See the Cloudflare Tunnel guide: cloudflare-instructions.md

Pre-installed System Tools in n8n

The custom n8n Docker image (n8n/Dockerfile.n8n) includes the following system-level tools:

  • ffmpeg: A powerful multimedia framework for converting, recording, and streaming audio and video. Use it via the Execute Command node in n8n workflows for tasks like:
  • Converting video/audio formats (e.g., MP4 to MP3)
  • Extracting audio from video files
  • Resizing or compressing media files
  • Generating thumbnails from videos

Cleaning up Docker

If you need to free up disk space, you can run the Docker cleanup command. This removes all unused Docker containers, images, and volumes.

make clean

This can be useful for removing old images and freeing up space, but be aware that it will remove all unused data.

Installation & Updates

CommandDescription
make installFull installation
make updateUpdate system and services (resets to origin)
make update-previewPreview available updates without applying (dry-run)
make git-pullUpdate for forks (merges from upstream/main)
make cleanRemove unused Docker resources

Quick Start and Usage

After successful installation, your services are up and running! Here's how to get started:

1. Access Your Services: The installation script provided a summary report with all access URLs and credentials. Please refer to that report. The main services will be available at the following addresses (replace yourdomain.com with your actual domain):

  • n8n: n8n.yourdomain.com (Log in with the email address you provided during installation and the initial password from the summary report. You may be prompted to change this password on first login.)
  • Appsmith: appsmith.yourdomain.com (Low-code app builder)
  • ComfyUI: comfyui.yourdomain.com (Node-based Stable Diffusion UI)
  • Databasus: databasus.yourdomain.com
  • Dify: dify.yourdomain.com (AI application development platform with comprehensive LLMOps capabilities)
  • Docling: docling.yourdomain.com (Universal document converter with REST API; web UI available at /ui)
  • Flowise: flowise.yourdomain.com (Log in with the email address you provided during installation and the initial password from the summary report.)
  • Grafana: grafana.yourdomain.com
  • Langfuse: langfuse.yourdomain.com
  • Letta: letta.yourdomain.com
  • LibreTranslate: translate.yourdomain.com
  • LightRAG: lightrag.yourdomain.com
  • Neo4j: neo4j.yourdomain.com
  • NocoDB: nocodb.yourdomain.com
  • Open WebUI: webui.yourdomain.com
  • PaddleOCR: paddleocr.yourdomain.com
  • Portainer: portainer.yourdomain.com (Protected by Caddy basic auth; on first login, complete Portainer admin setup)
  • Postiz: postiz.yourdomain.com
  • Prometheus: prometheus.yourdomain.com (Typically used as a data source for Grafana)
  • Qdrant: qdrant.yourdomain.com
  • RAGApp: ragapp.yourdomain.com
  • RAGFlow: ragflow.yourdomain.com
  • SearXNG: searxng.yourdomain.com
  • Supabase (Dashboard): supabase.yourdomain.com
  • Uptime Kuma: uptime-kuma.yourdomain.com (Uptime monitoring dashboard)
  • WAHA: waha.yourdomain.com (WhatsApp HTTP API; engines: WEBJS, NOWEB, GOWS)
  • Weaviate: weaviate.yourdomain.com

AI Templates (Examples from n8n.io)

Optional Internal Utility: Python Runner

  • What it is: An internal-only service to run your custom Python code inside the same Docker network as your other services (n8n, Postgres, Qdrant, etc.). No external ports are exposed, and it is not proxied by Caddy.
  • How to enable: Select “Python Runner” in the Service Selection Wizard during install/update, or add the profile manually: COMPOSE_PROFILES=...,python-runner.
  • Where to put code: Place your Python files in python-runner/. The default entry point is python-runner/main.py.
  • Dependencies: Add them to python-runner/requirements.txt; they will be installed automatically on container start.
  1. Explore n8n:
  • Log in to your n8n instance. This is your central hub for workflow automation.
  • If you chose to import the community workflows during installation, you'll find over 300 examples in your "Workflows" section. These are a great way to learn and get ideas.
  • Start building your first workflow! You have access to over 400 integrations and powerful AI tools.
  1. Utilize Integrated AI Tools:
  • Connect n8n with Vector Stores: Use n8n to connect to Qdrant (accessible via its own endpoint if needed, typically qdrant.yourdomain.com), Supabase, or Weaviate (weaviate.yourdomain.com) to store and retrieve information for your AI tasks like Retrieval Augmented Generation (RAG).
  • Build with Flowise: Access Flowise at flowise.yourdomain.com to create AI agents and applications. You can trigger Flowise agents from n8n or vice-versa.
  • Interact with Open WebUI: Use Open WebUI at webui.yourdomain.com as a chat interface for your local AI models or n8n agents (e.g., using the n8n_pipe integration if configured).
  • Configure LLMs: If you wish to use large language models (LLMs) from providers like OpenAI, Anthropic, or locally via Ollama (if installed), you can easily configure credentials and connections within n8n nodes or in services like Flowise and Open WebUI.

4. Check Monitoring (Optional): - Visit Grafana (grafana.yourdomain.com) to see dashboards monitoring your system's performance (data sourced from Prometheus).

Secure Access with Cloudflare Tunnel (Optional)

Cloudflare Tunnel provides zero-trust access to your services without exposing any ports on your server. All traffic is routed through Cloudflare's secure network, providing DDoS protection and hiding your server's IP address.

Diagnostics & Configuration

CommandDescription
make doctorRun system diagnostics (checks DNS, SSL, containers, disk, memory)
make setup-tlsConfigure custom TLS certificates for corporate/internal use

Run make help for the full list of available commands.

Included Community Workflows

Get started quickly with a vast library of pre-built automations (optional import during setup)! This collection includes over 300 workflows covering a wide range of use cases:

🚦 What's inside?

  • AI Agents & Chatbots: RAG, LLM, LangChain, Ollama, OpenAI, Claude, Gemini, and more
  • Gmail & Outlook: Smart labeling, auto-replies, PDF handling, and email-to-Notion
  • HR, E-commerce, IT, Security, Research, and more!
  • Notion, Airtable, Google Sheets: Data sync, AI summaries, knowledge bases
  • PDF, Image, Audio, Video: Extraction, summarization, captioning, speech-to-text
  • Slack, Mattermost: Ticketing, feedback analysis, notifications
  • Social Media: LinkedIn, Pinterest, Instagram, Twitter/X, YouTube, TikTok automations
  • Telegram, WhatsApp, Discord: Bots, notifications, voice, and image workflows
  • WordPress, WooCommerce: AI content, chatbots, auto-tagging

Troubleshooting

Here are solutions to common issues you might encounter:

🎯 aiskill88 AI 点评 A 级 2026-05-21

优质的AI自动化部署方案,集成度高、组件丰富。活跃维护确保兼容性。适合寻求私有化AI工作流的用户。

📚 实用指南(长尾问题)
适合谁
  • 需要 n8n-install 解决具体问题的开发者与运营人员
最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
n8n-install 中文教程n8n-install 安装报错怎么办n8n-install 与同类工具对比n8n-install 最佳实践n8n-install 适合谁用
⚡ 核心功能
👥 适合谁
  • 需要 n8n-install 解决具体问题的开发者与运营人员
⭐ 最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
👥 适合人群
AI 技术爱好者研究人员和学生开发者和工程师技术创业者
🎯 使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
⚖️ 优点与不足
✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐
📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合
❓ 常见问题 FAQ
通过Ollama支持本地开源模型如Llama、Mistral等,也可集成OpenAI等云端模型。
💡 AI Skill Hub 点评

经综合评估,n8n AI工作流自动化 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 n8n AI工作流自动化
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 n8n-install
原始描述 开源n8n工作流:🚀 Self-hosted AI automation platform. Deploy n8n, Ollama, Flowise, RAG, Supabas。⭐856 · Shell
Topics 工作流自动化本地部署AI智能体开源平台
GitHub https://github.com/kossakovsky/n8n-install
License Apache-2.0
语言 Shell
🔗 原始来源
🐙 GitHub 仓库  https://github.com/kossakovsky/n8n-install 🌐 官方网站  https://github.com/kossakovsky/n8n-install#readme

收录时间:2026-05-13 · 更新时间:2026-05-16 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。