Installing Ollama and running your first local model on macOS

Published in the Local LLM Guide • No external cloud required

Running Large Language Models (LLMs) locally offers complete privacy, works without an internet connection, and gives you direct control over open-source models. With Ollama, this has become surprisingly easy on macOS. This guide will walk you through the installation process step-by-step and show you how to communicate directly with your own local model via the terminal.

Also explore our central LLM Hub for an overview of the latest developments and hardware architectures.

Hardware Requirements and System Requirements

Before you begin, it is important to check if your Mac is suitable for running language models locally. Since models run entirely in memory (RAM or Unified Memory), memory capacity is the main bottleneck:

Step 1: Downloading and installing Ollama

Ollama provides a ready-to-use application for macOS that runs as a service in the background and sets up a local API.

  1. Go to the official Ollama website (ollama.com) and download the macOS installer.
  2. Open the downloaded archive and drag the Ollama application to your Applications folder.
  3. Start the application from your Applications folder. You will temporarily see a small llama icon appear in the menu bar at the top of your screen, indicating that the service is active.

Step 2: Verifying via the Terminal

To check if Ollama is functioning correctly and if the command-line tool is accessible, open the default Terminal app (or iTerm2) on your Mac.

Type the following command to check the installed version:

ollama --version
Tip: If the terminal reports that the command is not recognized, make sure you have started the Ollama app at least once and that the CLI symlinks are correctly configured via the app's settings.

Step 3: Downloading and starting your first model

Ollama makes it possible to retrieve an open-source model with a single command and immediately start an interactive chat session. We use Llama 3 as an example here.

Enter the following command in your terminal:

ollama run llama3

The terminal will automatically download the model (this may take a while depending on your internet connection, as the model is several gigabytes in size). Once the download is complete, your prompt will change and you can start chatting immediately:

>>> Write a short greeting in English.
Hello! How can I help you today?

Useful Terminal Commands

While working with Ollama, you can use the following commands: