Device code login

A sign-in flow for machines without a browser: the tool shows a short code and a URL, and you approve it on any other device.

Updated November 23, 2026

Device codes are how you sign an agent in on a remote server. codex login --device-auth, grok login --device-auth and kiro-cli login --use-device-flow print a code; you open the link on your phone or laptop, confirm, and the agent is signed in.

Kiro shows “Failed to open browser for authentication.” when it tries a browser login on a machine without one, and suggests the device flow.

In an EnvHaven workspace you can leave the typing to the Launch menu: its Sign in runs the agent’s own sign-in command, which for Codex is codex login --device-auth.