[BUG] Claude Code ignores CLAUDE_CODE_USE_BEDROCK in json config

Resolved 💬 4 comments Opened Apr 21, 2025 by pasky Closed Apr 21, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.74 (Claude Code)
  • Operating System: macOS 15.3.2 (24D81)
  • Terminal: iTerm2

Bug Description

The issue #64 which was closed previously still reoccurs with fresh installation of Claude as of now.

Basically,

claude config set --global env '{"CLAUDE_CODE_USE_BEDROCK": "true", "ANTHROPIC_MODEL": "us.anthropic.claude-3-7-sonnet-20250219-v1:0"}'

doesn't prevent claude then asking for Anthropic credentials.

The workaround is the same - export CLAUDE_CODE_USE_BEDROCK=1 before the first-time setup.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