Repository iconcurepo.dev
free-claude-code preview

Alishahryar1 / free-claude-code

Use claude code, codex or pi for free from the terminal, IDE, or you phone like OpenClaw (voice supported)

40.5k Stars
visibility312 Watchers
fork_right6.6k Forks
Python
historyUpdated recently

description README.md

🤖 Free Claude Code

Use Claude Code, Codex, Pi, or their IDE extensions through your own provider-backed proxy.

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

Run your coding agents with free, paid, or local models. Choose and validate providers from one local Admin UI.

Quick Start · Providers · Clients · Integrations · Manage

Free Claude Code in action

Claude Code running through the Free Claude Code proxy.

Codex CLI in action through Free Claude Code

Codex CLI using the local FCC Responses provider.

Claude Code model picker showing gateway models

Claude Code native /model picker with FCC gateway models.

Codex model picker showing generated FCC model catalog

Codex native /model picker with the generated FCC catalog.

Star History

What You Get

  • Launch Claude Code with fcc-claude, Codex with fcc-codex, or Pi with fcc-pi.
  • Switch among 25 cloud and local providers from the Admin UI.
  • Use each coding agent's native model picker.
  • Route Fable, Opus, Sonnet, Haiku, and fallback traffic to different models.
  • Keep streaming, tool use, reasoning, and image input across compatible models.
  • Connect Claude Code and Codex in VS Code or Claude Code through JetBrains ACP.
  • Optionally run Claude Code sessions through Discord or Telegram with voice-note transcription.
  • Protect the local proxy with optional token authentication.

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 whenever you want to update. You can review the installers before running them: install.sh and install.ps1.

2. Start The Server

fcc-server

To print the installed Free Claude Code version without starting the server, run fcc-server --version.

Keep this process running. By default, the Admin UI opens in your browser once the server is healthy. Its address is always shown in the startup log:

INFO:     Admin UI: http://127.0.0.1:8082/admin (local-only)

Use the port shown in your terminal if it differs from 8082.

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 Validate, then Apply.
Local admin UI for proxy settings

4. Run Your Coding Agent

Claude Code:

fcc-claude

Codex:

fcc-codex

Pi:

fcc-pi

All three launchers use the current Admin UI settings. Use the agent's model picker to choose from the models FCC exposes. Normal CLI arguments still work, for example:

fcc-codex exec "hello"

fcc-pi registers FCC only for that Pi process; your existing Pi settings, sessions, credentials, and extensions remain unchanged.

Choose A Provider

Enter the listed setting in the Admin UI, open Model Config, then search the MODEL dropdown and select a model. FCC constructs each slug as <provider-id>/<exact-provider-model-id>; free-text entry remains available when a provider cannot list a model. Click Validate and Apply. Provider names link to their key, model, or setup pages.

ProviderAdmin UI settingExample MODEL
NVIDIA NIMNVIDIA_NIM_API_KEYnvidia_nim/nvidia/nemotron-3-super-120b-a12b
OpenRouterOPENROUTER_API_KEYopen_router/openrouter/free
Google AI Studio (Gemini)GEMINI_API_KEYgemini/models/gemini-3.1-flash-lite
DeepSeekDEEPSEEK_API_KEYdeepseek/deepseek-chat
Mistral La PlateformeMISTRAL_API_KEYmistral/devstral-small-latest
Mistral CodestralCODESTRAL_API_KEYmistral_codestral/codestral-latest
OpenCode ZenOPENCODE_API_KEYopencode/gpt-5.3-codex
OpenCode GoOPENCODE_API_KEYopencode_go/minimax-m2.7
Vercel AI GatewayAI_GATEWAY_API_KEYvercel/openai/gpt-5.5
Hugging Face Inference ProvidersHUGGINGFACE_API_KEYhuggingface/Qwen/Qwen3-Coder-480B-A35B-Instruct:fastest
CohereCOHERE_API_KEYcohere/command-a-plus-05-2026
GitHub ModelsGITHUB_MODELS_TOKENgithub_models/openai/gpt-4.1
WaferWAFER_API_KEYwafer/DeepSeek-V4-Pro
KimiKIMI_API_KEYkimi/kimi-k2.5
MiniMaxMINIMAX_API_KEYminimax/MiniMax-M3
Cerebras InferenceCEREBRAS_API_KEYcerebras/gpt-oss-120b
GroqGROQ_API_KEYgroq/llama-3.3-70b-versatile
SambaNovaSAMBANOVA_API_KEYsambanova/Meta-Llama-3.3-70B-Instruct
[Fireworks AI](https://fireworks.ai/ac