Actions6
Authentication → Login Status
AI-generatedSummary
Validate Claude CLI login status, optionally fetch remote profile to validate tokens, and optionally throw if not logged in.
Inputs
- operation (required) — The operation to execute; for this description, 'Login Status' (value: 'status').
Output shape
object
Returns per-item status including login state, account info, and token validity.
Examples
Example 1: Check if user has a valid Claude CLI session and enforce login if required.
Enable failIfNotLoggedIn to halt the workflow when no valid login is detected, or set checkRemoteProfile to validate stored tokens against Anthropic's API.