You will install Ollama and Claude Code on Windows, point Claude Code at a local model, and build a playable Breakout game without paying for API tokens. It suits Windows users with a reasonably capable PC who want free AI coding help on their own machine.
YouTube video: How to Use Claude Code for FREE with Ollama
Caption availability is unknown. Check the CC control in the YouTube player.
Choose a chapter (10)
- Video length
- 7 min
- Time to do it
- 20 minutes
- Difficulty
- Medium
- Steps
- 9
What you need
Steps
Download Ollama from ollama.com and run the Windows installer. Open PowerShell and type ollama --version to confirm the install worked.
Open Ollama's settings and raise the context length above the default. A longer context lets the model keep more of your code file in view while it works.
Install Claude Code on Windows using the native installer from the Claude Code docs. Run claude --version in PowerShell to check it responds.
Make a project folder in PowerShell with mkdir breakout-game, then move into it with cd breakout-game. Claude Code works on whatever folder you launch it from.
Run ollama launch claude to start Claude Code against your local Ollama install. Pick a model when prompted, such as Gemma 4 12B or the smaller Qwen 3.5 4B.
Paste the build prompt: a colorful, playable Breakout game in HTML, CSS and JavaScript with a mouse paddle, bouncing ball, disappearing bricks, a score counter and a restart button.
Let the model write the files, then open the HTML file in your browser and play a round. Note what feels off before asking for changes.
Send a follow-up prompt asking for a glowing ball, particle effects when bricks break and a subtle animated background, and tell it to keep the existing gameplay working.
To come back later, exit Claude Code and reopen it with ollama launch claude from inside the project folder. Your files stay where you left them.
Tips and common mistakes
If PowerShell says claude is not recognized, run $env:Path += ";$env:USERPROFILE\.local\bin" in that window, then restart Windows Terminal.
Local inference is free, but this does not give you Anthropic's Opus or Sonnet models.
Speed and quality depend on your hardware and model size, so try Qwen 3.5 4B first on a modest laptop.
Questions
Is this really free?
Yes for local inference. You run the model on your own computer, so there is no subscription or per-token API charge. You just do not get access to Anthropic's hosted models.
Which model should I choose?
Bigger models like Gemma 4 12B give better code but need more memory. Smaller ones like Qwen 3.5 4B run faster on modest hardware, so start there if replies are slow.
Do I need a paid Claude account?
No. You are pointing the Claude Code tool at a model served by Ollama on your machine, so no subscription or API key is needed for that local setup.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


