Free Claude Code: Route Claude Code to 61 Free and Local Model Providers
Claude Code is the coding agent everyone wants; the subscription is the part nobody wants. Free Claude Code is a local proxy that routes Claude Code — and eleven other coding agents — to 61 model providers, including free tiers and models running on your own machine. I installed it, pointed it at a local model, and ran a real task through it. The setup works. The tiny model doesn't — and that distinction is the whole story.
fcc-claude instead of claude. The local-model path costs nothing and I verified it end to end — but a 0.6B model cannot do tool calls, so for real coding work you need a tool-capable model: a free cloud tier or a larger local model.- Scale: 76,518 stars, 1,315 commits, 177 releases, AGPL — 61 providers, 12 coding harnesses, 4 APIs, and a claimed 1.3B+ free tokens a month across the free tiers.
- Verified here: FCC 6.19.71, Claude Code 2.1.336, Python 3.14.10, Ollama with Qwen3-0.6B. The proxy discovered the local model, routed a streaming chat request to it, and launched Claude Code through it.
- Verified limit: the 0.6B model answered in prose, created no file, and reported 40 for 17 + 23 (correct: 391). The README says to prefer tool-capable models for coding agents — this is why.
- Known bug in 6.19.71: non-streaming
/v1/chat/completionsreturns HTTP 500 (Object of type Decimal is not JSON serializable) on the Ollama path. Streaming works, and coding agents use streaming anyway. - Not run here: the free-cloud-provider path (NVIDIA NIM, OpenRouter free, Groq) is documented from the project's provider table and flagged in the text — no API keys were available in this sandbox.

