Offline guide

Does Ollama work offline? — yes, completely

Ollama works 100% offline after you download a model. No cloud calls, no telemetry during inference, no internet required. This guide explains how offline mode works, how to test it, and how to deploy Ollama in air-gapped environments.

Does Ollama work offline? Yes — completely.

Once you have downloaded a model with ollama pull, Ollama works with no internet connection at all. You can disconnect your Wi-Fi, unplug your ethernet cable, or enable Airplane mode — Ollama will continue generating text without any errors or degradation.

This is because Ollama runs the entire language model locally on your hardware. There is no server-side component, no API call to the cloud, and no telemetry sent during inference. The model weights sit on your disk and are loaded into your GPU or RAM when you run a prompt.

Ollama is fully offline after the initial model download. You can use it on a plane, in a bunker, or anywhere without internet access.

The only things that require an internet connection

ActionNeeds internet?Notes
ollama pull modelnameYesDownloads model weights from the Ollama registry (~2–40 GB)
ollama run modelnameNoRuns entirely locally after pull
Calling localhost:11434 APINoLocal network only
Checking for Ollama updatesOnly if you manually checkNo background update checks
Using Ollama Python libraryNoCalls local API only

How to verify Ollama works offline

  • 1

    Pull a model while connected

    cmd.exe
    C:\> ollama pull mistral
    success
  • 2

    Disconnect from the internet

    Turn off Wi-Fi or unplug ethernet. Enable Airplane mode if you want to be thorough.

  • 3

    Run the model

    cmd.exe — no internet
    C:\> ollama run mistral
    >>> Explain quantum computing
    Quantum computing uses quantum mechanical phenomena...
    # Works perfectly with no internet

Using Ollama in air-gapped environments

To deploy Ollama in an environment with no internet access at all (corporate air-gap, secure facility, offline lab), you can transfer the installer and model files manually:

  • 1

    On a connected machine, download everything

    cmd.exe — connected machine
    # Install Ollama and pull the model:
    C:\> ollama pull llama3
    success
  • 2

    Copy files to the air-gapped machine

    Transfer two things via USB drive or internal network:

    • Installer: OllamaSetup.exe
    • Model files: the entire C:\Users\YourName\.ollama folder
  • 3

    On the air-gapped machine, install and restore

    cmd.exe — air-gapped machine
    # Run the installer, then copy the .ollama folder
    # to C:\Users\YourName\.ollama
    span class="t-p">C:\> ollama list
    llama3:latest 4.7 GB
    C:\> ollama run llama3
    >>> Ready

Block Ollama from ever accessing the internet

For maximum control, add a Windows Firewall outbound rule that prevents Ollama from making any outbound connections:

PowerShell — admin
PS> New-NetFirewallRule `
-DisplayName "Block Ollama internet" `
-Direction Outbound `
-Program "$env:LOCALAPPDATA\Programs\Ollama\ollama.exe" `
-Action Block
This blocks ALL outbound connections including ollama pull. Remove the rule when you need to download new models.

Offline questions

Does Ollama send prompts to the cloud?
No. When you run a model, your prompt is processed entirely on your local CPU or GPU. The output is generated locally and returned to your terminal or to localhost:11434. Nothing is sent to any external server.
Can I use Ollama on a plane with no Wi-Fi?
Yes, as long as you have downloaded your models before boarding. Pull the models you need at home or the office, and Ollama will work anywhere without any internet connection.
Does Ollama require internet after model download?
No. The only time internet is needed is the initial ollama pull to download model weights. After that, everything runs offline indefinitely.
Will pulling a model fail if my connection drops mid-download?
No. Ollama resumes interrupted downloads automatically. If your connection drops during ollama pull, just run the same command again when back online and it will continue from where it left off.

Want to know more about Ollama privacy?

Full guide to local data storage, telemetry and firewall control.

Privacy & offline guide