How to Install Ollama on Windows (Step by Step)

Published: August 9, 2026 — Ollama is the fastest way to run AI models on your own Windows machine — no cloud, no API keys, no Python required. This guide walks through the install, the first model, and everything you need to know to get a private AI assistant running in about five minutes.

⚡ Quick Takeaways

Step 1: Download and Install

  1. Go to ollama.com and click Download — Windows is detected automatically.
  2. Run OllamaSetup.exe. No admin prompt is required; the installer places Ollama in your user profile.
  3. When it finishes, open PowerShell or Windows Terminal and type:
ollama --version

You should see a version number. If PowerShell says "ollama is not recognized," close and reopen the terminal — the installer adds it to your PATH, and the new PATH only applies to new terminal windows.

Step 2: Run Your First Model

One command downloads, quantizes, and starts a model:

ollama run qwen3:8b

The first run downloads the model (about 5GB for the 8B Q4 file), which can take a few minutes. After that you're in an interactive chat:

>>> Write a Python function to check if a number is prime
def is_prime(n):
    if n < 2: return False
    for i in range(2, int(n ** 0.5) + 1):
        if n % i == 0: return False
    return True

Type /bye to exit. The model stays downloaded, so ollama run qwen3:8b starts instantly next time. For hardware-appropriate picks, see Top 10 GGUF Models by RAM — an 8GB laptop should start with qwen3:4b or phi4-mini instead.

Step 3: Manage Models

Command What it does
ollama list Show installed models
ollama pull <model> Download a model without running it
ollama run <model> Download (if needed) and chat
ollama rm <model> Delete a model to free disk space
ollama ps Show what's loaded in memory right now
ollama show <model> Show model details (size, context, params)

💡 Disk space check: models are stored in %USERPROFILE%\.ollama\models. Each model is 1–10GB, so watch your free space — ollama rm anything you're not using. To store models on another drive, set the OLLAMA_MODELS environment variable to the new path, restart Ollama (the tray icon → Quit, then relaunch), and re-pull.

GPU vs CPU on Windows

Want to know what your hardware can actually run? The local model ranking by hardware tier has the full picture, and Ollama vs llama.cpp explains when you'd want the lower-level runtime instead.

Step 4: Use the Local API

Ollama starts a local server at http://localhost:11434 with an OpenAI-compatible endpoint. Test it from PowerShell:

curl http://localhost:11434/v1/chat/completions ^
  -H "Content-Type: application/json" ^
  -d "{\"model\":\"qwen3:8b\",\"messages\":[{\"role\":\"user\",\"content\":\"Say hi in one word\"}]}"

This means any tool that supports a custom OpenAI base URL — VS Code extensions, Cline, Continue, custom scripts — can point at http://localhost:11434/v1 and use your private local model. That's the same API pattern our local RAG tutorial uses, and the same privacy architecture as Lawyer Assistant: your data never leaves the machine.

Troubleshooting Common Windows Issues

🚀 Beyond the command line

Prefer a GUI? GGUF Loader runs the same GGUF models with drag-and-drop on Windows, and LM Studio offers a visual alternative. For model discovery with direct download links, Local AI Zone keeps a daily-updated directory. And for the full beginner journey, our beginner's guide to local models covers the whole stack.

Frequently Asked Questions (FAQ)

How do I install Ollama on Windows?

Download the OllamaSetup.exe installer from ollama.com, run it (no admin prompt needed), then open PowerShell and run ollama run qwen3:8b (or any model name). The first run downloads the model automatically.

Does Ollama use my NVIDIA GPU on Windows?

Yes, automatically if you have a recent NVIDIA driver (CUDA 11.8+). Ollama uses your GPU when VRAM is sufficient and falls back to CPU when it isn't. AMD users on Windows currently get CPU inference; check the Ollama docs for the latest GPU support matrix.

Where does Ollama store models on Windows?

Models are stored under %USERPROFILE%\.ollama\models by default. You can change the location by setting the OLLAMA_MODELS environment variable before starting the service.

How do I use Ollama's API on Windows?

After installation, Ollama runs a local OpenAI-compatible server at http://localhost:11434. Send POST requests to /api/generate or /api/chat, or point any OpenAI-compatible tool at it by setting base_url to http://localhost:11434/v1.

Why is my Ollama model slow on Windows?

Check three things: is it using your GPU (look for GPU offload in the logs)? Is the model quantized (use a GGUF quant like Q4_K_M)? And is the model size right for your RAM/VRAM? An 8B model at Q4 needs ~5GB — see our RAM guide for the right size per machine.

How do I uninstall Ollama from Windows?

Use Windows Settings > Apps > Ollama > Uninstall, or uninstall via the Control Panel. Models stored in .ollama\models are kept unless you delete the folder manually.

Sources