⌨️CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK
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
Example code
bash
export CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK=1
claudeCommon mistake
Key takeaways
- 1No quiet switch. Fails at once.
- 2Bedrock and Google. Where it applies.
- 3Your list still works. fallbackModel.