kossakovsky/selfhost-ai

β˜… 934β‘‚ 237

πŸš€ Self-hosted AI automation platform. Deploy n8n, Ollama, Flowise, RAG, Supabase & 30+ tools with one command. Auto HTTPS. Free Zapier/Make alternative.

About kossakovsky/selfhost-ai

kossakovsky/selfhost-ai is an open-source project on GitHub, mainly written in Shell. πŸš€ Self-hosted AI automation platform. Deploy n8n, Ollama, Flowise, RAG, Supabase & 30+ tools with one command. Auto HTTPS. Free Zapier/Make alternative. It currently holds 934 stars and 237 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Local & On-Device AI board.

GitHub Repository Details

Repository kossakovsky/selfhost-ai Β· default branch - Β· size 0 KB Β· watchers 0 Β· source: GitHub REST API and repository README

README

Selfhost AI β€” 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!

Table of Contents

Key Features

---

Why This Setup?

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

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

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.

βœ… n8n-MCP - A Model Context Protocol server that gives AI coding assistants (Claude Code, Cursor, Windsurf, VS Code Copilot) indexed access to every n8n node's documentation, property schemas and thousands of workflow templates - and, once you add an n8n API key, the ability to create and update workflows in your n8n instance straight from your IDE.

βœ… n8n Assistant sandbox - Code-execution sandbox for n8n's built-in AI Assistant and the Agents preview (n8n's own sandbox service, Docker-in-Docker isolated with Sysbox; internal only, see below).

βœ… ComfyUI - A powerful, node-based UI for Stable Diffusion workflows. Build and run image-generation pipelines visually, with support for custom nodes and extensions. Runs on NVIDIA, AMD or CPU (chosen in the wizard).

βœ… 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.

βœ… InvokeAI - A professional creative engine for Stable Diffusion with a polished web UI, node-based workflow editor, inpainting/outpainting, and a REST API. Choose NVIDIA, AMD, or CPU hardware during install; models and outputs are stored in ./invokeai on the host.

βœ… 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. Optionally expose its API externally through Caddy under OLLAMA_HOSTNAME, protected by a generated Bearer token. On multi-GPU hosts you can run several instances (OLLAMA_INSTANCE_COUNT) to dedicate a GPU per model.

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

βœ… Open Terminal - Execution sandbox for Open WebUI agents: a real Linux shell with a filesystem, package installs, local services and Jupyter, a separate Linux account per user (internal only, see below).

βœ… 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.

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?

Installation

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:

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.

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/selfhost-ai && cd selfhost-ai && sudo bash ./scripts/install.sh
    

This single command automates the entire setup process, including:

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!

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):

Optional Internal Utility: Python Runner

Open Terminal: execution sandbox for Open WebUI agents

Open WebUI can search, read and reason, and its built-in code interpreter runs a snippet of Python, but out of the box it cannot keep files around, install a dependency or start a local service. Open Terminal closes that loop: a Linux environment the chat drives, with a shell, a persistent home directory, apt/pip/npm installs at runtime, port proxying for local services and Jupyter kernels. Select Open Terminal in the wizard (open-terminal profile, requires open-webui). Nothing is published and there is no URL; Open WebUI talks to open-terminal:8000 over the internal network.

2. Explore n8n: 3. Utilize Integrated AI Tools: 4. Check Monitoring (Optional):

GitHub Stars & Activity

934Stars
237Forks
0Open issues
ShellLanguage

GitHub Popularity

GitHub stars934
Forks237
Open issues0
Primary languageShell
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

techjarves / Portable-AI-USB

Shellβ˜… 2,255β‘‚ 590
β†’
2

ollama / ollama

Goβ˜… 181,337β‘‚ 17,947
β†’
3

open-webui / open-webui

Pythonβ˜… 152,659β‘‚ 22,336
β†’
4

HKUDS / nanobot

Pythonβ˜… 48,435β‘‚ 8,555
β†’
5

chatchat-space / Langchain-Chatchat

Pythonβ˜… 38,654β‘‚ 6,265
β†’
6

Zackriya-Solutions / meetily

Rustβ˜… 30,978β‘‚ 3,365
β†’
7

mozilla-ai / llamafile

C++β˜… 26,010β‘‚ 1,600
β†’
8

dyad-sh / dyad

TypeScriptβ˜… 21,594β‘‚ 2,640
β†’

More AI Rankings