# How to Run PrivateGPT on macOS

Running [PrivateGPT](https://github.com/zylon-ai/private-gpt) on macOS using [Ollama](https://ollama.com/) can significantly enhance your AI capabilities by providing a robust and private language model experience. In this guide, we will walk you through the steps to install and configure PrivateGPT on your macOS system, leveraging the powerful Ollama framework. Whether you're a developer or an enthusiast, this tutorial will help you get started with ease.

First, install Ollama, then pull the Mistral and Nomic-Embed-Text models.

```bash
brew install ollama
ollama serve
ollama pull mistral
ollama pull nomic-embed-text
```

Next, install Python 3.11 using pyenv.

```bash
brew install pyenv
pyenv local 3.11
```

Then, clone the PrivateGPT repository and install Poetry to manage the PrivateGPT requirements.

```bash
git clone https://github.com/zylon-ai/private-gpt
pip install poetry
cd private-gpt
poetry install
poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"
```

After that, install make.

```bash
brew install make
```

Finally, run PrivateGPT.

```bash
PGPT_PROFILES=ollama make run
```

Open [http://localhost:8001/](http://localhost:8001/) in your browser to check.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1718109911599/fd327a36-0196-4f4c-89ab-6777e8b68164.png align="center")
