Easiest
ollama launch claude
Every legit way to run it for $0
What is really free, how the free-claude-code proxy works, copy-paste setups for Ollama and OpenRouter, and the tricks that get accounts banned.
Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account.
Claude for Open Source gives eligible maintainers 6 months of Max. Check the eligibility rules and apply at claude.com/open-source-max.
With free-claude-code, Ollama or OpenRouter you keep the Claude Code app and swap the model for a free one. It works, but it is not Claude.
Alishahryar1/free-claude-code is the repo most people mean when they search "free Claude Code". It is a local proxy with an Admin UI: Claude Code sends its requests to it, and it forwards them to a model you choose.
macOS or Linux. Windows has a PowerShell installer in the README.
On Linux run this and keep the terminal open. On macOS and Windows open the Free Claude Code app. The Admin UI opens by itself.
Create a free NVIDIA NIM key at build.nvidia.com, paste it under Providers, keep the default model and click Apply.
Starts Claude Code pointed at the local proxy on 127.0.0.1:8082.
No proxy needed when a provider speaks Anthropic's API. Claude Code reads ANTHROPIC_BASE_URL and a key from your environment. Paste a block into your terminal, replace the [key], and run claude.
Runs an open model locally. Needs a tool-capable model and 64k+ context, so a strong GPU or a lot of RAM.
Provider's guideollama launch claude
ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_API_KEY="" ANTHROPIC_BASE_URL=http://localhost:11434 claude --model qwen3.5
Anthropic's docs say it doesn't support routing Claude Code to non-Claude models through any gateway, so updates can break these setups. Commands checked against each provider's guide on Dec 3, 2026.
Local proxy with an Admin UI. Routes Claude Code and 11 other coding agents to 61 providers, many with free tiers, plus local models.
Routes Claude Code requests to the model you pick per task, like a cheap model for background work. Now also a desktop app.
Small proxy that runs Claude Code on OpenAI or Gemini models.
Proxy that translates Claude Code requests to any OpenAI-compatible API.
Tools that wrap your Claude subscription as an API for other apps break Anthropic's terms. Anthropic blocked this in January 2026 and wrote it into its policy in February.
SourceSome "free code" repos rebuild Claude Code from leaked source with telemetry and safety prompts removed. That is a copyright problem and a security risk.
Sharing one paid account or farming cloud trial credits gets accounts banned and is against the providers' terms.
No. Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account. The free claude.ai plan does not include Claude Code. Eligible open source maintainers can apply for free Max access through Claude for Open Source.
free-claude-code (FCC) is an open source local proxy by Alishahryar1, licensed AGPL-3.0. It runs Claude Code, Codex and other coding agents on models from 61 providers, many with free tiers like NVIDIA NIM, OpenRouter, Groq and Google AI Studio, or on local models through Ollama. It is not made or endorsed by Anthropic.
No. It keeps the Claude Code app but swaps the model behind it for another one, such as an NVIDIA Nemotron or a Llama model. You get Claude Code's tools and workflow, not Claude's answers.
Anthropic's docs say it does not support routing Claude Code to non-Claude models through any gateway. That makes it unsupported, not banned: it does not use your Claude login. Tools that reuse a Claude Pro or Max login in other apps are banned.
Install Ollama, pull a tool-capable model with a long context window, then run ollama launch claude. Ollama starts Claude Code pointed at your local model. It costs nothing but needs a strong machine.
Pick a model that handles tool calls well and has at least 64k tokens of context, since Claude Code sends long prompts with many tools. Small local models often fail at multi-step edits. Expect the result to be weaker than Claude on hard tasks.
Yes. Several open source coding agents like OpenCode or Gemini CLI work with free or cheap models out of the box. See our Claude Code alternatives page for a side by side comparison.