Claude Code and Claude API guides

Practical guides to using Claude: installing Claude Code, connecting Claude Code, Claude Desktop and your own programs to an API key, fixing common errors, and choosing the right model and reasoning effort.

Claude Code 529 Overloaded, 429 and 500 errors

October 30, 2026

Claude Code 529 Overloaded, 429 and 500 errors: what each means, how many times Claude Code retries first, and what to do. Tested on Claude Code 2.1.312.

Read →

Install Claude Code with npm when the install script fails

October 30, 2026

Claude Code's install script fails with Failed to get a valid version from downloads.claude.ai? Install from an npm mirror: Node.js 22, commands, updates.

Read →

Claude Code API errors: Invalid API key, Not logged in, 403

October 30, 2026

Fix Claude Code API errors: Invalid API key, Not logged in, 403 Request not allowed, the selected model error and Connection refused, plus a curl test.

Read →

ANTHROPIC_AUTH_TOKEN vs ANTHROPIC_API_KEY in Claude Code

October 30, 2026

ANTHROPIC_API_KEY sends x-api-key and ANTHROPIC_AUTH_TOKEN sends Authorization: Bearer. Which to set, what happens with both, and why settings.json wins.

Read →

How to choose a Claude API relay: price and caching

October 30, 2026

Before you pick a Claude API relay, check the price per million tokens, prompt caching, tool calls, streaming and the terms. Python test code included.

Read →

Use Claude Desktop with an API key in gateway mode

October 26, 2026

Connect Claude Desktop to an API key in gateway mode: turn on developer mode, choose Gateway, enter the base URL and key, then apply and restart.

Read →

Use Claude Code with an API key and a custom base URL

October 16, 2026

Point Claude Code at an API key with two environment variables or settings.json on macOS, Linux and Windows, check it works, and fix common errors.

Read →

Call the Claude API with the Anthropic or OpenAI SDK

October 16, 2026

Minimal Python and TypeScript examples with the Anthropic SDK, streaming, reasoning effort, web search, and the OpenAI-compatible format.

Read →

How to choose a Claude model and reasoning effort

October 16, 2026

What Claude Opus 5.5, Sonnet 5.5, Haiku 4.5 and Fable 5.1 are good for, how to pick an effort level from low to max, and how caching cuts the cost.

Read →