Module auth

Source
Expand description

Authentication utilities for managing API keys and authorization tokens.

Functionsยง

load_api_key_from_env
Attempts to load an API key from environment variables. Checks for OPENROUTER_API_KEY and OR_API_KEY.
validate_api_key
Validates an API key format. Basic validation to check if the key is non-empty and has a reasonable length.