How to Install PrivateGPT for Offline Document Chat (2026)

Quick answer

To install PrivateGPT, start a local OpenAI-compatible model server such as Ollama, then run the official Docker image zylonai/private-gpt:latest on port 8080 with OPENAI_API_BASE pointing at Ollama. Open http://localhost:8080/ui, upload a document, and ask a question you already know the answer to. PrivateGPT is free under the Apache-2.0 licence. It does not run models itself, so the model server must be running first.

Your contracts, invoices, and client files should not need a cloud upload just to answer a simple question. PrivateGPT lets you ask those questions on your own machine, with the documents staying under your control.

This guide shows how to install PrivateGPT for offline document chat with a local Ollama model server. You will set up the model first, run PrivateGPT, ingest your first document, test answers with citations, secure the instance, and fix the errors that stop most first installs.

Quick Answer

To install PrivateGPT, start a local OpenAI-compatible model server such as Ollama, then run the official Docker image zylonai/private-gpt:latest on port 8080 with OPENAI_API_BASE pointing at Ollama. Open http://localhost:8080/ui, upload a document, and ask a question you already know the answer to. PrivateGPT is free under the Apache-2.0 licence. It does not run models itself, so the model server must be running first.

In this article

  • How we checked this guide
  • What PrivateGPT replaces, and what it does not
  • Docker or package install: which route fits your business
  • Requirements before you install PrivateGPT
  • Step 1: start Ollama and pull your models
  • Step 2: install PrivateGPT with Docker
  • Step 3: ingest your first document
  • Step 4: ask questions with citations
  • First-run security steps you must not skip
  • Make PrivateGPT useful for real work
  • Backup and update routine
  • Common errors and fixes
  • Tips and tricks that save time
  • The real cost maths: PrivateGPT versus ChatGPT Plus
  • When not to self-host PrivateGPT
  • Pros and cons
  • Our verdict
  • FAQ
  • Strategic Pivot: price the whole stack before you switch
  • Sources

How we checked this guide

We checked the install steps, Docker image, package routes, model discovery, and data storage in the official PrivateGPT documentation. We checked the licence, feature list, and product position in the official PrivateGPT GitHub repository. We checked ingestion, supported file formats, and troubleshooting fixes in the official documentation pages for those topics.

The paid comparison uses OpenAI’s official Help Center page. That page lists ChatGPT Plus at $20 a month, billed monthly. It also states that API usage is separate and billed independently. Every command in this guide comes from those official sources, checked on December 2, 2026.

What PrivateGPT replaces, and what it does not

PrivateGPT replaces the upload step. Instead of sending a contract or invoice file to a hosted chat service, you ingest the document into your own instance. PrivateGPT chunks the file, embeds the chunks, and stores them in its vector store for retrieval.

PrivateGPT official GitHub repository showing Apache-2.0 licence and API layer features

That retrieval step is the point. When you ask a question, PrivateGPT searches your ingested documents and returns an answer grounded in the passages it found. The official repository lists retrieval with citations, file and artifact ingestion, a messages API, embeddings, and tool use.

PrivateGPT does not replace the model. The official documentation states this plainly: PrivateGPT does not run models itself. It connects to an OpenAI-compatible inference server through OPENAI_API_BASE. Ollama, llama.cpp, vLLM, and similar servers run the model. PrivateGPT adds the application layer on top.

PrivateGPT also does not replace a finished team workspace. Its workbench UI at /ui is for testing and demos, and the repository calls the API the actual product. That API-first shape suits a pilot or small custom app. For staff who need accounts and permissions on day one, it is a limit to price in.

The licence needs plain words. PrivateGPT uses the Apache License 2.0. You may use, copy, modify, and distribute the software, including for commercial work, if you keep the licence and copyright notices and state significant changes. Apache-2.0 also includes a patent grant from contributors. Your hosting, hardware, and any cloud API costs still bill separately.

