LibreAI / RAG & Knowledge / private-gpt
// rag · zylon-ai/private-gpt

private-gpt

Complete API layer for private AI apps on local models: RAG, skills, tools, MCP and text-to-SQL

★ 57.6k stars⑂ 7.6k forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

private-gpt is an open-source rag & knowledge project by zylon-ai (zylon-ai/private-gpt on GitHub). It has 57,562 GitHub stars and 7,620 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 8 October 2026.

GitHub stars
57,562
Forks
7,620
License
Apache-2.0
Last updated on GitHub
8 October 2026
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide what you want from private-gpt and check the README and requirements to confirm it fits your setup and Python environment.

  2. Get the code

    Clone the repository from GitHub (github.com/zylon-ai/private-gpt) or use the documented install channel if you do not need the source.

  3. Install and configure

    Follow the README quickstart to install dependencies and set any required configuration or credentials.

  4. Run your first task

    Work through the README's first example end to end, then adapt it to your own project or data.

// features

Why people love it

Private RAG API

A complete API layer for retrieval-augmented generation over your documents, fully private.

Skills and tools

Supports skills, tools and MCP on top of local models.

Text-to-SQL

Includes text-to-SQL capabilities for querying structured data in natural language.

Any OpenAI-compatible server

Works with any OpenAI-compatible inference server, not one locked backend.

Claude API compatibility

Offers a Claude-compatible API surface, per the README.

On-premise first

Designed for on-premise deployment so documents never leave your infrastructure.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Start by getting the source and entering the project directory.

    git clone https://github.com/zylon-ai/private-gpt.git
    cd private-gpt
  2. Install PrivateGPT

    On macOS use Homebrew, or install as a uv tool with the project's wheel index.

    brew install private-gpt
  3. Start the server

    Launch PrivateGPT and ingest documents through its API or UI.

    private-gpt  # see README for the exact command
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains private-gpt?

It is maintained by zylon-ai and contributors on GitHub, where the repository github.com/zylon-ai/private-gpt is the canonical home for code, issues and releases.

Is private-gpt free to use?

Yes — it is open source under the Apache-2.0 license. Read the license in the repository for what is permitted, including any conditions on redistribution or commercial use.

Does it need a paid API key?

No paid key required — it runs local models through your chosen inference server.

How does private-gpt compare to alternatives?

Compared with Ollama or LM Studio alone: PrivateGPT adds the application API layer — RAG, tools, MCP and text-to-SQL — on top of a local inference server.

How do I get started?

Clone github.com/zylon-ai/private-gpt, follow the README quickstart to install it, and run the documented first example before adapting it to your own work.

// keep exploring

Similar tools

RAG & Knowledge

llmware

Unified framework for enterprise RAG pipelines with small, specialized models - local, private and secure.

★ 14.8k starsApache-2.0
View guide →
RAG & Knowledge

Langchain-Chatchat

Local knowledge-base RAG and agent app built on LangChain with ChatGLM, Qwen and Llama models

★ 38.7k starsApache-2.0
View guide →
RAG & Knowledge

LEANN

The smallest vector index in the world: private RAG over everything on your laptop with 97% less storage.

★ 13.0k starsMIT
View guide →
RAG & Knowledge

deep-searcher

DeepSearcher — open-source deep research over your private data, with reasoning models and Milvus retrieval.

★ 8.3k starsApache-2.0
View guide →
RAG & Knowledge

SQLBot

SQLBot — DataEase's conversational analytics: ask in natural language, get SQL answers via LLMs plus RAG.

★ 6.9k starsGPL-3.0
View guide →
RAG & Knowledge

UltraRAG

A low-code MCP framework for building complex, innovative RAG pipelines — visibly, not as a black box.

★ 5.7k starsApache-2.0
View guide →
// alternatives

Alternatives in RAG & Knowledge

The most-starred other RAG & Knowledge projects in the LibreAI catalogue — the realistic shortlist if private-gpt is not the right fit.

Get private-gpt

Free and open — grab the source, star the repo, and start creating.