VS Code Extensions
Claude API for VS Code — configure Continue, Cline, and Roo Code extensions with your Claude API key.
Continue
Example config.yaml model entry (uses the latest flagship Claude Opus 4.6):
name: Claude API
version: 1.0.0
schema: v1
models:
- name: Claude Opus 4.6
provider: anthropic
model: claude-opus-4.6
apiBase: https://api2.claudestore.store/v1
apiKey: sk-cs2-YOUR_KEY
roles:
- chat
- editCline
Use OpenAI Compatible provider:
- Custom BaseURL:
https://api2.claudestore.store/v1 - API Key: from the dashboard
Roo Code
Use OpenAI Compatible provider:
- Custom BaseURL:
https://api2.claudestore.store/v1 - API Key: from the dashboard
Kilo Code
Use OpenAI Compatible provider:
- Custom BaseURL:
https://api2.claudestore.store/v1 - API Key: from the dashboard
Windows setup (all extensions)
On Windows, all four extensions above (Continue, Cline, Roo Code, Kilo Code) work the same way as on macOS/Linux, but environment variables and config paths differ. Follow the steps below once — it covers every extension.
1. Prerequisites
- VS Code 1.80+ (latest recommended)
- Node.js LTS — required only if you use Continue's CLI/MCP features. Verify with
node -vin PowerShell. - Your ClaudeStore API key (
sk-cs2-...) from the dashboard.
2. Set environment variables (PowerShell)
Open PowerShell (not cmd.exe) and run. setx writes to the user environment permanently — values become available in every new terminal and process.
setx ANTHROPIC_BASE_URL "https://api2.claudestore.store"
setx ANTHROPIC_AUTH_TOKEN "sk-cs2-YOUR_KEY"
setx ANTHROPIC_API_KEY "sk-cs2-YOUR_KEY"
setx OPENAI_BASE_URL "https://api2.claudestore.store/v1"
setx OPENAI_API_KEY "sk-cs2-YOUR_KEY"GUI alternative: press Win+R → type sysdm.cpl → Advanced → Environment Variables → add the same five variables under "User variables".
3. Fully restart VS Code
VS Code caches environment variables at launch. After setx, close every VS Code window, then open Task Manager (Ctrl+Shift+Esc) and end any remaining Code.exe processes before reopening. Otherwise the extensions will still see old values.
4. Per-extension Windows notes
- Continue — config lives at
%USERPROFILE%\.continue\config.yaml. Open it withnotepad %USERPROFILE%\.continue\config.yamlin PowerShell. - Cline / Roo Code / Kilo Code — open the extension's settings panel, choose OpenAI Compatible, paste Base URL
https://api2.claudestore.store/v1and your API key. The env vars from step 2 are used as defaults for new tasks but the UI values always win.
5. Using WSL / Remote-WSL?
Windows env vars do not propagate into the WSL distro. Add the same variables to ~/.bashrc (or ~/.zshrc) inside WSL:
export ANTHROPIC_BASE_URL="https://api2.claudestore.store"
export ANTHROPIC_AUTH_TOKEN="sk-cs2-YOUR_KEY"
export ANTHROPIC_API_KEY="sk-cs2-YOUR_KEY"
export OPENAI_BASE_URL="https://api2.claudestore.store/v1"
export OPENAI_API_KEY="sk-cs2-YOUR_KEY"6. Troubleshooting
setxnever affects the current terminal — open a new one.- In PowerShell always wrap values in double quotes, especially URLs with
/. - Behind a corporate proxy: also set
setx HTTPS_PROXY "http://proxy.company:8080". - Antivirus / firewall blocking requests — whitelist the host
api2.claudestore.store. - Wrong model is being called — see Common Claude Code configuration mistakes.
Wrong model is being used?
Check ANTHROPIC_MODEL conflicts
model and an ANTHROPIC_MODEL environment override.