How to Use Claude Code for FREE with Ollama
Learn how to use Claude Code for free with Ollama and a local AI model running on your own computer. In this step-by-step Windows tutorial, we'll install both tools, adjust Ollama's context length, connect Claude Code to Gemma 4 12B, and build a playable Breakout game. Then we'll improve the game with a follow-up prompt and learn how to return to the project later.
This setup uses a local model in the Claude Code tool, with no AI subscription or per-token API charges for local inference. It does not give you free access to Anthropic's Opus or Sonnet models. Speed and results depend on your hardware and the model you choose.
Host: Kevin Stratvert
📚 RESOURCES
- Download Ollama: https://ollama.com/download/windows
- Claude Code: https://claude.com/product/claude-code
- Ollama + Claude Code setup: https://docs.ollama.com/integrations/claude-code
- Gemma 4 12B: https://ollama.com/library/gemma4:12b
- Qwen 3.5 4B: https://ollama.com/library/qwen3.5:4b
Commands used in the video (PowerShell; run each line separately):
ollama --version
claude --version
Watch on YouTube · Video by Kevin Stratvert





