Ollama runs downloaded AI models on your computer. Its Windows and macOS apps include a chat window with buttons and menus, plus commands and a local API. The local API lets other apps or tools on your computer use Ollama so that you can integrate it beyond the Ollama chat app. Install the app, download one small model, and get a short chat working before adding other programs.
The fastest beginner path is:
- Install Ollama for your operating system.
- Open Terminal, PowerShell, or Command Prompt.
- Run a small starter model.
- Confirm that Ollama responds locally.
- Only then move to larger models, Open WebUI, document chat, or custom integrations.
Before you install Ollama
Choose your OS below. Have about 1.4 GB of disk space for the first qwen3:1.7b download, plus space for the app and temporary files. On an 8 GiB machine, use 2,048 context tokens for this example.
Install Ollama on Mac
Ollama currently requires macOS Sonoma (14) or newer. It supports Apple M-series chips with CPU and GPU use; on an Intel Mac, Ollama uses the CPU. Check the Apple menu → About This Mac before downloading.
1. Download Ollama
Go to the official Ollama download page and choose the macOS download. Open ollama.dmg, drag Ollama into Applications, and launch it. The ollama command line comes with the app. At startup, the app checks that ollama is on your PATH, and it may ask permission to add it; accept that prompt if you want to use the terminal steps below.
2. Open the app
Keep Ollama open while you run the first model. If macOS asks for permission to open the app, follow the normal macOS security prompt.
3. Open Terminal
After the app is installed and running, open Terminal. The command line is where you will run your first model.
4. Check that the command works
Run:
ollama --version
If the command returns a version, the command line is available.
If the command is not found, quit and reopen Terminal. If it still fails, reopen Ollama and check whether its command-line prompt was completed. Ollama's macOS instructions describe that link and where the CLI lives inside the app.
5. Run a small first model
Run a small model first. Then follow Check the installation.
Install Ollama on Windows
1. Confirm your Windows version
Ollama’s Windows documentation requires Windows 10 22H2 or newer, Home or Pro. If you are using an older Windows build, update before installing. See the Ollama GPU list for supported acceleration.
2. Download the Windows installer
Download OllamaSetup.exe from the official Ollama download page. That page also lists a PowerShell command, irm https://ollama.com/install.ps1 | iex, as another way to install.
For Windows, Ollama’s documentation states that the binary install needs at least 4 GB of space, with additional space required for large language models that can range from tens to hundreds of gigabytes depending on what you download.
3. Run the installer
Ollama’s Windows documentation says the installer doesn't require Administrator rights and installs to your home directory by default.
4. Choose desktop chat or commands
For buttons and menus, open Ollama from Start. In Settings, choose 2,048 tokens on an 8 GB computer if that value is offered; otherwise use the terminal instructions below for the 8 GB experiment. On a larger computer, set 4k (4096 tokens) after checking its budget. Select a downloaded local model in the chat window. Follow the complete Windows chat walkthrough for an exact model, first prompt, and stop/reopen checks. Open WebUI is not required.
The remaining steps show the optional command-line and API path. Open PowerShell, Command Prompt, or Windows Terminal.
The ollama command line comes with the Windows app. After installation, Ollama should run in the background, and the ollama command should be available in cmd, PowerShell, or your preferred terminal.
Run:
ollama --version
If the command is recognized, continue.
5. Run your first model
Follow Check the installation. If this is your first local model download, expect the first run to take longer because Ollama has to download the model before it can run it.
The context set at the chat prompt controls the command-line conversation; check the desktop app's context setting separately. Use /bye to leave the chat and ollama stop qwen3:1.7b in PowerShell to unload the model without deleting its download.
6. Verify the local API if you need it
Ollama’s Windows documentation states that its API is served at:
http://localhost:11434
Most beginners don't need to use the API immediately. But if you are setting up Open WebUI or another local tool, this local endpoint is important.
A simple PowerShell test looks like this after qwen3:1.7b has downloaded:
Invoke-RestMethod -Method POST -ContentType 'application/json' -Body '{"model":"qwen3:1.7b","prompt":"Say hello in one sentence.","options":{"num_ctx":2048},"stream":false}' -Uri http://localhost:11434/api/generate | Select-Object -ExpandProperty response
Look for a short answer. If PowerShell reports a connection error, start Ollama and retry ollama list first. If the model is missing, use the download checks.
Install Ollama on Linux
1. Use the official Linux install path
Ollama's Linux documentation and download page describe the command line and an install script. They do not list a Linux desktop app.
If your distribution's package manager already manages Ollama, install or update it through that package manager and skip the upstream installer. Continue with the command check below. Do not overwrite package-owned files.
For an upstream installation, the official Linux installation page gives this command:
curl -fsSL https://ollama.com/install.sh | sh
To install Ollama on Ubuntu, open a terminal and run that command. For a manual installation, ARM64 package, AMD GPU package, or service-specific setup, follow the instructions on the official installer page.
2. Confirm the command is available
Run:
ollama --version
3. Run a small first model
Follow Check the installation.
4. Check whether the service is running
If ollama run says the server is unavailable, check systemctl status ollama on a systemd installation and start it with sudo systemctl start ollama if the installed service is stopped. If you installed only the standalone binary, run ollama serve in one terminal and retry the chat in a second terminal. For a service that still fails, read journalctl -e -u ollama and follow the model-load checks. Do not start another server when the port is already in use.
For Arch Linux, systemd and other Linux detail, and a complete first-chat exercise, follow Run Local AI on Linux with Ollama.
Update Ollama
On Windows and macOS, Ollama downloads app updates automatically. Ollama's documentation does not describe a command-line update for the Windows or macOS app. Use Restart to update from its taskbar or menu-bar item to apply a pending update, or download the current installer from the official download page.
On Linux, you can update Ollama from the command line. If you used Ollama's upstream installer, run it again in a Linux terminal:
curl -fsSL https://ollama.com/install.sh | sh
If your distribution's package manager installed Ollama, use that package manager's update process instead. Do not overwrite a package-managed installation with the upstream installer.
Check the installed app version with ollama --version. If an already running server still reports the old version, restart the existing service or app using the same startup method, then check again. On a systemd installation, use sudo systemctl restart ollama. For a deliberately manual server, stop that server before starting it again with ollama serve. Do not start a second server on the same port.
Updating Ollama does not update every downloaded model. To refresh a model, run ollama pull followed by the exact model tag you use, such as ollama pull qwen3:1.7b. Routine updates do not require deleting your models or configuration.
Ollama 0.40.18 (November 24) updates its bundled llama.cpp build to b12651, which removes JetPack 5 support. Check the installed JetPack version before updating an existing Jetson installation. Release notes.
For a manual Linux installation, use the official architecture-specific ollama-linux-amd64.tar.zst or ollama-linux-arm64.tar.zst archive and the separately supplied ROCm package when applicable. The official installation script can also be rerun for updates. Preserve the model store unless you deliberately intend to remove downloaded models during an uninstall. Follow the Linux installation documentation for extraction and service paths.
Do you need Docker for Ollama?
Most beginners don't need Docker to install and use Ollama.
Use the normal app or OS install path first. Consider Docker only if:
- you already use Docker;
- you want an isolated deployment;
- you are following a specific Open WebUI setup that expects containers;
- you are deploying on a server;
- you need repeatable infrastructure rather than a normal desktop install.
For your first local model, Docker is an unnecessary complication.
Where Ollama stores files
Ollama's Settings window on macOS. Model location changes where downloaded models are stored, and Context length sets how much conversation the model can use. Screenshot from Ollama's documentation, MIT licence.
Model storage matters because the app is small, but the models are not.
| Item | Windows location from Ollama docs | Mac/Linux practical note |
|---|---|---|
| Logs and updates | %LOCALAPPDATA%\Ollama | Check official docs for current paths |
| Binaries | %LOCALAPPDATA%\Programs\Ollama | App or binary path depends on install method |
| Models | %USERPROFILE%\.ollama\models by default | macOS: ~/.ollama/models; normal Linux service: /usr/share/ollama/.ollama/models |
| Temporary files | %TEMP% with ollama* folders | Temporary paths vary |
If your system drive is small, free up storage before downloading several models.
How to move Ollama models to another drive on Windows
Ollama’s Windows documentation says you can change the model location by setting the OLLAMA_MODELS environment variable for your user account.
Beginner-safe outline:
- Create a folder on the target drive, such as
D:\OllamaModels. - Open Windows Settings or Control Panel.
- Search for environment variables.
- Edit environment variables for your user account.
- Create or edit
OLLAMA_MODELS. - Set it to the folder where you want downloaded models stored.
- Quit the Ollama tray app.
- Relaunch Ollama from the Start menu.
- Open a new terminal and run a small model.
If models already exist, the variable does not move them. Follow the complete storage-move guide to copy the model store while Ollama is stopped, check the new location, and reopen a working chat before removing the old copy.
Check the installation
Run ollama run qwen3:1.7b. In chat set /set parameter num_ctx 2048 for the 8 GiB example. With more memory, use /set parameter num_ctx 4096 only after checking that budget. Ask for the time in ‘Meet at 10:30’. Expect 10:30. While it is loaded, run ollama ps in another terminal to inspect CONTEXT and PROCESSOR. Leave with /bye. To reopen, run ollama run qwen3:1.7b again and repeat the same context setting above before repeating the question.
Set the context length yourself rather than relying on Ollama's default: Ollama's context-length page lists 4k below 24 GiB of VRAM, 32k for 24 to 48 GiB and 256k at 48 GiB or more, while its FAQ says 4096.
On the 8 GiB example, start at 2,048 tokens. The 8 GB guide shows the memory budget; 2,048 tokens leaves the most room. Run ollama list to see the models already on your computer, and browse ollama.com/library for others. gemma3:4b is a larger download; try it after the 1.7B model works if you have 16 GB of RAM.
$ ollama --version ollama version is your version number $ ollama list NAME ID SIZE MODIFIED $ ollama run qwen3:1.7b pulling manifest download progress for each file verifying sha256 digest writing manifest success >>> Send a message (/? for help)
This is the text Ollama prints for these commands, taken from Ollama's own source code. Your version number and download progress lines will differ, and ollama list shows your downloaded models under its headings. The >>> prompt means the model has loaded and is waiting for your message.
Common Ollama install problems
For a missing command, use Ollama command-not-found checks. For a missing or interrupted model download, use model download troubleshooting. If a model download fails or is interrupted, run the same ollama pull command again. If it restarts from zero, check your free disk space and any proxy setting. The ollama list command lists local models; it does not inspect partial downloads. For the starter model in this guide, retry ollama pull qwen3:1.7b and wait for it to finish. Then use ollama list to check that the model is available locally. If the model is present but will not answer, use Ollama model-load troubleshooting. If a chat works but runs on the CPU when you expected a GPU, use GPU detection checks. These paths begin with the observed failure instead of asking you to reinstall everything.
| Problem | Likely cause | Fix |
|---|---|---|
ollama command not recognized | Terminal was opened before install, PATH not refreshed, or app not launched | Close and reopen the terminal; relaunch Ollama; check the official install notes |
| Windows install uses the wrong drive | Default home-directory install path | Run the installer with the /DIR flag, for example OllamaSetup.exe /DIR="d:\some\location". It does not need Administrator rights. To move downloaded models instead, set OLLAMA_MODELS (see below). |
| Models fill the C drive | Downloaded models are much larger than the app | Set OLLAMA_MODELS before building a model library |
| First run takes a long time | Model download is happening before inference | Wait for the download; start with a small model |
| Responses are painfully slow | Model is too large, CPU-only fallback, not enough memory, or long context | Try a smaller model and close other memory-heavy apps |
| Progress symbols look strange on Windows 10 | Terminal font may not render Ollama progress characters correctly | Change terminal font settings |
| Local API does not respond | Ollama background process is not running | Start Ollama, then retry localhost:11434 |
| Open WebUI cannot see Ollama | Container/networking issue or Ollama not reachable from the interface | Finish this install first, then use the Open WebUI with Ollama guide |
| User assumes it is fully private | Local model execution is only one part of the workflow | Avoid cloud-connected features |
Privacy notes for Ollama
The local API is served from your own machine. Downloading models, updating the app, hosted cloud models, web search, third-party tools, an exposed server, tunnels and cloud-connected interfaces all use the network.
Since Ollama 0.32, typing ollama with no model name opens Ollama's own start screen instead of help text: an agent at first, and a welcome launcher from 0.40.15. The 0.32 release notes show a cloud-tagged model (glm-5.2:cloud) on that screen,. For local-only chat, use ollama run qwen3:1.7b (or another model you downloaded). To turn Ollama's cloud features off, set OLLAMA_NO_CLOUD=1; the offline guide shows how on each system.
Do not expose localhost:11434 to the public internet.
What to read next
Want to access the same model in a browser? Confirm your tag appears in ollama list, then open the Open WebUI connection guide. Want a visual download browser and loading controls instead? Open the LM Studio setup guide.
- Ollama vs LM Studio
- Best Local AI Setup for Mac
- Best Local AI Setup for Windows
- Chat With PDFs Locally
- Is Local AI Actually Private?
Sources
Sources reviewed for this page:
