Answer: Set the environment variables ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, and ANTHROPIC_DEFAULT_HAIKU_MODEL to specific Amazon Bedrock model IDs. For example, export ANTHROPIC_DEFAULT_OPUS_MODEL='us.anthropic.claude-opus-4-8' and export ANTHROPIC_DEFAULT_SONNET_MODEL='us.anthropic.claude-sonnet-4-6'. Status: Confirmed Entry: tool/claude-code/models/pin-model-versions Revision: 2 Digest: sha256:922c1c0920bfd86d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:13Z Last changed: 2026-11-18T12:13:41Z (Default sonnet alias resolution: — → Sonnet 4.5) Last verified: 2026-11-20T12:17:56Z Next check: 2026-11-21T12:17:56Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Opus pin variable | ANTHROPIC_DEFAULT_OPUS_MODEL | [1] | 2026-11-20 Sonnet pin variable | ANTHROPIC_DEFAULT_SONNET_MODEL | [1] | 2026-11-20 Haiku pin variable | ANTHROPIC_DEFAULT_HAIKU_MODEL | [1] | 2026-11-20 Default opus alias resolution | Opus 5.5 | [1] | 2026-11-20 Default sonnet alias resolution | Sonnet 4.5 | [1] | 2026-11-20 GovCloud prefix | us-gov. | [1] | 2026-11-20 Sources: [1] Anthropic. "Claude Code on Amazon Bedrock". https://code.claude.com/docs/en/amazon-bedrock.md Role: primary. Accessed: 2026-11-20T12:17:56Z Quote: "export ANTHROPIC_DEFAULT_OPUS_MODEL='us.anthropic.claude-opus-4-8'" (Supports: Opus pin variable) Quote: "export ANTHROPIC_DEFAULT_SONNET_MODEL='us.anthropic.claude-sonnet-4-6'" (Supports: Sonnet pin variable) Quote: "export ANTHROPIC_DEFAULT_HAIKU_MODEL='us.anthropic.claude-haiku-4-5-20251001-v1:0'" (Supports: Haiku pin variable) Quote: "the `opus` alias on Amazon Bedrock resolves to Opus 5.5" (Supports: Default opus alias resolution) Quote: "the `sonnet` alias resolves to Sonnet 4.5" (Supports: Default sonnet alias resolution) Quote: "In AWS GovCloud regions, use the `us-gov.` prefix." (Supports: GovCloud prefix) Published: 2026-11-20T03:13:32Z Snapshot SHA-256: bf97c0351fbb18b8a8435014287aeb76bc77fa1ba950656d3bbc83d49fed5f7f (captured 2026-11-17T12:22:20Z) 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-17T12:22:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:17:56Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:56Z Last attempt: 2026-11-20T12:17:56Z Notes and limitations: Extracted automatically from a single official source (section "4. Pin model versions"). Related: https://latestn.com/tool/claude-code/models/pin-model-versions-aws How do I pin model versions when using Claude Code on Claude Platform on AWS? https://latestn.com/tool/claude-code/models/pin-model-versions-cloud How do I pin model versions for cloud providers when deploying Claude Code? https://latestn.com/tool/claude-code/models/pin-model-versions-foundry How do I pin Claude model versions when deploying Claude Code on Microsoft Foundry? https://latestn.com/tool/claude-code/models/gateway-model-discovery How does Claude Code discover available models through a gateway? https://latestn.com/tool/claude-code/models/model-aliases What model aliases are available in Claude Code? https://latestn.com/tool/claude-code/models/models-available-under-zdr Which models are available in Claude Code under Zero Data Retention? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:13:41Z | changed | Default sonnet alias resolution: — → Sonnet 4.5 | [1] 2026-11-18T12:13:41Z | changed | Default opus alias resolution: — → Opus 5.5 | [1] 2026-11-18T12:13:41Z | changed | Default sonnet alias without pinning: Sonnet 4.5 → — | [1] 2026-11-18T12:13:41Z | changed | Default opus alias without pinning: Opus 5.5 → — | [1] 2026-11-13T03:03:13Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/models/pin-model-versions/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/models/pin-model-versions POST: https://latestn.com/dispute/tool/claude-code/models/pin-model-versions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/models/pin-model-versions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I pin model versions for Claude Code on Amazon Bedrock? Revision 2, last verified 2026-11-20T12:17:56Z. https://latestn.com/tool/claude-code/models/pin-model-versions (accessed 2026-11-21T09:53:54Z). @misc{LatestN_tool_claude_code_models_pin_model_versions_r2, title = {How do I pin model versions for Claude Code on Amazon Bedrock?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/models/pin-model-versions}}, note = {Revision 2; digest sha256:922c1c0920bfd86d; last verified 2026-11-20T12:17:56Z; accessed 2026-11-21T09:53:54Z} } 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/models/pin-model-versions