CLAUDE_CODE_PER_TURN_TIMING
Updated by Alex Sorokoletov
CLAUDE_CODE_PER_TURN_TIMING is a Claude Code environment variable: When set, enables per-turn timing for models that support it; without it the feature stays off. Added between v2.1.269 and v2.1.283 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| 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_CCR_FOLD_FIRST_TURN_RESCAN: When set and plugin startup is still pending, folds the first-turn command rescan into the plugin state refresh instead of running a separate command refresh.CLAUDE_CODE_EMIT_STARTUP_TIMING: When set, emits startup timing phase metrics, which are also emitted in remote mode; otherwise they are not reported.CLAUDE_CODE_FILE_READ_MAX_PDF_PAGES_PER_MESSAGE: Caps how many PDF pages the Read tool loads within a single message.CLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERY: When frame-timing logging is enabled, includes the extra per-frame memory sample every Nth frame; minimum 1, defaults to 1.CLAUDE_CODE_SILENT_TURN_REMINDER: Toggles an injected reminder that fires after several turns with no update to the user, prompting Claude to report a finding or a change of plan.CLAUDE_CODE_SILENT_TURN_REMINDER_SECONDS: Set the number of seconds of silence before the silent-turn reminder fired; when unset, a configured setting applied.CLAUDE_CODE_SILENT_TURN_REMINDER_TEXT: Overrides the text of the silent-turn reminder (the nudge injected after turns that produce no output).
Frequently asked questions
What does CLAUDE_CODE_PER_TURN_TIMING do?
When set, enables per-turn timing for models that support it; without it the feature stays off.
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.332.
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.