---
title: "Cli Start"
method: POST
path: "/auth/cli/start"
---

# Cli Start

`POST /auth/cli/start`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/auth/cli/start`
- Auth: none declared

Begin a CLI device-login. Body: {provider?}. Returns a one-time {code} and the {login_url}
to open in a browser. With NO provider (the default), login_url points at a provider CHOOSER so
the user signs in with whatever method their account uses (Google/GitHub/…) — the CLI must not
guess. A specific `provider` skips the chooser. The CLI then polls /auth/cli/poll?code=.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
