Files
coder/cli
Seth ShelnuttandCian Johnston 10a22c8302 feat: support Claude Platform for AWS on the Anthropic provider (#29048)
## Summary

Adds Claude Platform for AWS as a variant of the Anthropic provider,
preserving the native Messages protocol and model IDs. Builds on the
merged SigV4 extraction in #29047. Configuration and UI follow in #29049
and #29050.

A provider-owned transport handles both bridged and passthrough
requests, sets the configured workspace header, and re-signs SDK
retries. Credential precedence is allowed BYOK, then the stored key
pool, then ambient AWS SigV4 when neither key source applies. Rejected
keys or an exhausted pool do not fall back to IAM. AWS configuration
loads lazily, so key-authenticated requests do not require working AWS
credentials.

There are no explicit authentication-mode, static AWS credential, Role
ARN, or external-ID fields for Claude Platform. Bedrock behavior and PRM
attribution remain separate. Anonymous Anthropic Messages support is out
of scope.

## Validation

- Full offline `go test -race ./aibridge/...` passed on this PR tip.
- Installed pre-commit hook passed, including generation, lint, and
build.
- Tests cover workspace-header signing, retries, key
precedence/failover, lazy credential recovery/cache, cancellation, and
stream lifetime.
- `TestClaudePlatformLive` sends a small real request through the bridge
when explicitly enabled. It was not run against AWS.

Co-authored-by: Cian Johnston <cian@coder.com>
2026-09-29 09:06:00 +01:00
..
…
…
…