Overview
kanari login authenticates you with the Kanari backend via a magic link sent to your email. After verification, the API key is saved automatically to ~/.kanari/config so you don’t need to set environment variables manually.
How it works
- You enter your email address
- Kanari sends you a magic link
- You click the link in your email — the browser shows “Verified!”
- The terminal receives the confirmation and saves your API key
Flags
After login
Once authenticated, all Kanari commands automatically use the saved API key — no need to setKANARI_API_KEY or pass --token:
~/.kanari/config and is readable only by your user (chmod 600):
Re-authenticating
If you need a new API key, just runkanari login again. The existing ~/.kanari/config will be overwritten.
Key resolution order
When running any Kanari command, the API key is resolved in this order:--tokenflag (explicit override)KANARI_API_KEYenvironment variable~/.kanari/config(saved bykanari login)api_keyfield in yourkanari.yaml