
Claude Code API Configuration: Keys, Settings, Models, and Gateways
For direct Anthropic API access, set ANTHROPIC_API_KEY and approve it in the interactive CLI. Gateways need their own endpoint and credential; cloud providers and Desktop use separate configuration paths.






















