Skip to content
BENIBIX Learn

CLAUDE_CODE_AUTO_MODE_MODEL

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_AUTO_MODE_MODEL environment variable

It picks the model that checks actions in auto mode.

Think of it like

It is like you pick which guard checks the bags at the door.

Example

Emma's gateway only serves a few models. She points the auto mode checker at one it serves, and auto mode starts working.

Why it matters

Auto mode needs its checker to be reachable. On a gateway or cloud, the default may not be.

Definition

CLAUDE_CODE_AUTO_MODE_MODEL sets the model that checks each step in auto mode. That checker says if a step is safe to run without asking you. Give it a full model ID, such as claude-sonnet-4-6. It needs version 2.1.302 or later.

Example code

bash
export CLAUDE_CODE_AUTO_MODE_MODEL=claude-sonnet-4-6
claude --permission-mode auto
Use Sonnet 4.6 as the auto mode checker.

Common mistake

Giving a short name like sonnet. It wants the full model ID.

Key takeaways

  1. 1
    The checker model. Not the main one.
  2. 2
    Full model ID. Not an alias.
  3. 3
    For auto mode. Only.