# CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK=1

## Think of it like

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

## 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

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

## Example code

```bash
export CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK=1
claude
```

Fail loudly if the model goes away.

## Why it matters

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

## Common mistake

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

## Three principles

- **No quiet switch.** Fails at once.
- **Bedrock and Google.** Where it applies.
- **Your list still works.** fallbackModel.

## Related terms

- [--fallback-model Flag](https://learn.benibix.com/term/ai/fallback-model-flag)
- [Model Fallback](https://learn.benibix.com/term/development/model-fallback)
- [CLAUDE_CODE_USE_BEDROCK](https://learn.benibix.com/term/ai/claude-code-use-provider-variables)

---

Source: https://learn.benibix.com/term/ai/claude-code-disable-model-access-fallback-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
