How to turn off Ollama’s cloud on Windows

Set the variable for your user, then fully restart Ollama: quit it from its icon in the system tray (right-click, quit) and open it again from the Start menu. There is a second route that also survives restarts: a setting in server.json.

Disable the cloud and confirm it (PowerShell)
  1. Installed app: [Environment]::SetEnvironmentVariable('OLLAMA_NO_CLOUD', '1', 'User')
  2. Portable zip, in the window where you start it: $env:OLLAMA_NO_CLOUD = '1'
  3. Alternative: put "disable_ollama_cloud": true in %USERPROFILE%\.ollama\server.json and restart Ollama
  4. Confirm it: Select-String -Path "$env:LOCALAPPDATA\Ollama\server.log" -Pattern 'cloud disabled' | Select-Object -Last 1
  5. What you want to see: msg="Ollama cloud disabled: true"

The variable was tested with Ollama 0.40.14 as a portable zip. The server.json route is the one in Ollama’s documentation.

What Ollama does online by default

With the default settings, in 20 seconds and without being asked anything, Ollama opened an encrypted connection to 34.36.133.15 on port 443, the address ollama.com resolves to. The log showed “Ollama cloud disabled: false” next to a task called “model recommendations cache”, which downloads a list of recommended models and saves it to %USERPROFILE%\.ollama\cache\model-recommendations.json.

In the same .ollama folder it also created two keys, id_ed25519 and id_ed25519.pub: your computer’s identity with ollama.com, used for signing in or uploading models. And the downloaded list included :cloud models, one of them marked required_plan: pro.

With OLLAMA_NO_CLOUD=1 the log changed to “Ollama cloud disabled: true”, and there were no external connections during the 20 seconds of startup or during 40 more seconds with qwen3.5:4b answering.

The bigger risk: :cloud models that look local

A model whose name ends in :cloud doesn’t run on your graphics card; it runs on Ollama’s servers. It’s requested with the same commands and appears in the same catalog, so a configuration that looks local can send your whole conversation out. Run ollama list and check every name; in tools like OpenCode, also check the model names in its configuration file.

With the cloud disabled, according to Ollama’s documentation, cloud models and web search stop being available, so a wrong name fails instead of quietly going out to the internet. That is the behavior you want with client documents.

How to prove nothing leaves your PC

Don’t stop at the log line. Watch the network while the model answers a real question. Ollama’s own statement for local models is “We don’t see your prompts or data when you run locally”; the check below is how you confirm it on your machine.

  • Ollama only listens on your own computer: [Environment]::GetEnvironmentVariable('OLLAMA_HOST', 'User') should come back empty or 127.0.0.1:11434. If you ever set 0.0.0.0, anyone on your network can send it questions.
  • No model name ends in :cloud in ollama list. If one does, remove it with ollama rm and don’t use it for confidential work.
  • While you ask a question, list Ollama’s outside connections from another window (the commands are below). Resolve-DnsName <address> tells you whose an address is.
  • The book’s package includes check-network.ps1, which samples those connections for as long as you ask, labels each address and ends with “0 external connections” when everything stayed local.
Watch Ollama’s connections for 20 seconds (PowerShell)
  1. $end = (Get-Date).AddSeconds(20); $seen = @{}
  2. while ((Get-Date) -lt $end) { $ids = @(Get-Process -Name 'ollama','ollama app' -ErrorAction SilentlyContinue | ForEach-Object Id)
  3. Get-NetTCPConnection -ErrorAction SilentlyContinue | Where-Object { $ids -contains $_.OwningProcess -and "$($_.RemoteAddress)" -notin '0.0.0.0','127.0.0.1','::','::1' } | ForEach-Object { $seen["$($_.RemoteAddress):$($_.RemotePort)"] = 1 }
  4. Start-Sleep -Milliseconds 300 }
  5. if ($seen.Count) { $seen.Keys } else { '0 external connections' }
  6. To catch the startup connection, run it and, without waiting, start Ollama in another window. Run it again while the model answers.

Shortened from the book’s version, which also follows Ollama’s child processes. A sample every 300 ms can miss a very brief connection; what it does guarantee is that a connection you see really happened.

Downloading new models with the cloud cut off

Downloading a model is the one thing Ollama needs the network for. If a download fails with OLLAMA_NO_CLOUD=1, remove the variable, download, and set it again, restarting Ollama after each change. Do it with no documents open in the system, and check afterwards that no external connections remain.

If you use Ollama to ask questions about confidential PDFs, the whole private setup (page citations, verified quotes and the network check) is in the book Chat With Your PDFs Locally. If you use it with OpenCode, there is a second leak to close: the small_model setting, covered in OpenCode with Ollama not working.

Frequently asked questions

Does Ollama send my prompts to the internet?Not for local models, according to Ollama. What it does by default is connect to ollama.com at startup to fetch a recommended-models list, and :cloud models do run on its servers.

What does OLLAMA_NO_CLOUD do?It disables Ollama’s cloud features: no recommendations download at startup, and no cloud models or web search. The log then says “Ollama cloud disabled: true”.

Can I use Ollama completely offline?Yes, once your models are downloaded. In our test, with OLLAMA_NO_CLOUD=1 there were no external connections at startup or while answering.

Is Ollama safe for confidential documents?The model runs on your PC, but check it yourself: cloud disabled in the log, no :cloud models, Ollama listening only on 127.0.0.1, and no outside connections while it answers.