Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
started getting the following error when running agent:
Error: Cursor couldn't find your saved login in the macOS keychain (errSecItemNotFound, security exit code 44).
Log out and sign back in to refresh your saved login: run \`agent logout\`, then start agent again. If your keychain is locked, first run \`security unlock-keychain\`.
i tried agent logout&&security unlock-keychain but issue still occurs.
env:
- darwin arm64/v8
- macos tahoe 26.5.2 (25F84)
agentversion 2026.07.23-e383d2b
I removing the CLI:
sudo rm /usr/local/bin/cursor rm -r ~/.local/share/cursor-agent/
sudo rm /usr/local/bin/cursor rm ~/.local/bin/cursor-agent
and reinstall using:
curl https://cursor.com/install -fsS | bash
but issue persists.
When i try to log in, i see a different error by seems to be related to inability to store cursor auth in keychain:
agent login
Starting login process...
Authenticating with Cursor...
Waiting for browser authentication...
If your browser didn't open, use this link:
https://cursor.com/loginDeepControl?challenge=[redacted]&uuid=[redacted]&mode=login&redirectTarget=cli
Press q to show a QR code to log in from another device.
Failed to store authentication tokens. Please try again.
Steps to Reproduce
run agent
Operating System
MacOS
Version Information
About Cursor CLI
CLI Version 2026.07.23-e383d2b
Model Auto
Subscription Tier Unknown
OS darwin (arm64)
Terminal apple-terminal
Shell zsh
User Email Not logged in
Does this stop you from using Cursor
Yes - Cursor is unusable