For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact usJoin the Discord
ManualAPI GuideAPI Reference
  • Getting started
    • Introduction
    • Quickstart
    • How it works
  • Installation Options
    • Package Install
    • Docker
    • Development
  • Configuration
    • CLI
    • Settings & Profiles
    • Model Configuration
  • Inference Providers
    • Overview
    • Ollama
    • LM Studio
    • LlamaCPP Server
    • vLLM
  • Integrations
    • Overview
    • Claude Code
    • Claude Desktop
    • Claude for Microsoft 365
    • OpenCode
  • Built-in Tools
    • Web Tools
    • Database Tools
  • Storage Providers
    • Vector Store
    • Object Storage
  • User Interface
    • Workbench
  • Observability
    • Observability
  • Reference
    • Troubleshooting
LogoLogo
Contact usJoin the Discord
On this page
  • Core install
  • Auto mode (zero config)
  • Detailed model settings (custom profile)
  • Development with hot-reload
Installation Options

Local with uv

Was this page helpful?
Previous

CLI

Next
Built with

This guide installs PrivateGPT from the cloned repository using uv, a fast Python package manager. Use this if you want to modify the source, run tests, or use hot-reload during development.

For the simplest install, use the package install instead.


Core install

The default source install uses core:

$uv sync --frozen --extra core

Add feature-specific extras only when you need them, for example uv sync --frozen --extra core --extra queue.


Auto mode (zero config)

macOS
Linux
Windows (PowerShell)
Windows (CMD)
1

Install uv

$curl -LsSf https://astral.sh/uv/install.sh | sh

Restart your shell or run source ~/.zshrc after installing.

2

Clone and install

$git clone https://github.com/zylon-ai/private-gpt
$cd private-gpt
$uv sync --frozen --extra core
3

Run

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

Open http://localhost:8080/ui in your browser.


Detailed model settings (custom profile)

Use Detailed Model Configuration to generate settings-model.yaml, tune model settings in more detail, and run local uv with PGPT_PROFILES=model.


Development with hot-reload

When working on the source, run with --reload to restart automatically on file changes:

macOS / Linux
Windows
$OPENAI_API_BASE=http://localhost:11434/v1 \
> PGPT_PROFILES=local \
> uv run private-gpt serve --reload

Or use the Makefile shortcut (Unix only):

$OPENAI_API_BASE=http://localhost:11434/v1 make dev