HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
zylon-ai
private-gpt
Python2023–2024
zylon-ai / private-gpt

private-gpt

Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more. Works with any OpenAI-compatible inference server.

34Distinct people
35Mentions
0Explicit recommenders
57.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more. Works with any OpenAI-compatible inference server.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month35 dated mentions

Observed mentions: 2023-05-10 15:52:52 UTC to 2024-07-31 09:14:21 UTC.

0510152023-05-01 00:00:00 UTC to 2023-06-01 00:00:00 UTC (exclusive): 13 mentions; 4 submissions, 9 commentsMay 20232023-06-01 00:00:00 UTC to 2023-07-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2023-07-01 00:00:00 UTC to 2023-08-01 00:00:00 UTC (exclusive): 8 mentions; 0 submissions, 8 comments2023-08-01 00:00:00 UTC to 2023-09-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023-09-01 00:00:00 UTC to 2023-10-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2023-10-01 00:00:00 UTC to 2023-11-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-01 00:00:00 UTC to 2023-12-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023-12-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 commentsDec 20232024-01-01 00:00:00 UTC to 2024-02-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-02-01 00:00:00 UTC to 2024-03-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2024-03-01 00:00:00 UTC to 2024-04-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-04-01 00:00:00 UTC to 2024-05-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-05-01 00:00:00 UTC to 2024-06-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-06-01 00:00:00 UTC to 2024-07-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-07-01 00:00:00 UTC to 2024-08-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
May 20232023-05-01 00:00:00 UTC2023-06-01 00:00:00 UTC1349
Jun 20232023-06-01 00:00:00 UTC2023-07-01 00:00:00 UTC110
Jul 20232023-07-01 00:00:00 UTC2023-08-01 00:00:00 UTC808
Aug 20232023-08-01 00:00:00 UTC2023-09-01 00:00:00 UTC101
Sep 20232023-09-01 00:00:00 UTC2023-10-01 00:00:00 UTC110
Oct 20232023-10-01 00:00:00 UTC2023-11-01 00:00:00 UTC000
Nov 20232023-11-01 00:00:00 UTC2023-12-01 00:00:00 UTC101
Dec 20232023-12-01 00:00:00 UTC2024-01-01 00:00:00 UTC404
Jan 20242024-01-01 00:00:00 UTC2024-02-01 00:00:00 UTC101
Feb 20242024-02-01 00:00:00 UTC2024-03-01 00:00:00 UTC202
Mar 20242024-03-01 00:00:00 UTC2024-04-01 00:00:00 UTC101
Apr 20242024-04-01 00:00:00 UTC2024-05-01 00:00:00 UTC101
May 20242024-05-01 00:00:00 UTC2024-06-01 00:00:00 UTC000
Jun 20242024-06-01 00:00:00 UTC2024-07-01 00:00:00 UTC000
Jul 20242024-07-01 00:00:00 UTC2024-08-01 00:00:00 UTC101

From the project README

An excerpt from the repository, fetched Nov 13, 2026.

