Environment variables

CLAUDE_CODE_MAX_TURNS

Caps the number of agentic turns allowed when none is specified.

Syntax

CLAUDE_CODE_MAX_TURNS

Type to search the reference, templates and lessons.