← All resourcesTR
140November 11, 2026·6 items

FreeLLMAPI: connect Claude Code to free models. Install, connecting without breaking your subscription, and the setting that leaves a note when the model switches

FreeLLMAPI is an open-source tool that pools the free tiers of 34 providers behind one address: 600+ free models, over 7 billion tokens a month once they are all added. One command connects Claude Code to it; when a model hits its limit, the request moves to the next one on its own. Below: the Windows and Mac install, how to connect Claude Code without touching your subscription, how to turn on the setting that leaves the new model a note when it switches, and where the setup trips you up.

Claude CodeÜcretsiz API

The tool itself

If you just want the repo, the link is below. It is MIT licensed with over 50 thousand stars on GitHub. What's extra on this page: the easiest install on Windows, connecting Claude Code without breaking your regular subscription, how to turn on the note feature (it is off by default), and why the port number in the docs doesn't work with the desktop app.

Open the repo

How it works

A small server runs on your machine. You sign up with providers that have a free tier (Google, Groq, Cerebras, Mistral, Cloudflare and more) and add their keys to it; the keys stay with you, encrypted. In return you get one unified key and point Claude Code at that address. The pool includes families like OpenAI's GPT models, Gemini, Mistral, Llama, Qwen and DeepSeek; the full current list and each model's limits are on freellmapi.co/models.

How one request travels

  1. 1

    Claude Code

    Sends the request as usual, but to FreeLLMAPI instead of Anthropic

  2. 2

    Router

    Picks the best model in the chain that is still under its limits

  3. 3

    Limit hit

    If the provider returns a 429 or an error, that key is put on cooldown

  4. 4

    Next model

    The request moves to the next one on its own, you do nothing

When your Claude subscription hits its limit, you open Claude Code on this pool and keep working. The same logic runs inside the pool: when one model's limit runs out, it moves to the next. A conversation stays on the same model for 30 minutes, so it doesn't switch models for no reason.

Install

On Windows the easiest route is the desktop app: download the .exe that starts with FreeLLMAPI-Setup from the Releases page and install it. On Mac, grab the .dmg from the same page; arm64 for Apple Silicon, x64 for Intel. The desktop app has no account or password, its icon sits in the tray (the menu bar on Mac), and it updates itself.

If you use Docker, one command installs it on Mac and Linux. It sets up in the ~/freellmapi folder and generates the encryption key itself. On Windows this command only runs inside WSL.

With Docker (Mac / Linux)
curl -fsSL https://freellmapi.co/install.sh | bash

In the dashboard after installing

  1. 1

    Open the dashboard

    Desktop: tray icon, Open Dashboard. Docker: localhost:3001

  2. 2

    Add the keys

    Enter each provider's free key on the Keys page

  3. 3

    Order the chain

    On the Fallback Chain page, choose which model is tried first

  4. 4

    Copy the unified key

    At the top of the Keys page, it starts with freellmapi-

The 7 billion tokens don't show up on their own

That number is the total once you add all 34 providers. You sign up with each provider and get its free key yourself; the more you add, the bigger the pool. Starting with two or three keys and adding more over time works too.

Connect Claude Code

There are two ways to connect, and the difference matters. Check the comparison before you pick one:

launch

For that session only

  • Opens Claude Code on the free pool
  • Writes to no config file, the key never touches disk
  • Your plain claude command keeps running on your subscription

setup-claude

Permanent config

  • Changes Claude Code's config file, backs it up first
  • From then on your plain claude command goes to the pool too
  • With --profile it is added as a separate profile

If you have a subscription, start with launch: open with this command when you hit the limit, then go back to plain claude when it resets. The commands need Node.js 20.18 or newer and Claude Code installed on your machine.

This session only (recommended)
# The desktop app runs on port 31415
npx freellmapi launch --url http://127.0.0.1:31415 --api-key <unified-key>

# If you installed with Docker, the port is 3001
npx freellmapi launch --url http://localhost:3001 --api-key <unified-key>
Permanent setup
# First see what it would change, writes nothing
npx freellmapi setup-claude --url http://127.0.0.1:31415 --api-key <unified-key> --dry-run

# Then apply it (add --profile free at the end for a separate profile)
npx freellmapi setup-claude --url http://127.0.0.1:31415 --api-key <unified-key>

Watch the port number

Every command in the docs and README says 3001, but that is the Docker install's port. The desktop app runs on 31415; if that port is taken it moves up by one. If it won't connect, open the dashboard in a browser and check the port in the address bar. Also, don't add /v1 to the end of the address: Claude Code wants the root address.

Leaving a note when the model switches

When the model changes mid-conversation, the new model doesn't know it is taking over from another one. The Context Handoff feature fixes that: at the switch it adds a short note for the new model. The note says which model it switched from and to, summarizes the recent messages, and tells it not to restart the task or re-ask questions already answered. So you don't have to explain where you left off.

This feature is off by default; to make sure you get it, you have to turn it on. It is switched on through the .env file, so it works on the Docker install. If you used the one-line installer, the .env file is in the ~/freellmapi folder. Add the line and restart the container:

Turn on the note
cd ~/freellmapi
echo "FREELLMAPI_CONTEXT_HANDOFF=on_model_switch" >> .env
docker compose up -d --force-recreate

On the desktop app

The desktop app's dashboard has no switch for this setting, and the app doesn't read a .env file. If the note feature matters to you, use the Docker install. The note is only added when the model actually changes; not on the first message and not while it stays on the same model.

Where the setup trips you up

Running setup-claude and expecting your plain claude command to keep using your subscription

Use launch, or pass --profile to setup-claude; the permanent config points the plain command at the pool too

Installing the desktop app and connecting with the 3001 port from the docs

On desktop the address is http://127.0.0.1:31415, on Docker http://localhost:3001

Assuming the note feature is on by default

Adding FREELLMAPI_CONTEXT_HANDOFF=on_model_switch to .env and restarting

Giving Claude Code a provider key instead of the unified key

Claude Code only gets the unified key that starts with freellmapi-

The free install updates its model catalog on its own, but from the monthly snapshot: a new free model reaches you 30 days later. If you want it the same day, there is a live catalog option for 19 dollars a year (or 49 dollars once). The tool stays fully free and open source either way; this only changes how fast new models arrive.

What not to hang on it

Claude models themselves and the top-tier models are not in the pool. Quality dips during the day as the good models hit their daily caps, and it resets at UTC midnight. The repo itself says it is for personal experimentation and learning; each provider's terms of use still apply to you. Great for side tasks, experiments and the moments your subscription runs dry; don't hang client work on it.

Other tools you can add to Claude Code (the Strix pentest agent, Claude Mem for memory across sessions, and more) are in 135.

Downloads (Windows / Mac)
DOA: Yapay Zeka ve Otomasyon

DOA: Yapay Zeka ve Otomasyon

Installing these tools on your own is one thing; actually building with them is another. The community has people using these daily and people building systems from scratch.

If you want a system that actually runs in your business, let's talk for 10 minutes; I'll look at what you're trying to build and tell you which path fits. Free, and not a sales pitch.

Book a 10-minute call

If you'd rather learn this alongside people doing the same work instead of on your own, the community is always open:

Join the community

This is an affiliate link.