How to Use Claude Code for FREE with Ollama @KevinStratvert
How to Use Claude Code for FREE with Ollama  @KevinStratvert
Uploaded November 2026 | Updated November 2026, 3 hours ago
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: ollama.com/download/windows
- Claude Code: claude.com/product/claude-code
- Ollama + Claude Code setup: docs.ollama.com/integrations/claude-code
- Gemma 4 12B: ollama.com/library/gemma4:12b
- Qwen 3.5 4B: 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: 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: youtube.com/playlist?list=PLlKpQrBME6xIARXD7aDFbQGAOHibBTqpe

πŸ“© NEWSLETTER
- Get the latest high-quality tutorial and tips and tricks videos emailed to your inbox each week: newsletter.kevinstratvert.com

πŸ”½ CONNECT WITH ME
- Official website: kevinstratvert.com
- LinkedIn: linkedin.com/in/kevinstratvert
- Discord: bit.ly/KevinStratvertDiscord
- Twitter: twitter.com/kevstrat
- Facebook: facebook.com/Kevin-Stratvert-101912218227818
- TikTok: tiktok.com/@kevinstratvert
- Instagram: instagram.com/kevinstratvert

🎁 PARTNERS & DISCOUNTED OFFERS
πŸ’» Hostinger | hostinger.kevinstratvert.com
πŸ“‹ Notion | notion.kevinstratvert.com
πŸ’΅ Quickbooks Online | qbo.kevinstratvert.com
πŸŽ™οΈ Voicemod AI Voice Changer | voicemod.kevinstratvert.com
πŸ•΅οΈ VidIQ | vidiq.kevinstratvert.com

πŸŽ’ MY COURSES
- Go from Excel novice to data analysis ninja in just 2 hours: kevinstratvert.thinkific.com

πŸŽ“ TRAINING - Take your skills, or your team’s, to the next level by partnering with us for expert training: kevinstratvert.com/training

πŸ™ REQUEST VIDEOS
https://forms.gle/BDrTNUoxheEoMLGt5

πŸ”” SUBSCRIBE ON YOUTUBE
youtube.com/user/kevlers?sub_confirmation=1

πŸ™Œ SUPPORT THE CHANNEL
- Hit the THANKS button in any video!
- Amazon affiliate link: amzn.to/3kCP2yz

βš– DISCLOSURE
Some links are affiliate links. Purchasing through these links gives me a small commission to support videos on this channel. The price to you is the same.

#stratvert #claudecode
How to Use Claude Code for FREE with OllamaMeetings in Microsoft Teams: 20 Tips and TricksClaude Skills Tutorial (2026): Build, Run, and ShareAn Assignment Tracker You’ll Actually Use | Google Sheets & FormsStop Using Gmail for Work! Look More Professional with a Branded Email AddressHow to Use Google Gemini Al (Full Tutorial)Grammarly for Small Businesses: Real Examples Across Sales, IT, and MarketingFree AI Video Generator on Your PCSuperhuman Docs Tutorial: Documents, Tables & AI in One PlaceHow to Create PowerPoint Presentations with AI (Genspark Tutorial)QuickBooks Online 2026: How to Pay Bills (Accounts Payable)How to Use ChatGPT Voice - Step-by-Step for Beginners
Kevin Stratvert |

How to Use Claude Code for FREE with Ollama

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER