Skip to main content

Free Claude Code

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.

Checked •5 setups•free-claude-code 76k

The free Claude plan has no Claude Code

Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account.

Open source maintainers can get Max free

Claude for Open Source gives eligible maintainers 6 months of Max. Check the eligibility rules and apply at claude.com/open-source-max.

Claude Code runs on free models

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.

free-claude-code: Claude Code on free models

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.

  • Free model keys from NVIDIA NIM, OpenRouter, Groq and Google AI Studio, or local models
  • Also runs Codex, OpenCode, Antigravity and other coding agents
  • Does not use or need your Claude login
  • You get the Claude Code app, not Claude models
  • Independent project, AGPL-3.0, not endorsed by Anthropic
1. Install it

macOS or Linux. Windows has a PowerShell installer in the README.

2. Start the proxy

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.

3. Add a free key

Create a free NVIDIA NIM key at build.nvidia.com, paste it under Providers, keep the default model and click Apply.

4. Run Claude Code through it

Starts Claude Code pointed at the local proxy on 127.0.0.1:8082.

Do it yourself: point Claude Code at another model

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.

Ollama, on your own machine

Runs an open model locally. Needs a tool-capable model and 64k+ context, so a strong GPU or a lot of RAM.

Provider's guide

Easiest

ollama launch claude

Or set it by hand

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.

Proxies and routers compared

Alishahryar1

Local proxy with an Admin UI. Routes Claude Code and 11 other coding agents to 61 providers, many with free tiers, plus local models.

musistudio

Routes Claude Code requests to the model you pick per task, like a cheap model for background work. Now also a desktop app.

1rgs

Small proxy that runs Claude Code on OpenAI or Gemini models.

fuergaosi233

Proxy that translates Claude Code requests to any OpenAI-compatible API.

Free tricks that get you banned

Proxies that reuse a Claude Pro or Max login

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.

Source

Forks built from leaked Claude Code source

Some "free code" repos rebuild Claude Code from leaked source with telemetry and safety prompts removed. That is a copyright problem and a security risk.

Shared accounts and credit farming

Sharing one paid account or farming cloud trial credits gets accounts banned and is against the providers' terms.

Keep going

Frequently asked questions

Is Claude Code free?

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.

What is free-claude-code?

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.

Does free-claude-code give me Claude models for free?

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.

Is free-claude-code allowed by Anthropic?

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.

How do I use Claude Code with Ollama for free?

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.

Which free model works best in Claude Code?

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.

Is there a free Claude Code alternative?

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.

free-claude-code is by Alishahryar1 (AGPL-3.0) and is not affiliated with Anthropic. Claude and Claude Code are trademarks of Anthropic. Prices and free tiers change often, so check each provider before you rely on it. Last checked Dec 3, 2026.