opencode
opencode copied to clipboard
[FEATURE]: support awsAuthRefresh configuration on bedrock
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
In Claude Code, there is a configuration called awsAuthRefresh, which is a command to auto refresh the sso during the connection if if fails. For me, it's configured to aws sso login --profile claude.
It's very convenient since I have several profiles on AWS, and when the CLI logins to a different profile during the work, I need to login again, and it automatically works. Will glad to see this feature in opencode as well.
https://code.claude.com/docs/en/amazon-bedrock#advanced-credential-configuration