How to Use Claude API in VS Code — Extensions & Setup
Set up Claude API in Visual Studio Code using popular extensions like Continue, Cline, and Roo Code. Step-by-step guide with ClaudeStore API key.
Claude in VS Code
Visual Studio Code supports Claude through several AI extensions. With a ClaudeStore API key, you can connect any of them to Claude Sonnet, Opus, or Haiku — getting AI-powered coding assistance directly in your editor.
Best VS Code Extensions for Claude
Continue
Continue is an open-source AI code assistant that supports Claude natively. It offers chat, inline editing, and autocomplete.
Setup: Install from VS Code marketplace → Settings → Add provider → Select "Anthropic" → Enter your ClaudeStore base URL and API key.
https://api2.claudestore.store in the Continue config to use ClaudeStore.Cline
Cline is an autonomous coding agent that can create files, run commands, and build entire features. It works exceptionally well with Claude Sonnet.
Setup: Install Cline → Open settings → Select "Anthropic" as provider → Enter API key and set base URL to https://api2.claudestore.store.
Roo Code
Roo Code is a fork of Cline with additional features like custom modes and MCP support. Configuration is identical to Cline.
Which Model to Use
- Claude Sonnet 4.6 — recommended for most coding tasks. Best price/quality ratio.
- Claude Opus 4.6 — use for complex refactors, architecture, and multi-file changes.
- Claude Haiku 4.5 — use for autocomplete and simple inline suggestions to save costs.
Common Configuration
Regardless of which extension you use, the configuration is similar:
- Base URL:
https://api2.claudestore.store - API Key: Your ClaudeStore API key (starts with
sk-) - Model:
claude-sonnet-4.6(or any supported model)
For the full list of models and IDs, see our Models page.
Tips
- Set per-key credit limits in your ClaudeStore dashboard to control spending
- Use the OpenAI-compatible endpoint if your extension expects an OpenAI-format API
- Check our VS Code Extensions guide for detailed configuration walkthroughs