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

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

Claude Code is installed with one command. You usually get stuck afterward: on the wrong Windows window, on the PATH, or on the Node.js version with npm. There is also the API key without a subscription and the question of how to pay without PayPal and SEPA.

In short: Install Claude Code with a single line in the terminal, without Node.js and without administrator rights. Which line depends only on the window: curl -fsSL https://claude.ai/install.sh | bash on macOS, Linux, and WSL; irm https://claude.ai/install.ps1 | iex in Windows PowerShell; and the third line below in Command Prompt (CMD). If you do not have a Claude subscription, connect Claude Code to Kunavo with an API key afterward: ANTHROPIC_BASE_URL=https://api.kunavo.com (without /v1), ANTHROPIC_AUTH_TOKEN, and four model variables. /status shows whether it works. You pay per token from prepaid credit starting at $10. PayPal and SEPA direct debit are not available.

Terminal
# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash
PowerShell
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex
cmd.exe
:: Windows-Eingabeaufforderung (CMD)
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Anthropic maintains the Claude Code documentation entirely in German, so this guide links to the German pages. The commands above were checked against October 3, 2026 on setting up Claude Code, and the variables against the environment variables list. Kunavo’s prices and payment methods are current as of November 23, 2026. Germany, Austria, and Switzerland are all listed in Anthropic’s country list for both Claude.ai and the API (as of October 3, 2026). An English version is available at Install Claude Code.

The process at a glance

  1. Install: run the appropriate line above, then open a new terminal window.
  2. Check: claude --version outputs a version number.
  3. Decide: sign in with a Claude subscription or use an API key (comparison below).
  4. With an API key: top up credit, create a key, and set six environment variables.
  5. Check: enter /status in the session.

Requirements: what applies today

Some German-language guides describe an older version of Claude Code. The table compares commonly cited information with what the official setup page requires on October 3, 2026.

TopicStill often seenAccording to Anthropic
macOSmacOS 10.15 or latermacOS 13.0 or later
Windowsvia WSL onlynatively on Windows 10 from 1809 onward or Windows Server 2019; WSL is an option, not a requirement
Permissionsstart PowerShell as administratornot required
Node.jsNode.js 18 or lateronly for npm installation, then version 22 or later
npmoutdatedstill a documented option; the native installer is recommended
Linux—Ubuntu 20.04+, Debian 10+, Alpine Linux 3.19+
Computer and shell—at least 4 GB RAM, x64 or ARM64, no 32-bit Windows; Bash, Zsh, PowerShell, or CMD
Location—a country supported by Anthropic; Germany, Austria, and Switzerland are included
Account—Pro, Max, Ultra, Team, Enterprise, or Console for sign-in; with an API key, neither a subscription nor login

Install on macOS, Linux, and WSL

In the terminal, paste the line containing install.sh. In the official documentation, this method appears under the “Native Installation (Recommended)” tab. The script places the launcher at ~/.local/bin/claude, and the installation then updates itself in the background. In WSL, use the same line in the WSL terminal.

Install Claude Code on Windows

On Windows, the open window determines which line works, and you can tell by looking at the prompt: PS C:\Users\Name> is PowerShell, while C:\Users\Name> without PS is Command Prompt (CMD). According to the setup page, neither option requires administrator privileges. The installer places claude.exe under %USERPROFILE%\.local\bin.

If you use the wrong window, you get an English message, or sometimes a German one on German-language Windows. The CMD line in PowerShell ends with The token '&&' is not a valid statement separator, while the PowerShell line in CMD ends with 'irm' is not recognized as an internal or external command. Both mean the same thing: wrong window, so use the other line.

In the Start menu, skip “Windows PowerShell (x86).” According to the troubleshooting guide, it starts a 32-bit process, and the installer then exits with Claude Code does not support 32-bit Windows even on a 64-bit PC. If [Environment]::Is64BitOperatingSystem outputs True in this window, your Windows installation is fine; simply open “Windows PowerShell” without the suffix.

You don’t need to install Git for Windows. If it is present, Claude Code runs shell commands in Git Bash; otherwise, it uses PowerShell. If Claude Code cannot find an installed Git Bash, add the path to bash.exe as CLAUDE_CODE_GIT_BASH_PATH in the env block of ~/.claude/settings.json; for a standard installation, use C:\Program Files\Git\bin\bash.exe.

Whether to use native Windows or WSL depends on where your projects are:

VariantRequirementSandboxingWhen it fits
Native Windowsnone; Git for Windows optionalnoyour projects and tools run on Windows itself
WSL 2WSL 2 enabledyesyou need Linux tools or want to run commands in a sandbox
WSL 1WSL 1 enablednoWSL 2 is not available on the computer

With WSL, install and run claude in the WSL terminal, not in PowerShell or CMD.

Alternatives: Homebrew, WinGet, and npm

If you prefer managing software through a package manager, you can do so, with one caveat: according to the documentation, Homebrew and WinGet installations do not update themselves, so you need to run upgrade regularly. Homebrew offers two casks. claude-code follows the stable channel, which lags by about one week and skips versions with major regressions; claude-code@latest receives every version immediately.

# Homebrew (macOS) – stabiler Kanal; claude-code@latest für den neuesten Stand
brew install --cask claude-code
brew upgrade claude-code              # aktualisiert sich nicht von selbst

# WinGet (Windows)
winget install Anthropic.ClaudeCode
winget upgrade Anthropic.ClaudeCode   # aktualisiert sich nicht von selbst

Using npm

npm remains an officially documented option. The requirement is Node.js 22 or later. The npm package downloads the same native binary as the installer and does not need Node.js at runtime. That is why installation with an older Node.js does not abort either; npm only warns with EBADENGINE. If you do not have Node.js yet, the native installer is the shorter route.

Terminal
node -v                                    # muss v22 oder neuer zeigen
npm install -g @anthropic-ai/claude-code   # niemals mit sudo

# später aktualisieren: mit @latest, nicht mit npm update -g
npm install -g @anthropic-ai/claude-code@latest

Three rules from the setup page: do not use sudo npm install -g, because it creates permission problems and security risks. Update with @latest, since npm update -g stays within the original version range. And do not disable optional dependencies: the binary is provided as a platform-specific optional dependency, so it is missing with --omit=optional or optional=false in the .npmrc, and claude reports Error: claude native binary not installed. on macOS and Linux.

Verify the installation

Open a new terminal window for this. A window that was already open before installation does not yet know about the updated PATH and therefore cannot find claude.

claude --version   # zeigt eine Versionsnummer wie 2.1.211 (Claude Code)
claude doctor      # Diagnose von Installation und Einstellungen, startet keine Sitzung

claude doctor is the tool to use when something is wrong. It does not start a session, but lists installation status, errors in settings files, and warnings with suggested solutions. This helps you determine whether the problem is with the installation or the configuration.

When installation gets stuck

The download returns HTML or a 403

If the output starts with syntax error near unexpected token '<' or curl reports a 403, the troubleshooting guide (as of October 3, 2026) says a web page or error status was returned instead of the script. If that page says App unavailable in region, Anthropic considers the connection to be from an unsupported country. From Germany, Austria, or Switzerland, this suggests a VPN or proxy endpoint abroad. A 403 without text can have the same cause or come from a corporate firewall. The documentation recommends checking the network connection first, since the other installation methods contact the same servers. Using a different network or asking IT to allow access will help more than using a different installer.

“claude” is not found

command not found: claude on macOS and Linux, or an unrecognized claude on Windows, means the installation folder is missing from PATH. Usually, a new window is enough. If that does not help on macOS or Linux, add ~/.local/bin to ~/.zshrc or ~/.bashrc. On Windows, check and add the folder as shown in the troubleshooting section:

PowerShell
# 1. Steht der Installationsordner schon im PATH?
$env:PATH -split ';' | Select-String '\.local\\bin'

# 2. Keine Ausgabe? Ordner zum Benutzer-PATH hinzufügen, dann ein neues Fenster öffnen
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')

# 3. Im neuen Fenster
claude --version

PowerShell blocks npm.ps1

This affects only the npm variant. The message npm.ps1 cannot be loaded because running scripts is disabled on this system means that the execution policy blocks npm's startup script. You can run npm.cmd and claude.cmd, which are not covered by the policy, switch to the native installer, or allow local scripts for your user account:

PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Subscription or API key?

On first launch, Claude Code asks who is paying. Either sign in with a Claude account or provide an API key through an environment variable. If a key is set, the gateway guide says it takes precedence: a saved login remains unused and takes effect again as soon as you remove the variable. You don’t need to reinstall anything to switch.

Claude subscriptionKunavo API key
Billingmonthly: Pro for $20 or $17 per month with annual billing ($200 upfront), Max for $100, Ultra for $200, in each case excluding any applicable taxes (claude.com/de/pricing, as of November 22, 2026)per token from prepaid credit, top-up starting at $10, with no monthly fee and no expiration
Best fordaily, hours-long usevariable use; a month without use costs nothing
Payon the web, credit or debit card only; in the iOS and Android apps, through the App Store or Google Play (Anthropic billing FAQ, as of October 3, 2026)USDT or USDC, or a local method in 7 markets; cards being enabled
Setupstart claude and sign in in the browsersix environment variables, no login
Not included—Remote Control and voice dictation

The Claude Code pricing guide shows when Pro or Max becomes more cost-effective than the key.

Set up an API key (without a subscription)

Having Claude Code contact a different endpoint is not a workaround. ANTHROPIC_BASE_URL is listed in Anthropic’s environment variables and is specifically for routing requests through a proxy or gateway. You don’t need a plugin or a modified version of Claude Code.

  1. Sign up with Kunavo using an email address or Google account.
  2. Under Billing, add at least $10 in credit (payment methods are listed in the payment section).
  3. Under API-Keys, create a key. It starts with sk-kn- and is only shown once, so copy it immediately.
  4. Set the variables as shown below.

When entered in ~/.zshrc or ~/.bashrc, the values apply to every new terminal on macOS, Linux, and WSL:

~/.zshrc
export ANTHROPIC_BASE_URL=https://api.kunavo.com   # nur die Domain, ohne /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

In PowerShell, $env: assignments apply only to the open window, which is useful for a first test:

PowerShell
# Gilt nur für dieses PowerShell-Fenster
$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 long-term use, put the values in the env block of ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json). According to the gateway guide (as of October 3, 2026), this file applies to all your projects. If it already exists, 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"
  }
}

The VS Code extension reads the variables from claudeCode.environmentVariables in VS Code user settings (command Preferences: Open User Settings (JSON)):

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" }
  ]
}

What each variable does

VariableValueEffectIf it is missing or incorrect
ANTHROPIC_BASE_URLhttps://api.kunavo.comroutes all requests to Kunavo; Claude Code appends /v1/messages itselfWith /v1 at the end, the request goes to /v1/v1/messages and fails with 404.
ANTHROPIC_AUTH_TOKENYour key (sk-kn-…)is sent as Authorization: Bearer and takes precedence immediatelyIf you set ANTHROPIC_API_KEY instead (header x-api-key), you must confirm the key once in interactive mode. If it is rejected, Claude Code ignores the key without asking again; enable it again under /config → Use custom API key. Kunavo accepts the key in both headers.
ANTHROPIC_MODELclaude-sonnet-5Starting model for each sessionWithout it, the session starts on the model specified by the Opus pin, namely Opus 5.5; if that is also missing, on Anthropic's current default (currently also Opus 5.5).
ANTHROPIC_DEFAULT_OPUS_MODELclaude-opus-5-5Target of /model opus and the version used by the default without ANTHROPIC_MODELWithout it, the alias follows Anthropic's setting, currently also Opus 5.5; as soon as a newer Opus appears, it may point to a model Kunavo does not yet offer. Opus 5.5 requires Claude Code version 2.1.280 or later; older versions are updated by claude update.
ANTHROPIC_DEFAULT_SONNET_MODELclaude-sonnet-5-5Target of /model sonnet, the execution phase of opusplan, and subagents with model: sonnetWithout it, the alias follows Anthropic's setting, currently Sonnet 5.5; as soon as a newer Sonnet appears, it may point to a model Kunavo does not yet offer: 404.
ANTHROPIC_DEFAULT_HAIKU_MODELclaude-haiku-5-5Target of /model haiku and model for background functionsWithout it, starting with Claude Code 2.1.293, the alias points to Haiku 5.5, which Kunavo offers, and before that to a dated Haiku 4.5 ID, which Kunavo does not recognize: 404.

