GuidesMembership

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

By · updated · Ler em português

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.

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, 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.

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

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 (in Portuguese). It arrives in your email.

This goes well with the guides on Claude use cases and on making a game with AI for Steam. And it all runs from the free 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 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 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.

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, 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.

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 (in Portuguese). · YouTube · GitHub · X
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.