Self-hosted RAG and knowledge base apps for small businesses
Short answer
We track 22 self-hostable knowledge-base / RAG apps: RAGFlow, AFFiNE, AppFlowy, AnythingLLM, PrivateGPT, Open Notebook, LightRAG, WeKnora, Langchain-Chatchat, Onyx (formerly Danswer), Karakeep, FastGPT, kotaemon, MaxKB, LocalGPT, Linkwarden, DocsGPT, QAnything, R2R, OpenAgent, PipesHub, Morphik Core.
Most popular on GitHub: RAGFlow (95.2k stars).
Lowest official hardware: AnythingLLM (minimum 2 vCPU · 2 GB RAM · 5 GB disk, from €16.99/month on our reference server).
Permissive license (MIT/Apache-2.0, fewest conditions): RAGFlow, AnythingLLM, PrivateGPT, Open Notebook, LightRAG, WeKnora, Langchain-Chatchat, kotaemon, LocalGPT, DocsGPT, R2R, OpenAgent, PipesHub.
No official hardware figure published: PrivateGPT, LightRAG, Langchain-Chatchat, Karakeep, kotaemon, DocsGPT, R2R, OpenAgent.
Last updated · generated from the same verified data as each app page
Comparison table
| App | What it is | License | Official hardware | Est. server cost | GitHub stars | Status |
|---|---|---|---|---|---|---|
| RAGFlow | RAG engine with deep document parsing (OCR, layout and tables) and cited answers. | Apache-2.0 (Permissive) | recommended 4 vCPU · 16 GB RAM · 50 GB disk (no separate minimum published) | from €59.49/mo | 95.2k | Active |
| AFFiNE | Notion- and Miro-style workspace (docs, whiteboards, databases) with built-in AI, self-hostable with Docker. | MIT (Community Edition) with Enterprise Edition license for server code (Open core) | recommended 4 vCPU · 2 GB RAM (no separate minimum published) | from €30.49/mo | 82.5k | Active |
| AppFlowy | Open-source Notion-style AI workspace (docs, databases, boards) with desktop apps and a self-hosted cloud server. | AGPL-3.0 (client); AppFlowy Self-Hosted Commercial License (current server images) (Open core) | recommended 4 vCPU · 16 GB RAM (no separate minimum published) | from €59.49/mo | 80.0k | Active |
| AnythingLLM | All-in-one private chat with your documents, agents and an embeddable widget. | MIT (Permissive) | minimum 2 vCPU · 2 GB RAM · 5 GB disk | from €16.99/mo | 69.0k | Active |
| PrivateGPT | API-first private document Q&A that sits on top of your own LLM server. | Apache-2.0 (Permissive) | Not published | Not estimated (no official RAM figure) | 57.7k | Active |
| Open Notebook | Private, self-hosted alternative to Google NotebookLM with your choice of AI models. | MIT (Permissive) | minimum 4 GB RAM | from €16.99/mo | 42.5k | Active |
| LightRAG | Graph-based RAG server that builds a knowledge graph from your documents, with a web UI and REST API. | MIT (Permissive) | Not published | Not estimated (no official RAM figure) | 41.0k | Active |
| WeKnora | Tencent's open-source knowledge-base and agent platform with document parsing, RAG and team workspaces. | MIT (with third-party components) (Permissive) | recommended 4 vCPU · 8 GB RAM (no separate minimum published) | from €30.49/mo | 38.9k | Active |
| Langchain-Chatchat | Chinese-first local knowledge-base Q&A and agent app built on LangChain, wired to local model servers. | Apache-2.0 (Permissive) | Not published | Not estimated (no official RAM figure) | 38.7k | Stale (no commit in 180+ days) |
| Onyx (formerly Danswer) | AI chat and enterprise search connected to 50+ workplace apps. | MIT (Community Edition) + Onyx Enterprise License (ee directories) (Open core) | minimum 4 vCPU · 10 GB RAM · 32 GB disk (recommended 8 vCPU · 16 GB RAM · 500 GB disk) | from €59.49/mo | 33.7k | Active |
| Karakeep | Self-hosted bookmark and read-later app (formerly Hoarder) with AI tagging, summaries and full-text search. | AGPL-3.0 (Network copyleft (AGPL)) | Not published | Not estimated (no official RAM figure) | 31.1k | Active |
| FastGPT | Knowledge-base Q&A and visual AI workflow platform. | FastGPT Open Source License (Apache-2.0 with conditions) (Custom / conditional) | minimum 2 vCPU · 4 GB RAM (recommended 2 vCPU · 8 GB RAM) | from €16.99/mo | 30.2k | Active |
| kotaemon | Open-source RAG web app for chatting with your documents, with citations and GraphRAG. | Apache-2.0 (Permissive) | Not published | Not estimated (no official RAM figure) | 25.9k | Stale (no commit in 180+ days) |
| MaxKB | Enterprise knowledge-base and agent platform with RAG and workflows. | GPL-3.0 (Copyleft (GPL)) | minimum 4 vCPU · 8 GB RAM · 100 GB disk | from €30.49/mo | 23.3k | Active |
| LocalGPT | Chat with your documents through a local RAG stack that talks to Ollama. | MIT (Permissive) | minimum 4 vCPU · 8 GB RAM · 50 GB disk (recommended 8 vCPU · 32 GB RAM · 200 GB disk) | from €30.49/mo | 22.2k | Active |
| Linkwarden | Collaborative bookmark preservation with configurable AI tagging. | AGPL-3.0 (Network copyleft (AGPL)) | minimum 2 vCPU (recommended 4 GB RAM) | from €16.99/mo | 20.6k | Active |
| DocsGPT | Open-source platform for AI agents and assistants that answer from your documents with sources. | MIT (Permissive) | Not published | Not estimated (no official RAM figure) | 18.4k | Active |
| QAnything | Local knowledge-base Q&A over many file types, with hybrid search and cited answers, started with one Docker Compose command. | AGPL-3.0 (Network copyleft (AGPL)) | minimum 20 GB RAM | from €85.49/mo | 14.2k | Active |
| R2R | Production RAG platform with a REST API, hybrid search, knowledge graphs and an agentic Deep Research mode. | MIT (Permissive) | Not published | Not estimated (no official RAM figure) | 8.1k | Stale (no commit in 180+ days) |
| OpenAgent | Self-hosted AI assistant with RAG, agent tools, SSO and an admin UI, shipped as a single binary. | Apache-2.0 (Permissive) | Not published | Not estimated (no official RAM figure) | 5.8k | Active |
| PipesHub | Self-hosted workplace search and AI answers across 50+ connected apps, filtered by each user's permissions. | Apache-2.0 (Permissive) | minimum 8 GB RAM (recommended 16 GB RAM) | from €30.49/mo | 4.2k | Active |
| Morphik Core | Multimodal document retrieval engine for RAG over PDFs, images and visually rich files, with an API, SDKs and MCP. | Business Source License 1.1 (Apache-2.0 after four years) (Source-available) | recommended 8 GB RAM (no separate minimum published) | from €30.49/mo | 3.7k | Active |
Apps from our "Knowledge base & RAG" category, sorted by GitHub stars. We do not rank by quality; pick by the criterion that matters to you. Cost = cheapest Hetzner Cloud Regular Performance (shared AMD vCPU) plan that meets the project's official RAM and vCPU figure, list price read on 2026-11-30, excl. VAT, server only (no LLM API usage, backups or your time).
Frequently asked questions
What is the best self-hosted RAG app for a small business?
Most popular on GitHub: RAGFlow (95.2k stars). Lowest official hardware: AnythingLLM (minimum 2 vCPU · 2 GB RAM · 5 GB disk, from €16.99/month on our reference server). Permissive license (MIT/Apache-2.0, fewest conditions): RAGFlow, AnythingLLM, PrivateGPT, Open Notebook, LightRAG, WeKnora, Langchain-Chatchat, kotaemon, LocalGPT, DocsGPT, R2R, OpenAgent, PipesHub. No official hardware figure published: PrivateGPT, LightRAG, Langchain-Chatchat, Karakeep, kotaemon, DocsGPT, R2R, OpenAgent. The right choice depends on which of these matters most to you.
Which self-hosted knowledge base needs the least hardware?
AnythingLLM: minimum 2 vCPU · 2 GB RAM · 5 GB disk (from €16.99/month); Open Notebook: minimum 4 GB RAM (from €16.99/month); FastGPT: minimum 2 vCPU · 4 GB RAM (recommended 2 vCPU · 8 GB RAM) (from €16.99/month); Linkwarden: minimum 2 vCPU (recommended 4 GB RAM) (from €16.99/month); AFFiNE: recommended 4 vCPU · 2 GB RAM (no separate minimum published) (from €30.49/month); WeKnora: recommended 4 vCPU · 8 GB RAM (no separate minimum published) (from €30.49/month); MaxKB: minimum 4 vCPU · 8 GB RAM · 100 GB disk (from €30.49/month); LocalGPT: minimum 4 vCPU · 8 GB RAM · 50 GB disk (recommended 8 vCPU · 32 GB RAM · 200 GB disk) (from €30.49/month); PipesHub: minimum 8 GB RAM (recommended 16 GB RAM) (from €30.49/month); Morphik Core: recommended 8 GB RAM (no separate minimum published) (from €30.49/month); RAGFlow: recommended 4 vCPU · 16 GB RAM · 50 GB disk (no separate minimum published) (from €59.49/month); AppFlowy: recommended 4 vCPU · 16 GB RAM (no separate minimum published) (from €59.49/month); Onyx (formerly Danswer): minimum 4 vCPU · 10 GB RAM · 32 GB disk (recommended 8 vCPU · 16 GB RAM · 500 GB disk) (from €59.49/month); QAnything: minimum 20 GB RAM (from €85.49/month).
Which self-hosted RAG apps have an MIT or Apache license?
RAGFlow, AnythingLLM, PrivateGPT, Open Notebook, LightRAG, WeKnora, Langchain-Chatchat, kotaemon, LocalGPT, DocsGPT, R2R, OpenAgent, PipesHub. AFFiNE uses MIT (Community Edition) with Enterprise Edition license for server code. AppFlowy uses AGPL-3.0 (client); AppFlowy Self-Hosted Commercial License (current server images). Onyx (formerly Danswer) uses MIT (Community Edition) + Onyx Enterprise License (ee directories). Karakeep uses AGPL-3.0. FastGPT uses FastGPT Open Source License (Apache-2.0 with conditions). MaxKB uses GPL-3.0. Linkwarden uses AGPL-3.0. QAnything uses AGPL-3.0. Morphik Core uses Business Source License 1.1 (Apache-2.0 after four years).
Related
- Knowledge base & RAG category
- Compare any 2–3 apps side by side
- Cheapest self-hosted ChatGPT alternatives
- Self-hosted AI apps that run without a GPU
- Self-hosted AI apps by license: what a business may do
- Which self-hosted AI apps include SSO for free?
- Which self-hosted AI apps send telemetry by default, and how to turn it off
- Self-hosted AI agent and chatbot builders for small businesses
- Self-hosted OCR and document AI apps for small businesses
- Self-hosted customer support and chatbot apps for small businesses
- Self-hosted local LLM runtimes for small businesses
- Self-hosted speech-to-text, text-to-speech and translation apps
- Self-hosted workflow automation with AI for small businesses
- Self hosted LLM: choose hardware and plan running costs
- Self hosted AI hardware and monthly server costs
- Self hosted AI chatbot: choose the right deployment for your team
- Self-hosted AI deployment checklist for a business pilot
Every figure on this page comes from the linked app pages, which cite the project's own repository and docs. Spotted something wrong? Tell us.