CLI device auth
Route: /cli-auth?code=XXXX-XXXX
Scenario: You ran
mushi loginin 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:
- CLI starts
POST /v1/cli/auth/device/startand opens this URL with the user code. - Sign in to the console if needed (
ProtectedRoutereturns you here). - Review the 3-step guide — do not paste the code into your terminal.
- Approve →
POST /v1/cli/auth/device/approve. - The page polls
GET /v1/cli/auth/device/statusuntil the CLI claims the token (cli_token_claimed_at), then shows CLI connected.
Operator deep-dive: SDK reliability overhaul · public guide: CLI ↔ console loop.
Related pages
- Connect hub — install CLI + MCP after login
- Setup Copilot — verify ingest after the CLI is wired
Last updated on