# CLAUDE_CODE_AUTO_MODE_MODEL

> It picks the model that checks actions in auto mode.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_AUTO_MODE_MODEL environment variable

## Think of it like

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

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

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

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

## Why it matters

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

## Common mistake

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

## Three principles

- **The checker model.** Not the main one.
- **Full model ID.** Not an alias.
- **For auto mode.** Only.

## Related terms

- [Auto Mode](https://learn.benibix.com/term/ai/auto-mode)
- [ANTHROPIC_MODEL](https://learn.benibix.com/term/ai/anthropic-model-variable)
- [Permission Mode](https://learn.benibix.com/term/ai/permission-mode)

---

Source: https://learn.benibix.com/term/ai/claude-code-auto-mode-model-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.
