Back to guides
Installation·October 3, 2026·Updated November 23, 2026·12 min read

Install Claude Code: commands for Windows, macOS, and Linux, an API key without a subscription

You install Claude Code with one command. You usually get stuck afterward: in the wrong Windows window, on the PATH, or on the Node.js version with npm. Then you still need to set up an API key without a subscription.

Install Claude Code with one official command: on macOS, Linux, and WSL with curl -fsSL https://claude.ai/install.sh | bash, on Windows in PowerShell with irm https://claude.ai/install.ps1 | iex (in the Command Prompt, CMD, use the install.cmd line below). Then choose how to pay. You can log in with a Pro, Max, Ultra, Team, Enterprise, or Console account (the free Claude.ai plan does not include Claude Code), or use an API key without a subscription: set ANTHROPIC_BASE_URL (the domain only, without /v1), ANTHROPIC_AUTH_TOKEN, and four model variables, then check with /status whether the key is active. Top up your Kunavo credit starting at $10, with no monthly fee.

Commands and variables checked October 3, 2026 against the official Claude Code installation documentation and the environment variable documentation; prices and payment methods checked November 23, 2026. The Netherlands and Belgium are both on the list of countries supported by Anthropic (checked October 3, 2026), for both Claude.ai and the API. This guide is also available in English: Install Claude Code.

Before you install

ComponentRequirement (official installation documentation, checked on October 3, 2026)
Operating systemmacOS 13.0 or later; Windows 10 1809 or later, or Windows Server 2019 or later; Ubuntu 20.04+; Debian 10+; Alpine Linux 3.19+
HardwareAt least 4 GB of RAM, x64 or ARM64 processor (no 32-bit Windows)
ShellBash, Zsh, PowerShell, or CMD
Network and locationInternet connection, in a country supported by Anthropic (the Netherlands and Belgium are included)
AccountTo log in, you need Pro, Max, Ultra, Team, Enterprise, or Console; the free Claude.ai plan does not include Claude Code. With an API key, you do not need a subscription and do not log in.
Node.jsOnly for the npm route, and then version 22 or later; the native installer does not require it

Installing Claude Code on macOS and Linux

Open Terminal and paste this line:

Terminal
# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash

This is the recommended native installation: one standalone program that updates itself in the background. The claude command is placed in ~/.local/bin. A terminal that was already open does not know about the new PATH, so open a new window before testing. In WSL, use exactly the same line in the WSL terminal.

Installing Claude Code on Windows

On Windows, there are two lines, and which one you need depends only on the window you have open. If the prompt begins with PS C:\Users\Naam>, you are in PowerShell; if it shows only C:\Users\Naam> without PS, it is the Command Prompt (CMD). You do not need to open the window as an administrator: according to the official documentation, this is not necessary.

PowerShell
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex
cmd.exe
:: Windows Opdrachtprompt (CMD)
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

The most common mistake is pasting the line into the wrong window. The CMD line in PowerShell produces The token '&&' is not a valid statement separator; the PowerShell line in CMD produces 'irm' is not recognized as an internal or external command. On Dutch-language Windows, the second message may appear in Dutch, with the same cause. And the macOS line containing | bash in PowerShell produces an error stating that bash is not recognized. In all three cases, use the line that matches your window.

Git for Windows is optional. If it is installed, Claude Code runs commands through the included Git Bash; without Git, it uses PowerShell. If Git is installed but Git Bash cannot be found, set CLAUDE_CODE_GIT_BASH_PATH in the env block of ~/.claude/settings.json to the path to bash.exe; the example path in the documentation is C:\Program Files\Git\bin\bash.exe.

OptionWhat you needSandboxingWhen to choose it
Native WindowsNone; Git for Windows optionalNot supportedProjects and tools running directly on Windows
WSL 2WSL 2 enabledSupportedLinux tools required, or commands in a sandbox
WSL 1WSL 1 enabledNot supportedIf WSL 2 is unavailable

