by kossakovsky
One-command installer for a self-hosted AI stack on your own server: n8n, Ollama, Open WebUI, OpenClaw, Dify, Flowise, Supabase, ComfyUI, Qdrant & 30+ tools. Docker Compose, automatic HTTPS via Caddy, built-in monitoring. Free Zapier/Make alternative.
# Add to your Claude Code skills
git clone https://github.com/kossakovsky/selfhost-aiselfhost-ai is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kossakovsky. One-command installer for a self-hosted AI stack on your own server: n8n, Ollama, Open WebUI, OpenClaw, Dify, Flowise, Supabase, ComfyUI, Qdrant & 30+ tools. Docker Compose, automatic HTTPS via Caddy, built-in monitoring. Free Zapier/Make alternative. It has 967 GitHub stars.
selfhost-ai's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/kossakovsky/selfhost-ai" and add it to your Claude Code skills directory (see the Installation section above).
selfhost-ai is primarily written in Shell. It is open-source under kossakovsky on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh selfhost-ai against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
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.
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.
make doctor diagnostics, and updates that preserve your settingsAlways 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.
| Service | What it does | URL |
|---|---|---|
| Open WebUI | ChatGPT-like interface for local and API LLMs and n8n agents | webui. |
| OpenClaw | Personal AI agent with a web dashboard, a Telegram bot, and full server access (guide) | openclaw. |
| Open Terminal | Linux shell sandbox for Open WebUI agents, with a separate account per user (guide) | internal |
| Flowise | No-code / low-code AI agent builder (archived upstream) | flowise. |
| Keelflow | No-code / low-code AI agent builder, continuation of Flowise; can take over existing Flowise data (guide) | keelflow. |
| Dify | AI application platform with LLMOps, RAG pipelines and agent orchestration | dify. |
| Letta | Agent server and SDK with persistent memory (formerly MemGPT) | letta. |
| Service | What it does | URL |
|---|---|---|
| n8n | Workflow automation with 400+ integrations and AI nodes, in queue mode with workers (guide) | n8n. |
| n8n-MCP | MCP server that gives Claude Code, Cursor, Windsurf and VS Code n8n node docs and workflow tools | n8n-mcp. |
| n8n Assistant sandbox | Code-execution sandbox for n8n's AI Assistant and Agents, isolated with Sysbox, or privileged if you accept that (guide) | internal |
| Postiz | Social media scheduling and publishing | postiz. |
| WAHA | WhatsApp HTTP API (WEBJS, NOWEB and GOWS engines) | waha. |
| Python Runner | Runs your own Python code from python-runner/ (main.py, requirements.txt, installed on every start) on the internal network |
internal |
| Service | What it does | URL |
|---|---|---|
| Ollama | Run Llama, Qwen, Mistral, Gemma and other LLMs locally, on CPU, NVIDIA or AMD, with multi-GPU support (guide) | ollama. (Bearer token) |
| ComfyUI | Node-based Stable Diffusion / Flux image generation UI (NVIDIA, AMD or CPU; pin GPUs with COMFYUI_GPU_DEVICES) |
comfyui. |
| InvokeAI | Stable Diffusion studio with a canvas, inpainting and a workflow editor; download a model in the Model Manager first | invokeai. |
| Service | What it does | URL |
|---|---|---|
| Qdrant | High-performance vector database | qdrant. |
| Weaviate | AI-native vector database with hybrid search | weaviate. |
| Supabase | Postgres backend with auth, storage and pgvector (a Firebase alternative) | supabase. |
| Neo4j | Graph database | neo4j. |
| LightRAG | Graph-based RAG with automatic knowledge-graph extraction | lightrag. |
| RAGFlow | RAG engine with deep document understanding and citations | ragflow. |
| RAGApp | RAG assistant over your data, with a web UI and an HTTP API | ragapp. |
| Service | What it does | URL |
|---|---|---|
| Docling | Converts PDF, DOCX, PPTX, XLSX, HTML and images to Markdown/JSON, with OCR; web UI at /ui |
docling. |
| PaddleOCR | OCR API that runs on CPU | paddleocr. |
| Gotenberg | Converts HTML, Markdown and Office documents to PDF or images | internal |
| Crawl4AI | LLM-friendly web crawler and scraper | internal |
| SearXNG | Private metasearch engine, also used as the web search for n8n's AI Assistant | searxng. |
| LibreTranslate | Self-hosted translation API (50+ languages) | translate. |
| Service | What it does | URL |
|---|---|---|
| Appsmith | Low-code builder for internal tools and admin panels | appsmith. |
| NocoDB | Open-source Airtable alternative | nocodb. |
| Service | What it does | URL |
|---|---|---|
| Grafana + Prometheus | System and n8n workflow dashboards and alerts (with cAdvisor and node-exporter) | grafana., prometheus. |
| Langfuse | LLM observability, tracing and evals | langfuse. |
| Uptime Kuma | Uptime monitoring with notifications | uptime-kuma. |
| Portainer | Docker management UI (behind basic auth; create the Portainer admin on first login) | portainer. |
| Databasus | Database backups and monitoring | databasus. |
| Gost | Outbound HTTP/HTTPS proxy for AI services | internal |
| Cloudflare Tunnel | Zero-trust access without open ports | — |
URLs are subdomains of your domain, for example n8n.yourdomain.com.
Prerequisites
*.yourdomain.com, pointing to your server's IP, configured before installing.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:
yourdomain.com).At the e