NextuneNextune Docs
CLI

Authentication

Sign in to the CLI with browser SSO or an API key.

Sign in

nextune login

Choose one of:

  1. SSO (browser) — recommended. The CLI opens a sign-in URL in your browser and waits for authorization.
  2. API key — paste a key that starts with SK-… from your Nextune dashboard.

SSO flow

nextune login
# Choose "SSO (browser)"
# Open the URL shown, sign in, then return to the terminal

On success you see Logged in successfully.

API key flow

nextune login
# Choose "API key"
# Paste API key (SK-...): SK-xxxxxxxx

On success you see API key saved.

Sign out

nextune logout

This clears local credentials and your saved workspace selection.

Current user

nextune whoami

Shows your name, email, auth mode, and active workspace. Add --json for machine-readable output.

nextune whoami --json

Security notes

  • Credentials are stored locally in ~/.config/nextune/config.yaml.
  • Never share API keys or paste them into public channels.
  • Use nextune logout on shared machines.

On this page