FreeAITokens

Docs

The detail behind FreeAITokens, for developers and the curious. If you just want it working, download the app and follow Setup.

Command line

With Node.js 20 or newer you don't need the app:

npx freeaitokens               # start the local endpoint
npx freeaitokens add           # add a free provider key (guided)
npx freeaitokens list          # providers, key status, what is left today
npx freeaitokens remove <id>   # delete a stored key

Or install it once: npm install -g freeaitokens. The endpoint listens on 127.0.0.1:4949 only and needs the local token from the startup banner. The app and the command share keys and settings.

Use it with your tools

ToolHow
Claude Codenpx freeaitokens claude (any Claude Code arguments work after it)
Codexnpx freeaitokens codex
Gemini CLInpx freeaitokens gemini
OpenCodenpx freeaitokens setup opencode, then the model freeaitokens/free
Kilo Code CLI, Qwen Code, Goose, Aidernpx freeaitokens kilo / qwen / goose / aider
Zed, JetBrains AI, VS Codenpx freeaitokens setup zed / jetbrains / vscode prints what to paste
Continue, Cline, Crush, Roo Codenpx freeaitokens setup cline (or the tool's name) prints the values
Anything OpenAI-compatibleBase URL http://127.0.0.1:4949/v1, model free, key from the startup banner
Anthropic, Gemini or Ollama clientsBase URL http://127.0.0.1:4949, the same key

Launchers only affect that one session and write nothing to your tool's config. setup opencode adds a provider next to your existing ones and keeps a backup; --undo restores it.

What it does

Not only chat

The same endpoint takes the OpenAI routes for embeddings (/v1/embeddings), plain completions (/v1/completions), images (/v1/images/generations), text to speech (/v1/audio/speech), transcription (/v1/audio/transcriptions) and video (/v1/videos), each sent to a free provider that offers it, with the same failover and limits.

Paid keys can sit below the free ones as a last resort: used only when no free model can serve the request, each paid request is printed, with a daily cap.

OptionWhat it does
--port <n>Port for the local endpoint (default 4949)
--free-onlyNever use paid keys
--paid-cap <n>Most paid requests per day (default 200)

All 27 providers

Together they publish up to about 7.5 billion free tokens a month. That figure adds up published free limits, counting 2,000 tokens a request where only a request limit is published; most of it comes from a few large allowances, and you get it only with a key for each provider. Providers that publish no limit count as zero.

ProviderKey neededFree limitGood to know
Kilo GatewayNonot publishedNo account needed. About 200 requests an hour per IP address. Free prompts and answers may be used for training.
GroqFree keyup to 500,000 tokens a day per model
CerebrasFree keyup to 216,000,000 tokens a day per model
OpenRouterFree keyup to 50 requests a day per modelFree models allow about 50 requests a day on an account with no credit.
Google GeminiFree keyup to 1,000 requests a day per modelGoogle's terms limit the API to professional or business use. Free-tier prompts may be used to improve Google's products.
SEA-LIONFree key10 requests a minuteGoogle sign-in, one trial key per user, and the terms allow AI Singapore to use content to improve its services.
TyphoonFree key200 requests a minuteA free research showcase API: SCB 10X collects usage data to improve its models and API.
NVIDIA NIMFree keynot publishedFree access is a trial for prototyping and testing only; production use needs an NVIDIA AI Enterprise license, and rate limits vary by model and load.
Z.ai (GLM)Free keynot publishedOnly the Flash models are free. Their rate limits are not published and show only in the Z.ai console.
Nabh CloudFree keyup to 500 requests a day per modelReseller. Only GPT OSS 20B is free, at 5 requests a minute and 500 a day.
KiosAPIFree keynot publishedReseller (Indonesia). A small daily free quota on its free-tier models; the amounts are not published. One account per person.
KenariFree keyup to 50 requests a day per modelReseller (Indonesia), no company named. Free models are capped at 5 a minute and 50 a day; upstream providers' policies apply.
PlugskyFree keyup to 50,000 tokens a day per modelReseller. 100 free requests and 50K tokens a day. The free model does not say what runs underneath, and failover may switch models.
ZRO (MoonMath)Free keynot publishedReseller. The $0 plan gives some DeepSeek V4.1 Flash use each day; the amount is not stated.
RequestyFree keyup to 200 requests a day per modelReseller. Free models at 200 a day and 20 a minute. Logs are kept 30 days and Requesty may train on free-plan content.
BazaarLinkFree key10 requests a minuteReseller (Taiwan). 10 a minute and a small daily allowance. Failed, flagged and sampled requests are kept in full.
LogfareFree keyup to 5,000 requests a day per modelReseller. 5,000 free requests a day, but you must link Discord and stay in its server. Everything is logged and used for evals unless you opt out.
CheapLLMFree keynot publishedSmall reseller on its own GPUs. Free during its beta; afterwards only about 5K tokens in and 1K out per hour. One request at a time.
OVHcloud AI EndpointsNo2 requests a minuteNo account needed. About 2 requests a minute per IP address for each model.
LLM7.ioFree keynot publishedSmall operator with no published free-tier terms or limits; data handling is unclear.
AI HordeFree keynot publishedVolunteer workers run the models and can see your prompts; it is queued, slow, has no tool calls, and the model list changes often.
BlockRunFree key30 requests a minute
Electron HubFree keyup to 10 requests a day per modelProviders behind :free models may train on your prompts. A Neutrino is spent even when a request fails, and going over 5 rpm triggers a 3-minute cooldown.
Septor LabsFree keyup to 250,000 tokens a day per modelFree requests go to third-party aggregators (some hosted in China) that may keep prompts; not for personal or sensitive data.
Api.AirforceFree keyup to 1,000 requests a day per modelSmall reseller with unclear upstream sources; logs IPs and usage, and the free plan allows only 1 request per minute.
RoutewayFree keyup to 200 requests a day per modelOperator is not named in its terms, and requests are scanned before routing to upstream providers.
Cloudflare Workers AIFree keynot published10,000 free Neurons a day, shared by every Cloudflare model you use (chat, embeddings, images, speech, transcription); resets at 00:00 UTC. The key is your Account ID plus an API token.

Not supported yet

Source code, issues and the full README: GitHub.