---
title: "Claude Code Free on Your PC: Step by Step and the Limits"
url: https://matheusceltic.com/en/guides/claude-code-free-local/
description: "I ran Claude Code for free on my PC with Ollama: Gemma vs Qwen3 Coder, measured times, the context setting that makes it work and the real limits."
language: en
author: Matheus Celtic
updated: 2026-11-28
---

# Claude Code Free and Unlimited on Your PC: How I Did It (and the Limits)

By [Matheus Celtic](https://matheusceltic.com/sobre/) · updated Nov 28, 2026 · [Ler em português](https://matheusceltic.com/guias/claude-code-gratis/)

**Short answer:** can you use Claude Code for free? Yes, with one trick: you swap Anthropic's paid model for an open model that runs on your PC, with Ollama, and the Claude Code commands stay the same. I did it on my Windows machine and measured it: Gemma built a calculator in 1 min 54 s, and Qwen3 Coder took 4 min 45 s because it did not fit on the graphics card. It works for small tasks. For a big project, neither of them comes close to paid Claude.

A quick note: my channels and videos are in Portuguese, made for a Brazilian audience.

## How it works: the car and the engine

Claude Code is the car: the commands, the tools, the way of working. The AI model is the engine. The new versions of Ollama talk directly to Claude Code, with no program in between, so you swap the paid engine for a free one running on your machine. The commands stay the same. Only who does the thinking changes.

[Imagem: Scene from my video with the car and engine analogy: same commands, same way of working, only who thinks changes]
The analogy that organizes this guide: Claude Code is the car, the model is the engine.

## Step 1: install Ollama and pick the model by VRAM

On the Ollama website, download the installer for your system. On my PC it took less than 2 minutes. The choice of model depends on a detail few people mention: what matters is the [graphics card memory](https://matheusceltic.com/en/guides/pc-for-ai-video/), the VRAM. If the model fits entirely on the card, it runs fast. If it does not fit, part of it goes to RAM and everything drags.

| My PC | Value |
| --- | --- |
| Processor | Ryzen 9 7900X |
| RAM | 32 GB |
| Graphics card | AMD Radeon RX 7900 XT, 20 GB of VRAM |
| Models tested | Gemma and Qwen3 Coder (18 GB) |

With 32 GB of RAM you can already run a code-focused model like Qwen3 Coder. I downloaded both to compare.

[Imagem: Scene from my video showing two bars: a model that fits entirely on the card is fast, one that does not fit goes to RAM and is slow]
The VRAM rule: fits entirely on the card, fast. Spills over to RAM, slow.

## Step 2: the setting nothing works without

Claude Code sends a lot of instructions along with each request. With Ollama's default context that does not fit, and the model does not even receive what you typed: mine answered "I'm ready, tell me what to do" to a full request. Ollama's own documentation says to use a context of 64 thousand. With that setting, it worked. The page of each model on the Ollama website shows the command ready to copy.

## Step 3: the real test, measured

The same request for both: build a calculator.

| Test | Gemma | Qwen3 Coder |
| --- | --- | --- |
| Calculator (2nd run, measured) | 1 min 54 s | 4 min 45 s |
| Why the difference | fit in the VRAM | with the large context it took 20 GB and overflowed |
| Behavior | delivered | tried to save in the wrong folder, was blocked and said it had created the file |

That last point matters: the free model made a mistake and stated that it had done the job. One honest sentence sums up this whole guide: it is free, it is not magic. For a calculator, Gemma does the job. For a big project, neither of them comes close to paid Claude.

## The two extra paths I tested

- **Free LLM API:** almost every lab has a [free plan](https://matheusceltic.com/en/guides/claude-free-vs-paid-animation/) (Google, Groq, Mistral). Alone, each one runs out fast. The Free LLM API joins them all in a single address, and Claude Code uses that address as the engine. The easiest key to get is the one from Google AI Studio.
- **OpenCode:** a free and open coding agent. Its cloud models answered me "free limit reached", so I connected it to the same Ollama on my PC. The same calculator came out in 1 min 55 s with Qwen, less than half the time Claude Code took with the same model.

[Imagem: Scene from my video comparing running the model on your PC, the most private option, with using the Free LLM API in the cloud]
The two paths: on your PC (the most private) or joining the free cloud plans.

## The PDF guide, for free

So you do not have to work out which model fits your memory and your VRAM, I put together a PDF guide with the full step by step, the list of the right model for each machine and the errors I ran into: [get the guide here](https://matheusceltic.com/skills/claude-code-gratis-pdf/) (in Portuguese). It arrives in your email.

This goes well with the guides on [Claude use cases](https://matheusceltic.com/en/guides/claude-use-cases/) and on [making a game with AI for Steam](https://matheusceltic.com/en/guides/make-a-game-with-ai-steam/). And it all runs from the [free Claude skills for video](https://matheusceltic.com/en/guides/claude-skills-for-video/).

## Frequently asked questions

**Does free Claude Code replace the paid one?**
For small tasks and for learning, yes. In my test, the free model built a calculator in less than 2 minutes. For a big project, no open model I tested came close to paid Claude, and one of them even stated that it had saved a file that was blocked.

**Do I need a good graphics card?**
You need enough VRAM for the model you choose. On my 20 GB RX 7900 XT, Gemma fit and flew. The 18 GB Qwen3 Coder overflowed with the large context and was 2.5 times slower. Without a graphics card, you can use the Free LLM API path, joining free cloud plans.

**What is the most common mistake when connecting Ollama to Claude Code?**
Leaving the default context. Claude Code sends long instructions and the request does not reach the model. The fix is to raise the context to 64 thousand, as Ollama's documentation recommends.

**Do I need a card or a subscription to use Claude Code for free this way?**
According to the official Claude Code documentation (checked on Nov 28, 2026), normal use asks for a Claude subscription or an Anthropic Console account, and the terminal also accepts third-party providers. On the Ollama path with a local model, the [Ollama documentation](https://docs.ollama.com/integrations/claude-code) sets up Claude Code with a fixed token and an empty Anthropic key, with no Anthropic account. I found no official source about a card at Ollama sign-up, so I state nothing about that.

**Does free Claude Code work on Windows?**
It does: my whole test was on Windows. The [official Claude Code page](https://code.claude.com/docs/en/overview) lists installation for Windows through PowerShell, CMD or WinGet (checked on Nov 28, 2026). If the terminal complains that Python is not recognized when you run other tools, see [the "python is not recognized" error on Windows](https://matheusceltic.com/en/guides/python-is-not-recognized-windows-path/).

**What is the limit of free Claude Code?**
The limit is your hardware, not a message counter. On my PC, the model that fit in the 20 GB of VRAM (Gemma) took 1 min 54 s on the calculator, and the one that did not fit (Qwen3 Coder) took 4 min 45 s. Ollama's documentation asks for a context of 64 thousand or more for larger repositories. And the free model made mistakes: one of them said it had created a file that was blocked.

**Does this work for making AI videos for free?**
It works for the code part. I used this same path in my video on [free animated Shorts](https://matheusceltic.com/en/guides/free-ai-animated-videos/), with Gemma writing the story and the scenes on my PC. To run the render on Windows, the step by step is in [AI animation on free Claude](https://matheusceltic.com/en/guides/free-claude-animation-step-by-step/).

## Related guides

- [Best AI video tools in 2026: what I actually tested](https://matheusceltic.com/en/guides/best-ai-video-tools-tested/)
- [What Claude skills for video are (and where to download them free)](https://matheusceltic.com/en/guides/claude-skills-for-video/)
- [Fable 5.2 or Opus 5.5: which one makes the best animation?](https://matheusceltic.com/en/guides/fable-vs-opus-animation/)
- [Claude free vs paid for AI animation](https://matheusceltic.com/en/guides/claude-free-vs-paid-animation/)
- [How much does it cost to make a video with AI? The real cost I measured](https://matheusceltic.com/en/guides/ai-video-cost/)
- [Best Claude Code skills for video in 2026 (list with installation)](https://matheusceltic.com/en/guides/best-claude-code-skills-for-video/)

The AI Animation Membership (Criadores IA) gives you 30+ ready-made Claude skills for animated videos, for US$ 19 per month. The video skills come ready to run in Claude, from script to MP4, without you setting any of this up by hand.

**[See the membership →](https://matheusceltic.com/criadoresia/en/?utm_source=guides-en&utm_medium=site&utm_campaign=claude-code-free-local&utm_content=pitch)**

[Imagem: Photo of Matheus Celtic]

**Matheus Celtic**: creator of Criadores IA. I teach how to make animations and YouTube videos with AI, using Claude. Author of the book [Animação com IA](https://www.amazon.com.br/dp/B0HR6YLC59) (in Portuguese). [About me (in Portuguese)](https://matheusceltic.com/sobre/) · [YouTube](https://www.youtube.com/@celticmatheus1) ·
[GitHub](https://github.com/celticmatheus) ·
[X](https://x.com/CelticMatheus)  
By Matheus Celtic, creator of Criadores IA. Times and tests measured on my PC (Ryzen 9 7900X, 32 GB, RX 7900 XT) on Nov 8, 2026. Updated on Nov 28, 2026, with the official Claude Code and Ollama pages checked on that date. English version published Nov 28, 2026.
