claude-code - 💡(How to fix) Fix Auto mode unavailable when using Bedrock inference profiles [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55038Fetched 2026-05-01 05:47:52
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2closed ×1
RAW_BUFFERClick to expand / collapse

Auto mode is unavailable when Claude Code is configured to use AWS Bedrock via CLAUDE_CODE_USE_BEDROCK=1. The UI shows "auto mode unavailable for this model" despite defaultMode: auto being set in settings.json and the --enable-auto-mode flag being passed to the binary.

Configuration

  • CLAUDE_CODE_USE_BEDROCK=1
  • model: us.anthropic.claude-sonnet-4-6 (cross-region inference profile)
  • permissions.defaultMode: auto
  • Binary invoked with --enable-auto-mode
  • Claude Code version: 2.1.123

Expected behaviour

Auto mode should work with Bedrock cross-region inference profiles the same way it works with direct Anthropic API model IDs.

Actual behaviour

"Auto mode unavailable for this model" is shown. Switching to the same model via the direct Anthropic API (non-Bedrock) makes auto mode available immediately, confirming the issue is specific to Bedrock model ID recognition.

Likely cause

The auto mode availability check appears to use a hardcoded allowlist of Anthropic API model ID strings. Bedrock inference profile IDs (us.anthropic.claude-sonnet-4-6, global.anthropic.claude-sonnet-4-6) are not in that allowlist, even though they resolve to the same underlying model.

extent analysis

TL;DR

Update the auto mode availability check to include Bedrock inference profile IDs or remove the hardcoded allowlist to enable auto mode with Bedrock models.

Guidance

  • Verify that the CLAUDE_CODE_USE_BEDROCK=1 environment variable is correctly set and the --enable-auto-mode flag is passed to the binary.
  • Check the hardcoded allowlist of Anthropic API model ID strings to confirm that Bedrock inference profile IDs are not included.
  • Consider modifying the auto mode availability check to resolve Bedrock inference profile IDs to their underlying models before checking against the allowlist.
  • Test auto mode with a direct Anthropic API model ID to confirm that it works as expected.

Example

No code snippet is provided as the issue does not contain sufficient information about the implementation details.

Notes

The solution may require modifications to the Claude Code source code, and the exact changes will depend on the implementation details of the auto mode availability check.

Recommendation

Apply a workaround by modifying the auto mode availability check to include Bedrock inference profile IDs or remove the hardcoded allowlist, as updating to a fixed version is not mentioned in the issue. This is because the issue is specific to the Bedrock model ID recognition, and a workaround can be implemented to resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Auto mode unavailable when using Bedrock inference profiles [2 comments, 2 participants]