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

GitHub stars22.2k
Forks2.4k
Latest release—
Last commitAug 21, 2026
Est. server costfrom €30.49/mo

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)

LicenseMIT
TypePermissive: MIT / Apache-2.0: use, modify and sell with few obligations.
Internal business useAllowed under the license text
What to watchPermissive. 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?

Minimum4 vCPU · 8 GB RAM · 50 GB disk
Recommended8 vCPU · 32 GB RAM · 200 GB disk
GPUOptional. 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 spec4 vCPU · 8 GB RAM · 50 GB disk → CPX32 (4 vCPU, 8 GB, 160 GB disk) €30.49/mo
Recommended spec8 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

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

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.