VS Code
Use the Vani API in VS Code (Continue, Cline and Copilot)
Configure Continue, Cline or VS Code's own Custom Endpoint provider for Vani.
- Base URL
- https://api.vani.ai/v1
- Auth
- Authorization: Bearer vani_…
- API
- Chat Completions (Messages and Responses also available)
- Example model
- openai/gpt-6-sol
Checked against the vendor's documentation on 2 October 2026. Need a key? Create one in the API console.
On this pageBefore you start
Before you start
- Continue:
config.yaml(the current format), with the key in a.envfile the extension can read. - Cline: the OpenAI Compatible provider.
- VS Code's own chat: VS Code 1.122 or later (the Custom Endpoint provider). It works without a GitHub sign-in; on Copilot Business or Enterprise an administrator controls bring-your-own-key.
- Vani has no embeddings, legacy completions or fill-in-the-middle endpoint: keep autocomplete, inline suggestions and codebase indexing on another provider.
Continue
- Install Continue from the VS Code Marketplace.
- Create
~/.continue/.envwithVANI_API_KEY=vani_…(no quotes). The extension cannot read your shell's environment variables. - Open the local config: in the Continue panel open the config menu and click the gear next to Local Config (
~/.continue/config.yaml). - Add the models below.
useResponsesApi: falsekeeps Continue on/chat/completions, andcapabilities: [tool_use]makes Agent mode available. - Restart VS Code and pick the model in Continue's model menu.
YAML
~/.continue/config.yaml
name: Vani
version: 1.0.0
schema: v1
models:
- name: Vani GPT-6 Sol
provider: openai
model: openai/gpt-6-sol
apiBase: https://api.vani.ai/v1
apiKey: ${{ secrets.VANI_API_KEY }}
useResponsesApi: false
roles: [chat, edit, apply]
capabilities: [tool_use]
- name: Vani GPT-6 Sol Fast
provider: openai
model: openai/gpt-6-sol-fast
apiBase: https://api.vani.ai/v1
apiKey: ${{ secrets.VANI_API_KEY }}
useResponsesApi: false
roles: [chat, edit, apply]
capabilities: [tool_use]
- name: Vani Muse Spark 1.3
provider: openai
model: meta/muse-spark-1.3
apiBase: https://api.vani.ai/v1
apiKey: ${{ secrets.VANI_API_KEY }}
useResponsesApi: false
roles: [chat, edit, apply]
capabilities: [tool_use]Shell
~/.continue/.env (never commit it)
VANI_API_KEY=vani_YOUR_API_KEYCline
- Install Cline, open its panel and click the settings gear.
- API Provider: OpenAI Compatible.
- Base URL:
https://api.vani.ai/v1. API Key: your Vani key. Model ID:openai/gpt-6-sol(oropenai/gpt-6-sol-fast,meta/muse-spark-1.3). - Under Model Configuration set the context window and maximum output to the model's real limits (Cline cannot detect them for OpenAI-compatible providers) and turn Image Support on only for models that accept images.
- Optional: Use different models for Plan and Act, for example
openai/gpt-6-solto plan andopenai/gpt-6-sol-fastto act.
Text
Cline settings
API Provider : OpenAI Compatible
Base URL : https://api.vani.ai/v1
API Key : vani_YOUR_API_KEY
Model ID : openai/gpt-6-solVS Code chat (Custom Endpoint)
- Open the model menu in chat and choose Manage Language Models (or run Chat: Manage Language Models).
- Click Add Models and choose Custom Endpoint. Enter a group name (Vani), a display name and your Vani key; VS Code keeps the key in its secret storage.
- Choose the API type Chat Completions, then fill in the models in the
chatLanguageModels.jsonfile VS Code opens, with the full endpoint URL. - Set
toolCalling: trueso the model is offered in Agent mode. KeepmaxInputTokens + maxOutputTokenswithin the model's context window. - If you are not signed in to GitHub, also set
chat.utilityModelto a Vani model so titles and commit messages work.
JSON
chatLanguageModels.json
[
{
"name": "Vani",
"vendor": "customendpoint",
"apiKey": "${input:vaniApiKey}",
"apiType": "chat-completions",
"models": [
{
"id": "openai/gpt-6-sol",
"name": "Vani GPT-6 Sol",
"url": "https://api.vani.ai/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 120000,
"maxOutputTokens": 8000
},
{
"id": "openai/gpt-6-sol-fast",
"name": "Vani GPT-6 Sol Fast",
"url": "https://api.vani.ai/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 120000,
"maxOutputTokens": 8000
},
{
"id": "meta/muse-spark-1.3",
"name": "Vani Muse Spark 1.3",
"url": "https://api.vani.ai/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 120000,
"maxOutputTokens": 8000
}
]
}
]Note
The token limits above are placeholders: use each model's limits from the API console's Models page.
Note
Prefer Chat Completions. With the Responses API type, set
zeroDataRetentionEnabled: true: Vani's Responses API is stateless and does not keep previous_response_id.Troubleshooting
- Continue: 401, or
${{ secrets.VANI_API_KEY }}is not resolved - Put
VANI_API_KEYin~/.continue/.envor<workspace>/.continue/.envand restart VS Code. A variable exported in a terminal is not visible to the extension. - Continue: Agent mode is unavailable or tools are never called
- Add
capabilities: [tool_use]to the model; Continue cannot detect capabilities for Vani's ids. - 404 Not Found
- Continue and Cline take
https://api.vani.ai/v1(they append/chat/completions); VS Code's Custom Endpoint takes the fullhttps://api.vani.ai/v1/chat/completions. - VS Code chat: the model is not listed in Agent mode
- Set
toolCalling: true, save the file and restart VS Code. On Business or Enterprise, check that bring-your-own-key is allowed. - Autocomplete or codebase indexing does not use Vani
- Expected: Vani has no fill-in-the-middle or embeddings endpoint. Keep those roles on another provider.
- 401 Unauthorized
- Use a Vani key (it starts with
vani_) from the API console, not a key from another provider. Vani acceptsAuthorization: Bearer <key>orx-api-key: <key>; the Azure-styleapi-keyheader is not accepted. Check that no space or line break was pasted with the key.
Still stuck? Check service status or the API error reference.
Sources
- Continue: OpenAI provider (apiBase, useResponsesApi)
- Continue: config.yaml reference
- Continue: FAQs (secrets in .env)
- Continue: model capabilities
- Cline: OpenAI Compatible
- Cline: Plan & Act
- VS Code: AI language models (Custom Endpoint)
- VS Code 1.122 release notes
- GitHub Docs: bring your own key
Other guides: Xcode · Cursor · JetBrains IDEs · Microsoft Foundry · OpenAI and Anthropic SDKs