Best for: a small-business owner, freelancer, or technical operator who wants private document answers on local hardware and is comfortable running a model server plus an API. Skip if: you want a hosted chat product with zero server care, or your team needs multi-user workspaces before any custom work.

PrivateGPT sits beside our other document guides, not on top of them. Our guide to install AnythingLLM to chat with business documents covers ready-made workspaces over document sets. Our guide to install Khoj AI personal assistant self hosted covers a personal second brain over notes and files. Choose PrivateGPT when the job is an offline document-chat backend you can build on.

Our wider local-AI series covers the model layer underneath. Our guide to install Ollama on Ubuntu covers the local model runner used in this guide. Our guide to install Open WebUI with Ollama covers a general chat front end for the same models.

Docker or package install: which route fits your business

Docker is the cleanest first route for most small businesses. The official Docker image is zylonai/private-gpt:latest, and it installs the core package by default. Docker keeps Python, dependencies, and native libraries inside one container. You still run Ollama separately, because PrivateGPT needs a model server either way.

The package route fits developers who want the private-gpt command on the host. On macOS, Homebrew installs it with brew tap zylon-ai/tap and brew install private-gpt. On any platform, uv installs it in an isolated environment with Python 3.11. The package route makes local data paths and upgrades easy to inspect.

Python version is not flexible here. The official package guide states that Python 3.11 is required. PrivateGPT does not support Python 3.10 or 3.12 and later. With uv, the --python 3.11 flag downloads a managed interpreter if none is installed. That one detail prevents a common failed install.

Choose Docker when you want isolation and a repeatable server. Choose the package route when you want a local command, offline bundle options, or direct control of PGPT_HOME. Both routes expose the same API on port 8080 by default. Both routes need the same model server running first.

Best for Docker: a small server, a spare office machine, or a first pilot you may move later. Skip Docker if: your team cannot manage container volumes and host networking. Best for the package route: a developer workstation or a machine you already manage with uv. Skip the package route if: nobody on the team will own Python and dependency updates.

Requirements before you install PrivateGPT

You need three things before the first command. First, a running OpenAI-compatible LLM server. Ollama is the easiest starting point in the official guide. Second, a chat model and an embeddings model on that server. Third, enough disk space for the models, your documents, and the vector store.

Model size drives the hardware bill. The official Ollama example pulls qwen3.5:35b at about 24 GB for chat and mxbai-embed-large at about 670 MB for embeddings. For smaller hardware, the documentation suggests trying qwen3.5:7b. Start smaller, prove the workflow, and upgrade the model only after your test questions pass.

Disk space needs headroom beyond the model download. The vector store grows with your library, so plan for originals, the data folder, and one backup copy. A full disk during ingestion is a storage failure, not an AI failure.

Some document features need native tools. PrivateGPT starts without them, but file-type detection uses libmagic when present. Converting older .doc, .ppt, and .xls files needs LibreOffice. Rendering slides to images needs Ghostscript. The Docker image and Homebrew formula already include libmagic, which is another reason Docker is the calmer first route.

Supported ingestion formats cover most office files. The official ingestion guide lists .pdf, .docx, .pptx, .ppt, .pptm, .hwp, .epub, .md, .csv, .json, .ipynb, .mbox, .jpg, .jpeg, .png, .mp3, and .mp4, with plain text handled natively. Any other file type is read as plain text. Scanned PDFs still depend on extractable text, so test with a real file early.

Step 1: start Ollama and pull your models

Install Ollama for your platform from the official Ollama site, or with Homebrew on macOS. Then pull one chat model and one embeddings model. For a first test on modest hardware, use the smaller chat model the documentation suggests.

ollama pull qwen3.5:7b
ollama pull mxbai-embed-large
ollama serve

Ollama serves its OpenAI-compatible API on port 11434. On macOS, the Ollama desktop app starts the server automatically when open. On other systems, ollama serve runs the server in the terminal. Leave it running while PrivateGPT starts, because PrivateGPT discovers models at startup.

