Skip to main content
Connecting LLMEasy to Claude Code only requires ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. Do not add /v1 to the Claude Code Base URL.

Prerequisites

Clear these environment variables before setup so they do not override your config file:
unset ANTHROPIC_AUTH_TOKEN
unset ANTHROPIC_BASE_URL

Setup

You can run the LLMEasy automatic setup script directly. It only writes the LLMEasy provider configuration and does not replace the installation prerequisites above. The script requires Node.js. If you do not pass an API Key or model explicitly, the script prompts for them when the tool supports interactive input.Follow the step for your operating system. You only need one of them.
1

If you use macOS / Linux

curl -fsSL https://www.llmeasy.ru/install-claudecode-provider.sh | bash
2

If you use Windows

iwr https://www.llmeasy.ru/install-claudecode-provider.ps1 -OutFile "$env:TEMP\install-claudecode-provider.ps1"; powershell -ExecutionPolicy Bypass -File "$env:TEMP\install-claudecode-provider.ps1"

Use the VS Code extension

If you use the Claude Code VS Code extension:
1

Install the extension

Search for Claude Code in the VS Code marketplace and install it.
2

Open settings

Open the extension settings UI.
3

Set environment variables

If you use the Claude Key group, click Edit in settings.json and update claudeCode.environmentVariables:
{
  "claudeCode.environmentVariables": [
    {
      "name": "ANTHROPIC_BASE_URL",
      "value": "https://www.llmeasy.ru"
    },
    {
      "name": "ANTHROPIC_AUTH_TOKEN",
      "value": "YOUR_API_KEY"
    },
    {
      "name": "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
      "value": "1"
    },
    {
      "name": "API_TIMEOUT_MS",
      "value": "3000000"
    }
  ]
}
4

Add model mappings for the GPT Key group

If your API Key belongs to the GPT Key group, use:
{
  "claudeCode.environmentVariables": [
    {
      "name": "ANTHROPIC_BASE_URL",
      "value": "https://www.llmeasy.ru"
    },
    {
      "name": "ANTHROPIC_AUTH_TOKEN",
      "value": "YOUR_API_KEY"
    },
    {
      "name": "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
      "value": "1"
    },
    {
      "name": "ANTHROPIC_DEFAULT_HAIKU_MODEL",
      "value": "gpt-5.4"
    },
    {
      "name": "ANTHROPIC_DEFAULT_SONNET_MODEL",
      "value": "gpt-5.4"
    },
    {
      "name": "ANTHROPIC_DEFAULT_OPUS_MODEL",
      "value": "gpt-5.4"
    },
    {
      "name": "API_TIMEOUT_MS",
      "value": "3000000"
    }
  ]
}
gpt-5.4 is only an example GPT Key group model ID. Copy the current model ID from the LLMEasy model plaza. When the extension uses the Opus tier by default, it will resolve through ANTHROPIC_DEFAULT_OPUS_MODEL.
5

Restart the VS Code extension

After editing settings.json, restart VS Code or reload the Claude Code extension so the updated settings take effect.

Verify the setup

Start Claude Code and send a message. A normal reply means the connection is working. If authentication fails, check:
  1. ANTHROPIC_AUTH_TOKEN contains the correct LLMEasy API Key
  2. ANTHROPIC_BASE_URL is https://www.llmeasy.ru
  3. The Claude Key group does not set model variables, while the GPT Key group includes the ANTHROPIC_DEFAULT_*_MODEL mappings
  4. No old environment variables are overriding your config

FAQ

This usually means Claude Code cannot reach the LLMEasy API. It is normally a network, proxy, or firewall issue, not an API Key or model mapping problem.Check that your local network is working, then confirm your system proxy, company network, router, or security software is not blocking https://www.llmeasy.ru. If you use a firewall, allow Claude Code to access that address.