Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication subcommand builders.

Builders for the claude auth surface: AuthStatusCommand, AuthLoginCommand, AuthLogoutCommand, and SetupTokenCommand. For detecting which auth strategy the CLI will use without invoking it, see crate::auth.

Structs§

AuthLoginCommand
Authenticate with Claude.
AuthLogoutCommand
Deauthenticate from Claude.
AuthStatusCommand
Check authentication status.
SetupTokenCommand
Set up a long-lived authentication token.

Enums§

LoginMode
Which billing path the CLI should authenticate against. Maps to --claudeai (subscription) or --console (Anthropic Console / API usage billing) on claude auth login.