Search

Guides / Build

Private local models with Ollama

Run open models inside your perimeter. When local models make sense, how to size and deploy Ollama, lock it down, and run it day to day without surprises.

For IT directors, infrastructure leadsAbout 16 min readSection 1 freeUnlocked on your plan

There is a fair chance someone in your organization has already installed a local model runner on a workstation to avoid sending sensitive data to a public API. That is a sensible impulse, right up until they expose an unauthenticated inference port to your corporate network.

This guide is part of the 808 Data implementation series, sitting alongside The AI Strategy Playbook. It covers how to take Ollama—an open-source tool for running local models, currently at release v0.40.16 (as of 9 Nov 2026) [O11]—from a single-workstation pilot to a shared internal inference server without creating a security headache for your IT team.


1. What It Is and When to Use It (and When Not To)

Ollama is an MIT-licensed tool for running open models on your own hardware as a local service [O4, O9]. It exposes a native API as well as OpenAI-compatible and Anthropic-compatible endpoints, allowing your internal tools and automation workflows to talk to local open models the exact same way they talk to commercial cloud APIs [O7].

When to use it:

  • Strict data residency and privacy: When you need to process sensitive internal documents, HR records, or proprietary data where sending payloads to third-party cloud providers is off the table.
  • Cost-predictable background tasks: For high-volume, low-complexity tasks (summarization, classification, embeddings, structured JSON extraction) where running on hardware you already own beats paying per-token API rates [O7].
  • Standardized API access: When your developers or workflow builders are already writing against the OpenAI /v1/chat/completions or /v1/embeddings specs, or Anthropic's /v1/messages endpoint, and you want a drop-in local replacement [O7].

When not to use it:

  • Direct exposure to untrusted networks: Ollama has no built-in authentication for local requests [O4]. You should never expose the service directly to the internet or even an untrusted internal subnet without an authenticating reverse proxy in front of it.
  • Heavy multi-tenant concurrency without planning: By default, Ollama is tuned for single-user or low-concurrency use (OLLAMA_NUM_PARALLEL defaults to 1) [O6]. While you can tune concurrency and queueing, it is not a replacement for massive clustered inference platforms if hundreds of users are hitting it simultaneously.
  • Complex forced tool routing: If your application relies on the OpenAI tool_choice parameter to force a specific function call, note that tool_choice is not supported in Ollama's OpenAI-compatible endpoint [O7].

Sources

Every fact in this guide comes from the official documentation below, checked on 19 Nov 2026. A code like [N4] in the text links to its source here.

  1. N4, N5 n8n docs: production requirements (ports, database, encryption key, reverse proxy)
    docs.n8n.io/deploy/host-n8n/install-options/production-requirements
  2. N8 n8n docs: security environment variables
    docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/security
  3. N9 n8n docs: nodes environment variables
    docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/nodes
  4. N13 n8n docs: advanced AI, and the n8n pricing page
    docs.n8n.io/advanced-ai · n8n.io/pricing
  5. O1 Ollama: download page and FAQ
    ollama.com/download · docs.ollama.com/faq
  6. O2 Ollama docs: GPU support
    docs.ollama.com/gpu
  7. O3, O4, O5, O6, O10 Ollama docs: FAQ (context length, network, model storage, tuning, local-only mode)
    docs.ollama.com/faq
  8. O7 Ollama docs: API and OpenAI compatibility
    docs.ollama.com/api · docs.ollama.com/openai
  9. O8 Ollama docs: Modelfile and importing models
    docs.ollama.com/modelfile · docs.ollama.com/import
  10. O9 Ollama on GitHub (MIT licence)
    github.com/ollama/ollama
  11. O11 Ollama latest release on GitHub
    github.com/ollama/ollama/releases/latest
  12. M1 Model Context Protocol: home page
    modelcontextprotocol.io
  13. M2, M3 MCP docs: architecture, and the 2026-07-28 specification
    modelcontextprotocol.io/docs/learn/architecture
  14. M4 MCP specification: transports
    modelcontextprotocol.io/specification/latest/basic/transports
  15. M5 MCP specification: authorization
    modelcontextprotocol.io/specification/latest/basic/authorization
  16. M6 MCP specification: security best practices
    modelcontextprotocol.io/specification/latest/basic/security_best_practices