Skip to navigation

Package Install

This is the recommended installation method for developers who want to run PrivateGPT against an existing LLM server (Ollama, LM Studio, etc.) without cloning the repository.

PrivateGPT package files are hosted at https://wheels.privategpt.dev/packages/. uv uses that location to find the PrivateGPT release and continues to resolve public dependencies from PyPI by default.


Install

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

Upgrade:

brew upgrade private-gpt

Reproducible install (pinned dependencies)

The commands above install the newest compatible version of each dependency. To install exactly the dependency versions a release was tested with (the Homebrew formula already does this), add that release’s constraints file:

VERSION=1.1.0
uv tool install --python 3.11 \
--find-links https://wheels.privategpt.dev/packages/ \
--constraints "https://wheels.privategpt.dev/constraints/private-gpt-${VERSION}-constraints.txt" \
"private-gpt[core]==${VERSION}"

Offline bundle

Each GitHub release includes a private-gpt-<version>-core-<platform> archive for Linux x86_64 and arm64, macOS arm64, and Windows x86_64. It contains every pinned wheel, so the install needs no network access and does not depend on PyPI staying available. Only Python 3.11 is required:

tar xzf private-gpt-1.1.0-core-linux-x86_64.tar.gz
cd private-gpt-1.1.0-core-linux-x86_64
python3.11 -m venv ~/private-gpt-venv
~/private-gpt-venv/bin/pip install --no-index --find-links wheelhouse \
--require-hashes --no-compile -r requirements.txt
~/private-gpt-venv/bin/private-gpt serve

--require-hashes checks every file against the SHA-256 recorded at release time. --no-compile skips precompiling the bundled SQL parser tables, which otherwise needs about 5 GB of memory during the install.

Python 3.11 is required. PrivateGPT does not support Python 3.10 or 3.12+. With uv, --python 3.11 downloads a managed interpreter if none is installed.

System dependencies

PrivateGPT starts without any of these, but some document features need native tools. The Docker image and the Homebrew formula already include libmagic.

ToolUsed formacOSDebian / UbuntuWindows
libmagicDetecting file types from contentbrew install libmagicsudo apt install libmagic1Not available; PrivateGPT falls back to file extensions
LibreOfficeConverting .doc, .ppt, .xls filesbrew install --cask libreofficesudo apt install libreofficeInstaller, with soffice on PATH
GhostscriptRendering slides to imagesbrew install ghostscriptsudo apt install ghostscriptInstaller, with gs on PATH

Verify

command -v private-gpt

Run

After installing, set OPENAI_API_BASE to your LLM server and start:

OPENAI_API_BASE=http://localhost:11434/v1 private-gpt serve

PrivateGPT starts on port 8080 by default. Change it with private-gpt serve --port <port>.

Data storage

All application data (vector store, ingested documents, models, caches) is stored under a single home directory:

PlatformDefault path
macOS / Linux~/.local/share/private-gpt/
Windows%LOCALAPPDATA%\private-gpt\
Docker/home/worker/app/ (fixed)

Override the location with PGPT_HOME:

PGPT_HOME=/data/private-gpt private-gpt serve

Key environment variables

VariableDefaultDescription
OPENAI_API_BASEhttps://api.openai.com/v1Base URL of your OpenAI-compatible LLM server
OPENAI_API_KEY(empty)API key, if your server requires one
OPENAI_EMBEDDING_API_BASEsame as OPENAI_API_BASEOverride for the embeddings endpoint
PORT8080Port the server listens on (also settable via private-gpt serve --port)
PGPT_HOME~/.local/share/private-gptRoot directory for all local data (vector store, models, caches)
PGPT_LLM_AUTO_DISCOVER_MODELStrueDiscover LLM models from /v1/models on startup

What’s next?