How to Use Claude Code for FREE with Ollama
From Kevin Stratvert Β· Β· 7 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.
If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.
Description
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 mkdir breakout-game cd breakout-game ollama launch claude
Windows "claude is not recognized" fix (native installer): For the current PowerShell window, run: $env:Path += ";$env:USERPROFILE\.local\bin"
To also save it for future terminals, run these three lines: $claudeBin = Join-Path $env:USERPROFILE '.local\bin' $userPath = [string][Environment]::GetEnvironmentVariable('Path', 'User') if (($userPath -split ';') -notcontains $claudeBin) { [Environment]::SetEnvironmentVariable('Path', ($userPath.TrimEnd(';') + ';' + $claudeBin).TrimStart(';'), 'User') }
Restart Windows Terminal after saving, then run claude --version. Installation help: https://code.claude.com/docs/en/setup
Build prompt: Create a colorful, playable Breakout arcade game using HTML, CSS, and JavaScript. Include a paddle controlled by the mouse, a bouncing ball, bricks that disappear when hit, a score counter, and a restart button. Make sure the game works in a web browser.
Improve prompt: Make the Breakout game look more polished. Add a glowing ball, particle effects when bricks break, and a subtle animated background. Keep the existing gameplay working.
β TIMESTAMPS 0:00 - Introduction 0:37 - Download and install Ollama 1:30 - Adjust the context length 2:13 - Install Claude Code on Windows 2:58 - Create your project folder 3:31 - Connect Ollama and choose a local model 4:42 - Build and play a Breakout game 5:35 - Improve the game with a follow-up prompt 6:01 - Exit and reopen Claude Code 6:24 - Hardware requirements and model limitations
πΊ RELATED VIDEOS - Playlist with all my videos on Artificial Intelligence: https://www.youtube.com/playlist?list=PLlKpQrBME6xIARXD7aDFbQGAOHibBTqpe
π© NEWSLETTER - Get the latest high-quality tutorial and tips and tricks videos emailed to your inbox each week: https://newsletter.kevinstratvert.com
π½ CONNECT WITH ME - Official website: http://www.kevinstratvert.com - LinkedIn: https://www.linkedin.com/in/kevinstratvert/ - Discord: https://bit.ly/KevinStratvertDiscord - Twitter: https://twitter.com/kevstrat - Facebook: https://www.facebook.com/Kevin-Stratvert-101912218227818 - TikTok: https://www.tiktok.com/@kevinstratvert - Instagram: https://www.instagram.com/kevinstratvert/
π PARTNERS & DISCOUNTED OFFERS π» Hostinger | https://hostinger.kevinstratvert.com π Notion | https://notion.kevinstratvert.com π΅ Quickbooks Online | https://qbo.kevinstratvert.com ποΈ Voicemod AI Voice Changer | https://voicemod.kevinstratvert.com π΅οΈ VidIQ | http://vidiq.kevinstratvert.com
π MY COURSES - Go from Excel novice to data analysis ninja in just 2 hours: https://kevinstratvert.thinkific.com/
π TRAINING - Take your skills, or your teamβs, to the next level by partnering with us for expert training: https://kevinstratvert.com/training
π REQUEST VIDEOS https://forms.gle/BDrTNUoxheEoMLGt5
π SUBSCRIBE ON YOUTUBE https://www.youtube.com/user/kevlers?sub_confirmation=1
π SUPPORT THEβ¦