Winter 2026 · Sent from Tranquility Base
Visit the moon studio ↗
AI tools

What Is FreeLLMAPI? 87 Free LLM APIs Behind Claude Code

FreeLLMAPI pools the free tiers of 87 AI providers behind one API that works with Claude Code. Setup, speed, costs and terms.

In the lunar base, rows of taps on the wall drip light in different colors, thin lines all run into a funnel machine in the middle, and one thick orange pipe leads from it to a computer, while an astronaut pulls a switch on the machine and a small robot carries a tray of light drops
In the lunar base, rows of taps on the wall drip light in different colors, thin lines all run into a funnel machine in the middle, and one thick orange pipe leads from it to a computer, while an astronaut pulls a switch on the machine and a small robot carries a tray of light drops

FreeLLMAPI is an open-source tool on GitHub that puts the free tiers of 87 AI providers behind a single API. It picks a model that works right now, and when one provider's quota runs out it moves on to the next. It has more than 60,000 stars on GitHub.

What most people do with it is plug it into Claude Code and write code for free. One thing to get straight first: once it's connected, the answers don't come from Claude. They come from other providers' free models.

I installed it on my own computer with Docker and tried it out. This post covers how it works, how to install it and where its limits are.

Key points

Item

Details

What it is

An API proxy you host on your own computer that merges many free tiers into one endpoint

Free quota

By the author's count, 87 providers and 1,313 free model endpoints, about 10.1 billion tokens a month in total

Keys

A few providers that need no key are built in, so it works right after install; apply for your own keys when you want more and faster models

Install, measured

40 seconds to download, an image of 864 MB, about 95 to 150 MB of memory

Responses, measured

With no keys added, 15 questions: fastest 1.3 seconds, slowest 14.8 seconds

Tools it works with

Claude Code, Codex CLI, Gemini CLI, Cursor, Cline, Aider and others

Install

One Docker command, or the desktop app for Windows and macOS

Interface

A web dashboard, available in 60 languages

License

MIT, the software itself is free

The paid part

Live model catalog updates, $19 a year or $49 once; without paying you get them 30 days later

How the author positions it

For personal experiments and learning, not for running a production service

What is FreeLLMAPI?

Almost every AI company has a free tier now: a few million tokens a month, or a few thousand requests a day. One of them alone isn't enough. Added together, it's a lot.

The trouble is that every provider has its own sign-up process, its own request format and its own rate limits. FreeLLMAPI hides those differences:

  • One endpoint: there is a single URL and a single key, in a format compatible with the OpenAI API.
  • Automatic model choice: each request goes to a model that is healthy and still under its limits.
  • Automatic failover: when a quota runs out or a provider returns an error, it retries with the next model.
  • Usage tracking: it records how much each key has used per minute and per day, so you don't hit the cap.
The FreeLLMAPI Models page, with routing strategy options at the top: Manual, Balanced, Smartest, Fastest, Most reliable. Below are Fallback chains and the model list with reliability, speed and intelligence scores
The Models page you see after installing; the dashboard comes in 60 languages

It's a program that runs on your own computer, not a cloud service. Your keys are encrypted and stored in a local database, and requests go straight from your computer to each provider.

Which free AI APIs does it support?

The official list has 87 providers. Some of the familiar ones:

Provider

Notes

Google

The Gemini family

Groq

Very fast

Cerebras

Very fast

OpenRouter

A proxy itself, with a set of models marked as free

Mistral

The French model company

Cloudflare

Workers AI

NVIDIA

Trial quota for NIM

HuggingFace

Inference service for open-source models

Z.ai (Zhipu)

The GLM family

Cohere

The author's own terms review suggests avoiding it

Besides chat models, the list also has free endpoints for image generation, text-to-speech, speech recognition, embeddings and a few video models.

You can add your own sources too, such as a local Ollama or LM Studio, or any service compatible with the OpenAI format.

How does it pick a model?

In the dashboard you arrange a fallback chain, which is the priority order of your models. When a request comes in, it goes down the list and takes the first model that is available.