WSL is therefore not a requirement, as some older guides claim, but an option. If you choose WSL, run the macOS/Linux line in the WSL terminal and start claude there as well, not from PowerShell or CMD.

Via Homebrew, WinGet, or npm

That also works, with one important difference: according to the official documentation, Homebrew and WinGet installations do not update themselves. You must update them yourself:

# Homebrew (macOS)
brew install --cask claude-code
brew upgrade claude-code              # bijwerken gebeurt niet vanzelf

# WinGet (Windows)
winget install Anthropic.ClaudeCode
winget upgrade Anthropic.ClaudeCode   # bijwerken gebeurt niet vanzelf

The npm package requires Node.js 22 or later, not Node.js 18 as older guides still state. With an older Node.js version, npm only displays an EBADENGINE warning and the installation continues normally: the package installs the same native program, which does not need Node.js to run. Never use sudo npm install -g: it causes permission problems and is a security risk. Update with @latest, not npm update -g.

Terminal
node -v                                           # moet v22 of hoger zijn
npm install -g @anthropic-ai/claude-code          # nooit met sudo

# later bijwerken: met @latest, niet met npm update -g
npm install -g @anthropic-ai/claude-code@latest

Checking the installation

claude --version   # toont het versienummer, gevolgd door (Claude Code)
claude doctor      # alleen-lezen diagnose van installatie en instellingen, start geen sessie

claude doctor does not start a session; it displays the state of the installation and your settings files. This lets you quickly determine whether a problem is in the installation or the configuration.

If you get command not found: claude, or Windows says that claude is not recognized, the installation directory is not in your PATH. First, open a new terminal window. If that does not help, on macOS and Linux add ~/.local/bin to your PATH via ~/.zshrc or ~/.bashrc. On Windows, the directory is %USERPROFILE%\.local\bin; according to the official troubleshooting guide, check and add it in PowerShell as follows:

PowerShell
# 1. Staat de installatiemap al in je PATH?
$env:PATH -split ';' | Select-String '\.local\\bin'

# 2. Geen uitvoer? Voeg de map toe aan je gebruikers-PATH en open een nieuw venster
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')

# 3. In het nieuwe venster: twee paden betekent twee installaties naast elkaar
where.exe claude

If you install via npm and PowerShell reports npm.ps1 cannot be loaded because running scripts is disabled on this system, PowerShell's execution policy is blocking npm's startup scripts. Use the native installer, start npm.cmd and claude.cmd, or allow local scripts for your own user:

PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

First launch: subscription or API key

On the first launch, choose how Claude Code will be paid for. The two routes are mutually exclusive: if an API key is configured, a saved login remains unused; if you remove the variable, Claude Code falls back to the login without requiring reinstallation.

Route A: log in with a subscriptionRoute B: API key, without a subscription
What you needPro, Max, Ultra, Team, Enterprise, or Console accountA Kunavo key beginning with sk-kn-
How you payPro and Max: fixed monthly fee; Console: per token at AnthropicPer token, from prepaid credit; no monthly fee
Payment methodThrough the website, credit or debit card onlyUSDT or USDC, or a local method in 7 markets; cards being enabled
Remote Control and voice dictationAvailable: both work only with a claude.ai loginNot available
SetupLog in in the browserSix environment variables

Route A: log in with your subscription

Start claude in your project directory and log in through the browser. One pitfall: if ANTHROPIC_API_KEY is already set, Claude Code asks once whether it should use that key. If you decline, it ignores the key thereafter without asking again, making it seem as though the variable is not being read. Re-enable it through /config → Use custom API key.

Route B: without a subscription, using an API key

ANTHROPIC_BASE_URL is a built-in Claude Code variable. According to the official documentation, it overrides the API endpoint to route requests through a proxy or gateway. Pointing Claude Code to an endpoint with the Anthropic Messages API is therefore a supported configuration, without a plug-in or custom version. Steps:

  1. Create a Kunavo account.
  2. Create a key at /app/keys that begins with sk-kn-. It is displayed only once, so save it immediately.
  3. Set the variables. On macOS and Linux, in ~/.zshrc or ~/.bashrc:
