selfhost-ai

Ochiq manbalardan

selfhost-ai — n8n, Ollama va Open WebUI kabi 30 dan ortiq ochiq AI va avtomatlashtirish vositalarini o‘z serveringizga bitta buyruq bilan o‘rnatuvchi Docker Compose dasturi.

AI vositaKategoriya: AI vositalariOpen sourcemaʼlumot tekshirilgan: 15-okt, 2026

Sharh

Ko‘plab jamoalarga ma’lumotlarini uchinchi tomon bulutlariga yubormasdan AI chat, ish jarayonlarini avtomatlashtirish va mahalliy LLM lar kerak, ammo o‘nlab o‘z-o‘zidan joylashtiriladigan xizmatlarni qo‘lda sozlash kunlarni oladi. selfhost-ai buni interaktiv yordamchi orqali hal qiladi: u Ubuntu 24.04 ishlaydigan VPS ga stekni o‘rnatadi, barcha maxfiy kalitlarni yaratadi va har bir xizmatni avtomatik HTTPS bilan Caddy ortiga joylashtiradi. Katalogga n8n ish jarayonlarini avtomatlashtirish, CPU yoki NVIDIA va AMD GPU larda LLM ishga tushirish uchun Ollama, Open WebUI chat interfeysi, Dify va Flowise kabi AI agentlar yaratish vositalari, RAG dvigatellari va Qdrant hamda Weaviate kabi vektor ma’lumotlar bazalari, shuningdek Supabase, ComfyUI va Grafana monitoringi kiradi. Ichki sog‘liqni tekshirish, diagnostika buyrug‘i va sozlamalaringizni saqlaydigan yangilash buyruqlari stekni boshqarishni osonlashtiradi. Bu loyiha ChatGPT, Zapier yoki Make ga shaxsiy muqobil izlayotgan dasturchilar va uy serverlari administratorlari uchun mos. U Apache 2.0 litsenziyasi ostida tarqatiladi va o‘z serveringizda Docker Compose orqali joylashtiriladi.
  • ai-agents
  • ai-automation
  • awesome-list
  • comfyui
  • dify
  • docker-compose
  • flowise
  • homelab
  • llm
  • local-llm
  • mcp
  • self-hosted

Oʻrnatish

Buyruqlar faqat koʻrsatiladi, marketpleys ularni bajarmaydi. Rasmiy hujjatlar bilan solishtiring.

Moslik

«Nomaʼlum» dalil topilmaganini bildiradi, mahsulot mos emasligini emas.
PlatformaHolatArxitekturaDalilIshonchlilik
WindowsNomaʼlum———
macOSNomaʼlum———
LinuxNomaʼlum———
Web browserNomaʼlum———
Server / self-hostedNomaʼlum———
Container (OCI)Nomaʼlum———

Relizlar

tekshirilgan: 29-okt, 2026
v1.18.2Oxirgi27-okt, 2026Rasmiy manba ↗

1.18.2 versiyasi fayllari

Relizga fayllar biriktirilmagan.

Relizlar tarixi

Sifat profili

algoritm quality-v1.0 · baholangan 15-okt, 2026
Sifat bahosi88
Xavf bahosi0
Ishonchlilik 1.00
Sifat bahosi va xavf bahosi — turli koʻrsatkichlar. Yuqori sifat xavfsizlikni kafolatlamaydi.

Baho tarkibi

Qoʻllab-quvvatlash · 2020
last activity 1 days ago
Hujjatlar · 1515
README 14448 chars, description present
Foydalanishga tayyorlik · 156
install instructions: no; releases: yes
Metamaʼlumotlar · 1010
4/4 of description, homepage, license, topics
Relizlar · 1010
10 release(s), latest 1 days ago
Kategoriya aniqligi · 1010
classifier confidence 1
Ommaboplik · 107
945 stars (log-dampened, 10k = max)
Litsenziya aniqligi · 55
SPDX Apache-2.0
Hamjamiyat · 55
issues enabled, 238 forks

Litsenziya

Apache-2.0
Litsenziya maʼlumrepozitoriy xostingi maʼlumotlariga koʻra

Bu katalog siyosati holati, yuridik xulosa emas.

Manbalar

github.com/kossakovsky/selfhost-aiAsosiy★ 945 yulduzfaollik: 14-okt, 2026Asosiy repozitoriy · Ishonchlilik 1.00

Sharhlar

Sharh yozish uchun kiring

Hali sharhlar yoʻq.

Muqobillar

README

kossakovsky/selfhost-ai dan · litsenziya Apache-2.0 · yuklangan 29-okt, 2026

Selfhost AI — One-Command Self-Hosted AI Stack (n8n, Ollama, Open WebUI, OpenClaw)

[GitHub stars] [Latest release] [License] [Ubuntu]

