Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A practical guide to set up Kilo Code + OpenRouter + Gemini free models for AI-assisted coding in VS Code.
From the repo.
A complete guide to installing and configuring Kilo Code (an AI coding agent for VS Code) using the Google Gemini free tier as your primary model and OpenRouter free models as a backup/variety layer — no cost, no credit card required.
⚠️ Important: As of the last verification date, Google Gemini has no free model on OpenRouter. Gemini's real free tier only exists when you get an API key directly from Google AI Studio, not through OpenRouter. This repo is written to reflect that reality — see Architecture and Limitations below.
Kilo Code is an open-source AI coding agent that runs inside VS Code (also available for JetBrains and CLI), supporting more than 30 different model providers. This repo shows you how to connect Kilo Code to genuinely free, verified models so you can code with AI assistance at no cost, within free-tier limits.
This repo is useful for:
VS Code
│
▼
Kilo Code (extension)
│
├── Provider: Google Gemini (direct, via Google AI Studio)
│ └── Genuine free tier — recommended as your primary model
│
└── Provider: OpenRouter (optional, backup)
└── The list of :free models changes constantly — use it for
variety, NOT to get Gemini for free (Gemini isn't free on OpenRouter)
Kilo Code doesn't have its own models — it needs a provider to supply inference. There are two independent paths:
| Path | Provider in Kilo Code | Where to get a key | Gemini free tier? |
|---|---|---|---|
| A (recommended) | Google Gemini | Google AI Studio | ✅ Yes |
| B (backup) | OpenRouter | openrouter.ai/keys | ❌ No (but other free models are available) |
# 1. Install the Kilo Code CLI (optional — or install the extension from the VS Code Marketplace)
npm install -g @kilocode/cli
# 2. Get a free Gemini API key at:
# https://aistudio.google.com/apikey
# 3. In VS Code:
# Kilo Code panel → gear icon (Settings) → API Provider → "Google Gemini"
# → paste your API key → pick a model → start coding
:free to see the current list of free models — this list changes weekly, so don't hardcode it.Last verified: 2026-08. The free model lineup changes frequently — always double-check the official source before relying on this long-term.
| Model | Provider | Free? | Good for coding | Context | Notes |
|---|---|---|---|---|---|
| Gemini 2.5 Flash | Google AI Studio (direct) | ✅ | Good, fast | Large | Recommended default |
| Gemini 2.5 Flash-Lite | Google AI Studio (direct) | ✅ | Decent, very fast | Large | Use for speed, simple tasks |
| Gemini 2.5 Pro | Google AI Studio (direct) | ✅ (lower limits) | Excellent, deep reasoning | Largest | Use for complex tasks, to conserve quota |
OpenRouter :free models | OpenRouter | ✅ (not Gemini) | Varies by model | Varies | Check the live list at openrouter.ai/models |
kilo.json — can be edited manually to add multiple providers and set a model per mode (Architect/Code/Debug).options.transforms in kilo.json..env file and add .env to .gitignore.GEMINI_API_KEY=your_api_key_here
OPENROUTER_API_KEY=your_api_key_here
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Wrong API key, or using an old Standard key | Create a new Auth key in Google AI Studio |
| 429 Too Many Requests | Exceeded free-tier rate limit | Wait for the limit to reset (per minute/day), or reduce request frequency |
| Model unavailable / removed | The free model was pulled from OpenRouter | Check openrouter.ai/models again and pick another one |
| Kilo Code not responding | Provider isn't configured correctly | Go to Settings → Providers and double-check the key and selected model |
| "Free Gemini on OpenRouter" doesn't work | Gemini currently has no free tier on OpenRouter | Get a key directly from Google AI Studio instead |
Do I need a credit card for the free tier? No — both Google AI Studio and OpenRouter let you start with just a Google/GitHub account.
Can I use the free tier for a production project? Not recommended — rate limits are low, there's no uptime guarantee, and your data may be used to improve the model (depending on the provider's policy).
Is the free model list in this repo always accurate? No — the model table is only accurate as of its "last verified" date. Always check the official source before relying on it long-term.
This repo is maintained as a living guide. Contributions are welcome, especially:
CONTRIBUTING.md for details.Released under the MIT license.
Replace {MCP_ENDPOINT_URL} with this MCP’s endpoint URL (from its repo or docs above). No API key — you connect directly.
Tool
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "{MCP_ENDPOINT_URL}"
}
}
}Paste into mcpServers in the config file. Restart Cursor after saving.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.