~/.zshrc
export ANTHROPIC_BASE_URL=https://api.kunavo.com   # alleen het domein, zonder /v1
export ANTHROPIC_AUTH_TOKEN=sk-kn-...
export ANTHROPIC_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5

On Windows, to test first in a single PowerShell window:

PowerShell
# Geldt alleen voor dit PowerShell-venster
$env:ANTHROPIC_BASE_URL = "https://api.kunavo.com"
$env:ANTHROPIC_AUTH_TOKEN = "sk-kn-..."
$env:ANTHROPIC_MODEL = "claude-sonnet-5"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL = "claude-opus-5-5"
$env:ANTHROPIC_DEFAULT_SONNET_MODEL = "claude-sonnet-5-5"
$env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "claude-haiku-5-5"
claude

For permanent use, the env block in your user settings is the best place: ~/.claude/settings.json (on Windows %USERPROFILE%\.claude\settings.json). The values apply everywhere Claude Code runs, including background agents. Variables from your shell apply only to that terminal window: an editor opened from the Dock or Start menu does not see them. If the file already contains other settings, add only the env block:

~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.kunavo.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-kn-...",
    "ANTHROPIC_MODEL": "claude-sonnet-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5-5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5"
  }
}

Never put the key in a project’s .claude/settings.json: according to the official gateway documentation (checked October 3, 2026), that file is committed and shared with everyone who clones the repository. Also note the precedence: if your shell and a settings file set the same variable, the settings file takes precedence. If a changed shell variable has no effect, check settings.json first.

Every line has its own pitfall:

  • ANTHROPIC_BASE_URL is only the domain. Claude Code appends /v1/messages itself; with /v1 at the end, the request goes to /v1/v1/messages and you get a 404.
  • Use ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY. According to the documentation, ANTHROPIC_AUTH_TOKEN is sent as an Authorization header with Bearer in front of it and takes effect immediately. ANTHROPIC_API_KEY goes in the x-api-key header and must first be approved once in interactive mode (see route A).
  • Write the model name in ANTHROPIC_MODEL exactly. Kunavo recognizes only the exact name and does not translate old names with a date appended.
  • Also pin ANTHROPIC_DEFAULT_OPUS_MODEL and ANTHROPIC_DEFAULT_SONNET_MODEL. According to the model configuration documentation (checked October 3, 2026), the default setting and the opus alias point to Opus 5.5 for API users, while the sonnet alias points to Sonnet 5.5, and those aliases move to newer versions as they are released. Pin a model using its full name or variables such as ANTHROPIC_DEFAULT_OPUS_MODEL. Kunavo offers Sonnet 5.5, but a new Opus or Sonnet model is not always available right away; a model that is unavailable returns a 404. Without ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5, this causes /model sonnet, the execution phase of opusplan, and subagents set to model: sonnet to fail as soon as the alias moves to a newer Sonnet that Kunavo does not offer yet. Pin the opus alias to Opus 5.5 (claude-opus-5-5); this requires Claude Code v2.1.280 or later; update older versions with claude update.
  • Also pin ANTHROPIC_DEFAULT_HAIKU_MODEL. From v2.1.293 onward, the haiku alias requests Haiku 5.5, which Kunavo offers, but before that it requests a Haiku 4.5 ID with a date, which Kunavo does not offer. Without this line, /model haiku and subagents using model: haiku return 404s in those older versions.
  • ANTHROPIC_DEFAULT_HAIKU_MODEL also applies to background tasks. According to the documentation, this variable determines the haiku alias and the model for background functions, such as session titles. With Claude Haiku 5.5, they remain inexpensive.

If you use the VS Code extension, set the variables in claudeCode.environmentVariables, in VS Code's own user settings (command Preferences: Open User Settings (JSON)). The extension already checks the credentials there before it starts; values from ~/.claude/settings.json do reach the started process, but not that check.

