[BUG] `awsAuthRefresh` is not used by claude code

Resolved 💬 2 comments Opened Aug 26, 2025 by lacolaco Closed Aug 27, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.92
  • Operating System: macOS 14.7.5
  • Terminal: Terminal App

Bug Description

<!-- A clear and concise description of the bug -->

Claude Code seems not to use the awsAuthRefresh setting.

My awsAuthRefresh setting in .claude.json is: aws sso login --profile my-profile-name, and AWS_PROFILE envvar is my-profile-name.

Without fresh credential files in .aws/sso/cache, CC doesn't respond any message from API at all.
After I execute aws sso login --profile my-profile-name, the credential file is generated in .aws/sso/cache, then CC works well.

As I understand it, awsAuthRefresh should work in a situation where it is launched without valid credentials.

Steps to Reproduce

  1. Remove all credential files in .aws/sso/cache/**.json
  2. claude hello
  3. No response.

Expected Behavior

<!-- What you expected to happen -->

  • awsAuthRefresh refresh AWS credentials automatically

Actual Behavior

<!-- What actually happened -->

  • awsAuthRefresh seems not to work.

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

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