VS Code
Use the Vani API in VS Code (Continue, Cline and Copilot)
Use Vani's own extension, Vani Code Agent, or 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.
Vani Code Agent (Vani's own extension)
Vani Code Agent needs no provider settings: it is a coding agent backed by the Vani API that reads and edits files with a diff to review, and runs commands with your approval. The sections after this one set up other extensions instead.
- Install Vani Code Agent from the Visual Studio Marketplace (VS Code 1.93 or later), or run
code --install-extension AhuraSense.vani-code. - Open it with
Ctrl+Alt+V(Cmd+Alt+Von macOS) and paste your Vani API key. The key is kept in VS Code's secret storage and sent only to the Vani API. - Choose a model and start a chat. Its approval modes are Ask (the default), Accept edits and Plan.
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.
~/.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 DeepSeek V4.1 Flash
provider: openai
model: deepseek/deepseek-v4.1-flash
apiBase: https://api.vani.ai/v1
apiKey: ${{ secrets.VANI_API_KEY }}
useResponsesApi: false
roles: [chat, edit, apply]
capabilities: [tool_use]~/.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,deepseek/deepseek-v4.1-flash). - 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.
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. - Set
vision: trueonly for a model that can see images (GPT-6 Sol can, DeepSeek V4.1 Flash cannot;GET /modelslistsimageinput), so images can be attached in chat. - If you are not signed in to GitHub, also set
chat.utilityModelto a Vani model so titles and commit messages work.
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": true,
"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": true,
"maxInputTokens": 120000,
"maxOutputTokens": 8000
},
{
"id": "deepseek/deepseek-v4.1-flash",
"name": "Vani DeepSeek V4.1 Flash",
"url": "https://api.vani.ai/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 120000,
"maxOutputTokens": 8000
}
]
}
]Note
Note
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
- Vani Code Agent on the Visual Studio Marketplace
- 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