Check the server before you blame PrivateGPT. Run ollama list to confirm both models are present. Then open or request http://localhost:11434/v1/models to confirm the API answers. If that endpoint fails, fix Ollama first. PrivateGPT cannot discover models from a server that is not running.

One Ollama limit matters for long documents. Ollama does not expose a tokenizer endpoint, so PrivateGPT estimates tokens at four characters per token. That estimate can overflow the context window on long inputs. The fix is a model profile with an explicit context_window, covered in the tips section below.

Step 2: install PrivateGPT with Docker

Run the official container and point it at Ollama. On macOS and Windows, Docker reaches the host machine through host.docker.internal. Publish port 8080 so the workbench and API answer on your machine.

PrivateGPT official Quickstart documentation showing install steps and port 8080
docker run -p 8080:8080 \
  -e OPENAI_API_BASE=http://host.docker.internal:11434/v1 \
  zylonai/private-gpt:latest

On Linux, host.docker.internal does not resolve the same way. The official Docker guide gives the host-network alternative. Use localhost with --network host so the container reaches Ollama on the host.

docker run --network host \
  -e OPENAI_API_BASE=http://localhost:11434/v1 \
  zylonai/private-gpt:latest

Add a volume before you ingest real documents. By default, ingested documents and local data live inside the container and are lost on restart. Mount a host folder to /home/worker/app/local_data so your documents and vector store survive.

docker run -p 8080:8080 \
  -e OPENAI_API_BASE=http://host.docker.internal:11434/v1 \
  -v ./local_data:/home/worker/app/local_data \
  zylonai/private-gpt:latest

If your model server requires authentication, pass its key with OPENAI_API_KEY. Keep that key in your environment or a private env file, never in a committed script. For a local Ollama server with no key, the base URL alone is enough.

Prefer the package route instead? Install uv first, then install the core package with Python 3.11 and the official wheels location. Verify the command exists, then start the server with the same Ollama base URL.

uv tool install --python 3.11 \
  --find-links https://wheels.privategpt.dev/packages/ \
  "private-gpt[core]"
command -v private-gpt
OPENAI_API_BASE=http://localhost:11434/v1 private-gpt serve

Either route ends at the same address. Open http://localhost:8080/ui for the workbench. The API itself answers at http://localhost:8080. If the page does not load, check that Ollama is still running and that no other service already uses port 8080.

Step 3: ingest your first document

Start with one clean document, not your whole archive. Pick a short policy, price list, or contract whose answers you already know. A known-answer test separates retrieval problems from model problems in minutes.

PrivateGPT official ingestion documentation showing artifact ingest and supported formats

The workbench at /ui lets you upload documents and test retrieval with citations. Upload your test file there first. Then ask a question whose answer sits in one clear passage. Check that the answer cites the right document before you ingest anything else.

The API route gives you repeatable ingestion. Documents go to /v1/artifacts/ingest as JSON, with the file sent as base64, an artifact ID, and a collection name. Collections keep client files, departments, or document sets apart. Use one collection per client or per job, not one giant pile.

List what you ingested before you trust an answer. The list endpoint returns the artifacts in a collection. Delete a single artifact when a file is replaced or withdrawn. Treat deletion as part of document hygiene, because an outdated contract in the index will keep answering questions.

Bulk ingestion suits a folder of approved files. Enable local ingestion in settings, then run the official make ingest command against the folder. Watch mode re-ingests on file changes. Enable this only for folders you control, and keep the allowed paths as narrow as your workflow permits.

Clean files beat clever prompts. Remove duplicate drafts, rename files clearly, and keep one current version per document. PrivateGPT chunks and embeds the text it receives. If the source file is messy, the retrieved passages will be messy too. No model can cite a passage that was never cleanly extracted.

Step 4: ask questions with citations

Ask narrow questions first. “What is the payment term in this contract?” beats “Summarise everything.” Narrow questions retrieve narrow passages. Narrow passages produce answers you can verify against the citation in seconds.

