# 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`.

## Keep reading

- [Bring your own key (BYOK)](https://envhaven.com/glossary/byok)
- [API key](https://envhaven.com/glossary/api-key)
- [SSH](https://envhaven.com/glossary/ssh)

Source: https://envhaven.com/glossary/device-code-login
