Skip to content

private-gpt

Open-source API layer for building private RAG apps on top of local LLM servers

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

73

Health

Active

Overview

Stars

57,646

Last commit

today

Nov 2026

Repository age

3 years

since May 2023

Latest version

v1.0.1

Jun 2026

Contributors

–

23 active in 90 days

Releases

2

last 12 months

Language

Python

PrivateGPT is an API that sits between your application and a local model server. It does not run models. It connects to any OpenAI-compatible server, such as Ollama, llama.cpp or vLLM, through the OPENAI_API_BASE setting.

On top of that it provides a messages API with streaming and token counting, file ingestion, retrieval with citations, agentic RAG, built-in tools for web search, web fetch and code execution, custom tools, MCP connectors, database and CSV access, and embeddings. The API follows the Anthropic API model.

A workbench UI at /ui lets you send messages, upload documents, test retrieval and inspect requests. The project calls it a demonstrator. The API is the main product, and you are expected to build your own app on it.

It is written in Python, licensed Apache-2.0, and installs with Homebrew on macOS or uv on Linux and Windows. It also powers the Zylon on-premise platform. It suits teams that want document chat and retrieval without sending data to cloud APIs.

Who it's for

Developers building internal AI tools

You get retrieval, citations and tool calling behind one API instead of writing that backend yourself.

Skip if: You want a finished chat product for end users rather than an API.

Teams with data that must stay on-premise

It works against local inference servers, so documents need not reach cloud APIs.

Skip if: You lack hardware to run a capable local model.

Ollama users who want document Q&A

The bundled UI lets you upload files and test retrieval with citations.

Skip if: You only need simple chat with no document retrieval.

The problem it solves

Running a model locally is only the first step. You still need ingestion, retrieval, tools and an API for your app. PrivateGPT supplies those pieces without relying on a cloud provider.

Strengths

  • Works with any server exposing /v1/chat/completions and /v1/models
  • Retrieval with citations, agentic RAG and MCP connectors
  • Apache-2.0 license, with 22 contributors in the last 90 days
  • Installs through Homebrew, uv on Linux, or uv on Windows
  • Built-in UI for testing and demos

Trade-offs

  • Needs a separate LLM server running first
  • Local models can be large; the example LLM is about 24 GB
  • The UI is a demonstrator, not a full end-user product
  • Requires building your own application on the API

Self-host private-gpt

Self-hostable
Yes

Quick start

# macOS
brew tap zylon-ai/tap
brew install private-gpt

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is PrivateGPT free?

Yes. It is licensed Apache-2.0.

Does it run the models itself?

No. It connects to an OpenAI-compatible inference server such as Ollama, llama.cpp or vLLM.

Which platforms does it support?

The quickstart covers macOS through Homebrew, and Linux and Windows through uv.

Where is the UI?

After starting it, open http://localhost:8080/ui. The API is on port 8080.

Similar tools in RAG and semantic search

serviette

RAG and semantic search

No-code RAG server that answers from a document folder and stays in sync with edits

59k 1.5k 13 days ago Active MIT

DocsGPT

RAG and semantic search

Self-hosted AI agents that answer from your documents and cite their sources

18k 2.3k today Thriving MIT

openviking

RAG and semantic search

Context database that gives AI agents memory, knowledge and skills as a browsable

43k 3.6k today Thriving AGPL-3.0

Swirl Search

RAG and semantic search

Federated AI search and RAG that queries your apps live without a vector database

3k 291 5 months ago Slowing Apache-2.0

Quivr

RAG and semantic search

API-only engine to store, search and set alerts on incoming documents like news and email

40k 3.7k 7 days ago Active MIT

Vane

RAG and semantic search

Self-hosted AI answering engine with cited sources, local LLMs and bundled SearxNG

38k 4.3k 3 months ago Slowing MIT