Read the citation, not just the answer. Retrieval with citations is the feature that makes offline document chat safe for business use. Open the cited passage and confirm it supports the sentence. If the citation is wrong, fix the document set or the question before you widen the test.

Test the API once the workbench passes. The messages API at POST /v1/messages is the primary endpoint for responses. Give the model the semantic search tool with an ingested-artifact context, and it answers from your documents. This is the route your own app, form, or internal tool will use.

Keep a small test set. Write five questions with known answers from your real documents. Run them after every model change, ingestion change, or upgrade. A five-question test catches broken retrieval faster than any demo. It also gives you honest evidence when you compare a small model against a larger one.

Model quality decides answer quality. A small local model may retrieve the right passage and still phrase the answer poorly. A larger model usually reasons better over the same passages, at higher hardware cost. Judge the pair together: retrieval first, wording second, speed third.

First-run security steps you must not skip

Keep the first install on localhost. PrivateGPT is an API layer with a testing workbench, not a hardened public portal. The repository lists token-based auth as supported, but OAuth and organizations as not supported. Do not expose port 8080 to the internet and hope nobody finds it.

Put access control in front of any shared instance. Use your reverse proxy, VPN, or internal network rules to decide who can reach the API. Add HTTPS before any traffic crosses a network you do not control. Treat the workbench like an admin screen, because it can upload documents and inspect requests.

Protect the data folder like the documents inside it. On a package install, data lives under ~/.local/share/private-gpt/ by default, or under PGPT_HOME when you set it. On Docker, the mounted local_data folder holds the persisted data. Restrict file permissions, encrypt the disk where your policy requires it, and back the folder up.

Guard your keys and settings. OPENAI_API_KEY and any Hugging Face token belong in environment variables or private files, never in shared documents or screenshots. Settings profiles can reference environment variables, so secrets stay out of YAML you might share. Rotate a key the moment it appears in a log or a chat.

Be careful with powerful tools. PrivateGPT supports tool use, database querying, web tools, and code execution through its API. Each tool widens what a prompt can reach. Enable tools per application and per collection, test them with harmless requests, and keep database access read-only where the job allows it.

Offline means offline only when every layer is local. A local model server keeps inference on your hardware. A cloud model endpoint, web search tool, or remote MCP server sends data outward by design. For sensitive documents, keep the model local, keep web tools off, and say so in your internal policy.

Make PrivateGPT useful for real work

Organise collections around real jobs. One collection per client suits agencies and accountants. One collection per department suits internal policy and procedure questions. One collection per product line suits support teams. Clear collections make citations easier to trust and deletions safer to perform.

Write questions the way your team asks them. “When is the March invoice due?” should retrieve the invoice, not a policy about invoicing. Test with real phrasing, including the abbreviations your team actually uses. If retrieval misses, add a clean summary file with the key terms spelled out.

Use PrivateGPT where privacy changes the decision. Client contracts, HR files, financial records, and legal documents are the strong cases. Public marketing copy rarely needs offline inference. Spend your hardware budget where confidentiality, not convenience, is the reason.

Build the smallest useful front end. A simple page that sends a question, shows the answer, and links the citation beats a large portal nobody finishes. Add accounts and audit views only when the pilot proves the answers are worth governing.

Keep a human check on high-stakes answers. Citations make verification fast, but they do not make the model infallible. For money, legal, or safety questions, require a person to open the cited passage before acting. Offline chat should speed up finding the clause, not replace reading it.

Backup and update routine

Back up the data, not just the documents. Your original files matter, but the vector store, ingested artifacts, and settings save you from re-ingesting everything after a failure. On Docker, back up the mounted local_data folder. On a package install, back up PGPT_HOME or the default ~/.local/share/private-gpt/ folder.

Stop the server before you copy the data folder. A copy taken mid-write can capture a half-finished index. Copy the folder, restart the server, and run your five-question test. A backup you have never restored is a hope, not a backup. Test the restore on a spare folder at least once.