Why set a fixed starting model? According to model configuration (as of October 3, 2026), Opus 5.5 is the default for API users, and aliases are updated to new versions over time. Kunavo offers Opus 5.5; starting without any model variables therefore uses Opus 5.5, which costs twice as much per token as Claude Sonnet 5. Fixed model names let you know which model is responding and at what rate. The Opus pin keeps the alias opus on Claude Opus 5.5 (claude-opus-5-5), even if Anthropic later moves it to a newer Opus version. Opus 5.5 costs less than Claude Opus 5 per token at Kunavo ($2.80 / $14.00 versus $3.50 / $17.50 per 1 million input/output tokens) and requires Claude Code version 2.1.280 or later; an older installation can be brought up to date with claude update. The Sonnet pin is recommended for the same reason: for API users, the alias sonnet points to Sonnet 5.5, which Kunavo offers, but the alias is moved to a newer Sonnet as soon as one appears, and until Kunavo adds it, without ANTHROPIC_DEFAULT_SONNET_MODEL, /model sonnet, the execution phase of opusplan, and subagents with model: sonnet then end in a 404. Claude Haiku 5.5 keeps background tasks inexpensive, and you can switch at any time during the session with /model.

Two things about storage. The key should never go in a project's .claude/settings.json, because according to the gateway guide this file is committed and ends up with everyone who clones the repository. And if a shell export and an env block set the same variable, the settings file wins. So if you change a variable in the shell and nothing happens, the old value is probably still in a settings.json.

The models compared below, Kunavo prices from the catalog and Anthropic list prices from claude.com/de/pricing (as of October 3, 2026), all per 1 million tokens:

ModelKunavo (Input / Output)Anthropic list price (Input / Output)DifferenceRole in Claude Code
claude-haiku-5-5$0.07 / $0.35$0.10 / $0.50~30% cheaperClaude Code's haiku alias and background tasks
claude-sonnet-5$1.40 / $7.00$2.00 / $10.00~30% cheaperPrimary model (ANTHROPIC_MODEL) for daily work
claude-opus-5-5$2.80 / $14.00$4.00 / $20.00~30% cheaperopus alias with the pin above (large refactorings, planning); without pins, the default for API users
claude-opus-5$3.50 / $17.50$5.00 / $25.00~30% cheaperNo alias; only explicitly with /model claude-opus-5

All Claude models and rates are listed in the Claude API pricing guide and on the pricing page.

First launch: check with /status

Go to your project directory and run claude. With ANTHROPIC_AUTH_TOKEN set, it goes straight into the session, without a sign-in screen. If the screen still appears, Claude Code could not find a key. According to the gateway guide, the most common reason is that the key is only in the project’s .claude/settings.json or .claude/settings.local.json. Claude Code evaluates such env blocks in an interactive session only after the setup wizard and the prompt asking whether you trust the folder. So put the key in the shell (export) or in ~/.claude/settings.json.

In the session, /status shows in the Status tab where Claude Code gets the address and credentials. Two lines are decisive:

LineCorrectIf not
Anthropic base URLhttps://api.kunavo.comThe line appears only when a gateway address is set. If it is missing, ANTHROPIC_BASE_URL did not reach the session.
Auth tokennames ANTHROPIC_AUTH_TOKENIf Login method appears instead with a claude.ai account, the variable was not read and the session is using your subscription.

You can also test the connection without Claude Code, using the request from the gateway guide (with the model set to claude-sonnet-5 here). It requests exactly one output token and therefore costs only a tiny amount. The commands read the shell variables; if your values exist only in settings.json, export them for the test as well.

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": "."}]}'

