login
Sign in to LILY with the browser.
lly login [--no-browser]Signs this machine in. lly shows a link and a code, opens the link in the browser and waits for your confirmation.
❯ Login your LILY Account
Open https://auth.lilylabs.io/oauth/device
Code WDJB-MJHT
◰ Waiting for approval in the browser…
✓ Signed in as Ada <[email protected]> in Ada's Workspace
Session ada-macbook · valid until 2026-12-17The browser page has the code prefilled. Check that it matches the code in the terminal and confirm. The code expires after 10 minutes. While waiting, o and Enter opens the link again, c and Enter copies it to the clipboard.
The session is named after the machine's hostname and starts in your personal workspace. Signing in again replaces the previous session of this machine.
Without a browser
With --no-browser, with LLY_NO_BROWSER set, or in an SSH session, lly only prints the link. Open it on any device and confirm the code there.
Session storage
| Platform | Storage |
|---|---|
| macOS | Keychain |
| Linux | Secret Service |
| Windows | Credential Manager |
The session renews itself during use and is valid for up to 90 days. On machines without a keychain, LLY_INSECURE_STORE=1 stores it in a file readable only by your user (<config dir>/credentials/<profile>.json).
Options
| Option | Description |
|---|---|
--no-browser | Print the link instead of opening the browser. Same as LLY_NO_BROWSER. |
Exit codes
| Code | Cause |
|---|---|
2 | LLY_ACCESS_TOKEN is set. See CI/CD. |
3 | Sign-in denied in the browser, or code expired |
6 | Sign-in service unreachable |
JSON output
{"user": {"id", "name", "email", "role"}, "session_id", "label", "expires_at"}. The link and code are printed to stderr.