Skip to content
DreamUI Connectors
Get started

Reference

Live

Device login

How a harness signs a user in to DreamUI. The user approves in a browser, and the MCP adapter stores the credential on the host.

Underlying endpoints

Base URL: https://dreamui.com. Routes live in app/api/cli/auth/*/route.ts.

CLI device-login endpoints
Method and pathRequestSuccessNotes
POST /api/cli/auth/startNo body required{ deviceCode, userCode, expiresIn: 600, loginUrl }Show loginUrl to the user. Device codes are temporary credentials.
POST /api/cli/auth/poll{ "deviceCode": "…" }{ "status": "pending" }{ "status": "claimed", "token": "…" }Claimed response contains a secret. Missing input → 400; expired code → 404.
GET /api/cli/auth/statusAuthorization: Bearer <CLI_TOKEN>x-cli-token: <CLI_TOKEN>{ "ok": true }Invalid or missing token → 401 { "ok": false, "error": "Invalid CLI token" }.