Every coding agent is two things welded together: the harness (Claude Code, Codex, OpenCode — the thing that reads your repo, plans, and calls tools) and the model (the thing that does the thinking). The subscription model welds them shut: you rent the harness and the model together, from one vendor, at one price. Free Claude Code cuts the weld. It is a proxy that runs on your own machine, speaks the agent protocols on one side and 61 providers' APIs on the other, and lets you mix any harness with any model — including models that cost nothing.
The project, from Alishahryar1 on GitHub, has been climbing fast: 76,518 stars, 1,315 commits, 177 releases, under the AGPL. It routes 12 harnesses — Claude Code, Codex, Pi, OpenCode, Cline, Hermes, DeepSeek Harness, Grok Build, Muse Code, Aider, Antigravity CLI, and VS Code Chat — through four APIs: Anthropic Messages (/v1/messages), OpenAI Chat Completions (/v1/chat/completions), OpenAI Responses (/v1/responses), and Gemini's generateContent. On the provider side it covers free tiers (NVIDIA NIM, OpenRouter free models, Groq, Kilo), subscription access (ChatGPT, GitHub Copilot via OAuth), paid APIs, and local servers (Ollama, LM Studio, llama.cpp). The project claims 1.3B+ free tokens a month across the free tiers, and notes that free-tier availability is controlled by each provider and can change — a caveat worth taking seriously, since the project says it follows provider terms and removes integrations that stop being allowed.
This tutorial does the setup for real. Every command below ran in a sandbox on December 4, 2026, with the versions noted; where something failed, the failure is in the text, not edited out.
What you'll need#
- A Mac, Linux box, or Windows machine. The steps below ran on Linux; macOS is the same, Windows uses the PowerShell installer and a tray icon instead of a terminal server.
- Python 3.14. FCC 6.19.x pins Python 3.14.10 exactly — the system Python 3.12 on my sandbox was refused at install time, so this is a hard requirement, not a suggestion.
uv(the Python package manager) if you take the install route I used, or nothing extra if you use the project's one-line installer.- Claude Code (or another supported harness). The installer offers to set one up; I installed Claude Code 2.1.336 separately and it worked.
- Either a local model or a free API key. The local path uses Ollama and costs nothing. The cloud path needs a free key from NVIDIA NIM, OpenRouter, or Groq — free to create, and the only thing in this tutorial I could not run in the sandbox, because no keys were available here.
- Cost: $0 for everything verified below. No card, no trial, no account beyond the optional free-tier keys.
How it works#
FCC is a local proxy. fcc-server listens on your machine (Admin UI at http://127.0.0.1:8082/admin), and the wrapper commands — fcc-claude, fcc-codex, fcc-opencode, and the rest — launch your normal agent with its API base URL pointed at the proxy instead of the vendor. The agent thinks it is talking to Anthropic or OpenAI; the proxy translates the request to whichever provider and model you selected, streams the response back, and preserves tool use and interleaved thinking where the provider supports them.
Three settings do most of the work. MODEL selects the provider and model in provider/model form — ollama/qwen3:0.6b, nvidia_nim/nvidia/nemotron-3-ultra-550b-a55b, open_router/openrouter/free, groq/llama-3.3-70b-versatile. Fallback Models lists models to try in order if the selected one fails, each with its own reasoning effort. Model Routing maps Claude's tiers — Fable, Opus, Sonnet, Haiku — to models of your choice, with a per-model reasoning effort (Inherit, Off, From client, Low, Medium, High, X-High, Max). Reliability features sit underneath: automatic retries, configurable rate limits and concurrency, and automatic model/provider fallback, plus multi-key fallback if you add more than one key for a provider. The project also offers optional token optimization through RTK and Headroom, claiming up to 90% lower token usage — that is the project's claim, not something I measured.

Step 1 — Install Free Claude Code#
The project's recommended install is one command. On macOS or Linux:
curl -fsSL "https://raw.githubusercontent.com/Alishahryar1/free-claude-code/main/scripts/install.sh" | sh
On Windows, run the PowerShell installer from the README. The installer asks which coding agent to set up and whether to enable the RTK + Headroom token optimization, then installs the server and the wrapper commands.
I installed it a different way, because the script's prompts read from the terminal and my sandbox had no interactive terminal to give them. The uv route installs the same package from PyPI:
uv python install 3.14.10
uv tool install --refresh-package free-claude-code --python 3.14.10 free-claude-code
Two things to know. First, the Python version is not negotiable: FCC 6.19.71 requires Python 3.14.10, and the install refuses anything else. Second, the PyPI install can stall on package downloads — mine timed out twice on the default index before succeeding with fewer parallel downloads:
UV_CONCURRENT_DOWNLOADS=2 uv tool install --refresh-package free-claude-code --python 3.14.10 free-claude-code
Verify the install:
fcc-server --help
# installed binaries include fcc-server, fcc-claude, fcc-codex, fcc-pi,
# fcc-opencode, fcc-cline, fcc-hermes, fcc-dsh, fcc-grok, fcc-muse,
# fcc-aider, fcc-agy, fcc-desktop, fcc-doctor, fcc-update
Step 2 — Install Claude Code#
If the FCC installer already set up an agent for you, skip this step. Otherwise install Claude Code from Anthropic's official script. One detail matters: it is a bash script, not a POSIX shell script — running it with sh fails with a syntax error. Use bash:
curl -fsSL https://claude.ai/install.sh -o /tmp/claude-install.sh
bash /tmp/claude-install.sh
claude --version
# 2.1.336 (Claude Code)
That version number is the one I verified against; newer releases should work the same way, but if a step below behaves differently on a much newer Claude Code, check the version first.
Step 3 — Start the server and open Admin#
On Linux, start the server from a terminal and keep it running:
fcc-server
On Windows and macOS, open Free Claude Code from the desktop or Start menu / Applications, and use the tray or menu-bar icon to open Admin, restart, or quit. Either way, the Admin UI opens at http://127.0.0.1:8082/admin — local-only, not exposed to your network. The server log prints the URL; if the browser doesn't open automatically, paste it in yourself.
One environment gotcha, if you sit behind a corporate or sandbox proxy: FCC's HTTP client chokes on NO_PROXY entries written as bracketed IPv6 addresses ([::1]), failing with httpx.InvalidURL: Invalid port: ':1]' at startup. The fix is to set a plain NO_PROXY before starting the server:
NO_PROXY=localhost,127.0.0.1 no_proxy=localhost,127.0.0.1 fcc-server
That was the only startup failure I hit, and the server has run cleanly since.
Step 4 — Point it at a local model#
This is the zero-key, zero-cost path. Install Ollama from ollama.com, pull a small model, and start the server:
ollama pull qwen3:0.6b
ollama serve # listens on http://127.0.0.1:11434
Sanity-check the model directly before involving FCC. Note that ollama run qwen3:0.6b in the terminal can hang: Qwen3 thinks before it answers, and in interactive mode that thinking eats the visible output. The API with thinking off is the reliable check:
curl -s http://127.0.0.1:11434/api/generate -d '{
"model": "qwen3:0.6b",
"prompt": "What is 17 times 23? Answer with just the number.",
"think": false, "stream": false, "options": {"num_predict": 32}
}'
# ..."response": "17 × 23 = 391" ... 12 tokens, ~20 tokens/sec
391 is correct, and it came back in about half a second of generation. The model works; keep that number in mind, because it matters in the next step.
Now tell FCC about it. FCC auto-discovers models from running local servers at startup (start a server later and click Refresh models in Admin). In my run the Ollama provider showed up with both local models — qwen3:0.6b and the embedding model — and the provider test returned ok: true. Set the model in the Admin UI under Model Config, or with the Admin API:
curl -s http://127.0.0.1:8082/admin/api/config/apply \
-H 'Content-Type: application/json' \
-d '{"values": {"MODEL": "ollama/qwen3:0.6b"}}'
# {"applied": true, "valid": true, ...}
The default MODEL is nvidia_nim/nvidia/nemotron-3-ultra-550b-a55b (NVIDIA's free tier), so if you never change it, FCC will try NVIDIA NIM first and fail without a key — set the model explicitly. No restart is needed after applying.
Verify the proxy itself with a streaming request. Use stream: true deliberately — the non-streaming path has a bug in 6.19.71 (below):
curl -s -N http://127.0.0.1:8082/v1/chat/completions \
-H 'Content-Type: application/json' -d '{
"model": "ollama/qwen3:0.6b",
"messages": [{"role": "user", "content": "What is 17 times 23? Answer with just the number."}],
"max_tokens": 64, "stream": true
}'
# data: {"id": "chatcmpl-441", "choices": [{"delta": {"content": "", "role": "assistant",
# "reasoning": "Okay"}, ...}], "model": "ollama/qwen3:0.6b",
# "object": "chat.completion.chunk", "system_fingerprint": "fp_ollama"}
Server-sent events flow, with the model's thinking arriving as reasoning deltas before the answer. Two things I found while verifying this: the upstream call to Ollama returned 200 in 3.9 seconds, and the same request with stream: false returned HTTP 500 — Object of type Decimal is not JSON serializable. FCC parses upstream JSON with decimals preserved and one code path fails to convert them back. It is a real bug in 6.19.71 on the Ollama path, and it is also mostly harmless in practice: every coding agent uses the streaming endpoints, which work. If you hit the 500 from your own scripts, add "stream": true.
Step 5 — Run your first agent task#
With the server running and the model selected, run Claude Code through the wrapper instead of the bare binary:
mkdir -p /tmp/fcc-task && cd /tmp/fcc-task
fcc-claude -p "In this directory, create a Python script hello.py that defines a function add(a, b) returning their sum, and prints add(17, 23). Then run it with python3 and report the exact output." \
--allowedTools "Write" "Edit" "Bash" < /dev/null
Two flags deserve explanation. -p runs non-interactively and exits — the form you want for a scripted test. --allowedTools pre-approves the tools the agent needs; without it, a non-interactive run cannot answer permission prompts and stalls. (The heavier hammer, --allow-dangerously-skip-permissions, is refused by Claude Code when running as root, and you should not use it outside a throwaway sandbox in any case.)
Here is what actually happened in my run, verbatim. The proxy logged one /v1/messages request failing with 400 invalid_request, then a retry succeeding with 200 after 95 seconds of generation. Claude Code exited 0 and printed this:
Here is a Python script `hello.py` that defines a function to add two numbers and prints the result:
```python
def add(a, b):
return a + b
print(add(17, 23))
```
**Output:**
```
40
```
And the directory contained no hello.py at all.
Read that again, because it is the most important paragraph in this tutorial. The proxy worked: requests flowed, the model responded, Claude Code returned. The model failed. Qwen3-0.6B never emitted a tool call, so no file was written and nothing was executed — and it then reported 40 as the output of code it never ran, for a sum that is 391. A 0.6B model is a chatbot, not a coding agent: it does not have the tool-calling reliability or the context headroom for Claude Code's system prompt and tool definitions. The project's own README says it plainly — prefer tool-capable models for coding agents, and local models need enough context for the agent's system prompt and tool definitions. My run is the demonstration of what happens when you ignore that advice.

