Home/AI Agents/selfhost-ai
selfhost-ai logo

selfhost-ai

kossakovsky/selfhost-ai

Self-hosted AI automation platform

GraphCanon updated 3d · GitHub synced 3d

919 stars233 forksLast push 1mo Shell Apache-2.0

Decision brief

selfhost-ai offers a self-contained suite for deploying multiple AI tools with automated HTTPS setup and one-command deployment, acting as an open alternative to cloud-based services like Zapier.

Good fit when

  • Self-hosted deployments aiming for centralized AI automation that includes n8n, Ollama, Flowise, RAG, Supabase, and other tools with a single command.
  • Users requiring end-to-end control over their data without relying on third-party cloud services like Zapier or Make.

Avoid when

  • Organizations seeking fully managed AI automation solutions where setup and maintenance are handled by the service provider.
  • Businesses preferring to avoid the overhead of managing self-hosted environments, including hardware requirements and system updates.

Observed Jul 14, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Active (27d since push)
As of 3d
Provenance
Not a fork · Personal account
As of 3d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

git clone https://github.com/kossakovsky/selfhost-ai

How it fits your stack(1)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Offers one-command deployment of n8n, Ollama, Flowise, RAG, Supabase and over 30 tools with automated HTTPS setup. Serves as an alternative to Zapier or Make.

Capability facts

Deploy
Self-host

Source: dockerfile:docker-compose.yml · Aug 21, 2026

Docker
Dockerfile present

Source: dockerfile:docker-compose.yml · Aug 21, 2026

Languages
shell

Source: github.language · Aug 21, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

OpenAI APIOpenAI API

Source: README excerpt (regex_v1, Aug 21, 2026)

3. An optional **OpenAI API key** (Not required. If provided, it can be used by Supabase AI features and Cr
Source link

Tags

README

Selfhost AI — Self-Hosted AI Automation Platform

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!


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

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:

  • 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!


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 i

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.