Deploy 30+ open-source AI and automation tools on your own server with a single command. Selfhost AI is a Docker Compose installer for a private AI homelab: n8n workflow automation, local LLMs with Ollama, a ChatGPT-style chat in Open WebUI, AI agents (OpenClaw, Flowise, Keelflow, Dify, Letta), RAG engines and vector databases (Qdrant, Weaviate, LightRAG, RAGFlow), Supabase, ComfyUI and Grafana monitoring. An interactive wizard picks the services, generates every secret and puts them all behind Caddy with automatic HTTPS. A free, self-hosted alternative to Zapier, Make and ChatGPT.

Quick Start

You need a VPS with a public IP running Ubuntu 24.04 LTS (4 GB RAM / 2 CPU for n8n and monitoring; 20 GB RAM / 4 CPU / 60 GB disk for everything), a domain, and a wildcard DNS record A *.yourdomain.com -> YOUR_SERVER_IP. Then run:

git clone https://github.com/kossakovsky/selfhost-ai && cd selfhost-ai && sudo bash ./scripts/install.sh

The wizard does the rest; see Installation for what it asks.

Key Features

  • One-command install: an interactive wizard, generated secrets and no manual configuration
  • Private AI homelab: run LLMs locally with Ollama, on CPU, NVIDIA or AMD GPUs, including multi-GPU; your data stays on your server
  • ChatGPT alternative: Open WebUI for local and API models, with an optional code-execution sandbox
  • Workflow automation: n8n with 400+ integrations, queue mode with scalable workers, an MCP server for AI IDEs, and 300+ optional community workflows
  • AI agents and RAG: OpenClaw (with Telegram), Flowise, Keelflow, Dify, Letta, LightRAG, RAGFlow, Qdrant, Weaviate
  • Automatic HTTPS: Caddy reverse proxy with Let's Encrypt; services are reached only through Caddy (see security notes for Supabase's ports); optional Cloudflare Tunnel
  • Built-in monitoring: Grafana and Prometheus with an n8n workflow dashboard and ready-made alerts
  • Production ready: health checks, service dependencies, make doctor diagnostics, and updates that preserve your settings
  • Free and open source: Apache 2.0, no vendor lock-in

What's Included

Always installed: Caddy (reverse proxy and HTTPS), PostgreSQL, and Valkey (Redis-compatible). Everything below is optional and chosen in the wizard. "internal" means the service has no public URL and is reachable only from other containers.

AI Chat and Agents

ServiceWhat it doesURL
Open WebUIChatGPT-like interface for local and API LLMs and n8n agentswebui.
OpenClawPersonal AI agent with a web dashboard, a Telegram bot, and full server access (guide)openclaw.
Open TerminalLinux shell sandbox for Open WebUI agents, with a separate account per user (guide)internal
FlowiseNo-code / low-code AI agent builder (archived upstream)flowise.
KeelflowNo-code / low-code AI agent builder, continuation of Flowise; can take over existing Flowise data (guide)keelflow.
DifyAI application platform with LLMOps, RAG pipelines and agent orchestrationdify.
LettaAgent server and SDK with persistent memory (formerly MemGPT)letta.

Workflow Automation

ServiceWhat it doesURL
n8nWorkflow automation with 400+ integrations and AI nodes, in queue mode with workers (guide)n8n.
n8n-MCPMCP server that gives Claude Code, Cursor, Windsurf and VS Code n8n node docs and workflow toolsn8n-mcp.
n8n Assistant sandboxCode-execution sandbox for n8n's AI Assistant and Agents, isolated with Sysbox, or privileged if you accept that (guide)internal
PostizSocial media scheduling and publishingpostiz.
WAHAWhatsApp HTTP API (WEBJS, NOWEB and GOWS engines)waha.
Python RunnerRuns your own Python code from python-runner/ (main.py, requirements.txt, installed on every start) on the internal networkinternal

Local LLMs and Image Generation

ServiceWhat it doesURL
OllamaRun Llama, Qwen, Mistral, Gemma and other LLMs locally, on CPU, NVIDIA or AMD, with multi-GPU support (guide)ollama. (Bearer token)
ComfyUINode-based Stable Diffusion / Flux image generation UI (NVIDIA, AMD or CPU; pin GPUs with COMFYUI_GPU_DEVICES)comfyui.
InvokeAIStable Diffusion studio with a canvas, inpainting and a workflow editor; download a model in the Model Manager firstinvokeai.

RAG, Vector and Graph Databases

ServiceWhat it doesURL
QdrantHigh-performance vector databaseqdrant.
WeaviateAI-native vector database with hybrid searchweaviate.
SupabasePostgres backend with auth, storage and pgvector (a Firebase alternative)supabase.
Neo4jGraph databaseneo4j.
LightRAGGraph-based RAG with automatic knowledge-graph extractionlightrag.
RAGFlowRAG engine with deep document understanding and citationsragflow.
RAGAppRAG assistant over your data, with a web UI and an HTTP APIragapp.

Documents, OCR, Web Scraping and Search

ServiceWhat it doesURL
DoclingConverts PDF, DOCX, PPTX, XLSX, HTML and images to Markdown/JSON, with OCR; web UI at /uidocling.
PaddleOCROCR API that runs on CPUpaddleocr.
GotenbergConverts HTML, Markdown and Office documents to PDF or imagesinternal
Crawl4AILLM-friendly web crawler and scraperinternal
SearXNGPrivate metasearch engine, also used as the web search for n8n's AI Assistantsearxng.
LibreTranslateSelf-hosted translation API (50+ languages)translate.