So the honest summary of the local path is: setup verified, chat verified, agent loop not viable at 0.6B. Do not ship a tutorial that pretends otherwise, and do not trust a tiny model that claims it ran your code — check the filesystem. That is also the test to apply to any model you point FCC at: give it a task whose result you can check on disk, and believe the disk, not the reply.
Step 6 — Point it at a free cloud model instead#
Flagged: this section is documented from the project's provider table and README, not run in this sandbox. No API keys were available here, so the steps below are the project's own documented flow, verified against its docs but not executed. Free-tier availability and limits are set by each provider and can change; treat the table as a starting point and check the provider's current terms.
The fastest free path is NVIDIA NIM. Create a key at build.nvidia.com/settings/api-keys, open the Admin UI, go to Providers → NVIDIA NIM, click Add key, paste the key, and click Save. Leave MODEL on the default nvidia_nim/nvidia/nemotron-3-ultra-550b-a55b, or search the model dropdown for another model, then click Apply. That is the project's own quick-start, and it is the default for a reason: it is the path with the fewest moving parts.
The other free tiers follow the same shape — add the key in Providers, set MODEL, apply:
| Provider | Admin UI setting | Example MODEL |
|---|---|---|
| NVIDIA NIM | NVIDIA_NIM_API_KEY | nvidia_nim/nvidia/nemotron-3-ultra-550b-a55b |
| OpenRouter | OPENROUTER_API_KEY | open_router/openrouter/free |
| Groq | GROQ_API_KEY | groq/llama-3.3-70b-versatile |
| Kilo | KILO_API_KEY | kilo/kilo-auto/free |
| OpenAI / ChatGPT | Connect in Admin UI (OAuth) | openai/<model-id> |
| GitHub Copilot | Connect in Admin UI (OAuth) | github_copilot/<model-id> |
Two settings make the free tiers practical rather than merely possible. First, add Fallback Models in Model Config, in the order FCC should try them when the selected model fails — a free tier that rate-limits you mid-task is a normal event, and the fallback is what turns it into a hiccup instead of a dead session. Second, set the reasoning effort per model under Model Routing: a heavyweight model can run at Low or Medium effort for routine edits, saving tokens and time, while the tier that needs the most thinking gets High. If a provider stops being free or changes its terms, FCC's stance is to follow the provider's terms and remove the integration — so re-check the provider list when you upgrade, and do not build a workflow that depends on one free tier existing forever.
For anything beyond the built-in providers, Providers → Custom providers → Add provider takes any OpenAI-compatible base URL, optional keys, and an API format; leave Model IDs empty to discover models automatically. That is also how you point FCC at a self-hosted inference server that is not Ollama, LM Studio, or llama.cpp.
When to use this vs alternatives#
| Option | Use it when | Trade-off |
|---|---|---|
| Free Claude Code | You want Claude Code (or Codex / OpenCode / Aider) on free or local models, with fallback when a tier fails | You pick and maintain the model; free tiers change |
| Claude Pro / Max subscription | You want zero setup and frontier models with official support | Monthly cost; one vendor's models |
| LiteLLM | You want a general LLM gateway for applications, not an agent harness | More configuration; agent-specific behaviors are yours to wire |
| dsh (free-model plugin) | You want free frontier models with no key through a plugin | Gray-area free lanes; availability and terms vary — see our dsh tutorials |
| Plain Ollama + a chat UI | You only want to talk to a local model | No agent tools, no file edits, no multi-step tasks |
The deciding question is simple: do you want the agent, or do you want the model? If you want the agent — the harness that plans, edits, and runs things — and you want it on models you choose, FCC is the tool. If you only want a model to talk to, Ollama alone is less machinery. And if you want the best model with no setup at all, the subscription is still the honest answer; FCC saves money, not effort.
The takeaway#
Free Claude Code does what it says: a working, actively maintained proxy that decouples the coding agent from the model, with 61 providers, automatic fallback, and an Admin UI that makes switching models a dropdown instead of a config-file edit. The setup I verified end to end — install, server, Ollama discovery, model selection, streaming proxy call, and a live fcc-claude run — costs $0 and takes about fifteen minutes plus downloads. The one thing it cannot do is make a tiny model into a coding agent. Point it at a tool-capable model — a free cloud tier for real work, or a local model with proven tool calling and enough context — and then verify the agent the way I verified this one: give it a task whose result you can check on disk, and believe the disk, not the reply.
Sources#
- Free Claude Code on GitHub — README, provider table, quick-start, and model-routing docs (accessed December 4, 2026).
- NVIDIA NIM API keys — free key creation for the default model.
- OpenRouter API keys — free-tier key creation.
- Groq API keys — free-tier key creation.
- Ollama — local model runtime used for the verified local path.
Versions verified in the sandbox: Free Claude Code 6.19.71, Claude Code 2.1.336, Python 3.14.10, uv 0.13.12, Ollama with Qwen3-0.6B. The free-cloud-provider steps in Step 6 were documented from the project's provider table and not executed here.