Run Claude Code Locally for FREE with Ollama

From the creator

Run Claude Code for FREE, locally, with Ollama and a free local model, Recursive Flint: a $0 API bill. I gave it ten real coding jobs, each with a hidden check. Without a fix, Flint passed 7 or 8 of 10, because it sometimes asks for a tool called "bash" when Claude Code only has "Bash", and the job loops. A small one-file proxy fixed it: 10 of 10 in all four runs, in under 10 minutes. I also compared it with Qwen3.8, Qwen3.6 and Ornith-1.5. Guide + full proxy code: https://mer.vin/2026/11/run-claude-code-locally-for-free-with-ollama/ What you'll learn: → What Claude Code, Ollama and Flint are → Why Flint: speed, size and jobs passed against three other free models → Ten real coding jobs, with and without the fix → The full setup, step by step → The bash/Bash bug, and the one-file fix Honest trade-offs: Flint is the fastest model I measured, but it needs the fix to be reliable in Claude Code. Qwen3.8-27B passed every job with no fix, but it is about four times slower per token. Ornith-1.5 was quicker in wall time but failed 5 of 30 jobs silently, writing files to the wrong folder and reporting "Done". Every Flint benchmark score is Recursive's own (not independently verified). The API bill is $0, and I already own the machine, so it costs me nothing extra. Hard refactors still go to the cloud models. Timestamps 0:00 Claude Code FREE with Ollama: 10 of 10 0:42 What Claude Code, Ollama and Flint are 2:29 Why Flint: the head-to-head 4:44 Ten real jobs, with and without the fix 5:11 Set it up, step by step 6:39 Watch it work: four real jobs 7:17 The bug, and the one-file fix 8:08 100% local, and the limits 8:29 Recap Setup (as in the video, tested 9-10 Nov 2026) 1. Check your memory (Flint used about 23 GB): free -g 2. Install Ollama with the one line from ollama.com (Linux): curl -fsSL https://ollama.com/install.sh | sh 3. Get the model (a 22 GB download): ollama pull flint 4. Install Claude Code with its own installer, then check it: claude --version 5. Point Claude Code at your own computer, in the same terminal window: export ANTHROPIC_BASE_URL=http://127.0.0.1:11434 export ANTHROPIC_AUTH_TOKEN=ollama export ANTHROPIC_API_KEY="" 6. Start it (I add the skip-permissions flag only in a test folder): claude --model flint --dangerously-skip-permissions The fix (toolcase_proxy.py): it sits between Claude Code and Ollama and renames a tool call that differs only in case (bash to Bash). The heart of it: def fix_block(block, names): global FIXED if isinstance(block, dict) and block.get("type") == "tool_use": want = names.get(str(block.get("name", "")).lower()) if want and want != block["name"]: block["name"] = want FIXED += 1 Start it, then point Claude Code at it: python3 toolcase_proxy.py export ANTHROPIC_BASE_URL=http://127.0.0.1:11435 Numbers used (checked 10 Nov 2026; NVIDIA DGX Spark, 128 GB; Claude Code 2.1.319, Ollama 0.40.15) - Speed, same prompt, average of 4 runs: Flint 83.3 tokens/s, Qwen3.6-35B 80.5, Ornith-1.5-35B 68.5, Qwen3.8-27B 18.5. - Ten jobs: Flint with the fix 10/10 in 4 of 4 runs (5.4-9.4 min); without the fix 7, 8, 8 of 10 clean (26-42 min); Qwen3.8 10/10 twice with no fix (about 12 min); Ornith 25 of 30 (4.1-4.9 min). - Memory at the full 262,144-token context: Flint 23 GB, Qwen3.8 19 GB, Ornith 28 GB. - Who can run Flint: a 32 GB graphics card (RTX 5090: 27.4 GB); 24 GB with a 3-bit file at short contexts; Recursive's Mac tool needs 48 GB. - During a job, Claude Code's only connections were to 127.0.0.1 (this computer). - Popularity as of 10 Nov 2026: Claude Code 155.2k GitHub stars; Ollama 186.5k stars; Flint 74.2K Ollama downloads; Flint's launch post nearly 3.5 million views. Sources - Claude Code: https://github.com/anthropics/claude-code - JetBrains AI coding agent adoption 2026: https://blog.jetbrains.com/research/2026/08/ai-coding-agent-adoption-2026/ - Ollama: https://github.com/ollama/ollama and https://tomtunguz.com/ollama-series-b/ - Ollama, Anthropic compatibility: https://docs.ollama.com/api/anthropic-compatibility - Flint on Ollama: https://ollama.com/library/flint - Flint model card: https://huggingface.co/RecursiveSI/flint - Flint launch post: https://x.com/RichardSocher/status/2112944385415426249 - The Decoder: https://the-decoder.com/recursive-shows-first-result-of-its-ai-driven-research-process-with-flint/ - Hardware: https://atomicagent.io/blog/recursive-flint/ and https://docs.recursive.com/local/choose-your-setup - NVIDIA DGX Spark (product images in the video): https://www.nvidia.com/en-us/products/workstations/dgx-spark/ I'm not affiliated with Anthropic, NVIDIA, Ollama, Recursive, Qwen or Ornith. The DGX Spark images are NVIDIA's. Which everyday job would you hand a local model first? Tell me in the comments. Subscribe for more AI tools tested on real jobs: https://www.youtube.com/@MervinPraison #ClaudeCode #Ollama #LocalAI

Find a job · 1 live role

Jobs in AI.
Apply now.

Apply once › get screened › meet the company

See all roles

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.