Hello DevSocial Community!

Hope everyone is doing well and building something great today. Most Ollama guides assume you can pull models directly from the cloud on the spot. However, if you are configuring an air-gapped workstation or working inside a restricted network without internet access, you have to move the setup files and model weights manually—and verify that the local environment actually picks them up. Here is a quick, practical checklist using Windows PowerShell to confirm your offline setup is ready to go.

What is Ollama? In simple terms, Ollama is a lightweight local runtime that lets you run open-source AI models directly on your own computer. It bundles the model weights, configuration, and execution engine into a single package and exposes a clean local REST API. Instead of relying on cloud servers, everything runs directly on your machine's CPU or GPU.

Download Links If you are preparing an offline setup, download the Windows installer and grab the required model files on an internet-connected system first, then transfer them to your restricted workstation:

1.Official Ollama Download: https://ollama.com/download

2.Ollama Model Library: https://ollama.com/library

Once you have completed the installation on Windows and imported your model files into the local storage directory, run through these five verification steps in Windows PowerShell.

1. Verify the Ollama CLI Installation Open Windows PowerShell to confirm that the Ollama executable is properly registered in your system's environment PATH. Running the version command verifies that the core binary installed cleanly and responds from any directory.

ollama --version

As shown below, PowerShell returns the installed version (0.40.17), confirming that the command-line interface is active and ready.

2. Inspect Locally Registered Models In an offline environment, models are loaded manually from local files rather than pulled from a remote registry. To ensure Ollama recognizes your imported model and reads its metadata accurately, run the list command:
ollama list

This outputs a structured summary of all locally stored models. In this setup, it confirms that the custom model (mylocalai:latest is recognized along with its unique SHA ID, disk size (2.1 GB), and last modified timestamp.

3. Validate the Local REST API Endpoint Beyond the CLI, Ollama runs a background service bound to your local loopback address (127.0.0.1) on port 11434. This allows local web apps, Python scripts, or internal tools to communicate with the LLM over HTTP without leaving the host machine. Verify that this service is active by querying the /api/tags endpoint directly from PowerShell:

Invoke-RestMethod http://127.0.0.1:11434/api/tags

Receiving a valid response object containing your model's name, size, and digest confirms that the local server is up and serving metadata independently of external network access.

4. Launch an Interactive Model Session With both the CLI binary and the local HTTP service validated, load the model into your system memory (RAM or VRAM) and start an interactive terminal session using the run command:

ollama run mylocalai

Once the model finishes loading, the terminal displays the >>> Send a message (/? for help) prompt, indicating it is ready for input.

5. Test Offline Inference with a Live Prompt Finally, confirm end-to-end text generation by entering a prompt directly inside the interactive session. When you press Enter, Ollama processes the input locally using your workstation's compute resources and streams the generated response back into PowerShell.

And that wraps up the verification workflow. With these five quick PowerShell checks, you can be confident your local LLM environment is properly configured and ready for offline development. Feel free to drop a comment below if you have questions about moving models across restricted setups or integrating the local API.