What
When Claude Code runs through a third-party cloud provider such as Amazon Bedrock or Google Vertex, it checks which models your account can use. It can also fill in the default model environment variables for you. An environment variable is a named setting passed to the program when it starts. This release extends that handling and adds an automatic fallback:
ANTHROPIC_DEFAULT_HAIKU_MODELnow gets aCLAUDE_CODE_3P_PROBE_WROTE_HAIKU_DEFAULTmarker. When Claude Code's own availability check wrote the value, it is no longer treated as something you set yourself. This already worked this way for Opus and Sonnet. Before, the Haiku variable always counted as user-set.- New
CLAUDE_CODE_3P_SEEDED_SONNET_DEFAULTandCLAUDE_CODE_3P_SEEDED_OPUS_DEFAULTvariables record when a Sonnet or Opus default was filled in automatically. These markers are passed on to child processes along with the other model variables. - A new fallback ladder moves a model tier down to the next model when your account cannot access the one it would use. The ladder follows the model environment variables. The error shown reads "is not available to this account. Ask your cloud admin to enable it, or choose another model."
- When the Opus tier falls back,
ANTHROPIC_DEFAULT_OPUS_MODEL_NAMEandANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTIONare rewritten to say Opus is unavailable and to name the model used instead. - When the default Sonnet model is unavailable on Bedrock or Vertex, the replacement model is now also registered with Claude Code, not only written to the environment variable. This path sits behind a server-controlled switch,
tengu_bedrock_default_fallback. CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACKturns the fallback ladder off, alongside the existingCLAUDE_CODE_NO_MODEL_FALLBACK.
Why
If your cloud account has not enabled a model, Claude Code may now switch to a different one instead of failing. The model picker will say so. If you would rather get an error than a silent downgrade, set CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK.
| Model for [background tasks](/docs/en/costs#background-token-usage) unless `ANTHROPIC_DEFAULT_HAIKU_MODEL` pins one | The default Sonnet model, or the main model once one is selected, as the [Amazon Bedrock](/docs/en/amazon-bedrock#4-pin…see the edit
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | The model to use for `haiku`, or [background functionality](/docs/en/costs#background-token-usage) |see the edit
It is not clear what sets the new Sonnet and Opus markers.
ANTHROPIC_DEFAULT_HAIKU_MODEL on Claude Code gateway compatibility guide
New in this build: CLAUDE_CODE_3P_PROBE_WROTE_HAIKU_DEFAULT