Low-Code Apps and Data

ServiceWhat it doesURL
AppsmithLow-code builder for internal tools and admin panelsappsmith.
NocoDBOpen-source Airtable alternativenocodb.

Monitoring and Operations

ServiceWhat it doesURL
Grafana + PrometheusSystem and n8n workflow dashboards and alerts (with cAdvisor and node-exporter)grafana., prometheus.
LangfuseLLM observability, tracing and evalslangfuse.
Uptime KumaUptime monitoring with notificationsuptime-kuma.
PortainerDocker management UI (behind basic auth; create the Portainer admin on first login)portainer.
DatabasusDatabase backups and monitoringdatabasus.
GostOutbound HTTP/HTTPS proxy for AI servicesinternal
Cloudflare TunnelZero-trust access without open ports—

URLs are subdomains of your domain, for example n8n.yourdomain.com.

Installation

Prerequisites

  1. A domain name with a wildcard A record, *.yourdomain.com, pointing to your server's IP, configured before installing.
  2. A VPS with a public IP address. Home servers, shared hosting and localhost setups are not supported.
    • Operating system: Ubuntu 24.04 LTS, 64-bit
    • n8n, Monitoring, Databasus and Portainer: 4 GB RAM / 2 CPU cores / 40 GB disk
    • All services: at least 20 GB RAM / 4 CPU cores / 60 GB disk

Run the installer over SSH:

git clone https://github.com/kossakovsky/selfhost-ai && cd selfhost-ai && sudo bash ./scripts/install.sh

The installer updates the system, configures the firewall and brute-force protection, installs Docker, generates .env with all secrets, and starts the services. It asks for:

  1. Your domain (e.g. yourdomain.com).
  2. Your email, used for service logins and for the Let's Encrypt certificate.
  3. Which services to install, in a checklist wizard, plus follow-ups for some of them (hardware profile, Telegram bot token, Cloudflare token, ...).
  4. An optional OpenAI API key (used by Supabase AI and Crawl4AI).
  5. If n8n is selected: whether to import ~300 community n8n workflows (takes 20-30 minutes) and the number of n8n workers (each gets its own task runner).

At the end it prints the Welcome Page URL and login (save them). The Welcome dashboard at welcome.yourdomain.com lists every service's URL and credentials.

Upgrading

make update     # pull the latest installer, update images, restart
make git-pull   # for forks: merge from upstream instead of resetting

make update resets tracked files such as Caddyfile and docker-compose.yml, so put your customizations in the places that survive updates:

  • Custom Caddy sites: caddy-addon/site-*.conf (see caddy-addon/README.md)
  • Compose overrides: a docker-compose.override.yml in the project root; it takes the highest precedence
  • Settings: values in .env are kept (except GOST_NO_PROXY, which is regenerated to cover new services)

Commands

CommandDescription
make installFull installation
make updateUpdate the installer and all services
make update-previewPreview available updates (dry run)
make pullPull the latest prebuilt images only (n8n and OpenClaw are rebuilt by make update); run make restart afterwards
make git-pullUpdate a fork by merging from upstream
make statusContainer status
make logs / make logs s=n8nLogs for all services or for one
make monitorLive CPU and memory usage
make restart / make stop / make startControl the whole stack
make show-restartsRestart count per container
make doctorDiagnostics: DNS, SSL, containers, disk, memory
make import / make import n=10Import n8n workflows from the backup
make openclaw a="..."Run an OpenClaw CLI command
make setup-tlsUse custom TLS certificates instead of Let's Encrypt
make cleanRemove unused Docker images and containers (keeps data)

Run make help for the full list.

Guides

Troubleshooting

  • Sites don't load. The server is usually out of RAM or CPU for the services you selected. Check free -h and make monitor, start with n8n only, and enable other services one by one. make doctor checks DNS, certificates and containers.

  • "Dangerous site" warning right after install. Caddy briefly serves a temporary certificate while it gets one from Let's Encrypt. This normally clears within hours; if it lasts more than a day, check make logs s=caddy and your DNS records.

  • Docker images fail to pull. Temporarily disable your VPN. make update retries a failed pull one service at a time. Services that still could not be updated but have an image on the server are started from it and listed at the end; finish them with make pull && make restart. If a service has no image at all, or the local n8n/OpenClaw images cannot be built, make update stops before restarting anything; run make pull, then make update again.

  • make update fails. Force-sync with upstream. This discards local changes to tracked files:

    git config pull.rebase true && git fetch origin && git checkout main && git reset --hard "origin/main" && make update
    

Credits

Telemetry

The installer sends anonymous usage statistics through Scarf: event type, installer version, selected services, OS, a random installation ID, and the country Scarf derives from your IP. No personal data is collected. To opt out, set SCARF_ANALYTICS=false in .env.

License

Apache License 2.0. See LICENSE.

Repozitoriyni ochish ↗