Here’s how you can use Claude Code for free, forever, using Ollama and a free AI model running on your own computer. No subscription, no API bill, and it even works with the Wi-Fi off. Step by step on a 16 GB MacBook, with the Windows steps too: we install Ollama and Claude Code, set the context length to 64K, pick the right free model for your computer’s memory (I use Qwen 3.5 9B), build a Snake game, fix it when it freezes, and then get it to sort 20 messy files in under two minutes.
🎁 FREE DOC: every command and prompt from this video, for Mac and Windows, plus the full list of models for your memory:
https://docs.google.com/document/d/1yinDm6LXOdX8F_J-1LZrxwD2jSC6qF1UiNAJcVQSFlo/edit
Or just comment CLAUDE below and I’ll send it to you.
📚 RESOURCES
– Download Ollama: https://ollama.com/download
– Claude Code setup: https://code.claude.com/docs/en/setup
– Ollama + Claude Code: https://docs.ollama.com/integrations/claude-code
– Qwen 3.5 models: https://ollama.com/library/qwen3.5
🧠 WHICH MODEL FOR YOUR MEMORY
8 GB: qwen3.5:4b (simple jobs)
16 GB: qwen3.5:9b (the one in this video)
24–32 GB: gemma4:12b or qwen3-coder:30b
48 GB+: qwen3.5:27b or gemma4:31b
If you pick another model, swap qwen3.5:9b for its name in the launch line.
⏱ CHAPTERS
0:00 Claude Code for free, even offline
0:31 The trick: swap the model inside Claude Code
0:41 Step 1: Download Ollama
1:21 Set the context length to 64K
1:47 Check Ollama works
2:01 Step 2: Install Claude Code
2:44 Make a project folder
3:07 Step 3: Start Claude Code on the free model
3:27 Which free model fits your computer
4:38 First launch: download the model
5:13 Don’t log in (this catches people out)
5:29 Wi-Fi off: build a Snake game
5:54 It froze
6:15 Fix it in plain words
6:35 /context and /clear: stop it slowing down
7:11 The finished game
7:35 A real job: sort 20 messy files
8:11 Close it and come back later
8:23 Free model vs paid Claude
8:42 Recap
🛠 Tools: Claude Code, Ollama, Qwen 3.5 9B. Everything here is free.
#claudecode #ollama #localai
