gizzi auth login --api-key $ALLTERNIT_API_KEY --provider allternit --profile work
If --api-key is omitted, the CLI prompts interactively. The key is stored according to auth.credential_store in config.toml.
With a third-party provider
gizzi auth login --api-key $PROVIDER_KEY --provider local --base-url http://localhost:11434/v1
Check status
gizzi auth status
Output is one of:
Authenticated via OAuth token
Authenticated via API key: <profile>
Not authenticated
Authentication profiles
Each profile stores a provider, optional API key, api_key_env reference, and base_url. The first profile created becomes the active profile automatically.
gizzi auth profile listgizzi auth profile add local --provider local --base-url http://localhost:11434/v1gizzi auth profile set-active workgizzi auth profile remove local
Credential store
The auth.credential_store setting controls where secrets are persisted:
Store
Behavior
file
Secrets are written inline in config.toml under the auth profile.
keyring
Secrets are delegated to the OS keyring via a pluggable backend.
auto
Prefer keyring; fall back to file if no keyring backend is available.
Never commit config.toml to version control when it contains API keys. Add it to .gitignore.
Headless / CI authentication
For headless environments, pass the API key via environment variable — no interactive login is required:
Allternit Cloud chat signs each request with the first credential it finds:
ALLTERNIT_API_KEY
ALLTERNIT_API_TOKEN. Allternit Desktop sets this to the computer’s device token, on your own computer and on an Allternit cloud computer.
The device token from gizzi login or gizzi pair.
Allternit Cloud accepts a device token for chat only, as the computer’s owner, and bills the owner’s Cloud credits. The same token can’t call other Cloud routes.