Module login

Module login 

Source
Expand description

Login command implementation

Functionsยง

get_ollama_client
Get Ollama client if configured
get_preferred_provider
Get the preferred provider (Anthropic > Google > Ollama)
is_authenticated
Check if user is authenticated with any provider (including Ollama)
is_ollama_configured
Check if Ollama is configured as the provider
logout
Run the logout command - remove all stored credentials
run
Run the login command - let user choose provider with arrow keys