Skip to the content.

Awesome Selfhosted AI: Run ChatGPT-Style Chat, LLMs, Image Generation, Speech and RAG on Your Own Hardware

Awesome Selfhosted AI is a curated list of self-hostable, open AI software you can run on your own server, homelab, workstation or laptop: ChatGPT-style chat UIs, local LLM model servers, AI gateways, image generation, speech-to-text and text-to-speech, RAG and “chat with your documents” apps, AI agents, coding assistants, AI search engines, vector databases and LLM observability. It is for homelab fans, privacy-minded teams and developers who want AI without sending data to a third-party cloud.

Last reviewed: December 2026. Every project link was checked on the review date; archived and long-unmaintained projects were removed or listed separately.

Table of contents

How entries are chosen

Quick start: private ChatGPT in two commands

Run a local model server and a web UI with Docker. You need Docker and roughly 8 GB of free RAM for a small model.

# 1. Ollama: downloads and runs open-weight models, API on port 11434
docker run -d --name ollama -p 11434:11434 -v ollama:/root/.ollama ollama/ollama
docker exec -it ollama ollama pull <model-name>   # pick a small model from ollama.com/library

# 2. Open WebUI: ChatGPT-style interface on http://localhost:3000
docker run -d --name open-webui -p 3000:8080 \
  --add-host=host.docker.internal:host-gateway \
  -e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
  -v open-webui:/app/backend/data \
  ghcr.io/open-webui/open-webui:main

On a Mac, install the native Ollama app instead of the Docker image so it can use the Apple GPU (Docker on macOS cannot).

Best picks

Goal Pick Why
Private ChatGPT for a family or team Open WebUI + Ollama Polished UI, users and permissions, RAG, works with local and cloud models
Multi-provider chat for a company LibreChat Many providers, agents, strong auth options (OAuth, LDAP), MIT license
Local LLMs on one machine Ollama Easiest install and model management, OpenAI-compatible API
Maximum control and efficiency llama.cpp (llama-server) Runs everywhere, fine-grained settings, GGUF quantization
Serving many users on GPUs vLLM High throughput with continuous batching
One OpenAI-compatible endpoint for everything LocalAI or LiteLLM LocalAI runs models; LiteLLM routes to many backends with keys and budgets
Image generation workflows ComfyUI Supports new models first, node workflows, huge ecosystem
Simple image generation UI InvokeAI Clean canvas-based UI for artists
Transcription whisper.cpp or Speaches Fast local Whisper; Speaches gives an OpenAI-compatible speech API
Natural local voices Kokoro-FastAPI or Piper Kokoro for quality, Piper for very low resource use
Chat with your documents AnythingLLM or RAGFlow AnythingLLM is simplest; RAGFlow is stronger on complex documents
Build AI apps without much code Dify or Langflow Visual builders with RAG, agents and APIs
AI web search SearXNG + Vane (formerly Perplexica) Private metasearch plus an answer engine on top
Trace and evaluate LLM apps Langfuse Open core, self-hostable, tracing plus prompt management

Chat interfaces

Web UIs that give you a ChatGPT-style experience on top of local or hosted models.

Project What it does License
Open WebUI Feature-rich chat UI for Ollama and OpenAI-compatible APIs: multi-user, RAG, web search, tools, voice Custom (Open WebUI License, includes branding terms)
LibreChat Multi-provider chat with agents, MCP, code interpreter, file chat and enterprise auth MIT
LobeHub Modern chat and agent workspace with plugins and many providers (formerly LobeChat) Custom (LobeHub Community License)
NextChat Lightweight, fast chat client you can deploy as a web app MIT
Hugging Face Chat UI The open source codebase behind HuggingChat Apache-2.0
AnythingLLM All-in-one chat, document RAG and agents; desktop or Docker MIT
text-generation-webui Power-user web UI for local models with many backends and extensions AGPL-3.0
SillyTavern Character and roleplay chat front end for local and hosted models AGPL-3.0

Chat UIs compared:

  Open WebUI LibreChat LobeHub AnythingLLM
Best for Homelabs and teams on local models Companies using many providers Polished personal workspace Chat with documents, minimal setup
Multi-user and roles Yes Yes Yes Yes (Docker version)
Built-in RAG Yes Yes Yes Core feature
MCP and tools Yes Yes Yes Yes (agents)
License Custom MIT Custom MIT

Desktop apps for local AI

Project What it does License
Jan Offline ChatGPT-style desktop app that runs models locally and can expose a local API Apache-2.0
AnythingLLM Desktop Same app as above, packaged for Windows, macOS and Linux MIT
koboldcpp Single-file llama.cpp-based runner with a web UI, popular for writing and roleplay AGPL-3.0
llamafile Package a model and runtime into one executable that runs on most operating systems Apache-2.0

LLM model servers

Project What it does License
Ollama Pull and run open models with one command; REST and OpenAI-compatible API MIT
llama.cpp Efficient inference in C/C++ on CPU, Apple silicon, CUDA, ROCm and Vulkan; includes llama-server MIT
vLLM High-throughput GPU serving with PagedAttention and an OpenAI-compatible server Apache-2.0
SGLang Fast GPU serving for LLMs and vision-language models Apache-2.0
LocalAI Drop-in OpenAI-compatible API for text, images, audio and embeddings on consumer hardware MIT
Xinference Serve LLMs, embedding, image and audio models with one API, single node or cluster Apache-2.0
GPUStack Manage a GPU cluster and deploy models across machines Apache-2.0
exo Split large models across several home devices (Macs, PCs) Apache-2.0
llama-swap Proxy that starts and swaps model servers on demand, so several models share one GPU MIT
Text Embeddings Inference Fast serving for embedding and reranker models Apache-2.0

Model servers compared:

  Ollama llama.cpp vLLM LocalAI
Setup One installer Build or download a release Python or Docker, NVIDIA/AMD GPU Docker
Hardware CPU, Apple, NVIDIA, AMD Almost anything Datacenter and consumer GPUs CPU and GPU
Concurrency Moderate Moderate (parallel slots) High Moderate
Model format GGUF (managed) GGUF Hugging Face formats Many backends
Best for Getting started Tuning and edge devices Many concurrent users One API for many model types

AI gateways and proxies

Project What it does License
LiteLLM Proxy with one OpenAI-format API for 100+ providers and local servers; keys, budgets, rate limits, fallbacks MIT (open core)
Portkey Gateway Fast AI gateway with routing, retries, caching and guardrails MIT

Image generation

Project What it does License
ComfyUI Node-based workflows for image, video and audio diffusion models GPL-3.0
InvokeAI Professional creative UI with a unified canvas, layers and workflows Apache-2.0
SwarmUI Friendly UI that uses ComfyUI as its backend MIT
Stable Diffusion web UI The classic Gradio UI for Stable Diffusion with a large extension ecosystem; updates have slowed AGPL-3.0
Fooocus Very simple image generation focused on prompts; now in limited maintenance GPL-3.0

Speech-to-text

Project What it does License
whisper.cpp Fast Whisper inference in C/C++, including a small HTTP server MIT
Speaches OpenAI-compatible server for speech-to-text and text-to-speech MIT

Text-to-speech

Project What it does License
Kokoro-FastAPI Docker server for the Kokoro TTS model with an OpenAI-compatible speech endpoint Apache-2.0
Piper Fast, lightweight local TTS used by Home Assistant; runs on a Raspberry Pi GPL-3.0
F5-TTS Voice cloning TTS from a short reference clip MIT code (check model weight licenses)
Fish Speech Multilingual TTS and voice cloning Custom (Fish Audio Community License)

Voice agents

Project What it does License
Pipecat Framework for real-time voice and multimodal agents; mix local and hosted STT, LLM and TTS BSD-2-Clause
LiveKit Agents Build real-time voice agents on the self-hostable LiveKit media server Apache-2.0
Home Assistant Home automation with a local voice assistant pipeline (wake word, speech-to-text, LLM, TTS) Apache-2.0

RAG and chat with your documents

Project What it does License
RAGFlow RAG engine with deep document understanding (tables, layouts) and agents Apache-2.0
AnythingLLM Workspaces of documents you can chat with, using local or cloud models MIT
Khoj Personal AI “second brain” over your notes and documents, with web, desktop and Obsidian clients AGPL-3.0
PrivateGPT API and UI for private question answering over documents Apache-2.0
Quivr Opinionated RAG library and app MIT
mem0 Self-hostable memory layer so assistants remember users across sessions Apache-2.0

Low-code AI app and workflow builders

