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:
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:
Setup Steps
Cmd/Ctrl + Shift + P → "Preferences: Open User Settings (JSON)" "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"}
] 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.
Antigravity (AGY) via CCS
CLIProxy ⚠️ High RiskRequires 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"
} GLM (z.ai)
APIProxyGet 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 (Moonshot AI)
APIProxyGet 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
APIProxyGet 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"
} 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 Opus 4.6
Latest DefaultLatest 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 Opus 4.5
Token EfficientPrevious version with lower token consumption for similar quality.
"claudeCode.selectedModel": "claude-opus-4-5-20251101"
Pro Tips
MAX_THINKING_TOKENS to control reasoning depth. Higher values = more thorough but slower.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