FreeLLMAPI: 7.4 billion free AI tokens a month behind one key, plus the Claude Code command
The short version
FreeLLMAPI is a free, open-source (MIT) app that stacks the free tiers of 34 AI companies (Google, Groq, Cerebras, Mistral, OpenRouter, Cloudflare, Cohere, Z.ai, NVIDIA, HuggingFace and more) behind one key. You paste each company's free key once, you get one key back, and when one company says you've hit your limit it moves your request to the next free model.
| What | The number |
|---|---|
| Free AI companies stacked | 34 |
| Free model endpoints | 635 |
| Listed free capacity | ~7.4 billion tokens a month |
| GitHub stars | 41,117 |
| Price | Free (MIT; an optional paid live catalog exists) |
Source: the FreeLLMAPI GitHub repository (README), read 25 Oct 2026; stars from the GitHub API that day.
Paying for tokens just to test an idea is paying for drafts you'll throw away. One free tier on its own is small; stacking 34 by hand means 34 sign-ups and 34 rate limits. FreeLLMAPI does the stacking, so your drafts, prototypes and weekend ideas run on free models first.
Your links
| What | Link |
|---|---|
| The repo (README, desktop app releases) | github.com/tashfeenahmed/freellmapi |
Install (pick one)
- Mac or Windows: download the desktop app (
.dmgfor Apple Silicon or Intel,.exefor Windows) from the repo's Releases page. It runs the router and dashboard from your menu bar or tray. - Docker one-liner (read the script before you pipe it):
curl -fsSL https://freellmapi.co/install.sh | bash
Then open http://localhost:3001.
The three steps
| # | Step | What happens |
|---|---|---|
| 1 | Paste each free key once | Add keys on the Keys page. They're encrypted (AES-256-GCM) in a local database and decrypted in memory per request. They stay on your computer. |
| 2 | Take the one key back | The Keys page shows your unified key (freellmapi-…). Every app uses that one key. |
| 3 | Let it switch on a limit | On a 429 (rate limited) or a 5xx, it cools that key down and retries the next model in your chain, and counts use per key so you stay under each free cap. |
Start with Google AI Studio, Groq, Cerebras, Mistral and OpenRouter; each has a free tier you can sign up for in minutes.
Copy these prompts
Claude Code, one command (backs up your config, then points Claude Code at your free pool):
npx freellmapi setup-claude --url http://localhost:3001 --api-key <your-unified-key>
Or launch it without touching config files:
npx freellmapi launch
On the desktop app, use the URL shown in the tray popover instead of localhost:3001.
Cursor or any OpenAI-style app: base URL http://localhost:3001/v1, API key = your unified key, model auto (the router picks).
Read it honestly
- Free models, not the frontier ones: Claude Code runs on the free pool, not on Claude's own models.
- Speed varies and there's no SLA. Late in the day the best free models hit their daily caps; they reset at UTC midnight.
- When every company in your chain is capped, requests fail until the caps reset.
- The project says it's for personal experimentation. Use it to test ideas; pay when something is real.
If you are building a product
Use the free pool for the throwaway work: drafts, prototypes, evals and prompt experiments. Keep a paid key for what your users touch. Every response carries an X-Routed-Via header naming the company that answered, so you can see which free models your tests actually ran on.
Run this on your codebase
- Install the desktop app or the Docker one-liner.
- Add 3-5 free keys on the Keys page.
- Copy the unified key.
- Run
npx freellmapi setup-claude …for Claude Code. - Reorder the Fallback Chain so your favourite models come first.
- Send one prompt and check the
X-Routed-Viaheader.