If you'd rather not order them yourself, you can let it decide by score:

  • auto: follows the order you set.
  • auto:smart: prefers the most capable model.
  • auto:fast: prefers the model with the fastest measured response.

Each conversation stays on the same model for 30 minutes where possible, so it doesn't switch halfway through and change tone on you.

Every response carries a header that says which provider and which model actually answered.

How to use FreeLLMAPI: Docker installation guide

You need Docker installed first. The official one-line install command:

curl -fsSL https://freellmapi.co/install.sh | bash

It creates a ~/freellmapi folder, generates an encryption key, downloads the image and starts it. If you don't like running a script straight off the internet, open that URL first and read through it.

To go step by step yourself, you can use Docker Compose instead:

git clone https://github.com/tashfeenahmed/freellmapi.git
cd freellmapi
ENCRYPTION_KEY="$(openssl rand -hex 32)"
printf "ENCRYPTION_KEY=%s\nPORT=3001\n" "$ENCRYPTION_KEY" > .env
docker compose up -d

I installed it with Docker Compose. Downloading the image took 40 seconds, it's 864 MB, and it started in 1 second. Memory was about 95 MB right after startup and about 150 MB after some use.

The first time you open the dashboard you create an account. With a Docker install it asks for a one-time setup code. That code is printed in the container's startup log, and docker compose logs freellmapi shows it.

Once it's installed:

  • Open the dashboard: go to http://localhost:3001 in your browser.
  • Try the no-key providers first: a few providers need no key and are on by default, so you can go to the Playground and send a message right away.
  • Add keys: on the Keys page, paste in the keys you got from each provider. You get more models, and faster ones.
  • Set the order: adjust the priority of the fallback chain.
  • Get the unified key: at the top of the Keys page there is a key that starts with freellmapi-. Every tool uses this one key from then on.
The FreeLLMAPI Keys page, listing the no-key providers that are on by default: Kilo Gateway, OVH AI Endpoints, AI Horde and others
The Keys page right after install, before adding a single key

Asking a question with no keys added

In the Playground, in auto mode, I asked "Describe the Moon in one sentence." The answer came back 4.8 seconds later, with the name of the model that answered shown underneath.

The FreeLLMAPI Playground, where the question is Describe the Moon in one sentence, and the model name and 4820 ms appear below the answer
The Playground shows which model actually answered and how long it took

I asked the same question once in each of 15 languages. Here is what happened:

Item

Result

Response time

Fastest 1.3 seconds, slowest 14.8 seconds, median 2.6 seconds

Models that answered

7 different models took turns

Failover along the way

A few times the first model didn't respond, and it switched once or twice before an answer came back

Answer quality

Mostly fine; one Chinese answer contained a word that doesn't exist, and one Korean answer had Chinese characters mixed in

That is how it behaves: who answers, how fast and how well all change from one request to the next.

If you'd rather not touch Docker, there is a desktop app. On Windows the recommended way is to install it from the Microsoft Store. On macOS you download it from the Releases page on GitHub.

By default it only accepts connections from your own machine. The author makes a point of saying it's designed for a single user, with no multi-user permissions, and that you shouldn't expose it to the internet.

Use Claude Code for free: how to connect FreeLLMAPI

FreeLLMAPI has an endpoint compatible with the Anthropic format, so Claude Code can connect to it directly. There are two official ways.

The first saves the connection settings in Claude Code's settings file, so every session goes through FreeLLMAPI from then on:

npx freellmapi setup-claude --url http://localhost:3001 --api-key <unified key>

It backs up your existing settings before merging. Add --dry-run to see what it plans to change without writing anything.

The second applies only to this one launch and changes no settings file:

npx freellmapi launch

If you want to keep your Claude subscription and only try the free models now and then, the second way is safer.

Codex CLI, Cline, Aider and OpenCode each have their own setup command too. Cursor is a special case: it needs a public URL and can't connect to your local machine directly.

Once it's connected, is it still Claude answering?

No. This is the part people most often get wrong.

