[FEATURE] Support for AWS `aws login` command with Bedrock
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 loginwith 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
- Developer creates an AWS account and enables Bedrock access
- Install AWS CLI 2.32.0
- Run
aws loginand authenticate via browser (using the same credentials as AWS Console) - Configure Claude Code environment variables:
``bash``
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-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:
- AWS Official Announcement
- AWS Security Blog: Simplified developer access to AWS with 'aws login'
- AWS CLI User Guide: Sign in for authentication
Request:
I would appreciate it if you could consider supporting aws login in Claude Code.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