Claude Code in VS Code: setup, models, and verification

Install the Claude Code extension in VS Code, point it at AI in IDE with one API key, and verify the first request without an Anthropic subscription.

The whole setup is one extension, one key, and one JSON block. For the complete reference — including proxy, TLS, Remote SSH, and WSL cases — read Claude Code in VS Code. This page is the condensed path.

Setup at a glance

  1. Install the extension. Use VS Code 1.94.0 or later. Install Claude Code from the Extensions view, from the Visual Studio Marketplace, or with Install from VSIX… when the marketplace is blocked. Run Developer: Reload Window if the panel does not appear.
  2. Create the API key. Open API Keys, create a key, and choose the AWSQ or CCMAX channel. Those are the Claude Code channels; a Codex or Gemini key is rejected here.
  3. Write the connection settings. Create or merge ~/.claude/settings.json (macOS/Linux) or C:/Users/<UserName>/.claude/settings.json (Windows):
1
{
2
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
3
  "env": {
4
    "ANTHROPIC_BASE_URL": "https://api.aiinide.com",
5
    "ANTHROPIC_AUTH_TOKEN": "YOUR_DASHBOARD_API_KEY",
6
    "API_TIMEOUT_MS": "600000",
7
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
8
  }
9
}

Keep ANTHROPIC_BASE_URL at the bare host. Claude Code appends /v1/messages; a base URL ending in /v1 produces /v1/v1/messages and a 404. If the file already exists, merge the env object so permission rules and hooks survive.

  1. Skip the Anthropic sign-in prompt. Add "claudeCode.disableLoginPrompt": true to VS Code user settings, or search for "Claude Code login" in Settings.
  2. Verify. Call GET /v1/models with your key and the anthropic-version: 2023-06-01 header. HTTP 200 lists the channel's models; 401 means a missing or invalid key; 400 means the key belongs to another channel. Then open a file, click the Spark icon or ✻ Claude Code, run /status, and send a short prompt. A successful prompt appears in Usage.

Supported models

ModelChannelBest for
claude-opus-5-5 (alias claude-opus-5.5)AWSQ, CCMAXhard refactors, long agent runs
claude-sonnet-5-5 (alias claude-sonnet-5.5)AWSQ, CCMAXeveryday coding, the default choice
claude-haiku-4-5-20251001AWSQ, CCMAXfast edits, cheap verification calls

Leave model out of settings.json to use the extension's picker, or switch during a session with /model. Use an exact ID from GET /v1/models; a mistyped claude-* name can resolve to the configured default Claude model and incur charges at that model's rate. Plans, quota, and current rates are on pricing.

Workflow notes

  • The extension bundles Claude Code. Installing it does not add claude to your PATH; install the standalone CLI only for terminal sessions or claude mcp add.
  • VS Code launched from the Dock or Start menu does not inherit your shell profile. Put connection values in ~/.claude/settings.json, which both the extension and the CLI read.
  • In Remote SSH, WSL, or a dev container, the settings file must exist inside the remote environment. Editing the local file has no effect on remote sessions.
  • An exported ANTHROPIC_API_KEY can take precedence over ANTHROPIC_AUTH_TOKEN. Keep one source of truth.

Troubleshooting essentials

  • API Error: 404 — ANTHROPIC_BASE_URL includes /v1. Use https://api.aiinide.com.
  • API Error: 400 — the key is from another channel, or settings.json is unparsable. Recreate the key with AWSQ or CCMAX and validate the JSON.
  • No Spark icon — open a file first; the icon only appears with an open file, and VS Code must be 1.94.0 or later.
  • Panel silent — run Claude Code: Show Logs from the Command Palette; the extension may have failed to launch its bundled CLI.

FAQ

Do I need an Anthropic subscription?

No. ANTHROPIC_AUTH_TOKEN plus the AI in IDE base URL replaces the claude.ai login, and claudeCode.disableLoginPrompt stops the extension asking for one.

Can I use the same key in Cursor?

Yes. Cursor runs the same extension, so the same settings.json and claudeCode.* settings apply. See Claude Code in Cursor.

Does the extension install the claude CLI?

No. The extension bundles its own CLI but does not put claude on your PATH. Install the standalone CLI only when you need terminal sessions or claude mcp add.

Where do I change the model?

Set model in ~/.claude/settings.json, or use /model in the panel. Both are documented in the full VS Code guide.

Related

AI in IDE

AI-powered coding assistant that transforms your development workflow. Write better code faster with intelligent suggestions and seamless IDE integration.

© 2026 AI in IDE. All rights reserved

This site is an independent third-party service platform and is not an official Anthropic service or an authorized reseller. Claude and other names are registered trademarks of their respective owners. We provide third-party account recharge services and are not affiliated with the companies mentioned above. We provide membership recharge services through compliant channels; actual benefits are subject to the rules and information displayed by the relevant third-party platform.

Claude Code in VS Code: setup, models, and verification | AI in IDE