Claude Code is only the interface. It reads files, edits code and runs commands. Once FreeLLMAPI is connected, the model doing the thinking is Gemini, DeepSeek, Kimi, GLM or another model with a free tier, whichever one is available.

So how well it works depends on whose turn it is. The limits the author lists in the docs are blunt:

  • It gets dumber as the day goes on. The strong models at the top of the chain have the smallest daily free quotas. Once those are used up it drops to smaller models, and the quotas reset at midnight UTC.
  • The strong models are there, but not for long. You can see each provider's flagship models in the list, but they have the smallest daily quotas and the longest queues, and they are the most likely to be pulled without warning.
  • Speed varies. Groq and Cerebras are fast. The others may not be, and you get the speed of whoever answers.
  • Free tiers change overnight. When a provider changes or drops its free tier, you see errors for a while until the model catalog is updated.
  • Nothing is guaranteed. If you need stability, use a paid API.

Is FreeLLMAPI free?

The software is free, under the MIT license. With no keys added, you can use the few built-in providers. To get more quota, what you pay is time: you apply for the keys yourself, one provider at a time. You don't need all of them. A few with large quotas are enough.

There is only one paid plan, called live model catalog updates. The free-tier landscape changes every week. Your installation automatically syncs the author's signed catalog twice a day.

Free

Paid

The software

All features

Same

Model catalog

Monthly snapshot, new models arrive 30 days later

Updated the same day

Price

0

$19 a year, or $49 once for lifetime

The author states that the catalog server can't see your prompts, responses or keys.

Does using it this way break the providers' terms?

It depends on the provider. The author's verdicts are in the docs, with a note that this is not legal advice:

Verdict

Providers

Mostly fine

Groq, Cerebras, Mistral, OpenRouter, Zhipu, Ollama Cloud

Be careful

Google Gemini, NVIDIA NIM, Z.ai

Unclear

Cloudflare Workers AI

Best avoided

Cohere

A few examples: Google's terms limit use to professional or business purposes; NVIDIA's trial terms say it is for evaluation only and can't be used in production; Cohere's terms prohibit personal and household use.

The author gives four rules: one account per provider, no reselling, no sharing your endpoint with other people, and no hammering the free tiers as the backend of a production service.

Between you and each provider, the terms you agreed to when you signed up still hold. Routing traffic through FreeLLMAPI doesn't change that.

Who is it for?

  • A good fit: people who want to practice working with tools like Claude Code, build small personal projects or compare answers from different models, plus students and anyone on a tight budget.
  • Not a good fit: production products, work with deadlines, long tasks that need steady quality, and projects that touch confidential code.

That last point deserves a second thought. Your code and prompts go to whichever provider is up at that moment, and free tiers often come with a clause saying your data may be used to improve their models. Don't send your company's code this way.

What is FreeLLMAPI?

It's an open-source API proxy you host on your own computer. It puts the free tiers of many AI providers behind one OpenAI-compatible endpoint, picks an available model automatically and moves to the next provider when a quota runs out.

Is FreeLLMAPI free?

The software is free, under the MIT license. A few providers that need no key are built in, and you apply for the other providers' free keys yourself. The only paid part is live model catalog updates, $19 a year or $49 once. Without paying, new models reach you 30 days later.

Is Claude Code free? Can you use it for free with FreeLLMAPI?

No. Once it's connected to Claude Code, the answers come from other providers' free models, not from Claude. Claude Code is only the interface.

How do I connect FreeLLMAPI to Claude Code?

After installing, run npx freellmapi setup-claude to write the settings, or use npx freellmapi launch to apply it to that one launch without changing the settings file.

Is 10.1 billion tokens a month really available?

It's the combined quota of all the free endpoints on the list, according to the author, and it assumes you have applied for a key from every provider. How much you can really use depends on how many providers you signed up for and on each one's limits at the moment.

Can I use it for a production product?

The author says clearly not to. Free tiers come with no stability guarantee, providers can change them at any time, and some providers' terms don't allow it. If you're going live, switch to a paid API.

Which free AI APIs do you use? Tell me on Threads or X.