feat: add Claude Platform on AWS provider (anthropic-aws)#340
Open
Insung Park (magarage) wants to merge 1 commit into
Open
feat: add Claude Platform on AWS provider (anthropic-aws)#340Insung Park (magarage) wants to merge 1 commit into
Insung Park (magarage) wants to merge 1 commit into
Conversation
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
Adds a dedicated
anthropic-awsprovider for Claude Platform on AWS — the Anthropic-managed offering fronted by AWS (API-key auth, AWS Marketplace billing).The existing
anthropicprovider cannot target this endpoint: Claude Platform on AWS requires every request to carry ananthropic-workspace-idheader identifying the workspace, and the currentChatAnthropicsetup never sends it. PointingANTHROPIC_BASE_URLat the AWS gateway alone gets rejected. This PR wires that header in via a separate provider so the first-partyanthropicprovider is untouched.What it does
anthropic-aws(selectable in--init, or auto-detected fromANTHROPIC_AWS_API_KEY), separate from the first-partyanthropicprovider.ANTHROPIC_AWS_API_KEY→ sent asx-api-keyANTHROPIC_AWS_WORKSPACE_ID(wrkspc_…) → required, sent as theanthropic-workspace-idheaderAWS_REGION(falls back toAWS_DEFAULT_REGION) → base URL is derived ashttps://aws-external-anthropic.{region}.api.awsANTHROPIC_AWS_BASE_URL→ optional explicit override (proxy/testing)--initwizard: adds region + workspace-ID steps (skipped when already resolvable); shows them in the setup checklist.ANTHROPIC_AWS_API_KEYis redacted like other secrets; workspace ID / region / base URL are shown verbatim (not secrets).Example