Run Claude Code locally for free with Ollama and a local coding model

Mervin Praison points Claude Code at Ollama and the free Recursive Flint model for a $0 API bill, then fixes a tool-name case bug (bash vs Bash) with a small proxy so all 10 real coding jobs pass.

Mervin Praison · YouTube · published Nov 11, 2026 · Coding & Development

Run Claude Code locally for free with Ollama and a local coding model — video by Mervin Praison▶ Watch on YouTube
Prompt
Turn convert.py into a command-line tool that converts temperatures (for example 100 Celsius prints 212 Fahrenheit), then run it to check your own work.

Visual breakdown

Claude Code can run with no cloud bill by pointing it at Ollama and the free Recursive Flint model. Flint sometimes asks for a tool called bash instead of Bash and loops, so a small proxy fixes the capital letter and all ten test jobs pass.

The problem: Claude Code normally uses Anthropic's cloud model through an API, which costs money per use.

How the local Claude Code setup works

  1. Check memoryRun free -g; Flint needs about 23 GB free
  2. Install OllamaOne line from ollama.com, then ollama pull flint (22 GB download)
  3. Install Claude CodeIts own one-line installer
  4. Point to localhostSet the address plus a stand-in key in the same terminal window
  5. Flint via Ollamaclaude --model flint; the model does the coding on your machine
    Dropped: Wrong-case tool names (bash)
  6. Case-fix proxySits between Claude Code and Ollama, restores the capital B in Bash
  7. Jobs finishedAll ten coding jobs passed with $0 in API fees
CheckSetup / manualLocal AI modelResult

Why Flint over other free models

  1. Fastest of four: over 80 tokens a second vs about 20 for Qwen3.8
  2. Qwen3.8 passed every job with no fix but is slow, about 12 minutes per set
  3. Ornith was quickest but failed silently on 5 of 30 jobs
  4. Flint's benchmark scores come from Recursive itself, not independently verified

By the numbers

$0API fees
10/10jobs with the fix
3 of 10calls with wrong-case name
23 GBmemory used

Set it up yourself

Install Ollama, pull Flint, point Claude Code at your own computer, and add the small fix.

  1. Check free memory with free -g (about 23 GB needed)
  2. Install Ollama with the one line from ollama.com
  3. Run ollama pull flint
  4. Install Claude Code with its own installer
  5. Set the address and stand-in key lines in the same window
  6. Start with claude --model flint, ideally in a test folder with the skip-permissions flag

Then start the proxy and point Claude Code at it instead.

Things to know

  • Without the fix, 2 or 3 jobs looped for 10 to 15 minutes each
  • Auto mode checks commands on Anthropic's servers, so it can't run here
  • Only use skip-permissions in a folder you don't mind it changing
  • A silent failure is worse than a loud one
  • Hard jobs still go to cloud models

Distilled from the video’s captions

How to try it

  1. Open Claude Code.
  2. Copy the prompt and fill in the [placeholders].
  3. Watch Mervin Praison's video for the full walkthrough and setup.

Related use cases

Share