Unable to use Claude4 with aws
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I believe this is a bug. I'll try to join the Continue Discord for questions
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: macOS
- Continue version:1.0.30
- IDE version:VSCode 1.102.3
- Model: Claude Sonnet 3.7/Claude Sonnet 4
- config:
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: Claude 4 Sonnet
provider: bedrock
model: us.anthropic.claude-sonnet-4-20250514-v1:0
region: us-east-1
env:
aws_access_key_id: xxxxxxx
aws_secret_access_key: xxxxx
endpoint_url: https://xxxxx.cloudfront.net
roles:
- chat
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
Description
Description
Can't call normally, I can use python boto3 normal question and answer with the same configuration.
To reproduce
No response
Log output
Error handling model response
There was an error handling the response from Claude 4 Sonnet.
Please try to submit your message again, and if the error persists, let us know by reporting the issue using the buttons below.
Could not load credentials from any providers
How are you authenticating to AWS? SSO, or ? We see this similar issues when local credentials files aren't correct/or aligned for example.
In your env section I see you don't specify a profile. In this case it defaults to looking for one called "bedrock" so that might also be something to check.
Thank you, I have found the solution.
Thank you, I have found the solution.
I'm getting the same error while on Windows (windows only, not mac or linux). What was your issue's root cause?
How are you authenticating to AWS? SSO, or ? We see this similar issues when local credentials files aren't correct/or aligned for example.
In your env section I see you don't specify a profile. In this case it defaults to looking for one called "bedrock" so that might also be something to check.
I'm using sso. I can do the same process on a mac that I do on windows, and my windows machine gives this same error while my mac machine works.
I believe I've found the issue - when there's a "HOME" environment variable set, Continue doesn't properly use the aws cli.
If users remove the HOME environment variable it works...
Thank you, I have found the solution.
Could you please share what was the solution? I'm having the same problem. I have tried using both access keys and profile (authenticated via SSO). I can also access the mode using python boto3.
Thank you, I have found the solution.
Could you please share what was the solution? I'm having the same problem. I have tried using both access keys and profile (authenticated via SSO). I can also access the mode using python boto3.
As a temp work around just copy/paste your .aws folder from the root of your user directory to wherever you have your HOME environment set.