Authentication
Coldrune uses passwordless authentication. No passwords to remember or rotate.
Magic link login
Section titled “Magic link login”The code expires after 10 minutes. An incorrect guess invalidates the code immediately — you’ll need to request a new one.
Your session token is stored at ~/.config/coldrune/session with 0600 permissions.
Check your identity
Section titled “Check your identity”Log out
Section titled “Log out”Dev mode
Section titled “Dev mode”Set SMTP_HOST=log in your .env to print login codes to the server terminal instead of sending email. No SMTP credentials required.
API key authentication
Section titled “API key authentication”For CI/CD and automation, use service accounts instead of interactive login. Service accounts authenticate with an API key via the X-API-Key header.
The CLI auto-detects the auth method:
| Source | Prefix | Header |
|---|---|---|
| Session file | (none) | Authorization: Bearer <token> |
COLDRUNE_API_KEY env var | cr_sa_ | X-API-Key: <key> |
Rate limits
Section titled “Rate limits”| Action | Limit |
|---|---|
| Login requests | 5 per email per 15 minutes |
| Failed verifications | 10 per email per hour (hard lockout) |