Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
When both Grok CLI and Cursor CLI are installed on macOS, running agent login opens the Grok OAuth page (Grok) instead of Cursor’s OAuth page. After authenticating, agent models shows only “grok-4.5” as the available model instead of Cursor’s full model catalog (Claude, GPT, etc.). The Cursor CLI appears to detect and use the Grok CLI’s cached authentication (~/.grok/auth.json) instead of its own auth flow.
Steps to Reproduce
1. Install Grok CLI: curl -s https://grok.com/install | bash
2. Install Cursor CLI: curl https://cursor.com/install -fsS | bash
3. Run agent login
4. Browser opens grok.com OAuth instead of cursor.com
5. Authenticate with grok.com credentials
6. Run agent models
Expected Behavior
agent login should open Cursor’s OAuth page (cursor.com) and agent models should show Cursor’s model catalog (Claude Sonnet, GPT-4, etc.), not Grok’s models
Operating System
MacOS
Version Information
- Cursor CLI: 2026.07.17-3e2a980 (removed during debugging)
- Grok CLI: 0.2.106 (bde89716f679)
- macOS: 26.5.1 (Apple Silicon)
For AI issues: which model did you use?
N/A — CLI auth issue, not model-related.
Additional Information
Both CLIs install a binary named agent to ~/.local/bin/. The last-installed one overwrites the symlink. Suggest unique binary names (e.g., cursor-agent for Cursor, grok-agent for Grok) or a namespace prefix to avoid collisions.
Does this stop you from using Cursor
Yes - Cursor is unusable