free-claude-code README

The project's README from github.com/Alishahryar1/free-claude-code. As one markdown file: README.md.

Free Claude Code

License: MIT Python 3.14 uv Testing: Pytest Type checking: Ty Code style: Ruff Logging: Loguru

Quick Start · Providers · Clients · Integrations · Manage

Independent open-source project. Not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.

What You Get

Free-tier availability and limits are controlled by each provider and may change.

Claude Code running with Free Claude Code

Claude Code running with FCC.

Quick Start

1. Install Or Update

macOS/Linux:

curl -fsSL "https://raw.githubusercontent.com/Alishahryar1/free-claude-code/main/scripts/install.sh" | sh

Windows PowerShell:

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/Alishahryar1/free-claude-code/main/scripts/install.ps1")))

Re-run the same command to update. When prompted, choose at least one coding agent and optionally RTK. You can review the installers before running them: install.sh and install.ps1.

2. Start FCC

Windows

Open Free Claude Code from your desktop or Start menu.

macOS

Open Free Claude Code from your desktop or Applications folder.

Linux

Run:

fcc-server

FCC opens the Admin UI after starting. On Windows and macOS, use the tray or menu-bar icon to open Admin, restart, or quit. When using fcc-server, keep its terminal open.

3. Configure NVIDIA NIM

  1. Create an API key at build.nvidia.com/settings/api-keys.
  2. Open the Admin UI URL from the server log.
  3. Paste the key into NVIDIA_NIM_API_KEY.
  4. Leave MODEL on the default nvidia_nim/nvidia/nemotron-3-super-120b-a12b, or search the model dropdown and select another model.
  5. Click Apply.

To protect the local proxy with a bearer token, enable Proxy Authentication in Admin.

Free Claude Code Admin UI

4. Run Your Coding Agent

Claude Code:

fcc-claude

Codex:

fcc-codex

Pi:

fcc-pi

OpenCode:

fcc-opencode

Cline:

fcc-cline

Hermes:

fcc-hermes

DeepSeek Harness Web:

fcc-dsh

Grok Build:

fcc-grok

Muse Code:

fcc-muse

Aider:

fcc-aider

Claude Code model picker showing FCC models

Select an FCC model from Claude Code's native /model picker.

Choose A Provider

  1. Open a provider link below for its key, models, or setup instructions.
  2. In the Admin UI, configure the listed setting. For OpenAI, use Providers → Connected accounts instead.
  3. Search the MODEL dropdown and select a model. If the provider cannot list models, enter <provider-id>/<exact-provider-model-id> manually.
  4. Click Apply.

Optional: add an ordered Fallback Models list under Model Config. It applies to every connected client. A failed request may reach and consume usage from more than one provider before succeeding.

Provider catalog
Provider Admin UI setting Example MODEL
NVIDIA NIM NVIDIA_NIM_API_KEY nvidia_nim/nvidia/nemotron-3-super-120b-a12b
OpenRouter OPENROUTER_API_KEY open_router/openrouter/free
Groq GROQ_API_KEY groq/llama-3.3-70b-versatile
ClinePass CLINE_API_KEY cline_pass/cline-pass/kimi-k3
OpenAI / ChatGPT Connect ChatGPT in the Admin UI openai/<model-id>
GitHub Copilot Connect GitHub Copilot in the Admin UI github_copilot/<model-id>
xAI (Grok) XAI_API_KEY xai/grok-4.5
QwenCloud Token Plan QWENCLOUD_API_KEY qwencloud/qwen3.7-plus
QwenCloud Coding Plan QWENCLOUD_CODING_API_KEY qwencloud_coding/qwen3.7-plus
Together AI TOGETHER_API_KEY together/zai-org/GLM-5.2
DeepInfra DEEPINFRA_API_KEY deepinfra/deepseek-ai/DeepSeek-V4-Flash
SiliconFlow SILICONFLOW_API_KEY siliconflow/Qwen/Qwen3-32B
Nebius Token Factory NEBIUS_API_KEY nebius/Qwen/Qwen3-30B-A3B
Chutes CHUTES_API_KEY chutes/Qwen/Qwen3-32B-TEE
Featherless AI FEATHERLESS_API_KEY featherless/Qwen/Qwen3-32B
Agnes AI AGNES_API_KEY agnes/agnes-2.0-flash
ZenMux ZENMUX_API_KEY zenmux/deepseek/deepseek-v4-flash-free
W&B Inference WANDB_API_KEY wandb/openai/gpt-oss-20b
Azure OpenAI AZURE_OPENAI_API_KEY and AZURE_OPENAI_BASE_URL azure_openai/<deployment-name>
Google AI Studio (Gemini) GEMINI_API_KEY gemini/models/gemini-3.1-flash-lite
Google Vertex AI VERTEX_PROJECT_ID + ADC vertex/google/gemini-3.5-flash
DeepSeek DEEPSEEK_API_KEY deepseek/deepseek-chat
Mistral La Plateforme MISTRAL_API_KEY mistral/devstral-small-latest
Mistral Codestral CODESTRAL_API_KEY mistral_codestral/codestral-latest
OpenCode Zen OPENCODE_API_KEY opencode_zen/gpt-5.3-codex
OpenCode Go OPENCODE_API_KEY opencode_go/minimax-m2.7
Vercel AI Gateway AI_GATEWAY_API_KEY vercel/openai/gpt-5.5
Amazon Bedrock AWS_BEARER_TOKEN_BEDROCK bedrock/openai.gpt-oss-120b
Hugging Face Inference Providers HUGGINGFACE_API_KEY huggingface/Qwen/Qwen3-Coder-480B-A35B-Instruct:fastest
Cohere COHERE_API_KEY cohere/command-a-plus-05-2026
Wafer WAFER_API_KEY wafer/DeepSeek-V4-Pro
Kimi API KIMI_API_KEY kimi/kimi-k2.5
Kimi Code KIMI_CODE_API_KEY kimi_code/k3
MiniMax MINIMAX_API_KEY minimax/MiniMax-M3
Cerebras Inference CEREBRAS_API_KEY cerebras/gpt-oss-120b
SambaNova SAMBANOVA_API_KEY sambanova/Meta-Llama-3.3-70B-Instruct
Kilo.ai KILO_API_KEY kilo/kilo-auto/free
Fireworks AI FIREWORKS_API_KEY fireworks/accounts/fireworks/models/llama-v3p3-70b-instruct
Novita AI NOVITA_API_KEY novita/deepseek/deepseek-v4-flash-0731
Cloudflare Workers AI CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID cloudflare/@cf/moonshotai/kimi-k2.6
Z.ai Coding Plan ZAI_API_KEY zai/glm-5.2
Z.ai API (pay as you go) ZAI_API_KEY zai_api/glm-4.7-flash
TokenRouter TOKENROUTER_API_KEY tokenrouter/moonshotai/kimi-k3-free
NaraRoute NARAROUTE_API_KEY nararoute/kimi-k3-free
Poolside AI POOLSIDE_API_KEY poolside/poolside/laguna-s-2.1
LLM7.io LLM7_API_KEY llm7/default
Ollama Cloud OLLAMA_API_KEY ollama_cloud/qwen3-coder:480b
LM Studio LM_STUDIO_BASE_URL lmstudio/<model-id>
llama.cpp LLAMACPP_BASE_URL llamacpp/<model-id>
Ollama OLLAMA_BASE_URL ollama/<model-tag>
Provider-specific setup
  • OpenAI uses your ChatGPT subscription rather than an API key. Connect from Providers → Connected accounts in the Admin UI. Use device code on headless systems. Restart an already-running agent after connecting.
  • GitHub Copilot uses your signed-in GitHub account and subscription. Install Copilot CLI 1.0.83 on PATH, then choose Providers → Connected accounts → GitHub Copilot → Connect. FCC reuses the native profile or shows a GitHub device code when sign-in is needed. You can also sign in first with copilot login --device-code. Select a concrete github_copilot/<model-id> from the discovered list; available models and quotas depend on your subscription and organization policies. Restart an already-running agent after connecting. Disconnect stops FCC use and leaves the native login intact. FCC pins its SDK and CLI compatibility because direct endpoint access is experimental.
  • Azure OpenAI uses the deployment names from your resource. Set AZURE_OPENAI_BASE_URL to its complete v1 endpoint, such as https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/, and select a deployment that supports Chat Completions. Enter the deployment name as a custom model slug if it does not appear in the model dropdown.
  • Mistral Codestral uses a separate key from Mistral La Plateforme.
  • Kimi Code subscription keys use kimi_code/; Kimi API credit keys use kimi/. Kimi Code plans are for personal interactive coding-agent use under Kimi's community guidelines.
  • QwenCloud Coding Plan keys use qwencloud_coding/; QwenCloud Token Plan keys use qwencloud/. The keys and endpoints are not interchangeable. Coding Plan is for local, personal, interactive coding-agent use under the Coding Plan terms.
  • OpenCode Zen and OpenCode Go share OPENCODE_API_KEY but use the explicit opencode_zen/ and opencode_go/ model prefixes.
  • For Amazon Bedrock, set BEDROCK_BASE_URL to the URL for the same region as the API key and select one of the listed models.
  • Vertex AI uses Google Application Default Credentials instead of an API key. Locally, run gcloud auth application-default login once; service-account files and attached service accounts also work. Set VERTEX_PROJECT_ID, and optionally change VERTEX_LOCATION from its global default.
  • Cloudflare requires both its API token and account ID.
  • For Ollama Cloud, use the exact model IDs shown in the model picker. Local Ollama uses the separate ollama/ prefix.
  • Prefer tool-capable models for coding agents. Local models also need enough context for the agent's system prompt and tool definitions.
Local provider setup

LM Studio

Start LM Studio's local server, load a tool-capable model, and use the model identifier shown by LM Studio with the lmstudio/ prefix. The default URL is http://localhost:1234/v1.

llama.cpp

Start llama-server with its OpenAI-compatible Chat Completions API and enough context for the model. Use the local model ID with the llamacpp/ prefix. LLAMACPP_BASE_URL defaults to http://localhost:8080/v1; FCC accepts either the server root or an explicit /v1 suffix.

Ollama

ollama pull llama3.1
ollama serve

Use the tag shown by ollama list with the ollama/ prefix. OLLAMA_BASE_URL defaults to http://localhost:11434; FCC accepts either the root URL or an explicit /v1 suffix.

Optional model-tier routing

MODEL is the fallback for every request. Select a model for MODEL_FABLE, MODEL_OPUS, MODEL_SONNET, or MODEL_HAIKU to override an individual Claude Code tier; select None to use MODEL.

For example, route Opus to nvidia_nim/nvidia/nemotron-3-super-120b-a12b, Sonnet to open_router/openrouter/free, Haiku to lmstudio/qwen3.5-coder, and keep MODEL on zai/glm-5.2.

Reasoning control

Open Admin UI → Model Config → Reasoning and select the behavior you want.

Selection Behavior
From client (default) Use the effort sent by Claude Code, Codex, Pi, OpenCode, Cline, Hermes, DeepSeek Harness, Grok Build, Muse Code, or Aider. If none is sent, keep the provider default.
Off Request reasoning to be disabled.
Low, Medium, High, X-High, or Max Override the client with the selected reasoning level.
Inherit (Fable, Opus, Sonnet, and Haiku only) Use the root Reasoning selection.

Providers that do not support a selected control retain their own behavior.

Connect Your Client

For terminal use, start fcc-server, then run fcc-claude, fcc-codex, fcc-pi, fcc-opencode, fcc-cline, fcc-hermes, fcc-dsh, fcc-grok, fcc-muse, or fcc-aider.

Use the guides below for editor integrations.

Claude Code in VS Code

