Skip to main content

Connecting in Claude Code for VS Code

  1. Install the Claude Code for VS Code extension from the extension marketplace

    Claude Code for VS Code: installing the extension

  2. In the extension settings, enable the Disable Login Prompt option (true)

    Claude Code for VS Code: enabling Disable Login Prompt

  3. Open or create the file ~/.claude/settings.json, where ~ is your home directory

  4. Fill it with the contents below

    ~/.claude/settings.json
    {
    "env": {
    "ANTHROPIC_BASE_URL": "https://api.explyt.ai/openai/api",
    "ANTHROPIC_API_KEY": "<YOUR_API_KEY>",
    "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": 1
    }
    }
    • ANTHROPIC_BASE_URL — the OpenAI-compatible URL https://api.explyt.ai/openai/api; it is the same for all users
    • Replace <YOUR_API_KEY> with the API key from your personal account. The key is in the Connect to Explyt block of your personal account, the Copy key button. Details: where to get the URL and key
    • Optional: add the line "CLAUDE_CODE_AUTO_COMPACT_WINDOW": X to the env block — it enables automatic compaction when the context fills up to X tokens. Replace X with the value you need
  5. Start Claude Code in VS Code. If the extension asks whether to use this API key, confirm

    • If you see the error API Error: 401 Unknown API key: ..., reissue the key in your personal account (the Reissue link in the Connect to Explyt block) and paste the new one into settings.json
  6. To choose a model, use /model. Explyt supports only the models marked From gateway

    Claude Code for VS Code: choosing a model

    • auto – automatic model selection: high quality with maximum availability
    • Anthropic/opus-5 – Anthropic model with high-quality answers
    • Anthropic/sonnet-5 – balance of quality and speed among Anthropic models
    • OpenAI/gpt-5.6-sol – general-purpose OpenAI model

    Full list of models: https://api.explyt.ai/openai/api/models

If you run into problems while connecting, check that Disable Login Prompt is enabled, then try typing /logout in the chat and start over.

Requests from Claude Code spend Explyt subscription minutes the same way as requests from the plugin. The balance is shown in your personal account.

For errors, see Error messages.