← All free guides · texaaitech.com
∞ Free step-by-step guide

Free AI Coding Tokens for Claude Code

Everything from my reel, written out. You install one free open-source app, plug in free API keys, and Claude Code, Codex or OpenCode run on free AI models instead of a paid plan.

Your agent
Claude Code
Codex CLI
OpenCode
→
FreeLLMAPI
runs on your PC · one key
7–10B
free tokens / month
→
Free providers
Gemini
Groq
OpenRouter
+ many more
01
Install
The FreeLLMAPI app
02
Enable
No-key providers
03
Add keys
Free API keys
04
Install
Node.js + your agent
05
Connect
One setup command
06
Test
Pick a model, say hi
texa.aitech
GUIDE BY
texa.aitech
AI tools · Tech tips · Creator workflows
Before you start

What you get (and what you don't)

FreeLLMAPI is a free open-source app that runs on your own computer. It pools the free tiers of many AI providers behind one key, and the project says that adds up to roughly 7–10 billion tokens a month.

Know the trade-off. Your agent works exactly as before, but the replies come from free open models (DeepSeek, Qwen, Llama, Mistral, Gemini and others), not Anthropic's or OpenAI's paid models. The README is honest about it: no frontier models, speed varies, and quality dips late in the day as top models hit their daily caps. Caps reset at midnight UTC (5:30 AM IST).

Works with

Claude Code, Codex CLI, OpenCode, Cline, Roo Code, Kilo Code, Continue, Aider, Goose, Qwen Code, Crush, and any other tool that accepts an OpenAI-compatible endpoint.

Your checklist

You needWhy / details
Mac or Windows PCmacOS 12 or newer, or Windows. On Linux, use Docker.
30–45 minutesFor signing up to the free provider accounts.
Node.js 20+Needed for the one-command agent setup.
A phone numberSome providers, such as NVIDIA, verify by SMS.
Step 1

Install the app

  1. Open the FreeLLMAPI releases page on GitHub.
  2. Under Assets, download the file for your computer:
    • Mac: the .dmg file. Works on Apple Silicon and Intel Macs (macOS 12+).
    • Windows: the setup.exe file. If SmartScreen warns you, click More info → Run anyway.
  3. Install and open it. A new icon appears in your menu bar (Mac) or system tray (Windows).
  4. Click the icon and choose Open Dashboard. The app logs you in by itself, no password needed.
Linux Or prefer Docker? Run this, then open localhost:3001
TERMINAL · DOCKER INSTALL
curl -fsSL https://freellmapi.co/install.sh | bash
Step 2

Turn on the no-key providers

Some providers need no account at all. Switch these on first; they work immediately.

  1. In the dashboard, open the Keys page and click Add key.
  2. In Select provider, type no key needed.
  3. Click each provider that appears, then Enable. Do it for every model provider and search provider in the list.
Step 3

Add free API keys

Every key you add grows your monthly budget. Same routine each time: sign up, create a key, copy it. Then Keys → Add key, pick the provider, paste, click Add key, and Save at the end.

Start with the ★ five. They give the most free capacity for the least effort.
ProviderGet your keyNotes
Google AI Studioaistudio.google.com/apikeyClick Create API key. Unlocks Gemini.
Groqconsole.groq.com/keysClick Create API key. Very fast replies.
OpenRouteropenrouter.ai/keysGives the free models tagged :free.
Cerebrascloud.cerebras.aiAPI Keys is in the left menu.
NVIDIA NIMbuild.nvidia.comPhone verification. Hit a 404 after? Sign in again.
Mistralconsole.mistral.ai/api-keysChoose the free Experiment plan.
Coheredashboard.cohere.com/api-keysUse a Trial key, not production.
Hugging Facehuggingface.co/settings/tokensCreate a token with Read access.
Requestyrequesty.aiKey is under API Keys in the left menu.

Many more are supported: type free key in Add key to see them all. The Models page lists each provider's free models and limits.

Test Check a key works
TERMINAL · TEST A KEY
npx freellmapi keys test groq
Step 4

Install Node.js + your agent

  1. Install Node.js 20 or newer (the LTS version) from nodejs.org. Check with node -v. On Windows, use PowerShell.
  2. Install the agent (or agents) you want, then confirm with claude --version, codex --version or opencode --version.
AgentInstall command
Claude Codenpm install -g @anthropic-ai/claude-code
Codex CLInpm install -g @openai/codex
OpenCodenpm install -g opencode-ai

Then make a project folder and open the terminal in it: mkdir my-project, then cd my-project.

Step 5

Connect the app to your agent

Easiest route: copy the setup command the app generates, because it already has your local address. Keep the app running the whole time you use the agent.

Your unified key
Starts with freellmapi-. Copy it from the tray menu (Copy Key) or the top of the Keys page.
Your local address
Shown in the app's setup command. Docker installs use http://localhost:3001.
A Automatic setup (recommended)
  1. In the dashboard, open Agents and pick your agent.
  2. Copy the automatic setup command and paste it into your terminal.
  3. When it asks for your unified key, paste it and press Enter. On Windows, right-click once to paste. The key stays hidden on screen, which is normal.

Or run it yourself, with your own address and key:

TERMINAL · CLAUDE CODE SETUP
npx freellmapi setup-claude --url http://localhost:3001 --api-key freellmapi-YOUR-KEY
AgentCommand
Codexsetup-codex
OpenCodesetup-opencode
Otherssetup-cline, setup-aider, setup-roo …
Good to know. Add --dry-run to preview changes first; the tool backs up your config before writing. Claude Code needs the address without /v1, Codex and OpenCode with it. The setup commands handle this for you.
B Keep the key out of config files
Run npx freellmapi launch (Claude Code) or npx freellmapi launch-codex (Codex). The key is passed only for that session.
C Any other tool, manually
Base URL http://localhost:3001/v1, your unified key as the API key, and auto as the model.
Step 6

Pick a model and test it

  1. Close the terminal and open a new one, so the agent loads the new settings.
  2. Go to your project folder and start the agent: claude, codex or opencode.
  3. In Claude Code, type /model and pick one. Default or auto lets the app choose the best free model right now.
  4. Type hi and press Enter. A reply means everything works.
  5. Check your remaining monthly budget on the dashboard home page.

Pro tips

Screenshots
Paste one into Claude Code with Alt+V (Windows) or Ctrl+V (Mac).
Smart vs fast
auto:smart for harder tasks, auto:fast for quick edits.
More budget
Add more free keys any time. Requests are spread across them automatically.
Model order
Reorder which models are tried first on the Fallback Chain page.
Help

If something breaks

ProblemFix
Agent can't connectCheck the app is running (tray icon). Open the local address in your browser to confirm the server is up.
Auth or 401 errorPaste your unified key again, all of it, including freellmapi- at the start.
OpenCode ignores the keyOpen OpenCode's JSON config and paste the key into the FreeLLMAPI provider entry by hand, replacing the environment-variable placeholder.
Claude Code still uses your Anthropic accountOpen settings.json in the .claude folder in your home directory. Check ANTHROPIC_BASE_URL points to your local address and the token is your unified key.
Slow or worse in the eveningTop models used up their daily caps. They reset at midnight UTC (5:30 AM IST). More keys help.
A provider keeps failingRun npx freellmapi keys test <provider>, or delete that key and make a new one.
npx not foundNode.js isn't installed or not on PATH. Reinstall from nodejs.org and open a new terminal.
Windows blocks the installerClick More info, then Run anyway.

To see which model answered, check the X-Routed-Via response header. Logs are under Open Logs Folder in the tray menu.

Privacy and safety

Don't use it for work code. Your code and prompts go to whichever free provider handles each request, and many free tiers may use that data to train models. Keep it for side projects and learning, not employer or client code.
Runs locallyProvider keys are stored encrypted on your machine; requests go straight to the providers you enabled.
Free-tier termsThe project is meant for personal experimentation. Each provider has its own free-tier terms, so read them before relying on one.
Keep your key secretAnyone with your unified key can spend your token budget. Never show it in a reel, comment or screenshot.
UninstallRemove the app, then delete %APPDATA%\FreeLLMAPI\ (Windows) or ~/Library/Application Support/FreeLLMAPI/ (Mac).
Tools update fast. These steps follow the FreeLLMAPI README as of November 2026. If a command changed, check the GitHub page for the latest.
texa.aitech

Now go code for free.

Made for you by texa.aitech. Follow @texa.aitech on Instagram for more AI tools and tech tips.