Hey, thanks for the report and the screenshots.
There’s a known issue where the CLI shows “The provided API key is invalid” for any connectivity problem, not just an actually invalid key. So your key might be fine, but the CLI can’t reach our servers.
Can you try these two things?
- Run
agent status. Does it show “Login successful”? - Run this in your terminal:
This will tell us if there’s a network or TLS issue blocking the connection.curl -v https://api2.cursor.sh
Also, are you behind a VPN, corporate proxy, or firewall? That’s the most common cause of this error.
Related thread with the same error, it turned out to be a network issue: Cursor Agent login fails in RedHat
Let me know the results and we’ll go from there.