Privacy·5 min read

How to run AI completely offline for sensitive data

For healthcare, legal, financial, and personal data, running AI completely offline ensures your data never leaves your machine. This guide covers the full offline setup stack and practical workflows.

Why offline AI for sensitive data

When you use cloud LLM APIs, your prompts are transmitted to and processed on third-party servers. Even with enterprise data agreements, this creates compliance risk for regulated data (HIPAA for healthcare, GDPR for EU personal data, SOC 2 for enterprise data) and confidentiality risk for trade secrets.

Running a model entirely offline means your data never leaves your hardware. The model processes everything in local RAM and GPU memory, nothing is logged to external servers, and there is no network dependency.

Choose your offline stack

Ollama + any GGUF model is the simplest stack. Install Ollama, pull a model, and use the local API. All processing happens on your machine. Disconnect from the internet after pulling the model to verify true offline operation.

For teams and enterprise, Ollama can be deployed on a private server with the API accessible only on the internal network. Every user on the network gets access to the same local model with zero external traffic.

Network isolation

For maximum security, use network monitoring to verify no traffic leaves your machine during model inference. Tools like Little Snitch (macOS) or Wireshark can confirm this. Ollama makes no external network calls during inference — the only outbound traffic occurs during model download.

For air-gapped environments, download model files on a connected machine, transfer via USB to the air-gapped machine, and use Ollama's `--model-path` flag to load from a local directory instead of downloading.

Practical offline workflows

Document review: use a 14B+ model with a long context window (Phi-4 at 16K, Llama 3.3 70B at 128K) to summarise and extract key information from confidential PDFs. Pipe the document through `ollama run llama3.3:70b 'Summarise the key obligations in this contract: [document text]'`.

Code review of private repositories: run DeepSeek R1 14B or Qwen 3 32B locally to review code that cannot leave the organisation. Both models have strong code analysis capabilities comparable to GPT-4o at smaller sizes.