VS Code
The Claude Code VS Code extension reads env from a settings.json next to your home directory. Drop in API-AI's endpoint + key and restart.
Install
Search for “Claude Code” in the VS Code Marketplace (publisher anthropic.claude-code) and install it. The extension ships its own runtime — no separate CLI install needed for the editor surface.
Configure
Create a settings.json in the OS-specific path below. The extension reads this file on startup and uses the env block for every outbound request.
Path: ~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api-ai.app",
"ANTHROPIC_API_KEY": "mdf-your-key",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
}
}Create the file if it doesn’t exist, then fully restart VS Code so the new env block is loaded.
Verify
Open the Claude Code panel (⌘⇧P / Ctrl+Shift+P → Claude Code: Focus), type ping, send. A response within a few seconds confirms the endpoint override is live.