Providers
CoDev Code supports 75+ LLM providers as well as supports running local models.
To add a provider you need to:
- Add the API keys for the provider using the
/connectcommand. - Configure the provider in your CoDev Code config.
Credentials
When you add a provider's API keys with the /connect command, they are stored
in ~/.local/share/codev/auth.json.
Config
You can customize the providers through the provider section in your CoDev Code
config.
Base URL
You can customize the base URL for any provider by setting the baseURL option. This is useful when using proxy services or custom endpoints.
{
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api.anthropic.com/v1"
}
}
}
}Hiding models
You can hide specific models from the /models picker for a provider using the blacklist option. This is useful when a provider exposes models you don't want to use or select.
{
"provider": {
"anthropic": {
"blacklist": ["claude-opus-4-20250514"]
}
}
}The inverse whitelist option hides every model except the ones listed.
{
"provider": {
"anthropic": {
"whitelist": ["claude-sonnet-4-20250514"]
}
}
}Both options take an array of model IDs — the same IDs shown in the /models picker.
blacklistremoves the listed models from the picker.whitelistkeeps only the listed models and hides the rest.- You can combine them:
whitelistnarrows the set, thenblacklistremoves entries from it.
Directory
Let's look at some of the providers in detail.
302.AI
-
Head over to the 302.AI console, create an account, and generate an API key.
-
Run the
/connectcommand and search for 302.AI./connect -
Enter your 302.AI API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./models
Amazon Bedrock
To use Amazon Bedrock with CoDev Code:
-
Head over to the Model catalog in the Amazon Bedrock console and request access to the models you want.
You need to have access to the model you want in Amazon Bedrock.
-
Configure authentication using one of the following methods:
Environment Variables (Quick Start)
Set one of these environment variables while running CoDev Code:
# Option 1: Using AWS access keys AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=YYY codev # Option 2: Using named AWS profile AWS_PROFILE=my-profile codev # Option 3: Using Bedrock bearer token AWS_BEARER_TOKEN_BEDROCK=XXX codevOr add them to your bash profile:
~/.bash_profile export AWS_PROFILE=my-dev-profile export AWS_REGION=us-east-1Configuration File (Recommended)
For project-specific or persistent configuration, use
codev.json:codev.json { "provider": { "amazon-bedrock": { "options": { "region": "us-east-1", "profile": "my-aws-profile" } } } }Available options:
region- AWS region (e.g.,us-east-1,eu-west-1)profile- AWS named profile from~/.aws/credentialsendpoint- Custom endpoint URL for VPC endpoints (alias for genericbaseURLoption)
Configuration file options take precedence over environment variables.
Advanced: VPC Endpoints
If you're using VPC endpoints for Bedrock:
codev.json { "provider": { "amazon-bedrock": { "options": { "region": "us-east-1", "profile": "production", "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com" } } } }The
endpointoption is an alias for the genericbaseURLoption, using AWS-specific terminology. If bothendpointandbaseURLare specified,endpointtakes precedence.Authentication Methods
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY: Create an IAM user and generate access keys in the AWS ConsoleAWS_PROFILE: Use named profiles from~/.aws/credentials. First configure withaws configure --profile my-profileoraws sso loginAWS_BEARER_TOKEN_BEDROCK: Generate long-term API keys from the Amazon Bedrock consoleAWS_WEB_IDENTITY_TOKEN_FILE/AWS_ROLE_ARN: For EKS IRSA (IAM Roles for Service Accounts) or other Kubernetes environments with OIDC federation. These environment variables are automatically injected by Kubernetes when using service account annotations.
Authentication Precedence
Amazon Bedrock uses the following authentication priority:
- Bearer Token -
AWS_BEARER_TOKEN_BEDROCKenvironment variable or token from/connectcommand - AWS Credential Chain - Profile, access keys, shared credentials, IAM roles, Web Identity Tokens (EKS IRSA), instance metadata
When a bearer token is set (via
/connectorAWS_BEARER_TOKEN_BEDROCK), it takes precedence over all AWS credential methods including configured profiles. -
Run the
/modelscommand to select the model you want./models
For custom inference profiles, use the model and provider name in the key and set the id property to the arn. This ensures correct caching.
{
"provider": {
"amazon-bedrock": {
// ...
"models": {
"anthropic-claude-sonnet-4.5": {
"id": "arn:aws:bedrock:us-east-1:xxx:application-inference-profile/yyy"
}
}
}
}
}Anthropic
-
Once you've signed up, run the
/connectcommand and select Anthropic./connect -
Here you can select the Claude Pro/Max option and it'll open your browser and ask you to authenticate.
┌ Select auth method │ │ Manually enter API Key └ -
Now all the Anthropic models should be available when you use the
/modelscommand./models
There are plugins that allow you to use your Claude Pro/Max models with CoDev Code. Anthropic explicitly prohibits this.
Previous versions of CoDev Code came bundled with these plugins but that is no longer the case as of 1.3.0
Other companies support freedom of choice with developer tooling - you can use the following subscriptions in CoDev Code with zero setup:
- ChatGPT Plus
- Github Copilot
- Gitlab Duo
Atomic Chat
You can configure CoDev Code to use local models through Atomic Chat, a desktop application that runs local LLMs behind an OpenAI-compatible API server (default endpoint http://127.0.0.1:1337/v1).
{
"provider": {
"atomic-chat": {
"npm": "@ai-sdk/openai-compatible",
"name": "Atomic Chat (local)",
"options": {
"baseURL": "http://127.0.0.1:1337/v1"
},
"models": {
"<your-model-id>": {
"name": "<your-model-name>"
}
}
}
}
}In this example:
atomic-chatis the custom provider ID. This can be any string you want.npmspecifies the package to use for this provider. Here,@ai-sdk/openai-compatibleis used for any OpenAI-compatible API.nameis the display name for the provider in the UI.options.baseURLis the endpoint for the local server. Change the host and port to match your Atomic Chat setup.modelsis a map of model IDs to their display names. Each ID must match theidreturned byGET /v1/models— runcurl http://127.0.0.1:1337/v1/modelsto list the ids currently loaded in Atomic Chat.
If tool calls aren't working well, pick a loaded model with strong tool-calling support (for example, a Qwen-Coder or DeepSeek-Coder variant).
Azure OpenAI
If you encounter "I'm sorry, but I cannot assist with that request" errors, try changing the content filter from DefaultV2 to Default in your Azure resource.
-
Head over to the Azure portal and create an Azure OpenAI resource. You'll need:
- Resource name: This becomes part of your API endpoint (
https://RESOURCE_NAME.openai.azure.com/) - API key: Either
KEY 1orKEY 2from your resource
- Resource name: This becomes part of your API endpoint (
-
Go to Azure AI Foundry and deploy a model.
The deployment name must match the model name for CoDev Code to work properly.
-
Run the
/connectcommand and search for Azure./connect -
Enter your API key.
┌ API key │ │ └ enter -
Set your resource name as an environment variable:
AZURE_RESOURCE_NAME=XXX codevOr add it to your bash profile:
~/.bash_profile export AZURE_RESOURCE_NAME=XXX -
Run the
/modelscommand to select your deployed model./models
Azure Cognitive Services
-
Head over to the Azure portal and create an Azure OpenAI resource. You'll need:
- Resource name: This becomes part of your API endpoint (
https://AZURE_COGNITIVE_SERVICES_RESOURCE_NAME.cognitiveservices.azure.com/) - API key: Either
KEY 1orKEY 2from your resource
- Resource name: This becomes part of your API endpoint (
-
Go to Azure AI Foundry and deploy a model.
The deployment name must match the model name for CoDev Code to work properly.
-
Run the
/connectcommand and search for Azure Cognitive Services./connect -
Enter your API key.
┌ API key │ │ └ enter -
Set your resource name as an environment variable:
AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX codevOr add it to your bash profile:
~/.bash_profile export AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX -
Run the
/modelscommand to select your deployed model./models
Baseten
-
Head over to the Baseten, create an account, and generate an API key.
-
Run the
/connectcommand and search for Baseten./connect -
Enter your Baseten API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./models
Cerebras
-
Head over to the Cerebras console, create an account, and generate an API key.
-
Run the
/connectcommand and search for Cerebras./connect -
Enter your Cerebras API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Qwen 3 Coder 480B./models
Cloudflare AI Gateway
Cloudflare AI Gateway lets you access models from OpenAI, Anthropic, Workers AI, and more through a unified endpoint. With Unified Billing you don't need separate API keys for each provider.
-
Head over to the Cloudflare dashboard, navigate to AI > AI Gateway, and create a new gateway. Note your Account ID and Gateway ID.
-
Run the
/connectcommand and search for Cloudflare AI Gateway./connect -
Enter your Account ID when prompted.
┌ Enter your Cloudflare Account ID │ │ └ enter -
Enter your Gateway ID when prompted.
┌ Enter your Cloudflare AI Gateway ID │ │ └ enter -
Enter your Cloudflare API token.
┌ Gateway API token │ │ └ enter -
Run the
/modelscommand to select a model./modelsYou can also add models through your CoDev Code config.
codev.json { "provider": { "cloudflare-ai-gateway": { "models": { "openai/gpt-4o": {}, "anthropic/claude-sonnet-4": {} } } } }Alternatively, you can set environment variables instead of using
/connect.~/.bash_profile export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id export CLOUDFLARE_GATEWAY_ID=your-gateway-id export CLOUDFLARE_API_TOKEN=your-api-token
Cloudflare Workers AI
Cloudflare Workers AI lets you run AI models on Cloudflare's global network directly via REST API, with no separate provider accounts needed for supported models.
-
Head over to the Cloudflare dashboard, navigate to Workers AI, and select Use REST API to get your Account ID and create an API token.
-
Run the
/connectcommand and search for Cloudflare Workers AI./connect -
Enter your Account ID when prompted.
┌ Enter your Cloudflare Account ID │ │ └ enter -
Enter your Cloudflare API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./modelsAlternatively, you can set environment variables instead of using
/connect.~/.bash_profile export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id export CLOUDFLARE_API_KEY=your-api-token
Cortecs
-
Head over to the Cortecs console, create an account, and generate an API key.
-
Run the
/connectcommand and search for Cortecs./connect -
Enter your Cortecs API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Kimi K2 Instruct./models
DeepSeek
-
Head over to the DeepSeek console, create an account, and click Create new API key.
-
Run the
/connectcommand and search for DeepSeek./connect -
Enter your DeepSeek API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a DeepSeek model like DeepSeek V4 Pro./models
Deep Infra
-
Head over to the Deep Infra dashboard, create an account, and generate an API key.
-
Run the
/connectcommand and search for Deep Infra./connect -
Enter your Deep Infra API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./models
DigitalOcean
DigitalOcean's Inference Engine provides access to open models like GPT-OSS, Llama, Qwen, and DeepSeek, plus custom Inference Routers that route each request to the cheapest, fastest, or best-fit model for a task.
CoDev Code supports two authentication methods:
- OAuth (Recommended) — Sign in to your DigitalOcean account; CoDev Code uses your DigitalOcean API token directly for inference and discovers your Inference Routers.
- Model Access Key — Paste an existing key from the DigitalOcean console.
OAuth (Recommended)
-
Run the
/connectcommand and search for DigitalOcean./connect -
Select Login with DigitalOcean.
┌ Select auth method │ │ Login with DigitalOcean │ Paste Model Access Key └ -
Your browser opens to authorize CoDev Code. Sign in and approve.
CoDev Code requests
genai:readandinference:queryOAuth scopes. Your DigitalOcean API token is used directly for inference — no separate Model Access Key is created.Inference Routers only appear in the model picker after OAuth. Pasting a Model Access Key manually does not discover routers.
-
Run the
/modelscommand. Your Inference Routers appear as the formatrouter:in the model selection./models -
To pick up newly created Inference Routers, re-run
/connectand select DigitalOcean again.
Using a Model Access Key
If you'd rather paste a key directly:
-
Head over to the Manage page in the Inference section of the DigitalOcean console and create a new key.
-
Run the
/connectcommand and select DigitalOcean, then Paste Model Access Key.┌ Enter your DigitalOcean Model Access Key │ │ └ enterInference Routers are not auto-discovered with this method. To surface them in the model picker, sign in via OAuth instead.
-
Run the
/modelscommand to select a model./models
Environment Variable
Alternatively, set your Model Access Key as an environment variable.
export DIGITALOCEAN_ACCESS_TOKEN=your-model-access-keyInference Routers
Inference Routers let you define a routing policy across multiple models — picking the cheapest, fastest, or most appropriate model per request based on the task. After OAuth, CoDev Code surfaces each router as router:<router-name> in the model picker.
Selecting a router model is a drop-in replacement for any other model — CoDev Code forwards your request and DigitalOcean picks the underlying model based on your router's policy. Learn more about Inference Routers
FrogBot
-
Head over to the FrogBot dashboard, create an account, and generate an API key.
-
Run the
/connectcommand and search for FrogBot./connect -
Enter your FrogBot API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./models
Fireworks AI
-
Head over to the Fireworks AI console, create an account, and click Create API Key.
-
Run the
/connectcommand and search for Fireworks AI./connect -
Enter your Fireworks AI API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Kimi K2 Instruct./models
GitLab Duo
Experimental
GitLab Duo support in CoDev Code is experimental. Features, configuration, and behavior may change in future releases.
CoDev Code integrates with the GitLab Duo Agent Platform, providing AI-powered agentic chat with native tool calling capabilities.
License requirements
GitLab Duo Agent Platform requires a Premium or Ultimate GitLab subscription. It is available on GitLab.com and GitLab Self-Managed. See GitLab Duo Agent Platform prerequisites for full requirements.
-
Run the
/connectcommand and select GitLab./connect -
Choose your authentication method:
┌ Select auth method │ │ OAuth (Recommended) │ Personal Access Token └Using OAuth (Recommended)
Select OAuth and your browser will open for authorization.
Using Personal Access Token
- Go to GitLab User Settings > Access Tokens
- Click Add new token
- Name:
CoDev Code, Scopes:api - Copy the token (starts with
glpat-) - Enter it in the terminal
-
Run the
/modelscommand to see available models./modelsThree Claude-based models are available:
- duo-chat-haiku-4-5 (Default) - Fast responses for quick tasks
- duo-chat-sonnet-4-5 - Balanced performance for most workflows
- duo-chat-opus-4-5 - Most capable for complex analysis
You can also specify 'GITLAB_TOKEN' environment variable if you don't want to store token in CoDev Code auth storage.
Self-Hosted GitLab
compliance note
CoDev Code uses a small model for some AI tasks like generating the session title.
It is configured to use gpt-5-nano by default, hosted by Zen. To lock CoDev Code
to only use your own GitLab-hosted instance, add the following to your
codev.json file. It is also recommended to disable session sharing.
{
"small_model": "gitlab/duo-chat-haiku-4-5",
"share": "disabled"
}For self-hosted GitLab instances:
export GITLAB_INSTANCE_URL=https://gitlab.company.com
export GITLAB_TOKEN=glpat-...If your instance runs a custom AI Gateway:
GITLAB_AI_GATEWAY_URL=https://ai-gateway.company.comOr add to your bash profile:
export GITLAB_INSTANCE_URL=https://gitlab.company.com
export GITLAB_AI_GATEWAY_URL=https://ai-gateway.company.com
export GITLAB_TOKEN=glpat-...Your GitLab administrator must:
- Turn on GitLab Duo for the user, group, or instance
- Turn on the Agent Platform (GitLab 18.8+) or enable beta and experimental features (GitLab 18.7 and earlier)
- For Self-Managed, configure your instance
OAuth for Self-Hosted instances
In order to make Oauth working for your self-hosted instance, you need to create
a new application (Settings → Applications) with the
callback URL http://127.0.0.1:8080/callback and following scopes:
- api (Access the API on your behalf)
- read_user (Read your personal information)
- read_repository (Allows read-only access to the repository)
Then expose application ID as environment variable:
export GITLAB_OAUTH_CLIENT_ID=your_application_id_hereMore documentation on opencode-gitlab-auth homepage.
Configuration
Customize through codev.json:
{
"provider": {
"gitlab": {
"options": {
"instanceUrl": "https://gitlab.com"
}
}
}
}GitLab Duo Agent Platform (DAP) Workflow Models
DAP workflow models provide an alternative execution path that routes tool calls
through GitLab's Duo Workflow Service (DWS) instead of the standard agentic chat.
When a duo-workflow-* model is selected, CoDev Code will:
- Discover available models from your GitLab namespace
- Present a selection picker if multiple models are available
- Cache the selected model to disk for fast subsequent startups
- Route tool execution requests through CoDev Code's permission-gated tool system
Available DAP workflow models follow the duo-workflow-* naming convention and
are dynamically discovered from your GitLab instance.
GitLab API Tools (Optional, but highly recommended)
To access GitLab tools (merge requests, issues, pipelines, CI/CD, etc.):
{
"plugin": ["opencode-gitlab-plugin"]
}This plugin provides comprehensive GitLab repository management capabilities including MR reviews, issue tracking, pipeline monitoring, and more.
GitHub Copilot
To use your GitHub Copilot subscription with CoDev Code:
Some models might need a Pro+ subscription to use.
-
Run the
/connectcommand and search for GitHub Copilot./connect -
Navigate to github.com/login/device and enter the code.
┌ Login with GitHub Copilot │ │ https://github.com/login/device │ │ Enter code: 8F43-6FCF │ └ Waiting for authorization... -
Now run the
/modelscommand to select the model you want./models
GMI Cloud
To use GMI Cloud with CoDev Code:
-
Head over to the GMI Cloud console to create an API key. You can also review the API reference for the endpoint details.
-
Run the
/connectcommand and search for GMI Cloud./connect -
Enter your GMI Cloud API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select the model you want./models
Google Vertex AI
To use Google Vertex AI with CoDev Code:
-
Head over to the Model Garden in the Google Cloud Console and check the models available in your region.
You need to have a Google Cloud project with Vertex AI API enabled.
-
Set the required environment variables:
GOOGLE_CLOUD_PROJECT: Your Google Cloud project IDVERTEX_LOCATION(optional): The region for Vertex AI (defaults toglobal)- Authentication (choose one):
GOOGLE_APPLICATION_CREDENTIALS: Path to your service account JSON key file- Authenticate using gcloud CLI:
gcloud auth application-default login
Set them while running CoDev Code.
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_CLOUD_PROJECT=your-project-id codevOr add them to your bash profile.
~/.bash_profile export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json export GOOGLE_CLOUD_PROJECT=your-project-id export VERTEX_LOCATION=global
The global region improves availability and reduces errors at no extra cost. Use regional endpoints (e.g., us-central1) for data residency requirements. Learn more
-
Run the
/modelscommand to select the model you want./models
Groq
-
Head over to the Groq console, click Create API Key, and copy the key.
-
Run the
/connectcommand and search for Groq./connect -
Enter the API key for the provider.
┌ API key │ │ └ enter -
Run the
/modelscommand to select the one you want./models
Hugging Face
Hugging Face Inference Providers provides access to open models supported by 17+ providers.
-
Head over to Hugging Face settings to create a token with permission to make calls to Inference Providers.
-
Run the
/connectcommand and search for Hugging Face./connect -
Enter your Hugging Face token.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Kimi-K2-Instruct or GLM-4.6./models
Helicone
Helicone is an LLM observability platform that provides logging, monitoring, and analytics for your AI applications. The Helicone AI Gateway routes your requests to the appropriate provider automatically based on the model.
-
Head over to Helicone, create an account, and generate an API key from your dashboard.
-
Run the
/connectcommand and search for Helicone./connect -
Enter your Helicone API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./models
For more providers and advanced features like caching and rate limiting, check the Helicone documentation.
Optional Configs
In the event you see a feature or model from Helicone that isn't configured automatically through CoDev Code, you can always configure it yourself.
Here's Helicone's Model Directory, you'll need this to grab the IDs of the models you want to add.
{
"provider": {
"helicone": {
"npm": "@ai-sdk/openai-compatible",
"name": "Helicone",
"options": {
"baseURL": "https://ai-gateway.helicone.ai",
},
"models": {
"gpt-4o": {
// Model ID (from Helicone's model directory page)
"name": "GPT-4o", // Your own custom name for the model
},
"claude-sonnet-4-20250514": {
"name": "Claude Sonnet 4",
},
},
},
},
}Custom Headers
Helicone supports custom headers for features like caching, user tracking, and session management. Add them to your provider config using options.headers:
{
"provider": {
"helicone": {
"npm": "@ai-sdk/openai-compatible",
"name": "Helicone",
"options": {
"baseURL": "https://ai-gateway.helicone.ai",
"headers": {
"Helicone-Cache-Enabled": "true",
"Helicone-User-Id": "opencode",
},
},
},
},
}Session tracking
Helicone's Sessions feature lets you group related LLM requests together. Use the opencode-helicone-session plugin to automatically log each CoDev Code conversation as a session in Helicone.
npm install -g opencode-helicone-sessionAdd it to your config.
{
"plugin": ["opencode-helicone-session"]
}The plugin injects Helicone-Session-Id and Helicone-Session-Name headers into your requests. In Helicone's Sessions page, you'll see each CoDev Code conversation listed as a separate session.
Common Helicone headers
| Header | Description |
|---|---|
Helicone-Cache-Enabled | Enable response caching (true/false) |
Helicone-User-Id | Track metrics by user |
Helicone-Property-[Name] | Add custom properties (e.g., Helicone-Property-Environment) |
Helicone-Prompt-Id | Associate requests with prompt versions |
See the Helicone Header Directory for all available headers.
llama.cpp
You can configure CoDev Code to use local models through llama.cpp's llama-server utility
{
"provider": {
"llama.cpp": {
"npm": "@ai-sdk/openai-compatible",
"name": "llama-server (local)",
"options": {
"baseURL": "http://127.0.0.1:8080/v1"
},
"models": {
"qwen3-coder:a3b": {
"name": "Qwen3-Coder: a3b-30b (local)",
"limit": {
"context": 128000,
"output": 65536
}
}
}
}
}
}In this example:
llama.cppis the custom provider ID. This can be any string you want.npmspecifies the package to use for this provider. Here,@ai-sdk/openai-compatibleis used for any OpenAI-compatible API.nameis the display name for the provider in the UI.options.baseURLis the endpoint for the local server.modelsis a map of model IDs to their configurations. The model name will be displayed in the model selection list.
IO.NET
IO.NET offers 17 models optimized for various use cases:
-
Head over to the IO.NET console, create an account, and generate an API key.
-
Run the
/connectcommand and search for IO.NET./connect -
Enter your IO.NET API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./models
LM Studio
You can configure CoDev Code to use local models through LM Studio.
{
"provider": {
"lmstudio": {
"npm": "@ai-sdk/openai-compatible",
"name": "LM Studio (local)",
"options": {
"baseURL": "http://127.0.0.1:1234/v1"
},
"models": {
"google/gemma-3n-e4b": {
"name": "Gemma 3n-e4b (local)"
}
}
}
}
}In this example:
lmstudiois the custom provider ID. This can be any string you want.npmspecifies the package to use for this provider. Here,@ai-sdk/openai-compatibleis used for any OpenAI-compatible API.nameis the display name for the provider in the UI.options.baseURLis the endpoint for the local server.modelsis a map of model IDs to their configurations. The model name will be displayed in the model selection list.
Moonshot AI
To use Kimi K2 from Moonshot AI:
-
Head over to the Moonshot AI console, create an account, and click Create API key.
-
Run the
/connectcommand and search for Moonshot AI./connect -
Enter your Moonshot API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select Kimi K2./models
MiniMax
-
Head over to the MiniMax API Console, create an account, and generate an API key.
-
Run the
/connectcommand and search for MiniMax./connect -
Enter your MiniMax API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like M2.1./models
NVIDIA
NVIDIA provides access to Nemotron models and many other open models through build.nvidia.com for free.
-
Head over to build.nvidia.com, create an account, and generate an API key.
-
Run the
/connectcommand and search for NVIDIA./connect -
Enter your NVIDIA API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like nemotron-3-super-120b-a12b./models
On-Prem / NIM
You can also use NVIDIA models locally via NVIDIA NIM by setting a custom base URL.
{
"provider": {
"nvidia": {
"options": {
"baseURL": "http://localhost:8000/v1"
}
}
}
}Environment Variable
Alternatively, set your API key as an environment variable.
export NVIDIA_API_KEY=nvapi-your-key-hereNebius Token Factory
-
Head over to the Nebius Token Factory console, create an account, and click Add Key.
-
Run the
/connectcommand and search for Nebius Token Factory./connect -
Enter your Nebius Token Factory API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Kimi K2 Instruct./models
Ollama
You can configure CoDev Code to use local models through Ollama.
Ollama can automatically configure itself for CoDev Code. See the Ollama integration docs for details.
{
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (local)",
"options": {
"baseURL": "http://localhost:11434/v1"
},
"models": {
"llama2": {
"name": "Llama 2"
}
}
}
}
}In this example:
ollamais the custom provider ID. This can be any string you want.npmspecifies the package to use for this provider. Here,@ai-sdk/openai-compatibleis used for any OpenAI-compatible API.nameis the display name for the provider in the UI.options.baseURLis the endpoint for the local server.modelsis a map of model IDs to their configurations. The model name will be displayed in the model selection list.
If tool calls aren't working, try increasing num_ctx in Ollama. Start around 16k - 32k.
Ollama Cloud
To use Ollama Cloud with CoDev Code:
-
Head over to https://ollama.com/ and sign in or create an account.
-
Navigate to Settings > Keys and click Add API Key to generate a new API key.
-
Copy the API key for use in CoDev Code.
-
Run the
/connectcommand and search for Ollama Cloud./connect -
Enter your Ollama Cloud API key.
┌ API key │ │ └ enter -
Important: Before using cloud models in CoDev Code, you must pull the model information locally:
ollama pull gpt-oss:20b-cloud -
Run the
/modelscommand to select your Ollama Cloud model./models
OpenAI
We recommend signing up for ChatGPT Plus or Pro.
-
Once you've signed up, run the
/connectcommand and select OpenAI./connect -
Here you can select the ChatGPT Plus/Pro option and it'll open your browser and ask you to authenticate.
┌ Select auth method │ │ ChatGPT Plus/Pro │ Manually enter API Key └ -
Now all the OpenAI models should be available when you use the
/modelscommand./models
Using API keys
If you already have an API key, you can select Manually enter API Key and paste it in your terminal.
OpenRouter
-
Head over to the OpenRouter dashboard, click Create API Key, and copy the key.
-
Run the
/connectcommand and search for OpenRouter./connect -
Enter the API key for the provider.
┌ API key │ │ └ enter -
Many OpenRouter models are preloaded by default, run the
/modelscommand to select the one you want./modelsYou can also add additional models through your CoDev Code config.
codev.json { "provider": { "openrouter": { "models": { "somecoolnewmodel": {} } } } } -
You can also customize them through your CoDev Code config. Here's an example of specifying a provider
codev.json { "provider": { "openrouter": { "models": { "moonshotai/kimi-k2": { "options": { "provider": { "order": ["baseten"], "allow_fallbacks": false } } } } } } }
LLM Gateway
-
Head over to the LLM Gateway dashboard, click Create API Key, and copy the key.
-
Run the
/connectcommand and search for LLM Gateway./connect -
Enter the API key for the provider.
┌ API key │ │ └ enter -
Many LLM Gateway models are preloaded by default, run the
/modelscommand to select the one you want./modelsYou can also add additional models through your CoDev Code config.
codev.json { "provider": { "llmgateway": { "models": { "somecoolnewmodel": {} } } } } -
You can also customize them through your CoDev Code config. Here's an example of specifying a provider
codev.json { "provider": { "llmgateway": { "models": { "glm-4.7": { "name": "GLM 4.7" }, "gpt-5.2": { "name": "GPT-5.2" }, "gemini-2.5-pro": { "name": "Gemini 2.5 Pro" }, "claude-3-5-sonnet-20241022": { "name": "Claude 3.5 Sonnet" } } } } }
SAP AI Core
SAP AI Core provides access to 40+ models from OpenAI, Anthropic, Google, Amazon, Meta, Mistral, and AI21 through a unified platform.
-
Go to your SAP BTP Cockpit, navigate to your SAP AI Core service instance, and create a service key.
The service key is a JSON object containing
clientid,clientsecret,url, andserviceurls.AI_API_URL. You can find your AI Core instance under Services > Instances and Subscriptions in the BTP Cockpit. -
Run the
/connectcommand and search for SAP AI Core./connect -
Enter your service key JSON.
┌ Service key │ │ └ enterOr set the
AICORE_SERVICE_KEYenvironment variable:AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' codevOr add it to your bash profile:
~/.bash_profile export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' -
Optionally set deployment ID and resource group:
AICORE_DEPLOYMENT_ID=your-deployment-id AICORE_RESOURCE_GROUP=your-resource-group codevThese settings are optional and should be configured according to your SAP AI Core setup.
-
Run the
/modelscommand to select from 40+ available models./models
STACKIT
STACKIT AI Model Serving provides fully managed sovereign hosting environment for AI models, focusing on LLMs like Llama, Mistral, and Qwen, with maximum data sovereignty on European infrastructure.
-
Head over to STACKIT Portal, navigate to AI Model Serving, and create an auth token for your project.
You need a STACKIT customer account, user account, and project before creating auth tokens.
-
Run the
/connectcommand and search for STACKIT./connect -
Enter your STACKIT AI Model Serving auth token.
┌ API key │ │ └ enter -
Run the
/modelscommand to select from available models like Qwen3-VL 235B or Llama 3.3 70B./models
OVHcloud AI Endpoints
-
Head over to the OVHcloud panel. Navigate to the
Public Cloudsection,AI & Machine Learning>AI Endpointsand inAPI Keystab, click Create a new API key. -
Run the
/connectcommand and search for OVHcloud AI Endpoints./connect -
Enter your OVHcloud AI Endpoints API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like gpt-oss-120b./models
Scaleway
To use Scaleway Generative APIs with CoDev Code:
-
Head over to the Scaleway Console IAM settings to generate a new API key.
-
Run the
/connectcommand and search for Scaleway./connect -
Enter your Scaleway API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like devstral-2-123b-instruct-2512 or gpt-oss-120b./models
Snowflake Cortex
Snowflake Cortex gives you access to frontier models (Claude, OpenAI GPT-5, and more) via an OpenAI-compatible API. All inference runs within the Snowflake perimeter and is billed in Snowflake credits. For per-model rates, see the Snowflake Service Consumption Table.
Don't have a Snowflake account? Sign up for a free trial.
CoDev Code's core workflow for coding, editing files, and running commands relies on tool calling. Only the Claude and OpenAI families within Snowflake Cortex support this. The provider is limited to those families to support the core workflow.
CoDev Code supports two authentication methods:
- Browser OAuth (Recommended) — sign in with your IdP/SSO; no secrets to manage, tokens refresh automatically.
- Manual bearer token — paste a PAT or JWT from the Snowflake console.
Browser OAuth (Recommended)
-
Run the
/connectcommand and search for Snowflake Cortex./connect -
Select Login with Snowflake (External Browser).
┌ Select auth method │ │ Login with Snowflake (External Browser) │ Paste PAT or bearer token manually └ -
Enter your account identifier when prompted, for example
myorg-myaccountorxy12345.us-east-1.┌ Snowflake Account Identifier │ │ └ enter -
Optionally enter a Snowflake role to scope the session (e.g.
SYSADMIN). Leave blank to use your default role. -
Complete sign-in in the browser that opens. CoDev Code captures the OAuth callback automatically and stores the token — no copy/paste needed.
-
Run the
/modelscommand to select a model./models
Browser OAuth uses Snowflake's built-in SNOWFLAKE$LOCAL_APPLICATION security integration (docs), which is rolling out to all accounts. To check availability in your account:
SHOW SECURITY INTEGRATIONS LIKE 'SNOWFLAKE$LOCAL_APPLICATION';If the result is empty, use the Manual bearer token method below while the integration rolls out to your account.
Manual bearer token
If you prefer to paste a token directly, or if SNOWFLAKE$LOCAL_APPLICATION is not yet available in your account:
-
Generate a Programmatic Access Token (PAT) in your Snowflake account.
-
Run the
/connectcommand, search for Snowflake Cortex, and select Paste PAT or bearer token manually. -
Enter your account identifier when prompted.
-
Paste your PAT.
-
Run the
/modelscommand to select a model./models
Environment variable
For CI or headless environments, set a PAT or JWT before starting CoDev Code:
export SNOWFLAKE_ACCOUNT=myorg-myaccount
export SNOWFLAKE_CORTEX_TOKEN=your-pat-or-jwtSNOWFLAKE_CORTEX_TOKEN accepts a PAT or JWT only — the browser OAuth flow is available via /connect only and cannot be configured through an environment variable. SNOWFLAKE_CORTEX_PAT is still supported for backward compatibility.
The model catalog is provided automatically. A minimal codev.json is all that's needed:
{
"model": "snowflake-cortex/claude-sonnet-4-6",
"small_model": "snowflake-cortex/claude-haiku-4-5"
}Together AI
-
Head over to the Together AI console, create an account, and click Add Key.
-
Run the
/connectcommand and search for Together AI./connect -
Enter your Together AI API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Kimi K2 Instruct./models
Venice AI
-
Head over to the Venice AI console, create an account, and generate an API key.
-
Run the
/connectcommand and search for Venice AI./connect -
Enter your Venice AI API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Llama 3.3 70B./models
Vercel AI Gateway
Vercel AI Gateway lets you access models from OpenAI, Anthropic, Google, xAI, and more through a unified endpoint. Models are offered at list price with no markup.
-
Head over to the Vercel dashboard, navigate to the AI Gateway tab, and click API keys to create a new API key.
-
Run the
/connectcommand and search for Vercel AI Gateway./connect -
Enter your Vercel AI Gateway API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model./models
You can also customize models through your CoDev Code config. Here's an example of specifying provider routing order.
{
"provider": {
"vercel": {
"models": {
"anthropic/claude-sonnet-4": {
"options": {
"order": ["anthropic", "vertex"]
}
}
}
}
}
}Some useful routing options:
| Option | Description |
|---|---|
order | Provider sequence to try |
only | Restrict to specific providers |
zeroDataRetention | Only use providers with zero data retention policies |
xAI
Three ways to authenticate: a SuperGrok subscription via browser OAuth, the same SuperGrok subscription via a headless device-code flow (for VPS / SSH / Docker), or a pay-as-you-go API key from the xAI console.
Option A — SuperGrok OAuth (browser login)
-
Run the
/connectcommand and search for xAI./connect -
Select xAI Grok OAuth (SuperGrok Subscription). CoDev Code opens xAI's consent screen in your browser and waits for the callback on
http://127.0.0.1:56121/callback. -
Run the
/modelscommand to select a Grok model./models
CoDev Code refreshes the OAuth access token automatically. Any Grok or X Premium plan that includes Grok API access works; you do not need a separate XAI_API_KEY.
Option B — SuperGrok device-code (headless / remote server / VPS)
Use this when CoDev Code is running somewhere a browser can't reach the loopback redirect: a VPS, a remote dev box over SSH, inside Docker, in CI, etc. No callback port is opened on the host running CoDev Code — instead xAI hands the CLI a short code that you type into a browser on any other device (laptop, phone, …).
-
Run the
/connectcommand on the remote host and search for xAI./connect -
Select xAI Grok OAuth (Headless / Remote / VPS). CoDev Code prints a verification URL and a short user code.
Open https://x.ai/device on any device and enter code: ABCD-1234 -
Open the URL on a device that has a browser (your laptop or phone), enter the code, and approve the consent screen. CoDev Code polls xAI's token endpoint and stores the resulting OAuth tokens once you approve. Token refresh works the same as Option A.
Option C — API key
-
Head over to the xAI console, create an account, and generate an API key.
-
Run the
/connectcommand and search for xAI./connect -
Select Manually enter API Key and paste your xAI API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like Grok Beta./models
Z.AI
-
Head over to the Z.AI API console, create an account, and click Create a new API key.
-
Run the
/connectcommand and search for Z.AI./connectIf you are subscribed to the GLM Coding Plan, select Z.AI Coding Plan.
-
Enter your Z.AI API key.
┌ API key │ │ └ enter -
Run the
/modelscommand to select a model like GLM-4.7./models
ZenMux
-
Head over to the ZenMux dashboard, click Create API Key, and copy the key.
-
Run the
/connectcommand and search for ZenMux./connect -
Enter the API key for the provider.
┌ API key │ │ └ enter -
Many ZenMux models are preloaded by default, run the
/modelscommand to select the one you want./modelsYou can also add additional models through your CoDev Code config.
codev.json { "provider": { "zenmux": { "models": { "somecoolnewmodel": {} } } } }
Custom provider
To add any OpenAI-compatible provider that's not listed in the /connect command:
You can use any OpenAI-compatible provider with CoDev Code. Most modern AI providers offer OpenAI-compatible APIs.
-
Run the
/connectcommand and scroll down to Other.$ /connect ┌ Add credential │ ◆ Select provider │ ... │ ● Other └ -
Enter a unique ID for the provider.
$ /connect ┌ Add credential │ ◇ Enter provider id │ myprovider └Choose a memorable ID, you'll use this in your config file.
-
Enter your API key for the provider.
$ /connect ┌ Add credential │ ▲ This only stores a credential for myprovider - you will need to configure it in codev.json, check the docs for examples. │ ◇ Enter your API key │ sk-... └ -
Create or update your
codev.jsonfile in your project directory:codev.json { "provider": { "myprovider": { "npm": "@ai-sdk/openai-compatible", "name": "My AI ProviderDisplay Name", "options": { "baseURL": "https://api.myprovider.com/v1" }, "models": { "my-model-name": { "name": "My Model Display Name" } } } } }Here are the configuration options:
- npm: AI SDK package to use,
@ai-sdk/openai-compatiblefor OpenAI-compatible providers (for/v1/chat/completions). If your provider/model uses/v1/responses, use@ai-sdk/openai. - name: Display name in UI.
- models: Available models.
- options.baseURL: API endpoint URL.
- options.apiKey: Optionally set the API key, if not using auth.
- options.headers: Optionally set custom headers.
More on the advanced options in the example below.
- npm: AI SDK package to use,
-
Run the
/modelscommand and your custom provider and models will appear in the selection list.
Example
Here's an example setting the apiKey, headers, and model limit options.
{
"provider": {
"myprovider": {
"npm": "@ai-sdk/openai-compatible",
"name": "My AI ProviderDisplay Name",
"options": {
"baseURL": "https://api.myprovider.com/v1",
"apiKey": "{env:ANTHROPIC_API_KEY}",
"headers": {
"Authorization": "Bearer custom-token"
}
},
"models": {
"my-model-name": {
"name": "My Model Display Name",
"limit": {
"context": 200000,
"output": 65536
}
}
}
}
}
}Configuration details:
- apiKey: Set using
envvariable syntax, learn more. - headers: Custom headers sent with each request.
- limit.context: Maximum input tokens the model accepts.
- limit.output: Maximum tokens the model can generate.
The limit fields allow CoDev Code to understand how much context you have left. Standard providers pull these from models.dev automatically.
Troubleshooting
If you are having trouble with configuring a provider, check the following:
-
Check the auth setup: Run
codev auth listto see if the credentials for the provider are added to your config.This doesn't apply to providers like Amazon Bedrock, that rely on environment variables for their auth.
-
For custom providers, check the CoDev Code config and:
- Make sure the provider ID used in the
/connectcommand matches the ID in your CoDev Code config. - The right npm package is used for the provider. For example, use
@ai-sdk/cerebrasfor Cerebras. And for all other OpenAI-compatible providers, use@ai-sdk/openai-compatible(for/v1/chat/completions); if a model uses/v1/responses, use@ai-sdk/openai. For mixed setups under one provider, you can override per model viaprovider.npm. - Check correct API endpoint is used in the
options.baseURLfield.
- Make sure the provider ID used in the