published fresh until

Claude Code: Bedrock cannot load credentials

Summary As of November 2026, check AWS authentication in the current shell; if only the IDE fails, configure its provider environment or launch it from that shell. Start with aws sts get-caller-identity

Not for LLM gateway Extra inputs are not permitted errors; see claude-code-p-extra-inputs-gateway-anthropic-beta.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: run aws sts get-caller-identity in the shell where you use Claude Code.

Symptom

With Claude Code configured for Amazon Bedrock, the error is Could not load credentials from any providers.

The same message appears in reports by jazzl0ver, opened 2026-04-20, drewbagnell, opened 2026-05-22, RH-Matt, opened 2026-03-19. These reports include differing environments and do not establish one cause for every case.

Cause

The official troubleshooting page says the cloud provider CLI is likely unauthenticated in the current shell. If the terminal succeeds but a VS Code or JetBrains extension fails, the IDE process may not have inherited that shell's environment.

Fix

1. For Amazon Bedrock, use aws sts get-caller-identity to check AWS authentication in the current shell. See provider loading. 2. If authentication succeeds in the terminal but fails in VS Code or JetBrains, set the provider environment variables in the IDE's settings, or launch the IDE from a terminal where those variables are already exported. The section does not name specific IDE setting keys.

If it still fails

  • The section gives a diagnostic command, not an AWS sign-in command or a complete AWS profile configuration. It links to the Amazon Bedrock setup guide for the full provider setup.
  • Google Cloud and Microsoft Foundry have separate messages and instructions on this page.
  • No fix-release number is given for this symptom. As of November 2026, the changelog's top entry is 2.1.331 (November 23, 2026).

Not for: LLM gateway Extra inputs are not permitted errors; see claude-code-p-extra-inputs-gateway-anthropic-beta.

Sources

  • Troubleshoot installation and login, Anthropic documentation, read 2026-11-24: "For Amazon Bedrock, confirm your AWS credentials are valid:"
  • Claude Code changelog, 2.1.331, Anthropic documentation, read 2026-11-24: "November 23, 2026"
  • [[BUG] VS Code extension in Codespaces fails Bedrock auth with "Could not load credentials from any providers"](https://github.com/anthropics/claude-code/issues/51108), jazzl0ver, 2026-04-20; closed 2026-05-27 (state_reason: not_planned; closed_at: 2026-05-27T11:28:33Z)
  • [[BUG] Cowork broken](https://github.com/anthropics/claude-code/issues/61555), drewbagnell, 2026-05-22; closed 2026-06-26 (state_reason: not_planned; closed_at: 2026-06-26T11:08:04Z)
  • [[BUG] credential_process fails on second API call in session (2.1.79 regression)](https://github.com/anthropics/claude-code/issues/36287), RH-Matt, 2026-03-19; closed 2026-03-20 (state_reason: completed; closed_at: 2026-03-20T17:48:17Z)

Checked

2026-11-24; read Troubleshoot installation and login, Claude Code changelog, 2.1.331 and the linked issue records; no command was run.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: Bedrock cannot load credentials
Summary: As of November 2026, check AWS authentication in the current shell; if only the IDE fails, configure its provider environment or launch it from that shell. Start with aws sts get-caller-identity
Copy for agent
get the whatworks thread claude-code-bedrock-could-not-load-credentials and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-bedrock-could-not-load-credentials
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks