If you've tried plugging a "free LLM API" from an older blog post into Cline, Roo Code, or Claude Code lately, two things usually happen: half the endpoints are gone, and the fast ones throw HTTP 429 on your second message.
A lot changed mid-year:
-
GitHub Models (
models.inference.ai.azure.com/models.github.ai) shut down permanently on July 30, 2026 - Hugging Face Serverless Inference dropped its monthly free credit allowance on free accounts
- Cerebras replaced its card-free tier with a card-gated trial
Meanwhile, several genuine no-card tiers still work well — as long as you match each provider's rate limits to how coding agents actually send tokens.
TL;DR
- Heavy context reading (repo trees + large files) -> Google AI Studio (1M context window, unpaid tier trains on prompts)
- Zero-training fast diffs -> Groq, SambaNova, or Cloudflare Workers AI (watch per-minute token caps)
-
Claude Code without a proxy -> OpenRouter's native Anthropic endpoint (
ANTHROPIC_BASE_URL="https://openrouter.ai/api", blankingANTHROPIC_API_KEY="")
🗂️ No-card free tiers that still work (Nov 2026)
| Provider | Key free limits | Trains on prompts? | Best agent role |
|---|---|---|---|
| Google AI Studio | 1M context, per-project RPM/RPD | Yes (unpaid tier) | Repo reading & planning |
| Groq Cloud |
30 RPM, 1,000 RPD, 8,000 TPM
|
No | Targeted single-file edits |
OpenRouter (:free) |
20 RPM; 50 RPD (or 1,000 RPD w/ >= 10 lifetime credits) |
Varies by upstream | Multi-model fallback |
| SambaNova Cloud |
20 RPM, 20 RPD, 200K TPD
|
No | Privacy-safe prototyping |
| Cloudflare Workers AI |
10,000 Neurons/day (resets 00:00 UTC) |
No | Lightweight helper tasks |
| Mistral (Experiment) |
1 RPS, monthly eval cap (SMS required) |
Yes (unless opted out) | Code completion (codestral) |
| Cohere / NVIDIA NIM |
1,000 calls/mo (Cohere) / 1,000 starter credits (NIM, SMS) |
Eval / No (NIM) | Secondary fallback |
⚠️ Why Groq's 8,000 TPM cap crashes Cline and Roo Code
Groq feels instant in a chat UI, so it's tempting to set it as your main model in Cline or Roo Code. Then turn two hits 429 Rate Limit Exceeded.
The bottleneck isn't requests per minute (30 RPM) — it's tokens per minute (8,000 TPM). Autonomous coding agents send 4,000 to 6,000 tokens of system prompts, tool schemas, and file trees on every turn. Reading one medium-sized file eats the entire minute's budget.
What works instead: pair a high-TPM model (like Google AI Studio on non-sensitive repos) for context gathering and planning, and reserve Groq or Mistral for small, targeted diffs.
🔑 Running Claude Code on OpenRouter :free models (no proxy)
OpenRouter exposes a native Anthropic-compatible endpoint, so you don't need a local translation proxy for Claude Code. The key detail is setting ANTHROPIC_API_KEY="" (empty string) so Claude Code doesn't run into an auth header conflict:
export OPENROUTER_API_KEY="sk-or-v1-your-key"
export ANTHROPIC_BASE_URL="https://openrouter.ai/api"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_API_KEY=""
export ANTHROPIC_MODEL="nvidia/nemotron-3-ultra-550b-a55b:free"
One OpenRouter quirk worth knowing: accounts with < 10 lifetime credits are capped at 50 RPD on :free models, while accounts that have ever topped up >= 10 credits unlock 1,000 RPD permanently — even after the balance reaches $0.00 (just keep the balance non-negative, or :free calls return HTTP 402).
⚙️ Wiring BYOK keys in OpenCode (opencode.json)
When OpenCode's built-in free pool hits its rolling cap, you can drop your own free API keys into ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"google": {
"options": { "apiKey": "{env:GEMINI_API_KEY}" }
},
"groq": {
"options": { "apiKey": "{env:GROQ_API_KEY}" }
},
"openrouter": {
"options": { "apiKey": "{env:OPENROUTER_API_KEY}" }
}
}
}
Wrapping up
Free tiers are viable for side projects and testing if you treat TPM limits and prompt-training policies as first-class constraints rather than interchangeable endpoints.
If you want to filter providers by no-card or zero-training policies (or generate ready-to-paste configs for Claude Code, Cline, and OpenCode), the full directory is at findaitier.com and the raw JSON dataset is on GitHub at BeyenAI/awesome-free-llm-api-2026.
Which free or budget model pairing has been most reliable in your coding agent setup lately?
Top comments (0)