One endpoint, every free provider
Google AI Studio, Groq, Cerebras, NVIDIA, Mistral, OpenRouter, Hugging Face and more — all behind a single OpenAI-compatible /v1/chat/completions endpoint on localhost.
free.tokens is a local OpenAI-compatible proxy that aggregates the free tiers of a dozen LLM providers behind one endpoint — with automatic failover, a cached model catalog, and one-command opencode setup.
free-tokens keys add google→ key stored for google (AIza…)free-tokens serve→ listening on http://127.0.0.1:8787/v1→ 14 providers · 880 models catalogedfree-tokens setup→ opencode configured: freetokens/gemini-2.5-flashcurl localhost:8787/v1/chat/completions \ -d '{"model":"gemini-2.5-flash","messages":[…]}'→ {"choices":[{"message":{"content":"PONG"}}]}One localhost endpoint. Every free tier you can reach.
Google AI Studio, Groq, Cerebras, NVIDIA, Mistral, OpenRouter, Hugging Face and more — all behind a single OpenAI-compatible /v1/chat/completions endpoint on localhost.
When a provider rate-limits or a key dies, the router benches that credential and retries the next candidate — your client never sees the failure.
Provider keys live in ~/.local/share/free-tokens/keys.json with 0600 permissions. Nothing leaves your machine except the upstream API calls themselves.
free-tokens setup writes the provider entry and auth credential for opencode, then sets your default model — one command and you are chatting on free tokens.
Any tool that speaks the OpenAI API works out of the box — point baseURL at http://127.0.0.1:8787/v1 and use any catalog model id.