IDE Provider Config

Use any AI provider with Claude Code extension

Configure the official Claude Code VS Code extension (and compatible forks) to route requests through alternative providers like Antigravity, GLM, Kimi, or MiniMax.

This config applies to the Claude Code extension chat window only — not the built-in AI chat of Cursor, Windsurf, or other AI coding IDEs.

Supported IDEs

Any IDE based on VS Code that supports the official Claude Code extension:

VS Code
Official
cursor icon
Cursor
VS Code fork
windsurf icon
Windsurf
VS Code fork
google icon
Google Antigravity
VS Code fork

How It Works

The Claude Code extension reads environment variables to determine where to send API requests. By overriding these variables, you can redirect traffic to any Anthropic-compatible API proxy:

1
ANTHROPIC_BASE_URL — API endpoint URL of the provider
2
ANTHROPIC_AUTH_TOKEN — Your API key or auth token
3
ANTHROPIC_MODEL — Default model to use
4
ANTHROPIC_DEFAULT_*_MODEL — Map Opus/Sonnet/Haiku tiers to provider models

Setup Steps

Step 1: Open VS Code Settings (JSON) — Open the command palette and search for user settings JSON:
Cmd/Ctrl + Shift + P → "Preferences: Open User Settings (JSON)"
Step 2: Add Environment Variables — Below is an example config for ONE provider (AGY). See the "Provider Configurations" section for all available providers.
"claudeCode.environmentVariables": [
  {"name": "MAX_THINKING_TOKENS", "value": "32000"},

  // Example: AGY via CCS (CLIProxy)
  // See "Provider Configurations" section below for all providers
  {"name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:8317/api/provider/agy"},
  {"name": "ANTHROPIC_AUTH_TOKEN", "value": "ccs-internal-managed"},
  {"name": "ANTHROPIC_MODEL", "value": "gemini-claude-opus-4-6-thinking"},
  {"name": "ANTHROPIC_DEFAULT_OPUS_MODEL", "value": "gemini-claude-opus-4-6-thinking"},
  {"name": "ANTHROPIC_DEFAULT_SONNET_MODEL", "value": "gemini-claude-opus-4-6-thinking"},
  {"name": "ANTHROPIC_DEFAULT_HAIKU_MODEL", "value": "gemini-claude-sonnet-4-5"}
]
Step 3: Restart Claude Code — After saving settings.json, restart the Claude Code extension or reload the VS Code window for changes to take effect.

Provider Configurations

Copy the config block for your preferred provider into the environmentVariables array. Only activate ONE provider at a time.

You can configure similarly for other providers (e.g. Codex, Kiro, ...). CLIProxy providers (like AGY) use the CCS local proxy — refer to AGY config as template. APIProxy providers (like GLM, Kimi) connect directly to the API — refer to GLM/Kimi config as template.

Default: Claude Subscription

By default, Claude Code will use your Claude subscription (already OAuth with claude.ai). If you have configured the providers below and want to switch back to Claude sub, remove (or comment out) all the configs set above.

Important: Google Account Ban Risk

Google is aggressively banning accounts that use Antigravity/Gemini OAuth with third-party tools (OpenCode, CLIProxy, CCS, ProxyPal, AntigravityManager, etc.). Authenticating your Google account with these tools may violate ToS and result in losing access to all Google services. Proceed with caution - you are responsible for any consequences.

gemini icon

Antigravity (AGY) via CCS

CLIProxy ⚠️ High Risk

Requires CCS running locally. Auth managed automatically.

