LocalGPT
Chat with your documents through a local RAG stack that talks to Ollama.
Quick answer
LocalGPT is a chat with your documents through a local RAG stack that talks to Ollama, listed under Knowledge base & RAG. A typical small-business use: build a private knowledge base from PDFs and other files and chat with it in a browser. Official hardware: minimum 4 vCPU · 8 GB RAM · 50 GB disk (recommended 8 vCPU · 32 GB RAM · 200 GB disk). That fits a Hetzner Cloud CPX32 server at about €30.49/month (server only, excl. VAT; €110.99/month for the recommended spec). License: MIT, which allows internal business use.
Last updated · facts verified against official docs on · sources
Activity data comes from GitHub and was last refreshed Nov 23, 2026.
What is LocalGPT?
LocalGPT is an MIT-licensed document Q&A system with a Next.js UI, a backend for sessions and uploads, and a RAG API for indexing and retrieval. It fuses vector and full-text search, reranks results, and answers with models you run in Ollama. The official Docker path runs the app containers against Ollama on the host by default (or an optional Ollama container). The GitHub organization name is PromtEngineer (the typo is official).
Where it fits in a 10–200 person business
- Build a private knowledge base from PDFs and other files and chat with it in a browser
- Keep document Q&A on a machine you control, with Ollama providing the models
- Call the RAG API from your own tools for indexed document answers
These use cases are our editorial suggestions, not claims made by the project.
Can a business use LocalGPT? (license)
| License | MIT |
|---|---|
| Type | Permissive: MIT / Apache-2.0: use, modify and sell with few obligations. |
| Internal business use | Allowed under the license text |
| What to watch | Permissive. Internal and commercial use allowed; keep the license notice. |
This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.
Data & compliance: does LocalGPT phone home?
| Telemetry (usage data sent to the vendor) | Not documented |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Yes, by default The rag-api container downloads its embedding model from Hugging Face on first start, and the reranker is fetched on the first reranked query. Ollama model pulls also leave the machine. No other default telemetry endpoint is documented. Source: github.com/PromtEngineer/localGPT/blob/main/DOCKER_README.md |
| Single sign-on (OIDC / SAML / LDAP) | Not supported Official deployment and installation guides say neither server implements authentication; they recommend adding auth at a reverse proxy. Source: github.com/PromtEngineer/localGPT/blob/main/Documentation/deployment_guide.md |
| Audit log | Not documented |
| Role-based access control (RBAC) | Not documented |
| Data residency / GDPR notes from the project | Documented Indexes, uploads and chat data are stored in host directories (lancedb, index_store, shared_uploads, backend/chat_data.db) bind-mounted into the containers. Model weights are pulled from Ollama and Hugging Face on first use. Source: github.com/PromtEngineer/localGPT/blob/main/Documentation/installation_guide.md |
Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.
What hardware does LocalGPT need?
| Minimum | 4 vCPU · 8 GB RAM · 50 GB disk |
|---|---|
| Recommended | 8 vCPU · 32 GB RAM · 200 GB disk |
| GPU | Optional. The installation and deployment guides list an NVIDIA GPU with 8 GB+ VRAM as recommended, and say Apple Silicon uses MPS. Embedding and reranking pick CUDA, then MPS, then CPU automatically. Host Ollama is preferred in Docker for direct GPU access. |
Official minimum and recommended figures are from the installation guide (4 cores / 8 GB RAM / 50 GB disk minimum; 8+ cores / 32 GB+ RAM / 200 GB+ SSD recommended). The same minimum section also says "8GB (16GB recommended)". The Docker README lists 8 GB+ RAM (16 GB recommended) and 20 GB+ free disk for images and model weights. Defaults include qwen3.5:9b and qwen3.5:4b in Ollama, a ~1.2 GB embedding model, and a ~7.5 GB reranker fetched on the first reranked query.
Source: github.com/PromtEngineer/localGPT/blob/main/Documentation/installation_guide.md
How much does it cost to host LocalGPT per month?
| Minimum spec | 4 vCPU · 8 GB RAM · 50 GB disk → CPX32 (4 vCPU, 8 GB, 160 GB disk) €30.49/mo |
|---|---|
| Recommended spec | 8 vCPU · 32 GB RAM · 200 GB disk → CPX62 (16 vCPU, 32 GB, 640 GB disk) €110.99/mo |
How we got this: we took the cheapest Hetzner Cloud Regular Performance (shared AMD vCPU) plan with at least the RAM and vCPU the project lists, using prices read from www.hetzner.com/cloud/regular-performance on 2026-11-23. "From" monthly price cap shown by Hetzner, excluding VAT. Prices vary by location. Covers the server only; it excludes LLM API usage, backups, extra storage, GPUs and your time. Disk is not matched; add a volume if you need more than the plan includes.
How to deploy LocalGPT
Method: Docker Compose (start-docker.sh)
curl -fsSL https://ollama.ai/install.sh | sh
ollama serve
ollama pull qwen3.5:9b
ollama pull qwen3.5:4b
git clone https://github.com/PromtEngineer/localGPT.git
cd localGPT
./start-docker.sh
# UI: http://localhost:3000
# If you would rather not install host Ollama: ./start-docker.sh container From the official instructions: github.com/PromtEngineer/localGPT/blob/main/DOCKER_README.md. Always check the source for the current version before you run it.
Known gotchas when self-hosting LocalGPT
- LocalGPT ships with no authentication and permissive CORS (Access-Control-Allow-Origin: *) on both HTTP services. Official production notes say to put a reverse proxy with TLS in front, add auth at the proxy, and not expose ports 8000 and 8001 outside a trusted network. source
- The browser streams directly to the RAG API on port 8001, so that port must be reachable by clients (or proxied) if you leave streaming enabled. The RAG API is single-threaded and handles one chat or indexing run at a time; docker compose up --scale does not work with the shipped Compose file because every service has a fixed container_name and host port. source
- The default Docker path expects Ollama on the host at port 11434. If the RAG API cannot connect via host.docker.internal, the troubleshooting guide says to start Ollama with OLLAMA_HOST=0.0.0.0:11434, or use ./start-docker.sh container. You must pull qwen3.5:9b and qwen3.5:4b yourself when using host Ollama. source
- The first up --build can take several minutes: rag-api downloads the embedding model from Hugging Face at startup, and the ~7.5 GB reranker is fetched lazily on the first reranked query. backend may sit in created until rag-api is healthy. Resetting the SQLite database deletes all sessions, messages and index metadata. source
Alternatives in Knowledge base & RAG
- RAGFlow RAG engine with deep document parsing (OCR, layout and tables) and cited answers. Compare LocalGPT vs RAGFlow
- AppFlowy Open-source Notion-style AI workspace (docs, databases, boards) with desktop apps and a self-hosted cloud server. Compare AppFlowy vs LocalGPT
- AFFiNE Notion- and Miro-style workspace (docs, whiteboards, databases) with built-in AI, self-hostable with Docker. Compare AFFiNE vs LocalGPT
- AnythingLLM All-in-one private chat with your documents, agents and an embeddable widget. Compare AnythingLLM vs LocalGPT
- PrivateGPT API-first private document Q&A that sits on top of your own LLM server. Compare LocalGPT vs PrivateGPT
- Open Notebook Private, self-hosted alternative to Google NotebookLM with your choice of AI models. Compare LocalGPT vs Open Notebook
- LightRAG Graph-based RAG server that builds a knowledge graph from your documents, with a web UI and REST API. Compare LightRAG vs LocalGPT
- Langchain-Chatchat Chinese-first local knowledge-base Q&A and agent app built on LangChain, wired to local model servers. Compare Langchain-Chatchat vs LocalGPT
- WeKnora Tencent's open-source knowledge-base and agent platform with document parsing, RAG and team workspaces. Compare LocalGPT vs WeKnora
- Onyx (formerly Danswer) AI chat and enterprise search connected to 50+ workplace apps. Compare LocalGPT vs Onyx (formerly Danswer)
- Karakeep Self-hosted bookmark and read-later app (formerly Hoarder) with AI tagging, summaries and full-text search. Compare Karakeep vs LocalGPT
- FastGPT Knowledge-base Q&A and visual AI workflow platform. Compare FastGPT vs LocalGPT
- kotaemon Open-source RAG web app for chatting with your documents, with citations and GraphRAG. Compare kotaemon vs LocalGPT
- MaxKB Enterprise knowledge-base and agent platform with RAG and workflows. Compare LocalGPT vs MaxKB
- Linkwarden Collaborative bookmark preservation with configurable AI tagging. Compare Linkwarden vs LocalGPT
- DocsGPT Open-source platform for AI agents and assistants that answer from your documents with sources. Compare DocsGPT vs LocalGPT
- QAnything Local knowledge-base Q&A over many file types, with hybrid search and cited answers, started with one Docker Compose command. Compare LocalGPT vs QAnything
- R2R Production RAG platform with a REST API, hybrid search, knowledge graphs and an agentic Deep Research mode. Compare LocalGPT vs R2R
- OpenAgent Self-hosted AI assistant with RAG, agent tools, SSO and an admin UI, shipped as a single binary. Compare LocalGPT vs OpenAgent
- PipesHub Self-hosted workplace search and AI answers across 50+ connected apps, filtered by each user's permissions. Compare LocalGPT vs PipesHub
- Morphik Core Multimodal document retrieval engine for RAG over PDFs, images and visually rich files, with an API, SDKs and MCP. Compare LocalGPT vs Morphik Core
LocalGPT FAQ
How much RAM does LocalGPT need?
The official minimum is 4 vCPU · 8 GB RAM · 50 GB disk. The recommended spec is 8 vCPU · 32 GB RAM · 200 GB disk. Official minimum and recommended figures are from the installation guide (4 cores / 8 GB RAM / 50 GB disk minimum; 8+ cores / 32 GB+ RAM / 200 GB+ SSD recommended). The same minimum section also says "8GB (16GB recommended)". The Docker README lists 8 GB+ RAM (16 GB recommended) and 20 GB+ free disk for images and model weights. Defaults include qwen3.5:9b and qwen3.5:4b in Ollama, a ~1.2 GB embedding model, and a ~7.5 GB reranker fetched on the first reranked query.
Does LocalGPT need a GPU?
Optional. The installation and deployment guides list an NVIDIA GPU with 8 GB+ VRAM as recommended, and say Apple Silicon uses MPS. Embedding and reranking pick CUDA, then MPS, then CPU automatically. Host Ollama is preferred in Docker for direct GPU access.
How much does it cost to self-host LocalGPT?
The software is free to download. Based on the official minimum 4 vCPU · 8 GB RAM · 50 GB disk (recommended 8 vCPU · 32 GB RAM · 200 GB disk): That fits a Hetzner Cloud CPX32 server at about €30.49/month (server only, excl. VAT; €110.99/month for the recommended spec). That covers the server only, not LLM API usage, backups, extra storage or your time.
Is LocalGPT free for commercial use?
LocalGPT is licensed under MIT (Permissive). Internal business use is allowed under the license text. Permissive. Internal and commercial use allowed; keep the license notice. This is a summary, not legal advice.
What are common problems when self-hosting LocalGPT?
LocalGPT ships with no authentication and permissive CORS (Access-Control-Allow-Origin: *) on both HTTP services. Official production notes say to put a reverse proxy with TLS in front, add auth at the proxy, and not expose ports 8000 and 8001 outside a trusted network. The browser streams directly to the RAG API on port 8001, so that port must be reachable by clients (or proxied) if you leave streaming enabled. The RAG API is single-threaded and handles one chat or indexing run at a time; docker compose up --scale does not work with the shipped Compose file because every service has a fixed container_name and host port. The default Docker path expects Ollama on the host at port 11434. If the RAG API cannot connect via host.docker.internal, the troubleshooting guide says to start Ollama with OLLAMA_HOST=0.0.0.0:11434, or use ./start-docker.sh container. You must pull qwen3.5:9b and qwen3.5:4b yourself when using host Ollama. The first up --build can take several minutes: rag-api downloads the embedding model from Hugging Face at startup, and the ~7.5 GB reranker is fetched lazily on the first reranked query. backend may sit in created until rag-api is healthy. Resetting the SQLite database deletes all sessions, messages and index metadata.
Is LocalGPT still maintained?
Yes, it is actively developed. Last commit: Aug 21, 2026. Checked Nov 23, 2026.
How do I install LocalGPT?
The official method is Docker Compose (start-docker.sh). The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/PromtEngineer/localGPT/blob/main/DOCKER_README.md
What are self-hosted alternatives to LocalGPT?
Other apps in Knowledge base & RAG: RAGFlow, AppFlowy, AFFiNE, AnythingLLM, PrivateGPT, Open Notebook, LightRAG, Langchain-Chatchat, WeKnora, Onyx (formerly Danswer), Karakeep, FastGPT, kotaemon, MaxKB, Linkwarden, DocsGPT, QAnything, R2R, OpenAgent, PipesHub, Morphik Core.
Sources
- GitHub repository: github.com/PromtEngineer/localGPT
- Official documentation, Deploy instructions, Gotcha 4: github.com/PromtEngineer/localGPT/blob/main/DOCKER_README.md
- License text: github.com/PromtEngineer/localGPT/blob/main/LICENSE
- Hardware requirements: github.com/PromtEngineer/localGPT/blob/main/Documentation/installation_guide.md
- Gotcha 1, Gotcha 2: github.com/PromtEngineer/localGPT/blob/main/Documentation/deployment_guide.md
- Gotcha 3: github.com/PromtEngineer/localGPT/blob/main/DOCKER_TROUBLESHOOTING.md
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
Facts on this page were checked against the project's own repository and docs on 2026-11-15. Spotted something out of date? Tell us.