Project What it does License
Dify Visual platform for LLM apps: workflows, RAG, agents, prompt IDE and APIs Modified Apache-2.0 (extra conditions)
Langflow Drag-and-drop builder for agents and RAG flows, deployable as APIs or MCP servers MIT
n8n Workflow automation with AI agent nodes and hundreds of integrations Sustainable Use License (fair-code, not OSI open source)

Builders compared:

  Dify Langflow n8n
Focus LLM apps and chatbots Agent and RAG flows Business automation with AI steps
Integrations Model providers, tools Python components Hundreds of SaaS apps
Custom code Code nodes, plugins Full Python components JavaScript and Python nodes
License Modified Apache-2.0 MIT Sustainable Use License

AI agents and research assistants

Project What it does License
GPT Researcher Autonomous agent that researches the web or local documents and writes cited reports Apache-2.0
browser-use Let LLM agents control a real browser MIT
Skyvern Automate browser workflows with LLMs and computer vision AGPL-3.0
LocalAGI Self-hosted agent platform that pairs with LocalAI MIT

Coding assistants and agents

Project What it does License
OpenHands Open software-engineering agent platform you can run on your own infrastructure MIT
opencode Open source coding agent for the terminal, works with many providers and local models MIT
Codex CLI OpenAI’s open source terminal coding agent; can use local models through compatible providers Apache-2.0
goose Extensible open source AI agent for development tasks, desktop and CLI Apache-2.0
Continue Open source AI code assistant for VS Code and JetBrains, works with local models Apache-2.0
Cline Autonomous coding agent in VS Code with your choice of model, including local ones Apache-2.0
Tabby Self-hosted code completion server for teams Apache-2.0 (open core)
Aider AI pair programming in the terminal with Git integration Apache-2.0

AI search engines

Project What it does License
SearXNG Private metasearch engine; also the usual web-search backend for self-hosted AI tools AGPL-3.0
Vane (formerly Perplexica) AI answer engine with cited sources that uses SearXNG and local or hosted models MIT

Document parsing and web scraping

Project What it does License
Docling Serve Run Docling as an API to convert PDFs and office files to Markdown or JSON MIT
Marker High-accuracy PDF to Markdown conversion Apache-2.0 code; model weights under a separate license with commercial limits
MarkItDown Convert many file formats to Markdown for LLMs, with an MCP server MIT
Crawl4AI Crawl websites into LLM-ready Markdown; Docker server available Apache-2.0
Firecrawl Scrape and crawl sites into clean Markdown or structured data; self-hostable AGPL-3.0
Stirling PDF Self-hosted PDF toolkit (OCR, merge, split, convert), handy before RAG ingestion MIT (open core)

Vector databases and search engines

Project What it does License
Qdrant Vector database with rich filtering, written in Rust Apache-2.0
Milvus Distributed vector database for very large collections Apache-2.0
Weaviate Vector database with hybrid search and built-in vectorizer modules BSD-3-Clause with some parts under the Weaviate License
Chroma Simple embedding database, embedded or as a server Apache-2.0
pgvector Vector similarity search inside PostgreSQL PostgreSQL License
Meilisearch Fast search engine with hybrid keyword and vector search MIT core, enterprise parts under BSL
Typesense Typo-tolerant search engine with vector and semantic search GPL-3.0

LLM observability and evaluation

Project What it does License
Langfuse Tracing, prompt management, evaluations and cost tracking MIT (open core)
Opik Tracing, evaluation and dashboards for LLM apps and agents Apache-2.0
Arize Phoenix OpenTelemetry-based tracing and evaluation, runs locally Elastic License 2.0
Helicone LLM observability via a proxy or SDK Apache-2.0
promptfoo Test prompts, compare models and red-team LLM apps from the CLI MIT

Everyday self-hosted apps with built-in AI

Popular self-hosted apps whose AI features run locally or against your own model server.

Project AI feature License
Immich Photo library with local face recognition and smart (CLIP) search AGPL-3.0
PhotoPrism Photo app with local image classification and face recognition AGPL-3.0
Frigate Network video recorder with real-time local object detection MIT
Paperless-ngx Document archive with OCR and automatic tagging GPL-3.0
paperless-gpt Adds LLM-powered titles, tags and OCR to Paperless-ngx, with local model support MIT
Karakeep Bookmark manager with AI tagging and summaries via Ollama or hosted models AGPL-3.0
Linkwarden Collaborative bookmark archive with optional AI tagging AGPL-3.0
LibreTranslate Self-hosted machine translation API, built on Argos Translate AGPL-3.0
Label Studio Data labeling for building your own AI datasets Apache-2.0

