Install Ollama from ollama.com, open a terminal and run ollama run gemma4:e2b, or install Microsoft's Foundry Local with winget install Microsoft.FoundryLocal and run foundry chat qwen2.5-0.5b. The model downloads once, then runs on your PC with no internet connection and no per-use cost. Apps connect to it through a local address such as http://localhost:11434.

Privacy and cost
Ollama and Foundry Local are the two easiest ways on Windows 11 to run a language model on your own processor, graphics card or NPU instead of a company's servers. Ollama's FAQ says that when you run locally, it doesn't see your prompts or data. Microsoft says the same of Foundry Local: prompts and outputs are processed on the device, and the network is used only to download models and components.
There are no per-token charges and no subscription, and Foundry Local doesn't need an Azure subscription. The trade-off is that your PC does the work, so speed and model size depend on your hardware.
Hardware
Any recent Windows 11 PC can run a small model, and a graphics card with its own memory, or an NPU, makes it faster. GPU memory matters most. For the small gemma4:e2b model, Ollama recommends 8 GB of available VRAM; with less, it uses system RAM instead, and responses may be slower.
Ollama supports Windows 10 22H2 or newer. The app needs at least 4 GB of disk space, and models can take "tens to hundreds of GB", according to its Windows docs. On NVIDIA cards it needs driver 551.61 or newer. AMD Radeon cards use ROCm where the driver supports it, with Vulkan as the fallback.
Copilot+ PCs have an NPU of at least 40 TOPS and 16 GB of RAM. Foundry Local can run models on Qualcomm Snapdragon X NPUs, on Intel NPUs from Arrow Lake onward, and on supported AMD NPUs, each with a minimum driver version.
Ollama
Setup takes a few minutes, plus the model download.
- Download OllamaSetup.exe from ollama.com/download. It doesn't need administrator rights and installs into your home folder.
- Run the installer. To put Ollama elsewhere, run
OllamaSetup.exe /DIR="D:\Ollama". - Open Windows Terminal and download a model (about 7.2 GB):
ollama pull gemma4:e2b
- Start a chat with it:
ollama run gemma4:e2b
Type a question and press Enter. Type /bye to leave.
- Run
ollama psto see where it's running. The Processor column says whether the model is on the GPU, the CPU or split between them.
Models are stored in your user folder. If your system drive is small, set the OLLAMA_MODELS environment variable for your account to another folder, then quit and restart Ollama. By default a model stays in memory for 5 minutes after you last use it, then it's unloaded.
Foundry Local
Microsoft's local AI runtime downloads models from a curated catalog, picks the best version for your hardware, and runs it on the CPU, GPU or NPU. It's free, and its command-line tool is in public preview.
- Open a terminal and run
winget install Microsoft.FoundryLocal. You need admin rights to install it. - Check it worked:
foundry --version. - See which models suit your PC:
foundry model list. The first run downloads the execution providers for your hardware. - Start a chat:
foundry chat qwen2.5-0.5b. The model downloads on first use.
When you use a model's alias like qwen2.5-0.5b, Foundry Local chooses the variant for your hardware: a CUDA version for NVIDIA GPUs, an NPU version for Qualcomm NPUs, or the CPU version as a fallback. If you have an Intel NPU, install Intel's NPU driver first. If a command reports "Request to local service failed", run foundry server restart.
Which model size suits my PC?
Pick a model that fits in your GPU memory, or in RAM if you have no GPU. Ollama's library lists the download size of each model in a family, which gives a first guide. For Google's gemma4 family:
| Model | Download size | Context window | Notes from the docs |
|---|---|---|---|
gemma4:e2b | 4.6 to 7.5 GB | 128K | The quickstart model: about 7.2 GB, with 8 GB of available VRAM recommended |
gemma4:e4b | 6.6 to 9.5 GB | 128K | |
gemma4:12b | 7.7 to 8.0 GB | 256K | |
gemma4:26b | 16 to 19 GB | 256K | |
gemma4:31b | 19 to 20 GB | 256K | The largest local gemma4 size |
On Foundry Local, foundry model list shows the models available to you, and Microsoft's own examples use the small qwen2.5-0.5b.
Context length adds to memory use too. Ollama's FAQ says required RAM scales with the number of parallel requests times the context length, and its default context window is 4,096 tokens. Start with the smallest model and move up only if its answers aren't good enough for your task.
Limits compared with cloud models
The models that fit on a PC are smaller than the largest cloud models, and your hardware sets the speed. Foundry Local's catalog is deliberately curated to models small enough to distribute to ordinary PCs. Ollama's library is broader, but large models need large amounts of memory, and a model that doesn't fit in GPU memory runs partly on the CPU and slows down. Each model is gigabytes on disk, and they add up. Foundry Local is also designed for one person on one device, not for serving many users.
Before you rely on a local model, try it on the tasks you actually do, such as rewriting or summarizing short text, and keep a cloud model as an option for the rest.
Connecting apps
Apps reach a local model through a web address on your own PC, called localhost, so nothing goes over the internet.
Ollama serves its API at http://localhost:11434 and only listens on your own machine unless you change OLLAMA_HOST. Its OpenAI-compatible API is at http://localhost:11434/v1/. Clients that require an API key can send any value, because Ollama ignores it.
Foundry Local has an OpenAI-compatible local server too. Its port is assigned each time the server starts, so run foundry server status to see the current address.

