← All prompt collections
The full post, ready to copy
Keep Claude Code Running on Free Models (FreeLLMAPI)
Slide 1
FreeLLMAPI is a free, open-source (MIT) router: github.com/tashfeenahmed/freellmapi
It stacks the free tiers of 87 AI providers (Gemini, Mistral, Kimi, Groq, NVIDIA, Cerebras and more), about 10.1 billion tokens a month in total, behind one endpoint. Claude Code can run on it.
Be clear on what you get: Claude Code's app and tools, running on free models from other companies, not on Claude itself. The README is honest about it: no frontier models, variable speed, and quality dips late in the day as the best free models hit their daily caps (they reset at midnight UTC).
Great for when you've hit your Claude limit and want to keep going. It's for personal use, not production.
Slide 2
Easiest: the desktop app.
- Mac: the .dmg on the Releases page of the GitHub repo
- Windows: FreeLLMAPI in the Microsoft Store
Or let Claude Code do it. Paste this:
Install FreeLLMAPI from github.com/tashfeenahmed/freellmapi on this computer. Use the desktop app if there is one for my system, otherwise the Docker install from the README. Explain each step before you run it, and tell me when the dashboard is open.
(Docker one-liner from the README, if you prefer: curl -fsSL https://freellmapi.co/install.sh | bash)
Slide 3
The 10 billion tokens only count for providers you add a key for. Each key is free; you sign up on the provider's site.
Good ones to start with:
- Google AI Studio (Gemini)
- Groq
- Mistral
- Cerebras
- OpenRouter
- NVIDIA
Paste each key on the Keys page of the FreeLLMAPI dashboard, and reorder the Fallback Chain so your favourite models come first. Copy your unified API key from the top of the Keys page.
The full list with each model's free limits: freellmapi.co/models.html
Slide 4
Safest way (changes nothing in your config, only that session):
npx freellmapi launch --url http://localhost:3001 --api-key YOUR-UNIFIED-KEY
Permanent setup (backs up your config first; add --dry-run to preview):
npx freellmapi setup-claude --url http://localhost:3001 --api-key YOUR-UNIFIED-KEY
Using the desktop app? It runs on a different port. Use the Copy Claude URL button in its tray panel for the --url value.
With launch, running plain claude still uses your normal Claude account, so you can switch back the moment your limit resets. Needs Node.js 20.18 or newer.
Slide 5
When a free model hits its cap, FreeLLMAPI moves your chat to the next one. Turn on Context Handoff so the new model gets a short note saying it's taking over your task and shouldn't restart it.
Add this line to FreeLLMAPI's .env file and restart it:
FREELLMAPI_CONTEXT_HANDOFF=on_model_switch
It's off by default. Chats also stick to one model for 30 minutes, so switches only happen when they need to.
Slide 6
- Every reply includes an X-Routed-Via header showing which model actually answered.
- Give it smaller, clearer tasks than you'd give Claude. Free models are less capable.
- Don't send anything sensitive: your prompts go to whichever free provider answers, under that provider's terms.
- Free installs get new models in a monthly catalog update. There's an optional $19/year plan for same-day updates; you don't need it.