VS Code extension
Connect the Claude Code extension in VS Code (and editors such as Cursor) to CodaAPI. It works without the CLI; this page shows where the address and key go.
The Claude Code extension for VS Code gives you a graphical Claude Code chat panel inside the editor, and it can also be installed in VS Code-based editors such as Cursor. Like the Claude Code CLI, it calls models through the Anthropic Messages endpoint (/v1/messages), so all you need to do is point the address and key at CodaAPI.
Not tested: this page follows the official Claude Code documentation (code.claude.com, checked on November 30, 2026) and the settings of extension version 2.1.332, and hasn't been tested on CodaAPI yet.
It works without the CLI. The extension bundles its own copy of Claude Code, which the chat panel uses (the extension's version number is the Claude Code version it bundles). You only need to install the CLI separately if you want to run the claude command in the editor's terminal. The extension requires VS Code 1.94.0 or later.
What to fill in
| Item | Value |
|---|---|
| Provider type | Nothing to choose. The extension only uses the Anthropic format; the address and key are changed through environment variables |
| Address | ANTHROPIC_BASE_URL = https://codaapi.com, without /v1 |
| Key | ANTHROPIC_AUTH_TOKEN = the sk-… you copied from API Keys in the console |
| Model | Optional: ANTHROPIC_DEFAULT_SONNET_MODEL and the other two, for example claude-sonnet-5-5 |
The variables mean the same as on the Claude Code page.
Setup
-
Install the extension: in VS Code, press
Ctrl+Shift+X(Cmd+Shift+Xon macOS) to open the Extensions view, search for "Claude Code" and install it, checking that the publisher is Anthropic. In Cursor and similar editors, search the Extensions view the same way, or install it from Open VSX. -
Set the address and key using either of the two methods below (method 1 is recommended):
-
Method 1: in
~/.claude/settings.json(on Windows,%USERPROFILE%\.claude\settings.json). The extension and the CLI share this file, and the format is exactly the same as method 2 on the Claude Code page. If you already set it up as on that page, skip this step.{ "env": { "ANTHROPIC_BASE_URL": "https://codaapi.com", "ANTHROPIC_AUTH_TOKEN": "sk-your-key", "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5-5", "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5" } } -
Method 2: in the VS Code setting
claudeCode.environmentVariables. It applies to the extension only. The setting is a list whose items each have anameand avaluefield, and you edit it in your VS Code usersettings.json(run Preferences: Open User Settings (JSON) from the Command Palette):{ "claudeCode.environmentVariables": [ { "name": "ANTHROPIC_BASE_URL", "value": "https://codaapi.com" }, { "name": "ANTHROPIC_AUTH_TOKEN", "value": "sk-your-key" } ] }The official documentation recommends putting shared configuration in the file from method 1. Use only one of the two methods so the values can't disagree.
-
-
Turn off the extension's sign-in prompt: search VS Code settings for
claudeCode.disableLoginPromptand check Disable Login Prompt. Otherwise the extension shows the Anthropic account sign-in screen the first time you open it. -
Run Developer: Reload Window from the Command Palette, then open Claude Code: click the Spark icon at the top right of the editor (shown only when a file is open), or click Claude Code in the status bar at the bottom right of the window.
-
Send a message. A normal reply means it works. The matching request shows up in the console's Usage Logs.
Without a claude.ai sign-in, features in the extension that need a claude.ai account (such as plan usage bars and voice dictation) aren't available; check usage and charges in the console.
Other coding assistant extensions
- Codex extension (
openai.chatgpt): reads the same~/.codex/config.tomlas the Codex CLI; see Codex. - Cline: an open-source coding assistant for VS Code that has its own provider settings; see Cline.
- Continue: configured in
~/.continue/config.yaml; see More tools. - For Cursor's built-in model settings, see Cursor.
Which models to use
- Use Claude models only, for example
claude-sonnet-5-5,claude-opus-5-5andclaude-haiku-5-5. Anthropic doesn't support pointing Claude Code at non-Claude models through a gateway. - The model must be in your key's group. The
Claude Codegroup is meant for coding tools like this one. For the models in each group, see Groups; for prices, see Model Square.
FAQ
The Anthropic sign-in screen still appears
Check that Disable Login Prompt is checked and that both the address and key variables are correct, then run Developer: Reload Window. With method 1, check that settings.json is valid JSON (no comments and no trailing commas).
It returns 401
The key is mistyped or incomplete, or it has been disabled or has expired. Check it under API Keys in the console. For each status code, see Error codes.
It returns 404
Set ANTHROPIC_BASE_URL to https://codaapi.com without /v1; the extension appends /v1/messages itself. If the error message says the model isn't configured in your groups, the model name is misspelled or the model isn't in your key's group.
Running claude in the terminal says the command isn't found
The extension doesn't add claude to your PATH. To use it in a terminal, install the CLI as described on the Claude Code page. The CLI reads the same ~/.claude/settings.json, so no extra setup is needed.