Kiro CLI: Failed to open browser for authentication
Kiro tried a browser sign-in on a machine that has no browser to open, such as a server, a container or an SSH session. The exact message, why Kiro prints it, and the fix.
Updated November 23, 2026 · Checked against Kiro CLI 2.34.0, reproduced in EnvHaven 1.9.0
The message
Failed to open browser for authentication.
Please try again with: kiro-cli login --use-device-flow
What it means
Kiro tried a browser sign-in on a machine that has no browser to open, such as a server, a container or an SSH session.
Fix
- Run
kiro-cli login --use-device-flow. - Open the link it prints on any device, enter the code, and approve.
In an EnvHaven workspace
Yes, from the terminal. The device flow works from the same browser tab.
Where this comes from
This message was produced by Kiro (Kiro CLI 2.34.0) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.