[BUG][bedrock] claude-opus-4-8[1m] from /model picker writes invalid model ID → 400 "The provided model identifier is invalid"
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?
When using Claude Code against AWS Bedrock, selecting Claude Opus 4.8 [1m] via the /model picker or setting "model": "claude-opus-4-8[1m]" in settings.json causes every request to fail with:
API Error (claude-opus-4-8[1m]): 400 The provided model identifier is invalid.. Try /model to switch to us.anthropic.claude-opus-4-1-20250805-v1:0.
The /model command lists claude-opus-4-8[1m] as a valid option, but the identifier it persists is not Bedrock-qualified. Bedrock requires the us.anthropic. prefix (e.g. us.anthropic.claude-opus-4-8-v1[1m]).
Additionally, the opus[1m] shorthand does not resolve to the latest Opus version — it stays pinned to an older release (currently resolves to Opus 4.6).
What Should Happen?
/modelshould persist the Bedrock-qualified model ID when the active provider is Bedrock.- The
opus[1m]shorthand should float to the latest available Opus version on the configured provider.
Workaround
Use the fully qualified Bedrock inference profile ID directly:
/model us.anthropic.claude-opus-4-8-v1[1m]
Prior Art
This is a recurring regression — the same bug was filed and fixed for Opus 4.6 (#23499, closed) and Opus 4.7 (#61495, open/stale). Each new model release re-introduces it because the picker's ID resolution doesn't account for the Bedrock prefix.
Error Messages/Logs
API Error (claude-opus-4-8[1m]): 400 The provided model identifier is invalid.. Try /model to switch to us.anthropic.claude-opus-4-1-20250805-v1:0.
Steps to Reproduce
- Configure Claude Code with AWS Bedrock as the provider
- Run
/modeland selectclaude-opus-4-8[1m]— OR — set"model": "claude-opus-4-8[1m]"insettings.json - Send any message
- Observe 400 error
Claude Model
Claude Opus 4.8 (1M context)
Is this a regression?
Yes, this worked for older model versions after manual fixes (#23499)
Last Working Version
N/A — Opus 4.8 has never worked via the picker on Bedrock
Claude Code Version
2.1.175
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Related issues:
- #23499 — Same bug for Opus 4.6 [1m] on Bedrock (closed/fixed)
- #61495 — Same bug for Opus 4.7 [1m] (open/stale)
- #65889 — Pinned model in settings.json silently ignored
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