Claude Code does not care where the model lives. Point it at a local model and it works with no network. I tested that at 35,000 feet, picked the wrong model first, and swapped mid-flight.
TL;DR
Claude Code reads two environment variables to decide where its model lives. Point them at Ollama and it runs fully offline.
I tested this on...
🛡️ VERIFIED CYBER INTELLIGENCE ID: #3513998