Keep your settings with the backup. Save settings.yaml, any settings-{name}.yaml profiles, and a note of the model names and environment variables you used. Never store raw API keys in the backup note. Record where each key lives instead, so a restore does not become a secret hunt.

Update on a schedule, not on impulse. With Homebrew, run brew upgrade private-gpt. With uv, run the official upgrade command with the same wheels location. With Docker, pull the new zylonai/private-gpt:latest image and recreate the container with the same volume mount and environment variables.

Test after every update. Confirm the workbench loads, confirm your models are discovered, and run the five-question test. Check one citation by hand. Updates can change defaults, and model discovery can change with a new model server version. Ten minutes of testing beats a week of wrong answers.

Pin versions when stability matters more than novelty. The package guide offers a reproducible install with a release constraints file, and offline bundles with hashed wheels. For a business pilot, a pinned, tested version is usually worth more than the newest release on day one.

Common errors and fixes

No models at startup points at the model server. PrivateGPT discovers models by calling GET /v1/models on your LLM server. Make sure Ollama is running before PrivateGPT starts. Check http://localhost:11434/v1/models, confirm OPENAI_API_BASE ends with /v1, and confirm auto-discovery is not disabled.

Connection refused inside Docker points at the address. Inside a container, localhost means the container, not your host machine. On macOS and Windows, use host.docker.internal in OPENAI_API_BASE. On Linux, use --network host with http://localhost:11434/v1. Change the address before you change anything else.

Context window overflow points at token counting. Ollama has no tokenizer endpoint, so PrivateGPT estimates four characters per token. Long documents can overflow the real context window. Set context_window explicitly in a model profile, below the model’s actual limit, and retest with your longest document.

Embedding dimensions mismatch points at a changed embeddings model. The vector store was built with one embedding size and now sees another. Switch back to the original embeddings model, or wipe the vector store and re-ingest. The troubleshooting guide gives embed_dim: 1024 for mxbai-embed-large. Wiping deletes local data, so back up first.

A tokenizer download failure points at a gated model. Some Hugging Face tokenizer repositories require access approval and a token. Request access, generate a token, and pass it through PGPT_HUGGINGFACE_TOKEN. Keep the token out of shared settings files. If the model is not essential, choose an ungated alternative and move on.

Port already in use points at a clash on 8080. Another service already owns the port. Start PrivateGPT on a free port with private-gpt serve --port 8081, or publish Docker as -p 8081:8080. Update your bookmarks and API clients to match. Two services cannot share one port, however politely you ask.

A profile file error points at the settings folder. PGPT_PROFILES=foo needs a matching settings-foo.yaml where PrivateGPT looks for settings. On Docker, mount the profile file into the container. A missing profile stops startup, which is safer than silently running with the wrong model settings.

Documents vanish after a restart point at Docker storage. Without a volume mount, ingested data lives inside the container and dies with it. Recreate the container with -v ./local_data:/home/worker/app/local_data. Re-ingest your documents once, restart the container, and confirm the list endpoint still shows them.

Tips and tricks that save time

Generate a model profile instead of hand-writing one. The auto-discovery script writes settings-model.yaml from your running server. Edit the context window, then start with PGPT_PROFILES=model.

Set the embeddings endpoint only when it differs. OPENAI_EMBEDDING_API_BASE defaults to the same server as OPENAI_API_BASE. With one Ollama server for chat and embeddings, one base URL is enough. Split the endpoints only when a separate embeddings server earns its keep.

Use collections as your safety boundary. Ingest client documents into separate collections and query with a collection filter. A wrong-collection answer is a data-governance failure, not a model failure. Test that a question in one collection cannot cite another collection’s files.

Keep one small model for speed tests. A smaller chat model answers faster during setup and exposes retrieval problems quickly. Switch to the larger model for final answer quality. If the small model retrieves the right passage, your index is healthy. If it retrieves nothing, fix ingestion before you buy hardware.

Name artifacts like you will audit them. Artifact IDs such as a client name plus document type beat random strings. Clear names make list, delete, and citation checks faster. Future you, restoring a backup at midnight, will be grateful.

