How to Find Ollama on Company Endpoints

Ollama runs open-weight models on a laptop with no account and no cloud traffic, so web-based AI governance never sees it. The risk worth finding is less the model than the unauthenticated API next to it. Here is how to find both.

By Kuntur team · Published · Updated

Short answer. Ollama is installed if /Applications/Ollama.app, ollama in Homebrew or /usr/local/bin, or %LOCALAPPDATA%\Programs\Ollama exists, and it has been used if ~/.ollama/models holds manifests. It is exposed if something listens on port 11434 (or the port in OLLAMA_HOST) on an address other than 127.0.0.1: the API has no authentication, so that is the case to fix first. The commands below check all three without calling the API; for many machines, use the MDM scripts.

What Ollama is and why security teams care

Ollama is a local model runtime: it downloads open-weight models and serves them through an HTTP API on port 11434. Nothing leaves the machine during inference, which is why employees who were told not to paste code into a chatbot often reach for it.

What makes it a security item:

Where Ollama leaves traces

SignalWindowsmacOSLinux
Application or binary%LOCALAPPDATA%\Programs\Ollama/Applications/Ollama.app, /usr/local/bin/ollama, /opt/homebrew/bin/ollama/usr/local/bin/ollama, /usr/bin/ollama
Installed programsUninstall entry starting with Ollama-systemd unit ollama from the official installer
Processesollama.exe and the tray app ollama app.exeollama, Ollamaollama
Listener127.0.0.1:11434 by defaultSameSame
Models and data%USERPROFILE%\.ollama\models~/.ollama/models~/.ollama/models; the service user's store in /usr/share/ollama/.ollama/models
ConfigurationOLLAMA_HOST, OLLAMA_MODELS (user or machine environment)OLLAMA_HOST via launchctlOLLAMA_HOST in the systemd unit or an override

Each installed model has a small manifest file under models/manifests/<registry>/<namespace>/<model>/<tag>. Reading those gives you the model list straight from disk, without starting Ollama or calling its API. OLLAMA_MODELS moves the store elsewhere, often to a second drive.

Check one machine

Both checks only read files, the process table and, where relevant, the local listener table. They send nothing over the network and change nothing.

Windows (PowerShell)

# Read-only, no network. Run as the user.

# 1. Installed and running?
Get-Item "$env:LOCALAPPDATA\Programs\Ollama\ollama.exe" -ErrorAction SilentlyContinue |
  Select-Object FullName, LastWriteTime
Get-Process -Name ollama, 'ollama app' -ErrorAction SilentlyContinue | Select-Object Name, Id, Path

# 2. Exposed? 127.0.0.1 is local only; 0.0.0.0 or :: accepts connections from the network
Get-NetTCPConnection -State Listen -LocalPort 11434 -ErrorAction SilentlyContinue |
  Select-Object LocalAddress, LocalPort, OwningProcess
[Environment]::GetEnvironmentVariable('OLLAMA_HOST', 'User')
[Environment]::GetEnvironmentVariable('OLLAMA_HOST', 'Machine')

# 3. Models, read from the manifests on disk (no API call)
$store = if ($env:OLLAMA_MODELS) { $env:OLLAMA_MODELS } else { "$env:USERPROFILE\.ollama\models" }
Get-ChildItem (Join-Path $store 'manifests') -Recurse -File -ErrorAction SilentlyContinue |
  ForEach-Object { '{0}:{1}' -f $_.Directory.Name, $_.Name }

macOS and Linux (bash)

# Read-only, no network. Run as the user.

# 1. Installed and running?
ls -d /Applications/Ollama.app /usr/local/bin/ollama /opt/homebrew/bin/ollama /usr/bin/ollama 2>/dev/null
pgrep -il ollama

# 2. Exposed? Look at the address the listener is bound to
lsof -nP -iTCP:11434 -sTCP:LISTEN 2>/dev/null           # macOS
ss -ltn 'sport = :11434' 2>/dev/null                     # Linux
launchctl getenv OLLAMA_HOST 2>/dev/null                 # macOS app setting
systemctl cat ollama 2>/dev/null | grep -i OLLAMA_HOST   # Linux service setting

# 3. Models, read from the manifests on disk (no API call)
for d in ~/.ollama/models /usr/share/ollama/.ollama/models; do
  find "$d/manifests" -type f 2>/dev/null | awk -F/ '{print $(NF-1)":"$NF}'
