Claude Code API Key via Third Party

Claude Code API Key via Third Party

Claude API Key can be provided by a third party.

Third parties include:

Generally the way it works is you authenticate with your provider, maybe provide an additional key, then set an env var flag to tell Claude to use that specific provider:

export AWS_BEARER_TOKEN_BEDROCK=your-bedrock-api-key
export CLAUDE_CODE_USE_BEDROCK=1

Related: Via API Key, Authenticating Claude Code