Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
I’m on Mac OS, and I have TailScale and Mosh set up. On my iPhone, I have Terminus. This sets up a VPN and I can use a terminal from my laptop. However, I cannot login. Copying the URL and opening a browser on the host SEEMS to be successful, but I end up just getting “failed to store authentication tokens.” When setting the environment variable CURSOR_API_KEY, it just silently fails. Running “agent status” gives “Not Logged In.” Claude Code does not have any problems.
Steps to Reproduce
- brew install mosh
- Enable remote login on macos; disable password login
- Install TailScale on both iPhone and MacOS
- Get ssh key in terminus. Add to authorized_keys on mac
- Login to Mac on Terminus
- Run “agent” or “agent login”
Expected Behavior
This should either use the environment variables. OR like claude code open a browser on the host to login
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
agent --version
2026.01.09-231024f
Does this stop you from using Cursor
Yes - Cursor is unusable