PowerToys Advanced Paste lists Foundry Local and Ollama as local providers for its Paste with AI feature. OceanBreeze, a ring of tools that opens around your pointer when you hold Caps Lock, finds Ollama on localhost:11434 by itself and can download a Foundry Local model for you, including NPU models on Copilot+ PCs. You choose a model for each tool, so Rewrite can stay on your PC while Ask AI uses a cloud model. With a local model, nothing you select leaves your PC.

How to use AI on selected text in any Windows app compares OceanBreeze with Click to Do, Copilot and PowerToys for that kind of work.
Common questions
How much disk space do local models need?
The Ollama app needs at least 4 GB, and its Windows docs say models can take tens to hundreds of GB. The small gemma4:e2b model is about 7.2 GB.
Does Ollama send my prompts anywhere?
Not for local models. Ollama's FAQ says it runs locally and doesn't see your prompts or data. It listens only on 127.0.0.1 port 11434 unless you change OLLAMA_HOST.
Do I need a GPU to run AI locally?
No, but it helps. Without enough GPU memory, Ollama uses system RAM and responses are slower. Foundry Local falls back to the CPU when there is no supported GPU or NPU.
Can a Copilot+ PC run local models on its NPU?
Yes, with Foundry Local. When you run a model by its alias, Foundry Local picks the NPU version if a supported NPU is available, for example on Snapdragon X PCs.
Where does Ollama store models on Windows?
In your user folder by default. To move them, set the OLLAMA_MODELS environment variable for your account, then quit and restart Ollama.
Is Foundry Local still in preview?
Its command-line tool is in public preview, so commands and features can change before general availability.
Sources
- Ollama for Windows (Ollama docs)
- Quickstart (Ollama docs)
- FAQ (Ollama docs)
- OpenAI compatibility (Ollama docs)
- gemma4 (Ollama library)
- Ollama (GitHub)
- What is Foundry Local? (Microsoft Learn)
- Foundry Local CLI reference (Microsoft Learn)
- Click to Do: do more with what's on your screen (Microsoft Support)
- Advanced Paste in PowerToys (Microsoft Learn)
Keep reading

How to use AI on selected text in any Windows app
Compare ways to rewrite, summarize or translate selected text on Windows: chatbots, Copilot, Click to Do, PowerToys Advanced Paste and select-then-act tools.

What is a radial menu, and why is it faster than a list?
What a radial (pie) menu is, why Fitts's law makes it faster than a list, what the 1988 and marking menu studies found, and when a list is still better.

Radial menu apps for Windows 11: the options in 2026
A comparison of radial and pie menu apps for Windows 11 in 2026: Kando, AutoHotPie, Radial Menu, Wradial, RadialWheel, hardware wheels and OceanBreeze.