Free Claude Code
Run Claude Code for free by routing through 17+ alternative model providers — NVIDIA NIM, OpenRouter, Gemini, Ollama, and more.
Overview
Free Claude Code is a local proxy gateway that lets you run Claude Code through 17+ alternative model providers — NVIDIA NIM, OpenRouter, Google Gemini, DeepSeek, Mistral, Groq, Cerebras, Fireworks AI, Ollama, llama.cpp, LM Studio, and more — for free or at a fraction of the standard Claude API cost.
What is Free Claude Code?
Free Claude Code (sometimes referenced as fcc) is an open-source proxy server that sits between Claude Code and Anthropic's API. Instead of routing your Claude Code calls to api.anthropic.com, it routes them to any of 17+ supported providers based on your routing rules. The model picker, tool use, streaming, and reasoning blocks all keep working — Claude Code never sees the difference.
It is built and maintained by Alishahryar1 under an MIT license, with 34k+ stars and 5.2k+ forks at the time of this writing. The implementation is Python 3.14 with FastAPI/Uvicorn, tested with Pytest, formatted with Ruff, type-checked with Ty, and logged through Loguru.
What it does
- Drop-in proxy for Claude Code's Anthropic API calls — no Claude Code patches required, just environment variables.
- 17 provider backends — NVIDIA NIM, OpenRouter, Google AI Studio (Gemini), DeepSeek, Mistral La Plateforme, Mistral Codestral, OpenCode Zen, OpenCode Go, Wafer, Kimi, Cerebras Inference, Groq, Fireworks AI, Z.ai, LM Studio, llama.cpp, and Ollama.
- Per-model routing — send Opus-class, Sonnet-class, Haiku-class, and fallback traffic to different providers from a single config.
- Native
/modelpicker support through the proxy's/v1/modelsendpoint. - Optional Discord or Telegram bot wrapper for remote coding sessions.
- Optional voice-note transcription through local Whisper or NVIDIA NIM.
- Local Admin UI at
/adminto edit settings, validate changes, and check provider health.
How it works
You install the proxy locally with one shell command, start it with fcc-server, and either run Claude Code via the wrapper fcc-claude (which sets the right env vars for you) or point your IDE's Claude Code extension at the proxy directly. The proxy listens on http://127.0.0.1:8082 by default, exposes the same endpoints as Anthropic's API, and translates requests on the fly to whichever backend you have configured for the requested model.
Routing rules live in the admin UI. You can assign different providers per Claude model tier — for example, Opus-class calls to OpenRouter, Sonnet-class to Gemini, Haiku-class to Groq — set fallback chains, and toggle features like streaming or tool use per provider. Configuration changes hot-reload without restarting the proxy.
Who it is for
- Developers who want to run Claude Code without an Anthropic subscription, using free tiers from NVIDIA NIM, OpenRouter, Google AI Studio, or DeepSeek.
- Teams that want to mix providers per workload — premium models on critical tasks, cheap or free models on routine work.
- Privacy-conscious users who want to run Claude Code entirely against local models via Ollama, LM Studio, or llama.cpp.
- Power users running Discord or Telegram bot integrations for remote coding sessions from a phone.
- Cost-sensitive teams in regions where Anthropic billing is impractical.
What you can build
- A fully free local coding agent using only NVIDIA NIM or OpenRouter's free tier.
- A multi-tier coding setup that routes by model class for cost optimisation.
- An air-gapped Claude Code experience using only Ollama and llama.cpp models.
- A team Discord bot that runs Claude Code on demand without per-seat licenses.
- Voice-to-code workflows using Whisper or NVIDIA NIM transcription as the input layer.
- A multi-provider failover setup that automatically routes around rate limits.
Why it matters
Claude Code is the best AI coding agent on the market, but its cost can be a real constraint for solo developers, students, and teams in cost-sensitive regions. Free Claude Code keeps the Claude Code experience intact — same CLI, same IDE extensions, same model picker, same tool use — while opening up access to free and lower-cost model providers. For many users it is the difference between using Claude Code daily and using it occasionally.
What's Included
- Drop-in proxy for Claude Code's Anthropic API
- 17+ provider backends including NVIDIA NIM, OpenRouter, Gemini, DeepSeek, Mistral, Groq, Cerebras, Fireworks, Ollama, llama.cpp, and LM Studio
- Per-model routing for Opus, Sonnet, Haiku, and fallback tiers
- Native /model picker support through /v1/models
- Local admin UI at /admin for configuration and provider health checks
- Optional Discord and Telegram bot wrappers for remote coding sessions
- Optional voice-note transcription via local Whisper or NVIDIA NIM
- Streaming, tool use, and reasoning-block support
- MIT license — fully self-hostable
- One-line install scripts for macOS, Linux, and Windows
Installation
1. Install
macOS / Linux:
curl -fsSL "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.sh?raw=1" | shWindows PowerShell:
irm "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.ps1?raw=1" | iex2. Start the proxy
fcc-serverThe proxy listens on http://127.0.0.1:8082 by default.
3. Configure providers
Open the local admin UI at http://127.0.0.1:8082/admin to add API keys, select providers, and configure per-model routing. Set fallbacks if you want the proxy to retry on a different backend when one fails.
4. Run Claude Code through the proxy
fcc-claudeThe wrapper sets the right environment variables and launches Claude Code pointing at your local proxy.
5. Use with VS Code or JetBrains extensions
For the VS Code Claude Code extension, add to settings.json under claudeCode.environmentVariables:
ANTHROPIC_BASE_URL:http://localhost:8082ANTHROPIC_AUTH_TOKEN:freeccCLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY:1CLAUDE_CODE_AUTO_COMPACT_WINDOW:190000
JetBrains ACP integration follows the same environment-variable pattern.
Requirements
- Python 3.14 or higher
- Claude Code CLI installed (for terminal usage) or the Claude Code IDE extension for VS Code / JetBrains
- API key for at least one supported provider, or a local Ollama / llama.cpp / LM Studio install
- macOS, Linux, or Windows with PowerShell
Changelog
Initial directory listing. Project is actively maintained on GitHub with 17 supported providers.
FAQs
Related Skills
GSAP AI Skills
Official GreenSock skills that teach AI coding agents to write correct, performant GSAP animations
Claude API
Build, debug, and migrate Anthropic Claude API apps with prompt caching, tool use, and Managed Agents baked in.
Official Skills for Next.js, React, and Vercel Deployments
Vercel's official agent skills that teach AI coding agents to build, optimize, and ship Next.js & React apps the right way
MCP Builder
Build high-quality MCP servers in Python (FastMCP) or TypeScript (MCP SDK) with well-designed tools and evals.
Frontend Design
Generate distinctive, production-grade frontend UIs — components, pages, dashboards, and landing pages — that avoid generic AI aesthetics.
Supabase Agent Skills
Official Supabase skills that teach AI agents to build, query, and secure Supabase apps correctly.