Describe the Bug
When using a custom Anthropic api key, I’m unable to use the “@branch” shortcut to reference my current branches changes: @ Mentions | Cursor Docs
It will display an “unauthorized api key” error and refuse to start the chat until I remove the shortcut or turn off the API key.
Steps to Reproduce
- Configure valid Anthropic api key
- Start a feature branch and commit some changes
- Try to start a new chat and use the “@branch” shortcut.
- Submit chat
Expected Behavior
Expecting the @branch shortcut to work with a custom API key.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.3.4 (Universal)
VSCode Version: 1.99.3
Commit: bfb7c44bcb74430be0a6dd5edf885489879f2a20
Date: 2025-07-29T03:47:21.131Z (1 day ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
