CLAUDE_CODE_PER_TURN_TIMING
Updated by Alex Sorokoletov
CLAUDE_CODE_PER_TURN_TIMING is a Claude Code environment variable. Added between v2.1.269 and v2.1.283 and still present in v2.1.310. It is not in the official reference.
| Status | Present in v2.1.310 |
|---|---|
| Added | Added between v2.1.269 and v2.1.283 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_PER_TURN_TIMING=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_PER_TURN_TIMING": "<value>"
}
}Related variables
CLAUDE_CODE_FILE_READ_MAX_PDF_PAGES_PER_TURN: Caps the running total of PDF pages the Read tool loads across a turn, working with the per-message cap above.CLAUDE_CODE_FILE_READ_MAX_PDF_PAGES_PER_MESSAGE: Caps how many PDF pages the Read tool loads within a single message.CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCANCLAUDE_CODE_EMIT_STARTUP_TIMINGCLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERYCLAUDE_CODE_SILENT_TURN_REMINDERCLAUDE_CODE_SILENT_TURN_REMINDER_SECONDSCLAUDE_CODE_SILENT_TURN_REMINDER_TEXT
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_PER_TURN_TIMING?
Added between v2.1.269 and v2.1.283 and still present in v2.1.310.
How do I set CLAUDE_CODE_PER_TURN_TIMING?
Export it before starting Claude Code (export CLAUDE_CODE_PER_TURN_TIMING=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.