OpenAI-Compatible Endpoint for Free Models
Most AI coding tools (opencode, Cursor, and dozens of libraries) speak the OpenAI API. What if you could point all of them at free models?
The idea
Run a tiny local proxy that speaks OpenAI's chat/completions protocol, and behind it rotate free model providers. Every tool that understands OpenAI just works.
FreeGate
FreeGate is exactly that. Install it, and in your tool's config point baseURL at http://localhost:4000/v1.
Example: opencode
{
"provider": {
"free-proxy": {
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "http://localhost:4000/v1", "apiKey": "your-key" }
}
}
}
What you get
- Free tier-S models behind your favorite tools
- Automatic failover
- A dashboard with usage
FAQ
Does it work with Cursor? Yes — any OpenAI-compatible client.
Is it safe? It runs locally, MIT licensed, no telemetry.










