Skip to main content

Crate alex_auth

Crate alex_auth 

Source

Modules§

login
sessions

Structs§

Account
AccountPolicy
ImportOutcome
Vault

Enums§

AccountPolicyMode

Constants§

ANTHROPIC_CLIENT_ID
ANTHROPIC_TOKEN_URL
GEMINI_CLIENT_ID
GOOGLE_TOKEN_URL
OPENAI_CLIENT_ID
OPENAI_TOKEN_URL
XAI_CLIENT_ID
XAI_TOKEN_URL

Functions§

codex_reserve_blocked
codex_reserve_pct
codex_reset_selection
The binding quota window is the active window closest to exhaustion. Ties use the earlier reset. This avoids always picking the short window when a weekly/monthly window is the actual constraint.
gemini_client_secret
grok_accounts_from_json
import_all
import_amp
Import Amp API key from ~/.local/share/amp/secrets.json (CLI login material).
jwt_exp_ms
named_account_id
now_ms
rfc3339_to_ms
save_amp_api_key
Save an Amp API key provided by the user (settings token / AMP_API_KEY).