Open source API layer that turns local models into private AI applications
open sourceApache-2.0self-hostablefree
PrivateGPT is an open source API server that sits between your app and a local OpenAI-compatible inference server (Ollama, llama.cpp, vLLM and others) and adds the building blocks of an AI application on top, following the Claude API's design. It gives you a messages API with streaming, async processing and token counting, file and document ingestion, retrieval with citations and agentic RAG, embeddings, built-in tools for web search, web fetch and code execution, custom tools, MCP connectors and basic skills, and structured querying of databases and CSV files. Because it speaks the Claude API, tools such as Claude Code, Claude Desktop and Cowork, the Claude add-ins for Microsoft 365, OpenCode and n8n can use your private models through it. A workbench UI at /ui is there for testing and demos. It installs with Homebrew on macOS, uv on Linux and Windows, or Docker, and is Apache-2.0 licensed. The team behind it builds Zylon, an on-premise enterprise AI platform that runs on PrivateGPT.
Problems it solves
- chat with our documents privately without sending data to a cloud AI provider
- add RAG with citations on top of a local model running in Ollama or vLLM
- use Claude Code or Claude Desktop with our own local models
- a self-hosted API like the Claude API for building private AI apps
- give a local LLM tools, MCP connectors and access to our databases
- query CSV files and SQL databases in natural language with a local model
Features
- messages API with streaming, async processing and token counting, following the Claude API
- file, PDF and document ingestion
- retrieval with citations and agentic RAG
- embeddings
- built-in web search, web fetch and code execution tools
- custom tools, MCP connectors and remote MCP servers
- basic skills support
- database and CSV querying
- workbench UI with an API debugger
- works as a backend for Claude Code, Claude Desktop, Cowork, Claude for Microsoft 365, OpenCode and n8n
Limitations
- It doesn't run models itself: it needs a separate OpenAI-compatible inference server such as Ollama, llama.cpp or vLLM.1
- The bundled web UI is a workbench for testing and demos; the API is the product, so end users need an app built on it.1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what PrivateGPT does.
