PrivateGPT
Open-source API server that adds RAG, tools and MCP on top of any local OpenAI-compatible model.
About
Zylon's PrivateGPT began in 2023 as a viral chat-with-your-documents script and was rebuilt for version 1.0 as an application server in front of a local model. It runs no models itself: you point it at any server that speaks the OpenAI API, such as Ollama, llama.cpp or vLLM, and it exposes an Anthropic-style messages API with streaming and token counting, document ingestion with cited retrieval, agentic RAG, built-in web search, page fetching and code execution tools, custom tools, MCP connectors, SQL database and CSV querying, and embeddings. A bundled /ui workbench serves testing and demos. Integration guides cover Claude Code, Claude Desktop and OpenCode, and n8n or Cline also connect. Installation goes through Homebrew on macOS or uv with Python 3.11 on Linux and Windows; hardware needs come from whichever model server you pair it with. Apache-2.0 licensed, so commercial use and modification are allowed, and Zylon separately sells an on-premise enterprise platform built on top. Developers building private assistants or internal document tools on their own hardware get backend plumbing they would otherwise write by hand.
Should you use PrivateGPT?
Pick it when
Use PrivateGPT when you need a private document QA backend that other applications call through an OpenAI-compatible API, running fully offline with local LLMs, embeddings, and vector storage on your own hardware.
Look elsewhere when
Skip it if end users want a full multi-user chat app out of the box; AnythingLLM's Docker build or Open WebUI cover that. For complex layouts and citations per chunk, RAGFlow's document parsing goes deeper.
Alternatives to PrivateGPT
- LocalGPT
Also offline, with a hybrid semantic plus keyword search engine, more of an end-user document tool than an API to build on.
- AnythingLLM
Desktop app, plus a Docker build with multi-user workspaces and a developer API, friendlier for end users, with optional cloud providers.
- RAGFlow
Deeper parsing with template chunking and chunk-level citations, but a full engine with UI rather than a lean API layer.
- LlamaIndex
PrivateGPT is built on LlamaIndex; using it directly gives more control over retrieval at the price of writing the service yourself.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- RAG & Document Retrieval
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Easy (2/5)
- License
- Apache-2.0
- Added
- Apr 3, 2026