Quick navigation

Start with the install steps, pick one provider, then read the explanation after the setup is working.

Step 1: Install Free Claude Code

Install Claude Code first if you do not already have it. Then run the Free Claude Code installer from the GitHub project.

macOS / Linux
$ curl -fsSL "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.sh?raw=1" | sh

On Windows, use the PowerShell installer instead.

Windows PowerShell
PS> irm "https://github.com/Alishahryar1/free-claude-code/blob/main/scripts/install.ps1?raw=1" | iex

Step 2: Start the local proxy

Start the server and keep this terminal running while you use Claude Code.

Terminal
$ fcc-server

Open the Admin UI after the server starts. The port is usually 8082, but use whatever your terminal shows if yours is different.

Step 3: Pick one provider

Choose one route first. Do not configure all of them at the same time when you are just testing.

Free Claude Code Providers page showing API key and local base URL fields
Use this Providers page to paste API keys for hosted routes, or set the local base URL for local routes like Ollama.
  • Ollama: local route, no API bill, limited by your computer and model quality.
  • NVIDIA NIM: hosted route, API key required, good for testing free endpoint models.
  • OpenRouter: flexible cloud route, useful for trying free or cheap models.

Route A: Ollama

This is the best route if your goal is no API bill. Open the Ollama download page, choose the version for your operating system, then run a local model on your machine.

Ollama download page for macOS
The screenshot shows the macOS option, but choose the tab that matches your own system.

Pull a model, then start Ollama.

Terminal
$ ollama pull gemma4
$ ollama serve

In the Admin UI, keep OLLAMA_BASE_URL as the Ollama server root. Do not add /v1 at the end.

Then set Default Model to the Ollama model slug. Example: ollama/gemma4.

Route B: NVIDIA NIM

Use this route if you want a hosted model and an API-key setup. Start by creating an NVIDIA NIM API key.

NVIDIA NIM API keys page
Create an API key, then paste it into the Admin UI provider setting.
NVIDIA NIM free endpoint models page
Pick a free endpoint model, then use the matching nvidia_nim/... model slug.

Pick a model from the NVIDIA free / preview endpoint list. Example model slug: nvidia_nim/minimaxai/minimax-m2.7.

Route C: OpenRouter

OpenRouter is the flexible cloud route. Create an OpenRouter API key if you want to test free or cheap models without running them locally.

OpenRouter API keys page
Create an API key, then paste it into OPENROUTER_API_KEY.
OpenRouter free models collection
Browse the free model list, then set Default Model to an open_router/... slug.

Browse OpenRouter free models. Example model slug: open_router/z-ai/glm-4.5-air:free.

Step 4: Fill Model Config

For a normal setup, fill only Default Model. The Opus, Sonnet, and Haiku override fields are optional.

Free Claude Code Model Config with Default Model highlighted
Required: Default Model. Optional: tier overrides only if you want different models for different Claude model tiers.

After filling the model, click Validate, then click Apply if validation passes.

Step 5: Launch Claude Code through the proxy

Once the server is running and the model config is applied, launch Claude Code with the Free Claude Code wrapper.

Terminal
$ fcc-claude
> Claude Code opens with the configured proxy

Final checklist

  • fcc-server is still running.
  • The Admin UI has your provider key or local base URL.
  • Default Model has the correct provider prefix.
  • Validate passes before you click Apply.
  • fcc-claude launches Claude Code through the proxy.

If something fails, check the model slug first. Most setup mistakes are wrong provider prefix, wrong local URL, or a model that does not support the workflow you are trying to run.

What this is doing

Free Claude Code runs a local Anthropic-compatible proxy. Claude Code sends requests to that proxy, and the proxy routes those requests to the provider you configured.

That means you keep the Claude Code workflow, but the model behind it can be Ollama, NVIDIA NIM, OpenRouter, or another supported provider.

This does not give you Anthropic's Claude models for free. You are using the Claude Code interface with a different model behind it.

Links