[BUG] /Context does not work with Bedrock
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After setting up Claude Code with Bedrock as per https://code.claude.com/docs/en/amazon-bedrock and the 'main' and 'small' model work correctly running> /context
⎿ Error: 400 The provided model identifier is invalid.
There is no sign in console or debug logs as to which model it called.
There is sign it's successfully using the configured Bedrock models in this caseexport ANTHROPIC_MODEL='global.anthropic.claude-opus-4-5-20251101-v1:0'
export ANTHROPIC_SMALL_FAST_MODEL='global.anthropic.claude-haiku-4-5-20251001-v1:0'
For other purposes by running /cost which reports both have been used. Other features seem to work.
What Should Happen?
Claude to be able to run /Context without errors
Error Messages/Logs
Error: 400 The provided model identifier is invalid.`
2025-11-28T13:40:02.681Z [ERROR] Error streaming, falling back to non-streaming mode: 400 The provided model identifier is invalid.
2025-11-28T13:40:02.989Z [DEBUG] Writing to temp file: /Users/ben.gidley/.claude.json.tmp.56555.1764337202989
2025-11-28T13:40:02.990Z [DEBUG] Preserving file permissions: 100600
2025-11-28T13:40:02.991Z [DEBUG] Temp file written successfully, size: 45364 bytes
2025-11-28T13:40:02.991Z [DEBUG] Applied original permissions to temp file
2025-11-28T13:40:02.991Z [DEBUG] Renaming /Users/ben.gidley/.claude.json.tmp.56555.1764337202989 to /Users/ben.gidley/.claude.json
2025-11-28T13:40:02.992Z [DEBUG] File /Users/ben.gidley/.claude.json written atomically
2025-11-28T13:40:03.728Z [ERROR] Error in non-streaming fallback: 400 The provided model identifier is invalid.
2025-11-28T13:40:03.731Z [DEBUG] Getting matching hook commands for SubagentStop with query: undefined
2025-11-28T13:40:03.732Z [DEBUG] Found 0 hook matchers in settings
2025-11-28T13:40:03.732Z [DEBUG] Matched 0 unique hooks for query "no match query" (0 before deduplication)
2025-11-28T13:40:03.759Z [DEBUG] Detected Homebrew cask installation: /opt/homebrew/Caskroom/claude-code/2.0.55/claude
2025-11-28T13:40:03.760Z [DEBUG] AutoUpdaterWrapper: Installation type: package-manager
2025-11-28T13:40:04.194Z [DEBUG] Detected Homebrew cask installation: /opt/homebrew/Caskroom/claude-code/2.0.55/claude
2025-11-28T13:40:04.195Z [DEBUG] AutoUpdaterWrapper: Installation type: package-manager
2025-11-28T13:40:04.921Z [DEBUG] Stream started - received first chunk
2025-11-28T13:40:05.900Z [DEBUG] Getting matching hook commands for SubagentStop with query: undefined
2025-11-28T13:40:05.900Z [DEBUG] Found 0 hook matchers in settings
2025-11-28T13:40:05.900Z [DEBUG] Matched 0 unique hooks for query "no match query" (0 before deduplication)
2025-11-28T13:40:07.336Z [DEBUG] Detected Homebrew cask installation: /opt/homebrew/Caskroom/claude-code/2.0.55/claude
2025-11-28T13:40:07.344Z [DEBUG] AutoUpdaterWrapper: Installation type: package-manager
2025-11-28T13:40:07.354Z [DEBUG] Slash commands included in SlashCommand tool:
2025-11-28T13:40:07.355Z [DEBUG] Skills and commands included in Skill tool:
2025-11-28T13:40:07.355Z [DEBUG] Total plugin output styles loaded: 0
2025-11-28T13:40:08.163Z [DEBUG] FileHistory: Added snapshot for c8a81782-0d85-4a2d-9462-cca04ac12f89, tracking 0 files
2025-11-28T13:40:08.167Z [DEBUG] Rendering user message with 1 content blocks
2025-11-28T13:40:08.167Z [DEBUG] Block 0: <command-name>/context</command-name>
<command-message>context</command-message>
...
2025-11-28T13:40:08.168Z [DEBUG] UserCommandMessage rendering: "context" (args: "none")
2025-11-28T13:40:08.168Z [DEBUG] isSkillFormat: false, prefix: "/"
2025-11-28T13:40:08.257Z [DEBUG] Writing to temp file: /Users/ben.gidley/.claude.json.tmp.56555.1764337208257
2025-11-28T13:40:08.257Z [DEBUG] Preserving file permissions: 100600
2025-11-28T13:40:08.257Z [DEBUG] Temp file written successfully, size: 45365 bytes
2025-11-28T13:40:08.257Z [DEBUG] Applied original permissions to temp file
2025-11-28T13:40:08.258Z [DEBUG] Renaming /Users/ben.gidley/.claude.json.tmp.56555.1764337208257 to /Users/ben.gidley/.claude.json
2025-11-28T13:40:08.258Z [DEBUG] File /Users/ben.gidley/.claude.json written atomically
2025-11-28T13:40:10.441Z [DEBUG] Stream started - received first chunk
2025-11-28T13:41:08.260Z [DEBUG] Getting matching hook commands for Notification with query: idle_prompt
2025-11-28T13:41:08.260Z [DEBUG] Found 0 hook matchers in settings
2025-11-28T13:41:08.261Z [DEBUG] Matched 0 unique hooks for query "idle_prompt" (0 before deduplication)
Steps to Reproduce
- Configure Claude for Bedrock
- Start Claude
- Run /Context
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.55 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