packages/kilo-docs/pages/ai-providers/v0.md
Kilo Code supports v0, Vercel's AI model provider that offers an OpenAI-compatible API. This allows you to use v0's models with Kilo Code through the familiar OpenAI API interface.
To use v0 with Kilo Code, you'll need:
{% tabs %} {% tab label="VSCode (Legacy)" %}
Setting up v0 in Kilo Code is straightforward:
https://api.v0.dev/v1v0-1.0-md{% /tab %} {% tab label="VSCode" %}
Open Settings (gear icon) and go to the Providers tab to add an OpenAI Compatible provider. Set the base URL to https://api.v0.dev/v1 and enter your v0 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" %}
v0 uses the OpenAI-compatible provider. Set the API key and base URL in your config:
Environment variable:
export OPENAI_API_KEY="your-v0-api-key"
Config file (~/.config/kilo/kilo.json or ./kilo.json):
{
"provider": {
"openai-compatible": {
"env": ["OPENAI_API_KEY"],
"baseURL": "https://api.v0.dev/v1",
},
},
}
Then set your default model:
{
"model": "openai-compatible/v0-1.0-md",
}
{% /tab %} {% /tabs %}
v0-1.0-md).https://api.v0.dev/v1).