Read the project’s introduction
PrivateGPT is the open-source API layer that turns local models into production AI applications. Running a model locally is only the first step. To build useful AI applications you need a set of higher-level building blocks. PrivateGPT provides that layer as an open-source API following the Claude API model — so you can build private AI products without rebuilding the same backend primitives from scratch, and without depending on cloud APIs. Production-tested: PrivateGPT powers Zylon, the on-premise AI platform providing Private AI to enterprises across the globe. Your app / agent / workflow / UI | PrivateGPT API | OpenAI-compatible inference server (Ollama, llama.cpp, vLLM, …) PrivateGPT does not run models itself. It connects to any OpenAI-compatible inference server via OPENAI_API_BASE. If it implements /v1/chat/completions and /v1/models, it works. PrivateGPT ships a built-in workbench UI for testing and demos, available at /ui. The API is the actual product. What PrivateGPT gives you Standard messages API (streaming, async, token counting) File and artifact ingestion Retrieval with citations and agentic RAG Built-in tools mirroring the Claude API (web search, web fetch, code execution) Custom tools and MCP connectors Structured access to databases and CSVs Embeddings and orchestration Quickstart For Docker, full installation options, and model configuration see the full Quickstart guide. Prerequisites: You need a running OpenAI-compatible LLM server. Ollama is the easiest starting point. 1. Install PrivateGPT # macOS brew tap zylon-ai/tap brew install private-gpt # Linux curl -LsSf https://astral.sh/uv/install.sh | sh uv tool install --python 3.11 \ --find-links https://wheels.privategpt.dev/packages/ \ "private-gpt[core]" # Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" uv tool install --python 3.11 ` --find-links https://wheels.privategpt.dev/packages/ ` "private-gpt[core]" 2. Start your LLM server # Example with Ollama ollama pull qwen3.5:35b # LLM (~24 GB) ollama pull mxbai-embed-large # Embeddings (~670 MB) ollama serve 3. Run PrivateGPT # macOS / Linux OPENAI_API_BASE=http://localhost:<llm-port>/v1 \ OPENAI_EMBEDDING_API_BASE=http://localhost:<embedding-port>/v1 \ private-gpt serve # Windows (PowerShell) $env:OPENAI_API_BASE = "http://localhost:<llm-port>/v1" $env:OPENAI_EMBEDDING_API_BASE = "http://localhost:<embedding-port>/v1" private-gpt serve 4. Open the UI Go to http://localhost:8080/ui. The API is at http://localhost:8080 and follows the Anthropic API spec. The UI is useful for: Sending messages. Selecting models from /v1/models. Uploading documents. Testing retrieval with citations. Enabling tools per chat. Configuring databases, MCP connectors, skills, and custom tools. Inspecting requests and responses through the API Debugger. This UI is a demonstrator, not the core product. Developers are expected to build their own applications on top of the API. That said, the UI is intentionally polished enough for demos, videos, internal pilots, and quick local usage. Integrations Claude Desktop / Cowork Microsoft Excel Claude add-in Microsoft Word Claude add-in n8n OpenCode PrivateGPT Workbench PrivateGPT works natively as the local backend for the tools developers and end users already use. Integration Guide What it enables Claude Code Use your local models as the backend for agentic coding in the terminal Claude Desktop / Cowork Connect the Claude desktop app and Cowork to your private models Claude for Microsoft 365 Run private AI inside Word, Excel, Outlook, and PowerPoint OpenCode Local AI coding assistant in the terminal Any tool that works with a local OpenAI-compatible provider will also work with PrivateGPT. The list below is non-exhaustive. Tool Link n8n n8n.io OpenClaw openclaw.ai Hermes Agent hermes-agent.dev VS Code code.visualstudio.com Cline cline.bot Claude API compatibility PrivateGPT follows the Claude API as the reference for modern AI application APIs. The goal is full coverage where it makes sense for a local, open-source layer. Area Capability Claude API PrivateGPT Models Model selection ✅ ✅ Messages Messages API ✅ ✅ Messages Streaming ✅ ✅ Messages Batch / async processing ✅ ✅ async Messages Token counting ✅ ✅ Knowledge Files / artifacts ✅ ✅ Knowledge PDF and document ingestion ✅ ✅ Knowledge Retrieval with citations ✅ ✅ Knowledge Embeddings ✅ ✅ Tools Tool use ✅ ✅ Tools Tools in streaming ✅ ✅ Tools Built-in web search ✅ ✅ Tools Web extraction / fetch ✅ ✅ Tools Custom tools ✅ ✅ Data Database querying Via tools ✅ built-in Data CSV / tabular analysis Via tools / code ✅ built-in Agents MCP in the API ✅ ✅ Agents Remote MCP servers ✅ ✅ Agents Skills ✅ ⚙️ basic Output Structured outputs ✅ ✅ inference-dependent Models Vision ✅ ✅ model-dependent Optimization Prompt caching ✅ ❌ Reasoning Extended thinking ✅ ✅ Platform Token-based auth ✅ ✅ Platform OAuth / organizations ✅ ❌ ✅ Supported · ⚙️ Partial / in progress · ❌ Not supported Contributions are especially welcome in ⚙️ areas. Why PrivateGPT? A brief history PrivateGPT started as a proof of concept in 2023: a script that let you chat with your documents, fully offline, with no data leaving your machine. It went viral on GitHub, crossed 50K stars, and became one of the most-watched AI repos of that year. That early version made one thing clear: there was serious demand for private, local AI that worked without cloud dependencies. PrivateGPT 1.0 is the evolution of that idea — rebuilt from the ground up as a proper API layer for private AI applications. How PrivateGPT compares vs Ollama, LM Studio, LocalAI, vLLM, llama.cpp These projects make it possible to run and serve models locally. They answer: how do I run a model? PrivateGPT answers the next
Read the full README on GitHub

What Hacker News says

35 sources
In Show HN: I made an app to use local AI as daily driver
I’m preparing a small internal tool for my work to search documents and provide answers (with references), I’m thinking of using GPT4All [0], Danswer [1] and/or privateGPT [2]. The RAG technique is very close to what I have in mind, but I don’t want the LLM to “hallucinate” and generate answers on its own by synthesizing the source documents. As stated by many others, we’re living in interesting times. [0] https://gpt4all.io/index.html [1] https://www.danswer.ai/ [2] https://github.com/imartinez/privateGPT
In What Is Retrieval-Augmented Generation a.k.a. RAG?
amaiya·Sep 6, 2023Submission

Run ChatGPT-like LLMs on your laptop in 3 lines of code

I've been playing around with https://github.com/imartinez/privateGPT and wanted to create a simple Python package that made it easier to run ChatGPT-like LLMs on your own machine, use them with non-public data, and integrate them into practical GPU-accelerated applications. This resulted in Python package I call OnPrem.LLM. In the documentation, there are examples for how to use it for information extraction, text generation, retrieval-augmented generation (i.e., chatting with documents on your computer), and text-to-code generation: https://amaiya.github.io/onprem/ Enjoy!
150 points · Open discussion
> a local wikipedia dump There exists (at least) a project to train and query an LLM on local documents: privateGPT - https://github.com/imartinez/privateGPT It should provide links to the the source with the relevant content, to check the exact text: > You'll need to wait 20-30 seconds (depending on your machine) while the LLM model consumes the prompt and prepares the answer. Once done, it will print the answer and the 4 sources it used as context from your documents You will have noticed, in that first sentence, that it may not be practical, especially on an Orange Pi.
In GPU-Accelerated LLM on an Orange Pi

Showing the 15 most recent of 35 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.