Never Lose a Coding Session to HTTP 429 Again
Any single free-tier LLM provider hits rate limits fast during agentic coding loops. FreeBench Local Proxy runs on your own machine at http://127.0.0.1:4141/v1, pools all 14 Direct API providers (85 live models), routes using real FreeBench scores and canary health, and automatically fails over on 429 or timeouts.
How It Works Under the Hood
Configure Cursor, Cline, Aider, OpenCode, or the OpenAI SDK to send requests to http://127.0.0.1:4141/v1 with virtual model freebench/auto.
On startup (and every 15 minutes), the proxy auto-detects keys in your environment, pulls live FreeBench rankings + canary TTFT/uptime, excludes harness-only tiers, and picks the highest-ranked healthy endpoint.
If Provider #1 returns HTTP 429, 503, or times out, the proxy parses Retry-After, parks that endpoint in cooldown, and transparently retries on Provider #2—with full SSE streaming passthrough.
3-Step Quickstart
Step 1: Add 2+ Free Direct API Keys to .env.local
Pollinations and Kilo Gateway (:free models) work anonymously out of the box, and adding free keys for Groq, Google AI Studio, OpenRouter, Cerebras, or NVIDIA NIM gives you deep 429 failover. Run npm run keys:wizard or copy .env.example from Stack Builder.
Step 2: Launch the Local Proxy
npm run proxy -- --task=agentic-coding --always-free --zero-training--port=4141Local port to bind (default: 4141)
--host=127.0.0.1Loopback host address (default: 127.0.0.1)
--task=agentic-codingDefault task when model is freebench/auto
--always-freeExclude one-time trial credit tiers
--zero-trainingOnly route to providers with zero prompt training
--toolsRequire tool / function-calling support
--min-context=128000Minimum context window in tokens
--provider=groq,googleRestrict routing to specific Direct API slugs
--offlineUse bundled snapshot instead of fetching freebench.org
Step 3: Connect Your Coding Agent or SDK
Use OpenAI Compatible mode in Settings -> Models / API Provider.
Provider: OpenAI Compatible
Base URL: http://127.0.0.1:4141/v1
API Key: freebench-local
Model: freebench/autoVirtual Model Aliases
| Model String | Routing Behavior |
|---|---|
| freebench/auto | Uses your proxy --task default (defaults to agentic-coding) |
| freebench/agentic-coding | Top tool-calling + coding model ranked by Agentic Coding score |
| freebench/coding | Highest-ranked coding model on LiveBench Coding |
| freebench/reasoning | Top reasoning model on LiveBench Reasoning |
| freebench/math | Top math model on LiveBench Math |
| freebench/tools | Highest BFCL tool-calling model with function calling enabled |
| freebench/vision | Top multimodal vision-capable free model |
| freebench/long-context | Top model supporting 128K+ token context windows |
| freebench/<canonical_id> | Pins a specific model (e.g. freebench/deepseek-r1) and rotates across every free Direct API provider hosting it |
POST /v1/chat/completions— OpenAI chat completions with SSE streaming & tool callsGET /v1/models— Lists all virtual aliases + your top active canonical IDsGET /health— Live active providers, cooldown timers, and failover counters
X-FreeBench-Provider, X-FreeBench-Model, X-FreeBench-Canonical-Id, X-FreeBench-Failovers- Keys stay 100% local: API keys and prompts go directly from your machine to the upstream provider—never through FreeBench servers.
- Loopback-only by default: Binds strictly to
127.0.0.1so your local port isn't exposed to your LAN. - Direct APIs only: Automatically excludes harness-only tiers (OpenCode Zen) and falls back to the bundled snapshot if offline.