VS Code settings.json
{
  "claudeCode.environmentVariables": [
    { "name": "ANTHROPIC_BASE_URL", "value": "https://api.kunavo.com" },
    { "name": "ANTHROPIC_AUTH_TOKEN", "value": "sk-kn-..." },
    { "name": "ANTHROPIC_MODEL", "value": "claude-sonnet-5" },
    { "name": "ANTHROPIC_DEFAULT_OPUS_MODEL", "value": "claude-opus-5-5" },
    { "name": "ANTHROPIC_DEFAULT_SONNET_MODEL", "value": "claude-sonnet-5-5" },
    { "name": "ANTHROPIC_DEFAULT_HAIKU_MODEL", "value": "claude-haiku-5-5" }
  ]
}

Prices per million tokens, from the Kunavo catalog; Anthropic’s list price is from claude.com/pricing (checked October 3, 2026):

ModelKunavo (input / output)Anthropic list price (input / output)DifferencePurpose
claude-haiku-5-5$0.07 / $0.35$0.10 / $0.50~30% lowerClaude Code's own background tasks and simple work
claude-sonnet-5$1.40 / $7.00$2.00 / $10.00~30% lowerThe default model for daily work
claude-opus-5-5$2.80 / $14.00$4.00 / $20.00~30% lowerLarge refactors and planning

Within a session, switch with /model claude-opus-5-5, or start immediately with claude --model claude-opus-5-5. What Claude Code approximately costs per month and when a subscription is more advantageous is covered in Claude Code pricing (in English); calculate your own usage with the Claude token calculator. All models and prices are listed on the pricing page.

Checking with /status

Start claude. With ANTHROPIC_AUTH_TOKEN set, you get no login screen: the variable takes effect immediately. If you still see the login screen, Claude Code did not read a key. Set it somewhere Claude Code reads before the first-run wizard: an export in your shell or the env block of ~/.claude/settings.json. An env block in the .claude/settings.json or .claude/settings.local.json of a project only takes effect in an interactive session after the first-run wizard and the prompt asking whether you trust the folder.

In the session, type /status and look for two lines on the Status tab (source: the official gateway documentation, checked October 3, 2026):

  • Anthropic base URL must show https://api.kunavo.com. This line appears only when a gateway address is configured; if it is missing, ANTHROPIC_BASE_URL did not reach the session.
  • Auth token must mention ANTHROPIC_AUTH_TOKEN. If you see Login method instead with a claude.ai account, the variable was not read and the session is using your subscription.

If you previously logged in with a subscription, Claude Code may warn at startup that two login sources are active (the message ends with auth may not work as expected). Requests then go through the key; use /logout to remove the old login.

Want to test the address and key before opening Claude Code? As the documentation suggests, send a request for one output token; it costs a very small amount of credit. The commands read the variables from your shell, so set them there as well if they are already in settings.json.

Terminal
curl -sS -w '\n%{http_code}\n' -X POST "$ANTHROPIC_BASE_URL/v1/messages" \
  -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model": "claude-sonnet-5", "max_tokens": 1, "messages": [{"role": "user", "content": "."}]}'
