Environment variables

CLAUDE_CODE_SESSION_ID

Provides the active session identifier automatically inside subprocess environments.

Syntax

CLAUDE_CODE_SESSION_ID

Type to search the reference, templates and lessons.