Amp: No API key found. Starting login flow...
Amp has no stored login and no `AMP_API_KEY`, so it starts a device login and prints a URL with a code. The exact message, why Amp prints it, and the fix.
Updated November 23, 2026 · Checked against Amp 0.0.1790438457, reproduced in EnvHaven 1.9.0
The message
No API key found. Starting login flow...
What it means
Amp has no stored login and no AMP_API_KEY, so it starts a device login and prints a URL with a code.
Fix
- Open the printed
ampcode.com/auth/cli/devicelink on any device, check the code matches, and confirm. - For scripts, set
AMP_API_KEYinstead so no login is needed.
In an EnvHaven workspace
Yes, the first time. Approve it from the same browser tab.
Where this comes from
This message was produced by Amp (Amp 0.0.1790438457) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.