Answer: Claude Code supports two authentication methods for Claude Platform on AWS: AWS credentials with SigV4 (using the standard AWS credential chain) or a workspace API key set as ANTHROPIC_AWS_API_KEY. The workspace API key is sent as x-api-key and takes precedence over SigV4. Status: Confirmed Entry: tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key Revision: 1 Digest: sha256:4c817e5db5e7d77d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:34Z Last changed: 2026-11-13T03:03:34Z Last verified: 2026-11-20T12:18:58Z Next check: 2026-11-21T12:18:58Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of API key environment variable | ANTHROPIC_AWS_API_KEY | [1] | 2026-11-20 API key header | x-api-key | [1] | 2026-11-20 Credential chain sources | environment variables, shared credentials in `~/.aws/credentials`, IAM roles, AWS SSO sessions | [1] | 2026-11-20 SSO login command | aws sso login --profile my-profile | [1] | 2026-11-20 Refresh setting | awsAuthRefresh | [1] | 2026-11-20 Sources: [1] Anthropic. "Claude Code on Claude Platform on AWS". https://code.claude.com/docs/en/claude-platform-on-aws.md Role: primary. Accessed: 2026-11-20T12:18:58Z Quote: "set it as `ANTHROPIC_AWS_API_KEY`" (Supports: API key environment variable) Quote: "The key is sent as `x-api-key` and takes precedence over SigV4" (Supports: API key header) Quote: "environment variables, shared credentials in `~/.aws/credentials`, IAM roles, AWS SSO sessions, and any other sources the AWS SDK supports" (Supports: Credential chain sources) Quote: "aws sso login --profile my-profile" (Supports: SSO login command) Quote: "configure [`awsAuthRefresh`](https://code.claude.com/docs/en/amazon-bedrock#advanced-credential-configuration) so Claude Code re-runs your login command" (Supports: Refresh setting) Published: 2026-11-20T10:36:06Z Snapshot SHA-256: 69a072a212cf41756ca453651124dc9858559b5b71ddef67e441f6376866862f (captured 2026-11-19T12:14:42Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:03:34Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:18:58Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:58Z Last attempt: 2026-11-20T12:18:58Z Notes and limitations: Extracted automatically from a single official source (section "1. Configure AWS credentials"). Related: https://latestn.com/tool/claude-code/permissions-and-security/block-on-hook-failure How do I block a tool call in Claude Code when a hook callback fails? https://latestn.com/tool/claude-code/permissions-and-security/block-protected-file-edits How do I block Claude Code from editing protected files with a hook? https://latestn.com/tool/claude-code/permissions-and-security/block-reads-generated-vendored-code How do I block reads of generated and vendored code in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/auto-approve-refuse-tool-call How do I approve or refuse a tool call in Claude Code before the user is asked? https://latestn.com/tool/claude-code/permissions-and-security/available-permission-modes What permission modes are available in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/available-permission-modes-2 What permission modes are available in Claude Code and what does each auto-approve? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:03:34Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I authenticate Claude Code with AWS credentials using SigV4 or a workspace API key? Revision 1, last verified 2026-11-20T12:18:58Z. https://latestn.com/tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key (accessed 2026-11-21T10:01:48Z). @misc{LatestN_tool_claude_code_permissions_and_security_aws_credentials_sigv4_api_key_r1, title = {How do I authenticate Claude Code with AWS credentials using SigV4 or a workspace API key?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key}}, note = {Revision 1; digest sha256:4c817e5db5e7d77d; last verified 2026-11-20T12:18:58Z; accessed 2026-11-21T10:01:48Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/permissions-and-security/aws-credentials-sigv4-api-key