The real cost maths: PrivateGPT versus ChatGPT Plus

PrivateGPT charges no licence fee. Apache-2.0 lets you run it for business work at $0 in licence cost. The model server is the real variable. A local Ollama model on a machine you already own adds $0 in subscription fees. A cloud model endpoint bills API usage separately, by use.

OpenAI official Help Center page showing ChatGPT Plus costs $20 per month

ChatGPT Plus is the hosted comparison. OpenAI’s Help Center lists Plus at $20 a month, billed monthly, with no annual billing option. That is $240 a year for one person. Plus includes the hosted web app, so there is no server to run. It also means documents go to a hosted service, which is the exact step PrivateGPT avoids.

OptionLicence or subscriptionModel costHosting costBest for
PrivateGPT with a local model$0 under Apache-2.0$0 licence fee for the local model routeYour own machine or serverOffline document chat on hardware you own
PrivateGPT with a cloud model$0 under Apache-2.0Provider API usage, billed separatelyYour own machine or serverStronger models with documents kept in your instance
ChatGPT Plus$20/month, billed monthlyIncluded in the subscription for the web appNoneA hosted assistant with zero server care

Run the solo-owner scenario first. One owner who would otherwise pay for ChatGPT Plus pays $240 a year. The same owner running PrivateGPT on an owned machine, with a local model, pays $0 in licence and subscription fees. The licence saving is $240 a year, before electricity and admin time.

Run the five-person scenario next. Five individual Plus subscriptions cost $1,200 a year. One PrivateGPT instance on existing hardware still costs $0 in licence fees, but it is an API layer, not five finished workspaces. The saving is real only if a small internal tool or workbench pilot meets the team’s need. Price the front-end work honestly.

Add a rented server and the maths changes again. Hosting, storage, backups, and admin time cost money every month. PrivateGPT wins on licence cost every time. It wins on total cost only when the machine, the model quality, and the maintenance already fit your business. Meter the first month before you claim a saving.

When not to self-host PrivateGPT

Do not self-host PrivateGPT when nobody owns the server. Updates, backups, model changes, and access control need a named person. An unowned API becomes an unpatched document store. A hosted subscription fits that business better.

Do not self-host PrivateGPT when your team needs a finished workspace first. PrivateGPT is API-first, with a workbench for testing and demos. Our guide to install AnythingLLM to chat with business documents covers ready-made workspaces. Pick the tool that matches the job in front of you.

Do not self-host PrivateGPT when your documents cannot be cleaned. Retrieval searches the text you ingest. Broken scans, duplicate drafts, and outdated contracts produce confident wrong answers. Fix the source files first, or the assistant will repeat the mess with citations.

Do not self-host PrivateGPT when a local model cannot answer well enough. Test with real documents and real questions. A weak answer on a client question costs more than either route.

Do not expose PrivateGPT publicly to save setup time. An open API port, shared keys, and plain HTTP each look harmless alone. Together they hand your document index to strangers. Finish the security steps first, then share the address inside your network.

Pros and cons

Pros:

  • Free under Apache-2.0, including commercial use, with no licence fee.
  • Offline document chat when the model server runs locally.
  • Retrieval with citations over ingested PDF, DOCX, and other office files.
  • API-first design for building small internal tools and custom apps.
  • Works with any OpenAI-compatible model server, including Ollama.
  • Docker and package routes, with persistent storage you control.

Cons:

  • Does not run models itself, so a model server is always required.
  • API-first shape needs front-end work for non-technical teams.
  • Local model quality decides answer quality, and larger models need hardware.
  • Ollama token estimation can overflow long-document context windows.
  • Public access needs your own proxy, HTTPS, and access control.
  • Document quality decides retrieval quality, so messy files give messy answers.

Our verdict

Install PrivateGPT if your documents are sensitive, your questions repeat, and you want answers with citations on hardware you control. Start with Docker on localhost, one Ollama chat model, one embeddings model, and one clean test document. Add collections, profiles, and tools only after your known-answer questions pass.