// Antigravity (AGY) via CCS (CLIProxy)
{
  "name": "ANTHROPIC_BASE_URL",
  "value": "http://127.0.0.1:8317/api/provider/agy"
},
{
  "name": "ANTHROPIC_AUTH_TOKEN",
  "value": "ccs-internal-managed"
},
{
  "name": "ANTHROPIC_MODEL",
  "value": "gemini-claude-opus-4-6-thinking"
},
{
  "name": "ANTHROPIC_DEFAULT_OPUS_MODEL",
  "value": "gemini-claude-opus-4-6-thinking"
},
{
  "name": "ANTHROPIC_DEFAULT_SONNET_MODEL",
  "value": "gemini-claude-opus-4-6-thinking"
},
{
  "name": "ANTHROPIC_DEFAULT_HAIKU_MODEL",
  "value": "gemini-claude-sonnet-4-5"
}
zai icon

GLM (z.ai)

APIProxy

Get API key from z.ai/manage-apikey

// GLM (z.ai) API Proxy
{
  "name": "ANTHROPIC_BASE_URL",
  "value": "https://api.z.ai/api/anthropic"
},
{
  "name": "ANTHROPIC_AUTH_TOKEN",
  "value": "<your_glm_api_key>"
},
{
  "name": "ANTHROPIC_MODEL",
  "value": "glm-5"
}
kimi icon

Kimi (Moonshot AI)

APIProxy

Get API key from kimi.com/code/console

// Kimi (Moonshot AI) API Proxy
{
  "name": "ANTHROPIC_BASE_URL",
  "value": "https://api.kimi.com/coding/"
},
{
  "name": "ANTHROPIC_AUTH_TOKEN",
  "value": "<your_kimi_api_key>"
},
{
  "name": "ANTHROPIC_MODEL",
  "value": "kimi-k2.5"
}
minimax icon

MiniMax

APIProxy

Get API key from platform.minimaxi.com

// MiniMax API Proxy
{
  "name": "ANTHROPIC_BASE_URL",
  "value": "https://api.minimax.io/anthropic"
},
{
  "name": "ANTHROPIC_AUTH_TOKEN",
  "value": "<your_minimax_api_key>"
},
{
  "name": "ANTHROPIC_MODEL",
  "value": "MiniMax-M2.5"
}
Claude

Model Selection

Choose between Claude Opus model versions. Newer versions may offer improvements but can consume more tokens for the same tasks.

For Claude Subscription Users Only

This config is only for users with an official Claude subscription (via claude.ai). Add this to your IDE settings.json file (same location as the provider configs above).

Token Usage Notice

Opus 4.6 (latest) may consume more tokens than Opus 4.5 for the same tasks. If you want to reduce token usage, consider switching back to Opus 4.5.

Claude

Claude Opus 4.6

Latest Default

Latest model with maximum capability. May use more tokens than 4.5.

// No config needed - comment out or remove "claudeCode.selectedModel" to use latest model
// "claudeCode.selectedModel": "claude-opus-4-6"
Claude

Claude Opus 4.5

Token Efficient

Previous version with lower token consumption for similar quality.

"claudeCode.selectedModel": "claude-opus-4-5-20251101"

Pro Tips

One Provider at a Time
Only activate ONE provider block at a time. Comment out the rest to avoid conflicts.
Auto Auth with CCS
CLIProxy providers (AGY, Codex, Kiro...) handle auth automatically via CCS — no API keys needed.
Thinking Budget
Set MAX_THINKING_TOKENS to control reasoning depth. Higher values = more thorough but slower.
Model Config
ANTHROPIC_MODEL is required. ANTHROPIC_DEFAULT_*_MODEL is optional — only set them if you want different models per tier (Opus/Sonnet/Haiku).

Advanced Config

Additional settings for power users. Use with caution as these can affect security and behavior.

Security Warning

This config bypasses permission prompts. Only use if you fully trust the AI and understand the risks. Your code and system could be affected.

Bypass Permissions

Skip all permission prompts and allow Claude to execute commands automatically. Add to your IDE settings.json.

"claudeCode.allowDangerouslySkipPermissions": true,
"claudeCode.initialPermissionMode": "bypassPermissions"

Want to switch providers on-the-fly from the terminal? Check out CCS.

Learn about CCS