selfhost-ai

From public sources

selfhost-ai is a Docker Compose installer that deploys 30+ open-source AI and automation tools, such as n8n, Ollama and Open WebUI, on your own server with one command.

AI toolCategory: AI ToolsOpen sourcedata checked Oct 15, 2026

Overview

Many teams want AI chat, workflow automation and local LLMs without sending their data to third-party clouds, but wiring together dozens of self-hosted services by hand takes days. selfhost-ai solves this with an interactive wizard that installs the stack on a VPS running Ubuntu 24.04, generates every secret, and puts each service behind Caddy with automatic HTTPS. The catalog covers n8n workflow automation, Ollama for running LLMs on CPU or NVIDIA and AMD GPUs, the Open WebUI chat interface, AI agent builders such as Dify and Flowise, RAG engines and vector databases like Qdrant and Weaviate, Supabase, ComfyUI and Grafana monitoring. Built-in health checks, a diagnostics command and update commands that keep your settings help operate the stack over time. It suits developers and homelab operators who want a private alternative to ChatGPT, Zapier or Make. It is released under the Apache 2.0 license and deployed with Docker Compose on your own server.
  • ai-agents
  • ai-automation
  • awesome-list
  • comfyui
  • dify
  • docker-compose
  • flowise
  • homelab
  • llm
  • local-llm
  • mcp
  • self-hosted

Installation

Commands are shown, never run by the marketplace. Check them against the official documentation.

Compatibility

Unknown means no evidence was found — not that the product is incompatible.
PlatformStatusArchitectureEvidenceConfidence
WindowsUnknown———
macOSUnknown———
LinuxUnknown———
Web browserUnknown———
Server / self-hostedUnknown———
Container (OCI)Unknown———

Releases

checked Oct 29, 2026
v1.18.2LatestOct 27, 2026Official source ↗

Files in 1.18.2

This release has no attached files.

Release history

Quality profile

algorithm quality-v1.0 · assessed Oct 15, 2026
Quality Score88
Risk Score0
Confidence 1.00
Quality Score and Risk Score are different measures. A high score does not guarantee safety.

Score components

Maintenance · 2020
last activity 1 days ago
Documentation · 1515
README 14448 chars, description present
Ready to use · 156
install instructions: no; releases: yes
Metadata · 1010
4/4 of description, homepage, license, topics
Releases · 1010
10 release(s), latest 1 days ago
Category confidence · 1010
classifier confidence 1
Adoption · 107
945 stars (log-dampened, 10k = max)
License clarity · 55
SPDX Apache-2.0
Community · 55
issues enabled, 238 forks

License

Apache-2.0
Known licensefrom the repository host

This is the catalog policy status, not legal advice.

Sources

github.com/kossakovsky/selfhost-aiPrimary★ 945 starslast activity Oct 14, 2026Primary repository · Confidence 1.00

Reviews

Sign in to write a review

No reviews yet.

Alternatives

README

From kossakovsky/selfhost-ai · license Apache-2.0 · fetched Oct 29, 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.

Open the repository ↗