Hardware guide

Rough starting points for running quantized (4-bit) open-weight LLMs. Real needs depend on the model, quantization, context length and how many users you serve.

Hardware What runs comfortably
8 GB RAM laptop, no GPU Small models (around 1B to 4B parameters) for basic chat and summarization; slow but usable
16 GB RAM, or a GPU with 8 GB VRAM 7B to 8B models at good speed; Whisper small or medium; SDXL-class image models on the GPU
32 GB unified memory (Apple silicon) or 12 to 16 GB VRAM 12B to 14B models, larger contexts, faster image generation
64 GB+ unified memory, or 24 GB VRAM 27B to 32B models, or 70B-class models with heavy quantization or partial offloading
Multiple GPUs or 128 GB+ unified memory 70B-class models at higher quality, mixture-of-experts models, many concurrent users with vLLM

Rules of thumb:

Example stacks

Use case Stack
Family or small-team private ChatGPT Ollama + Open WebUI + SearXNG for web search
Company assistant with SSO and many providers LibreChat + LiteLLM (keys, budgets) + Langfuse
Chat with company documents Docling Serve + Qdrant + RAGFlow or AnythingLLM + a vLLM model server
Local voice assistant Home Assistant + whisper.cpp or Speaches + Piper or Kokoro-FastAPI + Ollama
Image studio ComfyUI on a GPU box, InvokeAI for less technical users
AI-organized home server Immich + Paperless-ngx with paperless-gpt + Karakeep, all pointed at one Ollama
Developer workstation Ollama or llama.cpp + Continue or Cline in the editor + opencode in the terminal

Security checklist

Self-hosting moves responsibility to you. Before exposing anything beyond localhost:

Archived or inactive projects

Older lists still recommend these. As of December 2026 they are archived on GitHub or have not been updated for a long time:

Project Status Consider instead
Text Generation Inference Archived vLLM, SGLang
Flowise Archived Langflow, Dify
Piper (rhasspy) Archived; development moved Piper (OHF-Voice)
Verba Archived AnythingLLM, RAGFlow
h2oGPT Archived PrivateGPT, AnythingLLM
Coqui TTS Inactive since 2024 Idiap’s maintained fork, Kokoro, Piper
GPT4All No updates since mid-2025 Jan, Ollama

FAQ

Can I run a ChatGPT alternative completely offline? Yes. Ollama or llama.cpp with Open WebUI, Jan or AnythingLLM runs fully offline once the model files are downloaded. Quality depends on the model size your hardware can handle.

Is a self-hosted LLM as good as ChatGPT or Claude? The best open-weight models are strong, but the largest ones need serious hardware. Models that fit on a laptop are good for drafting, summarizing, coding help and RAG, and weaker on hard reasoning. Many people self-host for privacy and use a hosted model for the hardest tasks.

What is the easiest way to self-host AI? Install Ollama, pull a small model, and add Open WebUI with Docker (see the quick start). On a desktop, Jan or AnythingLLM Desktop are even simpler.

Do I need a GPU? Not to start. Small models run on a CPU, and Apple silicon Macs run medium models well. A GPU makes larger models, image generation and multiple users practical.

Ollama or llama.cpp? Ollama is easier: it manages downloads, model templates and a background service. llama.cpp gives more control and sometimes newer features first. Ollama is a good default; switch when you need a specific llama.cpp option.

How do I give my local AI web search? Run SearXNG and connect it to Open WebUI, Vane or your agent framework. It aggregates results from many engines without an API key.

Is self-hosting cheaper than using an API? For light personal use, hosted APIs are usually cheaper than buying hardware. Self-hosting pays off when you already own the hardware, have steady high usage, or must keep data in-house.

Are these projects free for commercial use? Many are (MIT, Apache-2.0), but check the License column: Open WebUI and LobeHub use custom licenses, Dify has extra conditions, n8n uses a fair-code license, Phoenix uses the Elastic License, and AGPL projects require sharing source if you offer them as a network service with modifications. Model weights have their own licenses too.

Where to go next

Contributing

PRs are welcome. To add a project:

License

Content is licensed under CC BY 4.0.

If this helped you, a star helps others find it.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.