Environment variables

CLAUDE_PID

Supplies the main Claude Code process identifier to launched tool subprocesses and hook executions.

Syntax

CLAUDE_PID

Type to search the reference, templates and lessons.