Skip PrivateGPT if you want a hosted assistant with no server care. Skip it if your first job is a polished team workspace. For an owner or technical operator building a private document backend, PrivateGPT earns its place beside the model server, not instead of it.

FAQ

Is PrivateGPT free for business use?

Yes. PrivateGPT uses the Apache-2.0 licence, which permits commercial use, modification, and distribution. Keep the licence and copyright notices in copies, and state significant changes. Hosting, hardware, and any cloud API usage still bill separately.

How do I install PrivateGPT with Docker?

Start Ollama first, then run docker run -p 8080:8080 with OPENAI_API_BASE pointing at Ollama and the image zylonai/private-gpt:latest. Mount a local_data volume so documents survive restarts. Open http://localhost:8080/ui to test.

Does PrivateGPT need a GPU?

No. PrivateGPT itself is an API layer, and the model server can run on CPU. A GPU helps the local model answer faster, especially with larger models. Start with a smaller model such as qwen3.5:7b on modest hardware and upgrade only if answer quality requires it.

Why does PrivateGPT show no models at startup?

PrivateGPT discovers models from your model server’s /v1/models endpoint. Make sure Ollama is running, check http://localhost:11434/v1/models, and confirm OPENAI_API_BASE ends with /v1. Inside Docker, use host.docker.internal on macOS and Windows, or --network host on Linux.

Is PrivateGPT private by default?

It can be. With a local model server, documents, embeddings, and answers stay on your hardware. Keep the API on localhost or behind your own access control, protect the data folder, and keep web tools and cloud endpoints off for sensitive collections. Anything you send to a cloud service leaves your machine by design.

Strategic Pivot: price the whole stack before you switch

PrivateGPT removes the licence fee. It does not remove hardware, model, or admin costs. Before you move document work onto any self-hosted stack, price the full year, not the first month. Our free AI Cost Calculator helps you compare a lean local setup against a full paid stack with your own numbers.

Sources

  • Official PrivateGPT GitHub repository: Apache-2.0 licence, API-layer position, workbench UI, and model-server requirement.
  • Official PrivateGPT Quickstart documentation: install routes, Ollama example models, port 8080, and model discovery.
  • Official PrivateGPT Docker documentation: zylonai/private-gpt:latest image, host networking, API keys, and persistent local_data volume.
  • Official PrivateGPT Package documentation: Python 3.11 requirement, Homebrew and uv routes, upgrades, data storage, and system dependencies.
  • Official PrivateGPT Ingestion and Troubleshooting documentation: artifact ingestion, supported formats, collections, and common fixes.
  • OpenAI Help Center, What is ChatGPT Plus: $20/month billed monthly, with API usage separate and billed independently.

Price note — updated December 2, 2026: Prices in this post were checked on December 2, 2026. When you are reading this, the price may be lower or higher — always check the official pricing page before you buy.

Pros

  • Free under Apache-2.0, including commercial use, with no licence fee
  • Offline document chat when the model server runs locally
  • Retrieval with citations over ingested PDF, DOCX, and other office files
  • API-first design for building small internal tools and custom apps
  • Works with any OpenAI-compatible model server, including Ollama
  • Docker and package routes, with persistent storage you control

Cons

  • Does not run models itself, so a model server is always required
  • API-first shape needs front-end work for non-technical teams
  • Local model quality decides answer quality, and larger models need hardware
  • Ollama token estimation can overflow long-document context windows
  • Public access needs your own proxy, HTTPS, and access control
  • Document quality decides retrieval quality, so messy files give messy answers
Our verdict

Install PrivateGPT if your documents are sensitive, your questions repeat, and you want answers with citations on hardware you control. Start with Docker on localhost, one Ollama chat model, one embeddings model, and one clean test document. Add collections, profiles, and tools only after your known-answer questions pass.

1 thought on “How to Install PrivateGPT for Offline Document Chat (2026)”

Leave a Comment