[FEATURE] Support for AWS `aws login` command with Bedrock

Resolved 💬 4 comments Opened Nov 22, 2025 by moritalous Closed Dec 11, 2025

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When using AWS Bedrock, Claude Code currently recommends authentication methods using long-term access keys or AWS SSO profiles.

On November 19, 2025, AWS announced a new aws login command that automatically generates and rotates short-term credentials using AWS Management Console credentials. This enables secure and simple authentication, but Claude Code's documentation does not mention aws login, and it appears that Claude Code version 2.0.50 does not yet support it. (I encountered an "API Error: Could not load credentials from any providers" error.)

Proposed Solution

I would like Claude Code to support the aws login command as a Bedrock authentication method.

Alternative Solutions

Current workarounds:

  • Use aws sso login with AWS SSO configured (requires organizational SSO setup)
  • Use long-term access keys (security risk)
  • Use Bedrock API keys (if available)

Support in other tools:

  • AWS CLI and SDKs already support aws login

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

Scenario: A new developer getting started with Claude Code with Bedrock

  1. Developer creates an AWS account and enables Bedrock access
  2. Install AWS CLI 2.32.0
  3. Run aws login and authenticate via browser (using the same credentials as AWS Console)
  4. Configure Claude Code environment variables:

``bash
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1
``

  1. Start using Claude Code immediately

Benefits:

  • No need to manage long-term access keys
  • Credentials are automatically rotated (every 15 minutes), improving security

Additional Context

Reference links:

Request:
I would appreciate it if you could consider supporting aws login in Claude Code.

View original on GitHub ↗

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