Skip to content

Authentication

mycli uses email-based magic links for authentication. No passwords needed.

Terminal window
my cli login
  1. The CLI prompts for your email address
  2. A magic link is sent to your inbox via the device auth flow
  3. Click the link to verify your email
  4. The CLI receives a JWT token and stores it securely

Auth tokens are stored in your operating system’s keyring (macOS Keychain, Linux Secret Service, Windows Credential Manager). If the keyring is unavailable, tokens fall back to ~/.my/credentials.json.

Terminal window
my cli whoami

Shows your user ID and email if logged in.

Terminal window
my cli status

Shows the API URL, login state, last sync time, and cached command count.

Terminal window
my cli logout

Clears stored credentials from the keyring and local file.

Access tokens are short-lived JWTs. The CLI automatically refreshes tokens using a refresh token when needed. You should rarely need to log in again.