done
du -sh ~/.ollama/models 2>/dev/null

If OLLAMA_HOST sets a different port, check that port instead of 11434. A listener on 0.0.0.0 is the case to act on first: bind it back to 127.0.0.1 or block inbound connections to it in the host firewall. The local LLM guide also shows how to find exposed instances from the network side.

What to look at beyond the install

A workable default for most companies: local models are allowed on approved machines, bound to loopback, on a current runtime, with models from an approved list. Each part of that rule is something the checks above can verify, which makes it easy to put into your AI acceptable use policy.

Find it across a fleet

The commands above answer the question for one laptop. Across a fleet, run the same read-only checks from the management tool you already use and collect one line per device. Each of these guides has a tested script that already includes Ollama:

The fleet scripts report that Ollama and its models are present. They do not check the listener, because whether port 11434 is open to the network depends on whether Ollama is running at that moment. For exposure, run the listener check from Check one machine on the Macs and PCs the inventory flagged, or use an agent that reports it continuously.

Those scripts walk every profile under C:\Users or /Users, because MDM scripts usually run as SYSTEM or root, where %USERPROFILE% and ~ point at the wrong home folder. On Linux, run the bash checks through whatever configuration management you have (Ansible, Salt, a cron job) and loop over /home/* the same way.

How Kuntur detects Ollama

Kuntur's catalog identifies Ollama by its install paths, binary, processes (including the Windows tray app), the Windows installed-programs entry and the ~/.ollama folder. The agent lists installed models from the manifests on disk, including the Linux service user's store, and raises two findings: LOCAL_LLM_EXPOSED when Ollama listens on a non-loopback address, and LOCAL_MODEL_UNCENSORED when a model's name marks it as having its safeguards removed. Ollama containers from the ollama/ollama image are reported too, with any port published on all interfaces.

To check one machine now, the free Kuntur scanner lists Ollama together with every other AI tool, extension, local model and MCP server it finds:

  1. Download scan.ps1.
  2. Read it. It's plain text; here's what it does.
  3. Check its SHA-256 against the published hash: Get-FileHash .\scan.ps1 -Algorithm SHA256
  4. Run it: powershell -ExecutionPolicy Bypass -File .\scan.ps1

Windows shortcut, if you trust the source (PowerShell)

irm https://app.kuntur.io/scan.ps1 | iex

macOS and Linux (Terminal)

curl -fsSL https://app.kuntur.io/scan.sh | sh

It needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.

Across a fleet, the Kuntur agent reports the same inventory for every user profile on Windows, macOS and Linux. You mark Ollama approved or unauthorized once for the organization, the dashboard shows which machines carry it, and every decision lands in an audit log.

Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card. Kuntur detects and reports; it does not block or uninstall anything.

FAQ

What port does Ollama use?
Ollama listens on 127.0.0.1:11434 by default. OLLAMA_HOST changes the address and port; set to 0.0.0.0, the API is reachable from the network with no authentication.
Where does Ollama store models?
In ~/.ollama/models for the user (%USERPROFILE%\.ollama\models on Windows). The Linux service installed by the official script uses /usr/share/ollama/.ollama/models, and OLLAMA_MODELS overrides both.
Can I list Ollama models without calling its API?
Yes. Every model has a manifest file under models/manifests; the folder and file names give the model and tag, as in the scripts above.
How do I detect Ollama on every laptop with Intune or Jamf?
Run a read-only script from the MDM that checks the install paths and ~/.ollama/models for every user profile, not only the account the script runs as. The Intune and Jamf Pro guides have tested scripts that include Ollama.
How do I check if an Ollama instance is exposed to the network?
Look at the address its listener is bound to: lsof -nP -iTCP:11434 -sTCP:LISTEN on macOS, ss -ltn 'sport = :11434' on Linux, Get-NetTCPConnection -LocalPort 11434 on Windows. 127.0.0.1 is local only; 0.0.0.0, :: or a LAN address means anyone on that network can use the API.
Is a local model a data leak risk?
Usually less than a cloud chatbot, because prompts stay on the machine. The risks are an API exposed to the network, models of unknown origin, and unpatched runtimes.

Sources

  1. Ollama docs: FAQ (OLLAMA_HOST, network exposure and where models are stored)

Detect other AI tools:

Related guides: