$ recombobulate _
home / tips / connect-claude-code-to-amazon-bedrock-or-google-cloud-vertex-ai
0

Connect Claude Code to Amazon Bedrock or Google Cloud Vertex AI

bagwaa @bagwaa · Mar 26, 2026 · Configuration
connect-claude-code-to-amazon-bedrock-or-google-cloud-vertex-ai

If your organisation uses AWS or Google Cloud, you can route Claude Code through Amazon Bedrock or Google Cloud Vertex AI instead of calling the Anthropic API directly. Traffic stays within your existing cloud security perimeter and billing — no separate Anthropic API key needed.

Amazon Bedrock

# Add to your shell profile or CI environment
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1

# Authenticate using your existing AWS credentials
aws sso login
# or: aws configure

# Launch Claude Code — it routes through Bedrock automatically
claude

Google Cloud Vertex AI

export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=us-east5
export ANTHROPIC_VERTEX_PROJECT_ID=your-gcp-project-id

# Authenticate using Application Default Credentials
gcloud auth application-default login

claude

Claude Code picks up your cloud credentials automatically when these variables are set. You do not need to set ANTHROPIC_API_KEY.

This setup is particularly valuable for teams that:

  • Need AI traffic within a specific cloud account for compliance or data residency
  • Want AI costs consolidated under existing cloud billing and reserved capacity
  • Are subject to security policies that prohibit direct third-party API access from CI systems

Model availability varies by region and provider — check the Claude on Amazon Bedrock and Claude on Vertex AI docs for the current list.

Your existing cloud credentials unlock Claude Code — keep everything within your security boundary without a separate API key.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Switch to the Stable Update Channel with autoUpdatesChannel

The autoUpdatesChannel setting pins Claude Code to a stable release track that skips versions with major regressions.

bagwaa @bagwaa · 2 hours ago
0
Set Claude's Response Language with the language Setting

The language setting makes Claude respond in your preferred language by default, across every session and project.

bagwaa @bagwaa · 2 hours ago
0
Customize or Remove Claude's Git Attribution with the attribution Setting

The attribution setting lets you customize or completely remove Claude's Co-Authored-By trailer from git commits and pull requests.

bagwaa @bagwaa · 2 hours ago