check_status()

Check whether the claude CLI is installed and authenticated.

Usage

Source

check_status(timeout=10)

Looks for claude on PATH, then runs claude auth status.

Parameters

timeout: int = 10
Seconds to wait for claude auth status before subprocess.TimeoutExpired is raised.

Returns

ClaudeStatus
ClaudeReady when authenticated, ClaudeNotInstalled when not on PATH, else ClaudeNotAuthenticated.