Install the Claude Code extension. Open VS Code's user settings as JSON and add:

"claudeCode.disableLoginPrompt": true,
"claudeCode.environmentVariables": [
  { "name": "ANTHROPIC_BASE_URL", "value": "http://localhost:8082" },
  { "name": "ANTHROPIC_AUTH_TOKEN", "value": "freecc" },
  { "name": "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY", "value": "1" },
  { "name": "CLAUDE_CODE_AUTO_COMPACT_WINDOW", "value": "190000" },
  { "name": "DISABLE_AUTOUPDATER", "value": "1" },
  { "name": "DISABLE_FEEDBACK_COMMAND", "value": "1" },
  { "name": "DISABLE_ERROR_REPORTING", "value": "1" }
]

Match the port and authentication token to the Admin UI, then reload the extension.

Codex App

Start FCC, then edit your Codex configuration:

  • Windows: %USERPROFILE%\.codex\config.toml
  • macOS: ~/.codex/config.toml

Add the matching model-catalog path and replace YOUR_USERNAME.

Windows:

model_catalog_json = "C:/Users/YOUR_USERNAME/.fcc/codex-model-catalog.json"

macOS:

model_catalog_json = "/Users/YOUR_USERNAME/.fcc/codex-model-catalog.json"

Then add the shared FCC settings:

model_provider = "fcc"
model = "nvidia_nim/nvidia/nemotron-3-super-120b-a12b"

[model_providers.fcc]
name = "Free Claude Code"
base_url = "http://127.0.0.1:8082/v1"
wire_api = "responses"

[model_providers.fcc.auth]
command = "fcc-codex"
args = ["--print-proxy-auth-token"]

Match the model and port to the Admin UI. The auth command reads FCC's current proxy token automatically. Restart the Codex App after setup or model changes, then select an FCC model from its model picker.

Codex in VS Code

free-claude-code (Alishahryar1/free-claude-code)

local-llm
Searching Database…

What is this?FCC (Free Claude Code) routes coding agents like Claude Code, Codex, and OpenCode to 50 ToS-friendly providers, giving you 1.3B+ free tokens every month.
Is this a hosted service, or do I run it myself?You run it yourself: FCC installs a local proxy with a browser Admin UI, and your agents point at that proxy instead of at provider APIs.
What does installing FCC involve?One command per OS: install.sh on macOS/Linux or install.ps1 in Windows PowerShell, re-run any time to update; you pick at least one coding agent and optionally RTK during install.
Do I need an Anthropic account or API key for this?No: the Quick Start walks you through an NVIDIA NIM key from build.nvidia.com, while ChatGPT and GitHub Copilot reuse your existing subscriptions and local Ollama needs no key at all.
Are those 1.3B free tokens really guaranteed?No: each provider controls its own free-tier availability and limits and can change them, and a failed request may consume usage from more than one provider before it succeeds.
Is this terminal-only?No: besides the terminal there are launchers for Windows, macOS, and Linux, IDE integrations for VS Code, Codex App, and JetBrains, Discord and Telegram on your phone, and native browser sessions.
Which coding agents can I plug into it?Ten: Claude Code, Codex, Pi, OpenCode, Cline, Hermes, DeepSeek Harness, Grok Build, Muse Code, and Aider, each launched with its own fcc-* command against one shared model catalog.
What happens if my provider goes down mid-task?Once retries are exhausted, FCC automatically switches to your next configured model without restarting the turn, and the fallback works across every connected client.
Can I use my own local models with it?Yes: Ollama, LM Studio, and llama.cpp servers connect through the ollama/, lmstudio/, and llamacpp/ prefixes; prefer tool-capable models with enough context for the agent's system prompt and tools.
What is RTK, the optional extra in the installer?A companion filter that trims common terminal command output for up to 90% fewer terminal-output tokens; five built-in FCC optimizations also handle quota probes, titles, suggestions, and filepaths without calling a provider.
Size
14.8 MB
Stars
61K
Age
8mo
Commits · 90 Days