feat: add AWS Bedrock authentication support#167
Open
Samuel7192 wants to merge 1 commit into21st-dev:mainfrom
Open
feat: add AWS Bedrock authentication support#167Samuel7192 wants to merge 1 commit into21st-dev:mainfrom
Samuel7192 wants to merge 1 commit into21st-dev:mainfrom
Conversation
Add AWS Bedrock as an alternative authentication method alongside Anthropic OAuth, allowing users to access Claude models through their AWS credentials. Backend: - Stop stripping CLAUDE_CODE_USE_BEDROCK env var - Conditionally preserve AWS credentials in Bedrock mode - Add anthropic_auth_settings DB table for auth mode persistence - Add tRPC router for auth settings (get/update/validate) - Add Bedrock credential validation before SDK execution Onboarding: - Add "AWS Bedrock" as billing method option with Cloud icon - Add dedicated Bedrock onboarding page with region/profile config - Real-time AWS credential detection during setup Settings: - Add Authentication tab to switch between OAuth and Bedrock - Show credential status, region, and profile configuration UI indicators: - Provider status badge in chat toolbar (Bedrock/API Key/Custom) - "Bedrock" tag in model selector dropdown header - Bedrock-aware connection status in model selector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.aws/credentialsor environment variables)Changes
Backend (main process):
CLAUDE_CODE_USE_BEDROCKfrom stripped env vars so the SDK can use itanthropic_auth_settingsDB table + Drizzle migration for persisting auth mode preferenceanthropicAuthtRPC router withgetSettings,updateSettings, andvalidateAwsCredentialsproceduresOnboarding:
~/.aws/credentials, named profiles)Settings:
UI indicators:
isConnectedchecks so Claude models appear when Bedrock auth is configuredSecurity
mcp-auth.ts)Test plan
bun run buildsucceeds with no exposed secrets