Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK=1

Set to 1, it fails a request in place of a quiet model switch.

Think of it like

It is like you say: if my drink is gone, tell me. Do not just hand me a new one.

Example

Jack runs tests that must use one model. He sets this, so a lost model shows up as an error, not as odd results.

Why it matters

A quiet switch can make results change for no clear reason. A clear error is easier to fix.

Definition

CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK set to 1 stops a quiet switch to an old model. On Bedrock and Google Cloud, Claude Code moves to an old model if you lose access to yours. With this set, the request fails at once. A fallback list you set still works.

Example code

bash
export CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK=1
claude
Fail loudly if the model goes away.

Common mistake

Thinking it turns off your own fallback list. That still switches as you set it.

Key takeaways

  1. 1
    No quiet switch. Fails at once.
  2. 2
    Bedrock and Google. Where it applies.
  3. 3
    Your list still works. fallbackModel.