1. What's in the order

- The key: a long string, usually starting with
sk-. - The API address (base URL): if the message has one, you need it too. No address means the standard Anthropic one.
2. Claude Code
Claude Code is a coding agent for the terminal. Install it with the official guide.
macOS and Linux. Open a terminal and run (with your own values):
echo 'export ANTHROPIC_API_KEY="your-key"' >> ~/.zshrc echo 'export ANTHROPIC_BASE_URL="address-from-the-order"' >> ~/.zshrc source ~/.zshrc
No address in the order, skip the second line. On bash, use ~/.bashrc instead of ~/.zshrc.
Windows (PowerShell):
setx ANTHROPIC_API_KEY "your-key" setx ANTHROPIC_BASE_URL "address-from-the-order"
After setx, close the terminal and open it again.
Now run claude in your project folder. If Claude Code asks whether to use the API key it found, pick Yes. /status inside shows the key is in use.
/logout so it takes the key, not the plan.3. Cursor, Cline and other apps
- Cursor: Settings → Models → the Anthropic API Key field: paste the key and hit Verify.
- Cline, Roo Code, Continue (VS Code): in the extension's settings pick the Anthropic provider and paste the key. If the order has an address, turn on Use custom base URL and paste it.
- Any app with an API key field and an Anthropic option: same thing.
4. Your own code
The official libraries read ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL from the environment by themselves. A quick check of the key from the terminal:
curl "${ANTHROPIC_BASE_URL:-https://api.anthropic.com}/v1/messages" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model": "claude-sonnet-5-5", "max_tokens": 50, "messages": [{"role": "user", "content": "Hi!"}]}'You get JSON back with Claude's text: it works.
Warranty
The warranty term is in the product description. If the key stops working within it, write to support with the order number and we replace the key. A used-up balance isn't a warranty case.
Check the key as soon as you get it: problems are easier to fix that way.
Errors and what to do
- 401 / invalid x-api-key: the key was copied partly or with a space. Copy it again.
- 404 or "not found": wrong API address. Check
ANTHROPIC_BASE_URL, with no extra/v1at the end if the order doesn't have it. - 429 / rate limit: too many requests in a row. Wait a minute.
- Claude Code still talks about a subscription:
/logout, then restart the terminal.
Still stuck, write to support @Volarchik: the order number and the error text.