packages/kilo-docs/pages/ai-providers/gemini.md
Kilo Code supports Google's Gemini family of models through the Google AI Gemini API.
Website: https://ai.google.dev/
{% tabs %} {% tab label="VSCode (Legacy)" %}
{% /tab %} {% tab label="VSCode" %}
Open Settings (gear icon) and go to the Providers tab to add Google Gemini and enter your API key.
The extension stores this in your kilo.json config file. You can also edit the config file directly — see the CLI tab for the file format.
{% /tab %} {% tab label="CLI" %}
Set the API key as an environment variable or configure it in your kilo.json config file:
Environment variable:
export GOOGLE_GENERATIVE_AI_API_KEY="your-api-key"
Config file (~/.config/kilo/kilo.json or ./kilo.json):
{
"provider": {
"google": {
"env": ["GOOGLE_GENERATIVE_AI_API_KEY"],
},
},
}
Then set your default model:
{
"model": "google/gemini-2.5-pro",
}
{% /tab %} {% /tabs %}
gemini-embedding-001 model is specifically supported for codebase indexing, providing high-quality embeddings for semantic code search.