In this categoryVS Code Setup ยท 25
- How to Set Up GitHub Copilot in VS CodeStart
- How to Use Copilot Chat and Inline Chat in VS Code
- How to Install and Manage Extensions in VS Code
- How to Install the Continue Extension in VS Code
- How to Install Cline, the Autonomous Coding Agent, in VS Code
- How to Configure Continue with an API Model
- How to Set Up an AI Assistant in VS Code
- How to Run Continue with a Local Model Using Ollama
- How to Run Copilot, Continue, and Cline Together Without Conflicts
- How to Add an MCP Server to Cline
- How to Fix AI Suggestions Not Appearing in VS Code
- How to Install and Trust an AI Extension in VS Code
- How to Install a VS Code Extension from the Command Line
- How to Create a launch.json to Debug a Node.js App in VS Code
- How to Initialize a Git Repository in VS Code
- How to Stage, Commit, and Push Changes from VS Code
- How to Debug a Browser App in VS Code with the Built-in Chrome Debugger
- How to Resolve Git Merge Conflicts in VS Code
- How to Run Build and Dev Commands with tasks.json in VS Code
- How to Add Environment Variables to a VS Code Debug Configuration
How to Configure Continue with an API Model
Add a cloud model such as Claude or GPT to Continue by editing its YAML config and pasting an API key.
Continue does not ship with a model of its own. You point it at one through its config file. This guide adds a cloud model from an API provider, stores the API key safely, and confirms the model answers in the chat panel. The example uses Anthropic's Claude, but the same structure works for other providers.
What you need
- The Continue extension installed
- An API key from a model provider, such as the Anthropic Console
- A small amount of credit on that provider account
- About 7 minutes
Step 1: Get an API key
Sign in to your provider's console and create a new API key. Copy it once; most providers only show the full key at creation time. Keep it out of any file you commit to version control.
Step 2: Open config.yaml
Open the Continue panel, click the gear icon, and edit the config. The file lives at ~/.continue/config.yaml. The models section is a list, where each entry has a provider, a model id, and an apiKey.
Step 3: Add the model entry
Add a block under models with the provider, the exact model id from the provider's docs, and your key. The name field is just the label shown in the model picker. Save the file and Continue reloads the config automatically.
models:
- name: Claude Sonnet
provider: anthropic
model: claude-sonnet-4-5
apiKey: sk-ant-your-key-here
roles:
- chat
- edit
- applyStep 4: Pick the model and test it
Open the Continue chat panel. At the bottom of the input box is a model dropdown; select the name you set. Ask a simple question to confirm the connection works, such as asking it to explain a snippet of your code.
Result
Continue now talks to a cloud model using your API key. If a request fails, the most common causes are a typo in the model id, an empty key, or no credit on the provider account. Fix those and the chat responds normally.
Watch related tutorials
2:14
23:41
10:00
14:00
16:00
1:42:18New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.