Skip to Content
v1.27.0 · shipped Global XHR capture, Hash-router inventory Read the changelog →
Admin consoleCLI device auth

CLI device auth

Route: /cli-auth?code=XXXX-XXXX

Scenario: You ran mushi login in a terminal. The CLI opened this page so you can approve the device code while signed into the console.

RFC 8628 device authorization grant for the CLI:

  1. CLI starts POST /v1/cli/auth/device/start and opens this URL with the user code.
  2. Sign in to the console if needed (ProtectedRoute returns you here).
  3. Review the 3-step guide — do not paste the code into your terminal.
  4. ApprovePOST /v1/cli/auth/device/approve.
  5. The page polls GET /v1/cli/auth/device/status until the CLI claims the token (cli_token_claimed_at), then shows CLI connected.

Operator deep-dive: SDK reliability overhaul  · public guide: CLI ↔ console loop.

Last updated on