You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add credential cache management with --clear-cache command
- Added --clear-cache flag to credential-process for clearing stored credentials
- Implemented smart clearing that replaces credentials with expired dummies to avoid macOS keychain permission prompts
- Enhanced OTEL helper to use credential-process, preventing direct keychain access
- Fixed OTEL helper to fail cleanly instead of returning default user attributes
- Added automatic credential clearing on authentication failures
- Updated documentation with troubleshooting guidance
This feature enables users to easily clear cached credentials when switching
accounts or resolving authentication issues, while maintaining a smooth
experience without repeated OS permission prompts.
Claude Code automatically uses the AWS profile for authentication. Behind the scenes, it calls the credential process whenever it needs to access Bedrock, with all authentication handled transparently.
170
+
171
+
### Important: AWS Credential Precedence
172
+
173
+
When testing, be aware that AWS CLI uses the following credential precedence order:
If you have AWS credentials in environment variables (e.g., from other tools like Isengard), they will override the ClaudeCode profile. To ensure you're using the Claude Code authentication:
183
+
184
+
```bash
185
+
# Clear any existing AWS credentials from environment
0 commit comments