# 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

```text
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

1. Run `kiro-cli login --use-device-flow`.
2. 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.

## Keep reading

- [Kiro](https://envhaven.com/agents/kiro)
- [Is Kiro down?](https://envhaven.com/status/kiro)
- [Every agent error](https://envhaven.com/errors)

Source: https://envhaven.com/errors/kiro/failed-to-open-browser-for-authentication