PowerShell
Invoke-RestMethod -Method Post -Uri "$env:ANTHROPIC_BASE_URL/v1/messages" `
  -Headers @{ "Authorization" = "Bearer $env:ANTHROPIC_AUTH_TOKEN"; "anthropic-version" = "2023-06-01" } `
  -ContentType "application/json" `
  -Body '{"model": "claude-sonnet-5", "max_tokens": 1, "messages": [{"role": "user", "content": "."}]}'

A JSON response beginning with {"id":"msg_ means the address and key are working; in PowerShell you see an id beginning with msg_. A 401 means the key was rejected.

What else works with an API key

  • No Remote Control and no voice dictation. Both require a claude.ai account and are unavailable while ANTHROPIC_AUTH_TOKEN is active; Remote Control is also disabled while ANTHROPIC_BASE_URL points to an address outside Anthropic.
  • /fast reports that fast mode is off. With only a bearer token, Claude Code treats fast mode as disabled without sending the check.
  • MCP tool search is disabled by default as soon as ANTHROPIC_BASE_URL points to an address outside Anthropic.
  • The figures in /context are estimates: Kunavo does not currently offer /v1/messages/count_tokens. According to the official gateway compatibility documentation (checked October 3, 2026), without that endpoint Claude Code falls back to an estimate based on characters, so /context shows approximate counts.

Code, tools, subagents, MCP servers, hooks, and prompt caching work as usual. More details are available in the Claude Code integration documentation (in English) and in Claude Code without a subscription (in English).

How to top up your Kunavo balance

Kunavo is prepaid, and every method below tops up the same API balance.

  • From anywhere: USDT on TRON (TRC-20), Ethereum (ERC-20) or BNB Chain (BEP-20), or USDC on Base, Ethereum (ERC-20) or BNB Chain (BEP-20), sent to the address and for the exact amount the top-up page gives you.
  • In local currency: Alipay (mainland China), AlipayHK (Hong Kong), Pix (Brazil), GCash (Philippines), Touch 'n Go eWallet / Boost (Malaysia), PayNow (Singapore) and K PLUS / LINE Pay (Thailand); the top-up page shows the amount in that currency before you pay.
  • Card payments are being enabled and cannot be used yet.

A Claude subscription purchased through the website can only be paid for with a credit or debit card (Claude help article on paid plans, checked October 3, 2026); the prices on claude.com/pricing exclude tax.

  1. Create a Kunavo account.
  2. On Billing, choose an amount, at least $10. Those who top up more at once receive additional credit: with $100 you get $110, with $1,000 you get $1,200, and with $5,000 you get $6,250.
  3. Create a key at /app/keys and enter it in ANTHROPIC_AUTH_TOKEN.

Common errors

What you seeCause and solution
The token '&&' is not a valid statement separatorPasted the CMD command into PowerShell. Use irm … | iex.
'irm' is not recognized as an internal or external command (or the Dutch version of that message)The PowerShell line was pasted into CMD. Use the install.cmd line.
'bash' is not recognized as the name of a cmdletThe macOS/Linux line was pasted into Windows. Use the PowerShell line.
The command displays the script's text but installs nothingThe second half is missing. In PowerShell, it is the entire irm … | iex line; in CMD, the complete command with -o install.cmd.
syntax error near unexpected token '<' or a 403The download returned a web page or error code instead of the script. According to the official troubleshooting guidance, this may be caused by network problems, regional routing, a temporary outage, or (with a bare 403) a corporate proxy or firewall. Try again after a few minutes, or install on macOS via Homebrew and on Windows via WinGet.
Claude Code does not support 32-bit WindowsYou opened Windows PowerShell (x86). Open regular Windows PowerShell.
npm.ps1 cannot be loadedPowerShell's execution policy blocks npm. Run the Set-ExecutionPolicy line or use the native installer.
command not found: claude, or claude is not recognizedThe installation directory is not in your PATH. Open a new window; on Windows, use the PATH fragment above.
Login screen while the key is configuredClaude Code did not read a key. Set the variables in your shell or in ~/.claude/settings.json, not only in project settings, and open a new window.
Warning ending with auth may not work as expectedThe key and old login are both active. Use /logout to keep only the key, or remove the variable to use the login.
401The key is not recognized: check that you copied the full sk-kn- key, without spaces, that it has not been deleted at /app/keys, and that it is set in ANTHROPIC_AUTH_TOKEN.
404ANTHROPIC_BASE_URL ends with /v1, or the requested model is not available from Kunavo (for example, because the four model variables are missing).

After installation

When starting for the first time in a project, type /init: Claude Code reads the repository and creates a CLAUDE.md with the test commands and conventions it finds. Check that file and keep it short, because it is loaded in every session. Between separate tasks, /clear starts a new conversation; when a task becomes long, /compact summarizes the history and you continue working.

What you need to know

  • This is a pay-per-token API, not a Claude Pro or Max subscription. Anyone who uses Claude Code for hours every day will often spend less with a subscription; paying per token suits variable usage, and a month without using it costs nothing. The comparison is available in Claude Code pricing (in English).
  • Remote Control and voice dictation are unavailable with an API key.
  • Through Kunavo, you use shared capacity, without a reserved quota or contractual guarantees; if you need those, sign a contract directly with Anthropic.

Frequently asked questions

How do I install Claude Code?

With one official command. On macOS, Linux, and WSL: curl -fsSL https://claude.ai/install.sh | bash. On Windows in PowerShell: irm https://claude.ai/install.ps1 | iex. In the Windows Command Prompt (CMD): curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd. This is the native installation Anthropic recommends; it updates itself in the background. Then open a new terminal window, check with claude --version, and start with claude.

Do I need WSL or administrator rights to install Claude Code on Windows?

No. According to the official installation documentation, run the installation command in PowerShell or CMD without opening the window as an administrator. Git for Windows is optional: if it is installed, Claude Code runs commands through Git Bash; otherwise, through PowerShell. WSL 2 is only an option if you need Linux tools or sandboxing; in that case, install and start Claude Code inside the WSL terminal. Do not open Windows PowerShell (x86): Claude Code does not support 32-bit Windows.

Do I need Node.js for Claude Code?

Only if you install via npm, in which case you need Node.js 22 or later. The native installer, Homebrew, and WinGet do not require Node.js. With an older Node.js version, npm only displays an EBADENGINE warning and the installation continues normally. Never use sudo npm install -g, and update with npm install -g @anthropic-ai/claude-code@latest instead of npm update -g.

Can I use Claude Code without a subscription?

Yes. To log in, you need a Pro, Max, Ultra, Team, Enterprise, or Console account, and the free Claude.ai plan does not include Claude Code. Without a subscription, set ANTHROPIC_BASE_URL=https://api.kunavo.com and ANTHROPIC_AUTH_TOKEN with a Kunavo key; Claude Code then skips the login screen and you pay per token used from prepaid Kunavo credit, starting at $10, with no monthly fee. Remote Control and voice dictation are unavailable this way because they require a claude.ai account.

How do I set up an API key for Claude Code?

Set the variables in the env block of ~/.claude/settings.json (on Windows %USERPROFILE%\.claude\settings.json) or as export lines in ~/.zshrc, ~/.bashrc, or your PowerShell-$PROFILE. Use ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY: the former is sent as Authorization: Bearer and applies immediately, while the latter goes in the x-api-key header and must be approved once first. ANTHROPIC_BASE_URL is only the domain, https://api.kunavo.com, without /v1: Claude Code adds /v1/messages itself, so with /v1 you get /v1/v1/messages and a 404. Never put the key in a project's .claude/settings.json, because that file is committed. If the shell and settings file set the same variable, the settings file takes precedence.

Why are there four model variables when using Claude Code with an API key?

Without fixed models, Claude Code uses aliases that track new Anthropic versions. According to the official model configuration documentation (checked on October 3, 2026), the default setting and the opus alias for API users point to Opus 5.5, while the sonnet alias points to Sonnet 5.5. Kunavo offers Sonnet 5.5, but a newer model is not always available right away, and a model that is unavailable returns a 404: without a fixed sonnet variable, /model sonnet, the execution phase of opusplan, and subagents with model: sonnet then fail. With ANTHROPIC_MODEL=claude-sonnet-5, ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5, ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5, and ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5, each request uses a model offered by Kunavo, and you know what you are paying for. Opus 5.5 requires Claude Code v2.1.280 or later; update an older version with claude update. The haiku variable also determines the model for Claude Code's background tasks.

How do I check whether Claude Code is using my API key?

Type /status in Claude Code. On the Status tab, the Anthropic base URL line should show https://api.kunavo.com, and the Auth token line should mention ANTHROPIC_AUTH_TOKEN. If you instead see Login method with a claude.ai account, the variable was not read and the session is using your subscription. If a login screen appears when starting, Claude Code did not read any key at all.