If JSON is returned beginning with {"id":"msg_, or in PowerShell an object with an id beginning with msg_, the address and key are correct. A 401 means the key was rejected.

What changes with an API key

Most things remain the same: editing code, tools, subagents, MCP servers, hooks, and prompt caching work as usual. You should know four differences:

  • Remote Control and voice dictation are unavailable. According to the gateway guide, both require a claude.ai identity and are disabled while ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY is active. Since version 2.1.196, Remote Control is also disabled when ANTHROPIC_BASE_URL points to a host outside Anthropic.
  • /fast reports Fast Mode as unavailable. With only a bearer token, Claude Code treats it as disabled and does not send the availability check at all.
  • MCP tool search is off. According to the MCP documentation (as of October 3, 2026), Claude Code disables it when ANTHROPIC_BASE_URL points to a third party; it can be explicitly enabled with ENABLE_TOOL_SEARCH.
  • /context displays estimates. Kunavo does not offer /v1/messages/count_tokens. Without this endpoint, Claude Code counts based on characters, according to the gateway compatibility guide (as of October 3, 2026).

More about the integration is available in the Claude Code integration guide (in English).

Paying without PayPal and SEPA

First, a distinction: Kunavo does not sell Claude subscriptions, but API access credit, from which Claude Code deducts each token. For Anthropic Pro and Max, payment is by credit or debit card on the web, and billed through the App Store or Google Play in the apps (billing FAQ). According to Anthropic’s help article about declined cards, it does not accept PayPal or Venmo (both as of October 3, 2026).

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.
  1. Create an account; Kunavo does not ask for a card during registration.
  2. Under Billing, choose a top-up tier starting at $10. Higher tiers include bonus credit: $100 becomes $110, $1,000 becomes $1,200, and $5,000 becomes $6,250.
  3. Under API-Keys, create a key and enter it as ANTHROPIC_AUTH_TOKEN.

What a session costs: example calculation

With an API key, you pay for tokens, and Claude Code sends the entire previous context with every step. That context is not charged in full every time: the model reads the unchanged beginning from the cache, for which the lower cache-read rate applies. The table works through an assumed pattern; it is neither a measurement nor a limit. Assume:

  • 40,000 input tokens per request, of which 36,000 (90%) are read from the cache and 4,000 are newly written to the cache;
  • 1,000 output tokens per request;
  • 50 such requests per work session, excluding background calls;
  • Cache reads cost Claude Sonnet 5 10% of the input rate, while cache writes cost 1.25 times as much; each model in the table is calculated using its own factors.
ModelOne request50 requests50 requests with no cache hits
Claude Sonnet 5$0.019$0.952$3.15
Claude Opus 5$0.0476$2.38$7.88
Claude Opus 5.5$0.033$1.65$6.30

What you actually pay depends on context length, cache hits, and response length, as well as whether you start over with /clear between two tasks. For your own figures, use the Claude token calculator (in English); the Claude Code pricing guide works through the comparison with Pro and Max.

Error messages and what they mean

MessageMeaning and remedy
The token '&&' is not a valid statement separatorThe CMD line is in the PowerShell window. Use irm … | iex there.
'irm' is not recognized as an internal or external command (or the same message in German)The PowerShell line is in CMD. Use the line containing install.cmd there.
Claude Code does not support 32-bit Windows“Windows PowerShell (x86)” is open. Choose the entry without (x86).
syntax error near unexpected token '<' or 403A web page or an error code arrived instead of the script. Check your VPN, proxy, and corporate firewall, or try another network.
App unavailable in regionThe connection appears to originate from an unsupported country. In DE, AT, and CH, this is usually a VPN or proxy.
command not found: claude or claude is not recognizedThe installation folder is missing from PATH. Open a new window; on Windows, use the PATH command above.
Warning EBADENGINENode.js is older than 22. Installation still completes, but updating is nevertheless worthwhile.
claude native binary not installed (macOS, Linux)npm skipped the optional dependencies (--omit=optional, optional=false). Remove the setting and reinstall.
npm.ps1 cannot be loadedThe execution policy blocks npm. Use npm.cmd, run the Set-ExecutionPolicy line, or use the native installer.
Sign-in screen even though the key is setThe key is only in the project settings. Set it with export or in ~/.claude/settings.json, then open a new terminal.
ANTHROPIC_API_KEY set but has no effectThe one-time confirmation was rejected. Enable it under /config → Use custom API key or switch to ANTHROPIC_AUTH_TOKEN.
401The key was rejected. Was it copied in full and without spaces, is it still present at /app/keys, and is it entered in ANTHROPIC_AUTH_TOKEN?
404ANTHROPIC_BASE_URL ends in /v1, or the requested model is not available at Kunavo, for example after /model haiku without a Haiku pin in Claude Code before 2.1.293.

Limitations of this approach

  • You pay per token, not a flat fee. If you use Claude Code for hours every day, Pro or Max is often cheaper. With variable usage, you pay only for what you use, and a month without usage costs nothing.
  • Without a claude.ai account, Remote Control and voice dictation are unavailable; /fast is considered disabled, and MCP tool search is off by default.
  • Kunavo does not always offer a new Anthropic model on the first day; with the Sonnet pin shown in the examples above, /model sonnet, Sonnet subagents, and the execution phase of opusplan stay on Sonnet 5.5.
  • Kunavo does not issue invoices showing VAT separately.
  • Anthropic’s Claude Code documentation is available in German; Kunavo’s integration guide is available only in English.

Frequently asked questions

How does Claude Code installation work?

Open a terminal and run the official command for your system. On macOS, Linux, and WSL: curl -fsSL https://claude.ai/install.sh | bash. In Windows 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. Then open a new terminal window and enter claude --version. If a version number appears, Claude Code is installed. This native installation keeps itself up to date in the background; you must update installations through Homebrew or WinGet yourself.

Installing Claude Code on Windows: Do I need WSL or administrator privileges?

Neither. Claude Code runs natively on Windows 10 version 1809 and later and on Windows Server 2019, and according to Anthropic, the installer does not need to run as an administrator. WSL 2 is worthwhile only if you need Linux tools or sandboxing; in that case, install and start Claude Code in the WSL terminal. Git for Windows is optional: with Git, Claude Code runs commands in Git Bash without requiring Git in PowerShell. Common pitfalls include pasting the CMD command into the PowerShell window (or vice versa) and opening the “Windows PowerShell (x86)” Start menu entry, which exits as a 32-bit process.

Do I need Node.js for Claude Code?

Only if you install via npm, and then Node.js 22 or later. Older guides often mention Node.js 18, which is outdated. The native installer, Homebrew, and WinGet work without Node.js. If your Node.js is too old, npm warns with EBADENGINE but still installs. Never install with sudo, 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, with an API key. To sign in, you need Pro, Max, Ultra, Team, Enterprise, or a Console account; the free Claude plan does not include Claude Code. With Kunavo, set ANTHROPIC_BASE_URL=https://api.kunavo.com and ANTHROPIC_AUTH_TOKEN instead, and Claude Code starts without a sign-in screen. Each token is deducted from prepaid credit, which you can top up from $10; there is no monthly fee. You must do without Remote Control and voice dictation, because both require a claude.ai account.

How do I configure an API key in Claude Code?

The best place is the env block in ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json); otherwise, use export lines in ~/.zshrc or ~/.bashrc. You need ANTHROPIC_BASE_URL=https://api.kunavo.com without /v1 (otherwise the request goes to /v1/v1/messages and fails with 404) and ANTHROPIC_AUTH_TOKEN with your key; also recommended are 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, so that no alias jumps to a model that Kunavo does not offer yet. ANTHROPIC_AUTH_TOKEN takes effect immediately. ANTHROPIC_API_KEY also works because Kunavo accepts the key in both headers, but in interactive mode it must be confirmed once. Never put the key in a project's .claude/settings.json, because that file is shared with the repository.

Which model does Claude Code use with an API key?

The model you specify. Without an explicit setting, Claude Code starts API users on Opus 5.5 according to Anthropic (as of October 3, 2026). Kunavo offers Opus 5.5, which costs twice as much per token as Claude Sonnet 5. With ANTHROPIC_MODEL=claude-sonnet-5, Claude Sonnet 5 becomes the starting model; a request from the example calculation on this page then costs about $0.019. ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5 determines what /model opus starts; Opus 5.5 requires Claude Code version 2.1.280 or later, and an older installation can be brought up to date with claude update. ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5 belongs in the setup as well: the sonnet alias points API users to Sonnet 5.5, which Kunavo offers, but the alias is moved to a newer Sonnet as soon as Anthropic releases one; until Kunavo adds it, /model sonnet, the execution phase of opusplan, and subagents with model: sonnet end in 404 without this line. ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5 also applies to background tasks.

How can I tell in /status that Claude Code is using the API key?

Enter /status in the active session and check the Status tab. The Anthropic base URL line must show https://api.kunavo.com, and the Auth token line must name ANTHROPIC_AUTH_TOKEN. If the base URL line is missing, the variable did not reach the session. If it says Login method with a claude.ai account, the session is using your subscription. If you see the sign-in screen on the first launch, the key is probably only in the project settings, which Claude Code reads only after the setup wizard.